* locales/da_DK: Likewise.
[glibc.git] / ChangeLog
blob03c9cb11e13549663d4c4d62ed7220e948944f32
1 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3         * po/pt_BR.po: Fix typo.
5 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7         * iconvdata/Makefile (modules): Add ISO8859-9E.
8         (distribute): Add iso8859-9e.c.
9         (gen-8bit-gap-modules): Add iso8859-9e.
10         * iconvdata/iso8859-9e.c: New file.
11         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
12         * iconvdata/TESTS: Likewise.
13         * iconvdata/tst-tables.sh: Likewise.
15         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
17         * locale/iso-639.def: Add several new entries.
19 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
21         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
22         void * pointers instead of struct link_map **.
23         (_dl_scope_free): Change argument type to void *.
24         * include/link.h (struct link_map): Change type of l_reldeps
25         to struct link_map_reldeps, move l_reldepsact into that
26         struct too.
27         * elf/dl-deps.c: Include atomic.h.
28         (_dl_map_object_deps): Only change l->l_initfini when it is
29         fully populated, use _dl_scope_free for freeing it.  Optimize
30         removal of libs from reldeps by using l_reserved flag, when
31         some removal is needed, allocate a new list instead of
32         reallocating and free the old with _dl_scope_free.  Adjust
33         for l_reldeps and l_reldepsact changes.
34         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
35         searching in l_initfini and l_reldeps without holding dl_load_lock.
36         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
37         l_reldepsact changes.
38         * elf/dl-close.c (_dl_close_worker): Likewise.
39         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
41 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
43         * iconvdata/Makefile (modules): Add KOI8-RU.
44         (distribute): Add koi8-ru.c.
45         (gen-8bit-gap-modules): Add koi8-ru.
46         * iconvdata/koi8-ru.c: New file.
47         * iconvdata/gconv-modules: Add entries for KOI8-RU.
48         * iconvdata/TESTS: Likewise.
49         * iconvdata/tst-tables.sh: Likewise.
51         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
53 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
55         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
56         with __warning__/__error__ attributes.
57         (__warnattr): Define.
58         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
59         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
60         __warnattr.
61         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
62         of __*_chk if compile time detectable overflow is found.
63         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
64         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
65         with __warnattr.
66         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
67         instead of __*_chk if compile time detectable overflow is found.
68         (__gets_alias): Rename to...
69         (__gets_warn): ... this.  Add __warnattr.
70         (gets): Call __gets_warn instead of __gets_alias.
71         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
72         aliases with __warnattr.
73         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
74         time detectable overflow is found.
75         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
76         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
77         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
78         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
79         __getdomainname_chk_warn): New aliases with __warnattr.
80         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
81         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
82         __*_chk_warn instead of __*_chk if compile time detectable overflow
83         is found.
84         (__getgroups_chk): Rename argument to __listlen from listlen.
85         (__getwd_alias): Rename to...
86         (__getwd_warn): ... this.  Add __warnattr.
87         (getwd): Call __getwd_warn instead of __getwd_alias.
88         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
89         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
90         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
91         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
92         __wcsnrtombs_chk_warn): New aliases with __warnattr.
93         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
94         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
95         compile time detectable overflow is found.
96         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
97         to use __*_chk or not.
98         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
99         in comparisons which function should be called and in __*_chk*
100         arguments.  Call __*_chk_warn instead of __*_chk if compile time
101         detectable overflow is found.
102         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
103         __*_chk argument.
104         * debug/tst-chk1.c (do_test): Add a few more tests.
106 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
108         [BZ #5058]
109         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
110         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
111         (_nl_unload_domain): Finalize conversions_lock.
112         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
113         handling table of known conversions.
115 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
117         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
118         close_not_cancel_no_status instead of close.
120 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
122         [BZ #5028]
123         * posix/regcomp.c (lookup_collation_sequence_value): Check that
124         nrules != 0 for multibyte chars.
126 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
128         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
129         Provide better error message in case the type is unknown.
131         [BZ #4963]
132         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
133         * string/stratcliff.c: Make usable to test wide char functions.
134         * wcsmbs/wcsatcliff.c: New file.
135         * wcsmbs/Makefiel (tests): Add wcsatcliff.
137         [BZ #4972]
138         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
139         (distribute): Add mac-centraleurope.c.
140         (gen-8bit-gap-modules): Add mac-centraleurope.
141         * iconvdata/mac-centraleurope.c: New file.
142         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
143         * iconvdata/TESTS: Likewise.
144         * iconvdata/tst-tables.sh: Likewise.
146         [BZ #5043]
147         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
149 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
151         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
152         from __x86_64_core_cache_size_half.
153         (init_cacheinfo): Compute shared cache size for AMD processors with
154         shared L3 correctly.
155         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
156         name change.
157         Patch in large parts by Evandro Menezes.
159 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
161         * elf/dl-lookup.c (add_dependency): Handle failing memory
162         allocation for dependency list.  Remove unnecessary check.
164         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
165         open/close when determining source addresses.
167         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
168         sha512-crypt, and sha512.
169         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
170         (distribute): Add sha256.h and sha512.h.
171         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
172         and call the appropriate code.
173         * crypt/sha256-crypt.c: New file.
174         * crypt/sha256.c: New file.
175         * crypt/sha256.h: New file.
176         * crypt/sha256c-test.c: New file.
177         * crypt/sha256test.c: New file.
178         * crypt/sha512-crypt.c: New file.
179         * crypt/sha512.c: New file.
180         * crypt/sha512.h: New file.
181         * crypt/sha512c-test.c: New file.
182         * crypt/sha512test.c: New file.
184 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
186         * misc/bits/syslog.h (syslog): Remove extraneous argument from
187         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
188         __syslog_chk.
190 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
192         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
193         %as in fscanf format strings.
195         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
196         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
197         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
198         Likewise.
199         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
200         Likewise.
202         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
203         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
204         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
205         * elf/dl-sym.c (do_sym): Likewise.
206         * include/link.h (struct link_map): Add l_serial field.
207         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
208         * elf/dl-lookup.c (add_dependency): Add flags argument.
209         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
210         flags, use THREAD_GSCOPE_RESET_FLAG before and
211         THREAD_GSCOPE_SET_FLAG after
212         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
213         Don't dereference map until it has been found on some list.
214         If map->l_serial changed, return -1.
216 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
218         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
219         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
220         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
221         libc_hidden_proto.
222         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
223         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
224         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
225         add libc_hidden_proto.
226         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
227         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
228         conformance requested.
229         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
230         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
231         conformance requested.
232         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
233         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
234         conformance requested.
235         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
236         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
237         ISO C99 or POSIX conformance requested.
238         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
239         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
240         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
241         and __isoc99_vsscanf@@GLIBC_2.7.
242         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
243         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
244         (tests): Add scanf14.
245         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
246         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
247         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
248         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
249         CFLAGS-isoc99_scanf.c): Add $(exceptions).
250         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
251         from using internal headers.
252         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
253         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
254         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
255         and __isoc99_vswscanf@@GLIBC_2.7.
256         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
257         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
258         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
259         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
260         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
261         * stdio-common/isoc99_scanf.c: New file.
262         * stdio-common/isoc99_vsscanf.c: New file.
263         * stdio-common/isoc99_vscanf.c: New file.
264         * stdio-common/isoc99_vfscanf.c: New file.
265         * stdio-common/isoc99_fscanf.c: New file.
266         * stdio-common/isoc99_sscanf.c: New file.
267         * wcsmbs/isoc99_fwscanf.c: New file.
268         * wcsmbs/isoc99_vswscanf.c: New file.
269         * wcsmbs/isoc99_swscanf.c: New file.
270         * wcsmbs/isoc99_wscanf.c: New file.
271         * wcsmbs/isoc99_vwscanf.c: New file.
272         * wcsmbs/isoc99_vfwscanf.c: New file.
273         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
274         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
275         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
276         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
277         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
278         * stdio-common/scanf14.c: New test.
279         * stdio-common/scanf15.c: New test.
280         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
281         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
282         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
283         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
284         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
285         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
286         __nldbl___isoc99_scanf@@GLIBC_2.7,
287         __nldbl___isoc99_fscanf@@GLIBC_2.7,
288         __nldbl___isoc99_sscanf@@GLIBC_2.7,
289         __nldbl___isoc99_vscanf@@GLIBC_2.7,
290         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
291         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
292         __nldbl___isoc99_wscanf@@GLIBC_2.7,
293         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
294         __nldbl___isoc99_swscanf@@GLIBC_2.7,
295         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
296         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
297         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
298         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
299         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
300         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
301         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
302         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
303         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
304         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
305         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
306         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
307         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
308         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
309         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
310         functions.
311         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
312         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
313         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
314         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
315         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
316         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
317         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
318         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
319         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
320         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
321         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
322         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
324         * stdio-common/Makefile (tests): Add scanf13.
325         (scanf13-ENV): New.
326         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
327         m modifier followed by l.
328         (STRING_ARG): Add width argument.
329         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
330         <case L_('C')>: Handle %mlc and %mC.
331         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
332         arguments.
333         * stdio-common/scanf13.c: New test.
335         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
336         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
338 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
340         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
341         type and __THROW marker of splice, vmsplice, and tee.
342         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
343         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
344         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
345         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
347         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
348         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
349         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
350         as cancellation points.
352 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
354         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
355         parse more than three parts of the version number.
357 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
359         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
360         modifier.  Patch by Jakub Jelinek.
362 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
364         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
365         call_fallocate in misc subdir.
366         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
367         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
368         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
369         instead of __fallocate64.
370         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
372 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
374         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
375         * rt/Makefile (headers): Add bits/mqueue2.h.
376         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
377         optimizing with GCC and __va_arg_pack_len is defined.
378         * rt/bits/mqueue2.h: New file.
379         * rt/mq_open.c (__mq_open): Renamed from mq_open.
380         (mq_open): New strong_alias.
381         (__mq_open_2): New function.
382         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
383         (mq_open): New strong_alias.
384         (__mq_open_2): New function.
385         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
386         * Versions.def (librt): Add GLIBC_2.7 version.
387         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
388         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
390         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
391         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
392         is defined rather than when not C++.
393         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
394         __openat64_alias): New redirects.
395         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
396         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
397         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
398         (open, open64, openat, openat64): Rewrite as __extern_always_inline
399         functions instead of function-like macros.
401 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
403         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
404         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
405         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
407 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
409         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
410         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
412 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
414         * inet/tst-network.c: Increment ERRORS for failing tests.
416 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
418         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
419         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
420         implement as __extern_always_inline function.
421         (vsyslog): Define as __extern_always_inline function unconditionally.
422         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
423         When __va_arg_pack is defined, implement as __extern_always_inline
424         functions.
425         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
426         __extern_always_inline functions unconditionally.
427         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
428         bits/stdio2.h will be included.
429         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
430         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
431         implement as __extern_always_inline functions.
432         (vswprintf, vwprintf, vfwprintf): Define as
433         __extern_always_inline functions unconditionally.
434         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
436 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
438         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
439         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
440         attribute.
441         * include/features.h (__USE_EXTERN_INLINES): Define only when
442         __extern_inline is defined.
443         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
444         is defined instead of when not __cplusplus.
445         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
446         is defined instead of when not __cplusplus.
447         * socket/sys/socket.h: Include bits/socket2.h when
448         __extern_always_inline is defined instead of when not __cplusplus.
449         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
450         is defined instead of when not __cplusplus.
451         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
452         is defined instead of when not __cplusplus.
453         * string/string.h: Include bits/string3.h when __extern_always_inline
454         is defined instead of when not __cplusplus.
455         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
456         is defined instead of when not __cplusplus.
457         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
458         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
459         is not defined.
460         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
461         defined __extern_always_inline instead of !defined __cplusplus.
462         * libio/bits/stdio-ldbl.h: Likewise.
463         * wcsmbs/bits/wchar-ldbl.h: Likewise.
464         * misc/bits/syslog.h (syslog): Don't define for C++.
465         (vsyslog): Use __extern_always_inline function for C++ instead of
466         a macro.
467         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
468         whenever that macro is defined.
469         (vprintf): Don't provide the inline for C++.
470         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
471         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
472         define the macros for C++.
473         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
474         __extern_always_inline functions for C++.
475         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
476         stat64, lstat64, fstat64, fstatat64): Don't define if not
477         __USE_EXTERN_INLINES.
478         * wcsmbs/bits/wchar2.h: Fix #error message.
479         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
480         (vswprintf, vwprintf, vfwprintf): Define using
481         __extern_always_inline functions for C++.
482         * string/bits/string3.h: Don't #undef macros if __cplusplus.
483         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
484         strncpy, strcat, strncat): Define as __extern_always_inline
485         functions instead of macros for C++.
486         * math/bits/cmathcalls.h: Guard __extern_inline routines with
487         defined __extern_inline.
488         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
489         to __extern_inline whenever that macro is defined.
490         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
491         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
492         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
493         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
494         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
495         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
496         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
497         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
498         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
499         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
500         prototypes.  Only provide __extern_inline routines if
501         __USE_EXTERN_INLINES.
502         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
503         tests.
504         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
505         For now avoid some *printf tests in C++.  Skip all testing
506         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
507         is not.
508         * debug/tst-chk4.cc: New file.
509         * debug/tst-chk5.cc: New file.
510         * debug/tst-chk6.cc: New file.
511         * debug/tst-lfschk4.cc: New file.
512         * debug/tst-lfschk5.cc: New file.
513         * debug/tst-lfschk6.cc: New file.
514         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
515         prototypes in C++.
516         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
517         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
518         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
520 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
522         * po/cs.po: Update from translation team.
524 2007-09-11  Roland McGrath  <roland@redhat.com>
526         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
527         compiling.
529 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
531         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
533 2007-09-05  Roland McGrath  <roland@redhat.com>
535         * manual/signal.texi (Signaling Another Process): Typo fix.
536         From Karl Berry <karl@freefriends.org>.
538 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
540         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
541         zero if not defined.
542         (make_request): Recognize optimistic addresses and treat them like
543         deprecated addresses.
544         Reported by Neil Horman <nhorman@redhat.com>.
546 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
548         * nscd/connections.c (send_ro_fd): Also transfer file size.
549         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
550         file size don't call fstat.
552         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
553         ahead and map the file.  This should always be correct and we can
554         catch problems later.
556 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
558         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
559         prototypes.
560         (__fread_alias, __fread_unlocked_alias): New aliases.
561         (fread): New extern inline.
562         (fread_unlocked): Likewise.  Undef macro before definition of
563         the inline function.
564         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
565         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
566         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
567         and __fread_unlocked_chk@@GLIBC_2.7.
568         * debug/fread_chk.c: New file.
569         * debug/fread_u_chk.c: New file.
570         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
572 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
574         * sysdeps/unix/sysv/linux/syscalls.list
575         (personality): Change caller to EXTRA.
577 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
579         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
580         to keep gcc quiet.
581         * iconvdata/iso-2022-cn.c (BODY): Likewise.
583         * locale/programs/ld-collate.c (collate_output): Avoid warning if
584         NDEBUG is defined.
586         * Makerules: Use -p option with mkdir.
588         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
589         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
590         (_xdr_directory_obj): Likewise.
591         (xdr_entry_obj): Likewise.
592         (xdr_group_obj): Likewise.
593         (xdr_link_obj): Likewise.
594         (xdr_table_obj): Likewise.
595         (_xdr_nis_result): Likewise.
596         (_xdr_ns_request): Likewise.
597         (_xdr_ib_request): Likewise.
598         (_xdr_nis_taglist): Likewise.
599         (xdr_cback_data): Likewise.
600         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
601         (xdr_ypresp_maplist): Likewise.
603         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
605         * posix/regex_internal.h: Prevent some declarations and definitions
606         to be seen when used in tests.
608         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
609         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
611         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
613         * config.make.in (datarootdir): Add to shut up configure.
615         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
616         associativity for fully-associative caches.
618         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
619         requests.  Fill on more associativity values for L2.
620         Patch mostly by Evandro Menezes.
622 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
624         * sysdeps/unix/sysv/linux/x86_64/init-first.c
625         (_libc_vdso_platform_setup): Avoid using exported variable by using
626         alias.
628         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
630         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
631         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
632         defined.
634 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
636         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
637         align stack for call if pltexit is to be used.
639         [BZ #3924]
640         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
641         align for function call in case pltexit has to be called later.
643         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
644         implicit atomic operation when storing function pointer.
645         (_dl_runtime_profile): Likewise.
647 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
649         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
650         NIS_NOTFOUND.
652 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
654         [BZ #4566]
655         * string/strtok.c: Fix typo in comment.
657         [BZ #4582]
658         * debug/segfault.c: Fix typos in comments.
660         [BZ #4588]
661         * stdio-common/tempnam.c: Fix comment, it is not checked that
662         TMPDIR points to a writable directory.
664         [BZ #4726]
665         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
666         memory allocated for the name server address.
668         [BZ #4946]
669         * nscd/connections.c (handle_request): Using sendfile always
670         requires that mmap is used for the database.
671         Patch by Petr Baudis <pasky@suse.cz>.
673         [BZ #4905]
674         * nscd/hstcache.c (cache_addhst): When reloading an entry which
675         suddenly has two or more addresses, ignore it and remove the old
676         entry.
678         [BZ #4814]
679         * resolv/res_hconf.c: Prepare for compiling outside libc.
680         * nscd/res_hconf.c: New file.
681         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
682         the new file.
683         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
684         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
686         * nscd/hstcache.c (cache_addhst): Minimal optimization.
688         [BZ #4925]
689         * debug/pcprofiledump.c: Turn on internationalization by calling
690         setlocale.  Patch mostly by Benno Schulenberg.
692         [BZ #4936]
693         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
694         the state.
695         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
696         * iconvdata/bug-iconv5.c: New file.
698 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
700         [BZ #4896]
701         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
702         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
703         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
704         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
705         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
706         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
707         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
708         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
710 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
712         [BZ #4937]
713         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
714         lookup loop.  Suggested by John Reiser.
716 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
718         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
720 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
722         * csu/libc-start.c: Don't handle VDSO_SETUP here.
723         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
724         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
725         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
726         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
727         to...
728         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
730 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
732         * po/nl.po: Update from translation team.
734 2007-08-16  Andreas Jaeger  <aj@suse.de>
736         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
737         Reported by Peter Festner <peter.festner@ewetel.net>.
739 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
741         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
743 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
745         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
746         to check for undefined symbols.
748         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
749         If the syscall fails, set errno to the actual returned error number
750         rather than EINVAL.
751         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
752         arguments are incorrect, set errno to EINVAL, if the syscall
753         fails, set errno to the actual returned error number.
755         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
756         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
758         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
759         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
760         file.
761         (ASI_PNF, ASI_BLK_P): Don't define.
762         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
763         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
764         file.
765         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
766         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
767         file.
769 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
771         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
772         FE_UNDERFLOW on Niagara CPUs.
774         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
775         exceptions.
777 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
779         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
780         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
781         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
782         flush should be used or not inside of the function.
783         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
785         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
786         __thread_start): Use HIDDEN_JUMPTARGET.
787         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
788         __thread_start): Likewise.
789         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
791         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
792         Add libc_hidden_proto.
793         (STRTOF): Add libc_hidden_proto.
794         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
795         (strtold_l, wcstold_l): Use them as second argument for
796         long_double_symbol.
798 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
800         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
802 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
804         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
806 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
808         * po/bg.po: New file.  From the translation team.
810 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
812         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
813         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
814         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
815         when each feature was introduced.
817         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
818         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
819         (CHECK_HASH): New macro.
820         (PREPARE_VERSION): Use it.
822         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
823         prototype if not __ASSUME_PSELECT.
824         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
825         prototype if not __ASSUME_PPOLL.
827         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
829         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
830         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
831         is defined.
833 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
835         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
836         (_libc_vdso_platform_setup): If vDSO is not available point
837         __vdso_gettimeofday to the vsyscall.
838         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
839         __vdso_gettimeofday instead of vsyscall.
841 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
843         * nscd/servicescache.c: Include kernel-features.h.
844         * nscd/gai.c: Likewise.
845         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
846         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
847         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
848         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
849         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
850         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
851         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
852         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
853         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
855 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
857         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
858         and _dl_get_origin defines anymore.
860         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
861         Build fix for systems which might lack POSIX timer support.
863         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
864         (_libc_vdso_platform_setup): Mangle function pointers before storing
865         them.
866         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
867         Demangle vdso pointer before use.
868         (INTERNAL_VSYSCALL): Likewise.
870         * elf/cache.c (primes): Mark as const.
871         Noted by Roland McGrath.
873 2007-08-01  Andreas Jaeger  <aj@suse.de>
874             Jakub Jelinek  <jakub@redhat.com>
876         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
877         (options): Add option.
878         (parse_opt): Handle option.
879         (manual_link): Adjust process_file caller.  Call implicit_soname.
880         (search_dir): Formatting.  Use and populate auxiliary cache.
881         (main): Load and save auxiliary cache.
882         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
883         stat64 from fstat64 to caller.
884         (implicit_soname): New function.
885         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
886         leave *soname as NULL.
887         * elf/cache.c: Include libgen.h.
888         (print_entry, print_cache, compare, save_cache, add_to_cache):
889         Formatting and cleanups.
890         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
891         aux_cache_file): New structures.
892         (AUX_CACHEMAGIC): Define.
893         (primes): New array.
894         (aux_hash_size, aux_hash): New variables.
895         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
896         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
897         load_aux_cache, save_aux_cache): New functions.
898         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
899         (init_aux_cache, search_aux_cache, add_to_aux_cache,
900         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
901         (process_file): Adjust prototype.
903 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
905         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
906         with __need_size_t.
908 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
910         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
911         r_found_version structure as second parameter.
912         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
913         (_dl_vdso_vsym): Change type of second parameter accordingly.
914         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
915         (_libc_vdso_platform_setup): Adjust.
916         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
917         (_libc_vdso_platform_setup): Likewise.
919         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
920         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
921         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
922         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
923         * csu/libc-start.c: Pretty printing.
924         Use VDSO_SETUP if defined.
925         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
926         and let generic code call into _libc_vdso_platform_setup.
927         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
928         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
929         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
930         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
931         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
932         for GLIBC_PRIVATE.
933         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
934         (sysdep_rountines): Add dl-vdso.
936         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
937         of routines.
939         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
940         attribute_hidden to __vdso_gettimeofday prototype.
942 2007-08-12  Roland McGrath  <roland@redhat.com>
944         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
945         From: Karl Berry <karl@freefriends.org>.
947 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
949         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
950         an atime update for the files we read.
952 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
954         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
956         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
957         instead of mkstemp.
959         * misc/Makefile (routines): Add mkostemp and mkostemp64.
960         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
961         * misc/mkostemp.c: New file.
962         * misc/mkostemp64.c: New file.
963         * stdlib/stdlib.h: Declare the new functions.
964         * sysdeps/posix/tempname.c: Add new parameter which is added to
965         the flags for open.  Remove __GT_BIGFILE handling.
966         * stdio-common/tempname.c: Likewise.
967         * include/stdio.h: Adjust __gen_tempname prototype.
968         Renumber __GT_* constants.
969         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
970         * misc/mkdtemp.c: Likewise.
971         * misc/mkstemp.c: Likewise.
972         * misc/mkstemp64.c: Likewise.
973         * misc/mktemp.c: Likewise.
974         * stdio-common/tempnam.c: Likewise.
975         * stdio-common/tmpfile.c: Likewise.
976         * stdio-common/tmpfile64.c: Likewise.
977         * stdio-common/tmpnam.c: Likewise.
978         * stdio-common/tmpnam_r.c: Likewise.
980 2007-08-10  Roland McGrath  <roland@frob.com>
982         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
983         New macros.
984         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
985         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
987 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
989         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
990         possible.
991         * nss/nss_files/files-alias.c (internal_setent): Likewise.
992         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
993         * nss/nss_files/files-have_o_cloexec.c: New file.
995         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
996         available.
998 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
1000         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1001         ___new_wcstold_l): New weak aliases.
1002         (strtold_l, wcstold_l): Use them as second argument for
1003         long_double_symbol.
1005 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
1007         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1008         register in test for error.
1010         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1011         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1013         * po/sv.po: Update from translation team.
1015 2007-08-06  Roland McGrath  <roland@redhat.com>
1017         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1018         Remove __strto*_l inlines.
1019         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1020         * stdlib/strtod.c: Add libc_hidden_def.
1021         * stdlib/strtod_l.c: Likewise.
1022         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1023         for __new_strtold and __new_wcstold.
1024         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1025         __STRTOF, STRTOF.
1026         * stdlib/strtol.c: Add libc_hidden_def.
1027         * stdlib/strtol_l.c: Likewise.
1028         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1029         strtoq.
1031         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1033         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1034         * scripts/data/localplt-generic.data: ... here.
1035         * elf/Makefile (check-data): Get generic file if no other.
1036         ($(objpfx)check-localplt.out): Make target unconditional.
1038         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1039         Use ElfW(Nhdr).
1041 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
1043         * po/zh_CN.po: Updated translation from translation team.
1045 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
1047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1048         Don't use CGOTSETUP and CGOTRESTORE macros.
1050 2007-08-04  Roland McGrath  <roland@redhat.com>
1052         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1054 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
1056         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1057         __extension__ around the whole statement expression.
1059 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
1061         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1062         elements during initialization.
1064         * po/pl.po: Updated translation from translation team.
1065         * po/tr.po: Likewise.
1066         * po/nl.po: Likewise.
1068 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
1070         * rt/aio.h: Add __nonnull attributes.
1072 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1074         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1075         * stdlib/Makefile (tests): Add tst-strtod5.
1076         (tst-strtod5-ENV): New.
1077         * stdlib/tst-strtod5.c: New file.
1079         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1080         failed.
1081         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1082         on failure.
1084         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1085         allocated.
1087 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1089         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1090         numbers.
1092 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
1094         * io/Makefile (aux): Add have_o_cloexec.
1095         * include/fcntl.h: Declare __have_o_cloexec.
1096         * io/have_o_cloexec.c: New file.
1097         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
1098         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
1099         fcntl call if not necessary.
1100         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
1101         of local variable.
1103         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
1104         Avoid memset, add explicit initialization.
1105         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
1106         to the end and change into zero-sized array.
1107         Move lock member to fill a hole on 64-bit platforms.
1109         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
1110         inline functions.
1111         * include/stdlib.h: Add __strto*_internal prototypes here.
1112         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
1113         inline functions.
1114         * include/wchar.h: Add __wcsto*_internal prototypes.
1115         * sysdeps/generic/inttypes.h: No need to protect the declaration
1116         of the __strto*_internal and __wcsto*_internal members here.
1118         * rt/mqueue.h: Change const to __const and add nonnull attributes.
1120 2007-08-02  Roland McGrath  <roland@redhat.com>
1122         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
1123         $(inst_bindir)/getconf if possible.
1125         * posix/Makefile ($(objpfx)getconf.speclist): New target.
1126         (generated): Add it.
1127         ($(inst_libexecdir)/getconf): Use it.
1129 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
1131         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
1132         /proc is faster and sufficient.  /sys is still needed for
1133         __get_nprocs_conf.
1135 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
1137         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
1138         syscall as __fallocate64.
1139         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
1140         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
1142 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
1144         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
1145         value.
1147         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
1148         if off_t is different rank from size_t.
1150         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
1151         uw_frame_state_for): Avoid type punning warnings.
1152         * sysdeps/generic/unwind-dw2-fde-glibc.c
1153         (_Unwind_IteratePhdrCallback): Likewise.
1154         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
1155         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
1156         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
1157         pointers.
1159 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
1161         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
1162         total processors using sysfs.
1163         (__get_nprocs): Use sysfs to determine which processors are online.
1165 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
1167         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
1168         syscall arguments count.
1170         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
1172 2007-07-30  Roland McGrath  <roland@redhat.com>
1174         * manual/libc.texinfo: Update copyrights, formatting magic, and
1175         @dircategory.  From Karl Berry <karl@freefriends.org>.
1177 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
1179         [BZ #4860]
1180         * io/Makefile (headers): Add bits/fcntl2.h.
1182         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
1183         using gcc builtin.
1184         (__CPU_EQUAL_S): Likewise.
1186         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
1187         (tests): Add tst-cpuset.
1188         * posix/sched_cpualloc.c: New file.
1189         * posix/sched_cpufree.c: New file.
1190         * posix/tst-cpuset.c: New file.
1191         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
1192         GLIBC_2.7.
1193         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
1194         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
1195         macros.  Define CPU_*_S macros.
1197 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
1199         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
1200         entry.
1202         [BZ #4858]
1203         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
1204         #.0g and value rounded to 1.0.
1205         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
1207 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
1209         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
1210         for int_frac_digits and frac_digits.
1212         * login/logout.c (logout): Avoid aliasing violation.
1213         * login/logwtmp.c (logwtmp): Likewise.
1215         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
1217         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
1218         to avoid warning.
1219         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
1220         warning.
1221         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
1222         warning.
1223         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
1224         to avoid warnings.
1226         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
1227         void **.
1228         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
1230         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
1231         char * to avoid warning.
1232         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
1234         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
1236         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
1237         allocate_arrays): Cast second argument to charmap_find_symbol
1238         to char * to avoid warnings.
1240         * locale/programs/repertoire.c (repertoire_new_char): Change
1241         from_nr, to_nr and cnt to unsigned long, adjust printf format
1242         string.
1244         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
1245         Cast second argument to new_element to char * to avoid warnings.
1247         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
1249         * intl/gettextP.h (struct loaded_domain): Change plural to const
1250         struct expression *.
1251         * intl/plural-eval.c (plural_eval): Change first argument to
1252         const struct expression *.
1253         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
1254         argument to const struct expression **.
1255         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
1256         prototypes.
1257         * intl/loadmsgcat (_nl_unload_domain): Cast away const
1258         in call to __gettext_free_exp.
1260         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
1261         unitialized wstring/wpattern var warnings.
1263         * posix/runtests.c (struct a_test): Make data field const char *.
1265         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
1266         vars if not LDBL_MANT_DIG >= 106.
1268         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
1270         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
1271         __find_specmb to avoid warning.
1273         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
1275         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
1276         to avoid warnings.
1278         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
1279         initializer.
1281         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
1282         tv var when it will be actually used.
1284         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
1285         to avoid warnings.
1287         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
1288         char array resp. pointer.
1289         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
1290         char array.
1291         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
1292         to const unsigned char **.
1293         (ucs4_to_cns11643): Change second argument to unsigned char *.
1294         * iconvdata/euc-tw.c (BODY): Change endp type to
1295         const unsigned char *.
1296         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
1297         to unsigned char *.
1298         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
1299         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
1300         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
1301         types to unsigned char pointers/arrays instead of char.
1302         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
1303         to unsigned char *.
1304         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
1305         * iconvdata/jis0212.h: Include assert.h.
1306         (ucs4_to_jisx0212): Change second argument to unsigned char *.
1307         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
1308         of trying to handle that.
1309         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
1310         shut up a warning.
1311         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
1312         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
1313         two dimensional const unsigned char arrays.
1314         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
1315         Initialize endp to inptr to shut up a warning.
1317 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
1319         [BZ #4772]
1320         * time/strptime_l.c (__strptime_internal): Silently ignore
1321         strftime modifiers and field width in recursive calls.
1323         * include/time.h (enum ptime_locale_status): Remove.
1324         (__strptime_internal): Remove decided and era_cnt arguments,
1325         add statep argument.
1326         * time/strptime_l.c (__strptime_internal): Remove decided
1327         and era_cnt arguments, add statep argument.  Don't recompute
1328         any fields in recursive calls, only update caller's tm
1329         and state, if recursive call fails, don't change tm nor
1330         any state.
1331         (get_alt_number): Adjust.
1332         (recursive): Adjust caller.
1333         (strptime): Likewise.
1334         * time/strptime.c (strptime): Likewise.
1336 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
1338         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
1339         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
1340         if from and to charsets are the same.
1341         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
1342         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
1343         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
1345 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
1347         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
1348         Don't define wint_t when __need_mbstate_t unless it
1349         is necessary.
1350         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
1351         in the typedef if possible.
1352         * wctype/wctype.h (wint_t): Define by including
1353         wchar.h with __need_wint_t instead of including stddef.h
1354         with __need_wint_t and as fallback definining it ourselves.
1355         * iconv/gconv.h (__need_wint_t): Define before including
1356         wchar.h.
1357         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
1358         or _GLIBCPP_USE_WCHAR_T.
1359         (__need_wchar_t): Don't define
1360         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1361         (__need_wint_t): Don't define before including stddef.h,
1362         define before including wchar.h only if _LIBC or
1363         _GLIBCPP_USE_WCHAR_T.
1364         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1365         * sysdeps/mach/hurd/_G_config.h: Likewise.
1366         * sysdeps/generic/_G_config.h: Likewise.
1367         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
1368         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
1369         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
1370         if _LIBC or _GLIBCPP_USE_WCHAR_T.
1372 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
1374         * sysdeps/posix/posix_fallocate64.c: Undefine
1375         __posix_fallocate64_l64 before alias handling.
1376         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
1377         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
1378         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
1379         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
1381         * io/tst-posix_fallocate.c: Include <fcntl.h>.
1383 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
1385         * locale/programs/ld-collate.c (atwc): New variable.
1386         (add_to_tablewc): New toplevel function, moved from collate_output.
1387         (collate_output): Remove add_to_tablewc nested function.
1389         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
1390         (name_insert): New function.
1391         (write_output): Remove hash_table and hash_size vars and name_insert
1392         nested function.
1394 2007-07-24  Roland McGrath  <roland@redhat.com>
1396         * Makerules (install-others-programs-nosubdir): New target.
1397         (install-no-libc.a-nosubdir): Depend on it.
1399         * iconv/Makefile (install-others-programs): Set this instead of
1400         install-others.
1401         * login/Makefile (install-others-programs): Likewise.
1402         * posix/Makefile (install-others-programs): Likewise.
1404         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
1405         dependencies.
1407 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
1409         * io/Makefile (tests): Add tst-posix_fallocate.
1410         * io/tst-posix_fallocate.c: New file.
1412         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1413         __ASSUME_FALLOCATE.
1415 2007-07-22  Roland McGrath  <roland@frob.com>
1417         * hurd/getdport.c: Add missing copyright year update.
1419         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
1420         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
1422 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
1424         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
1426         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
1427         O_CLOEXEC is needed.
1428         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
1429         Avoid additional fcntl to set O_CLOEXEC if not needed.
1430         * nis/nss_compat/compat-initgroups.c: Likewise.
1431         * nis/nss_compat/compat-pwd.c: Likewise.
1432         * nis/nss_compat/compat-spwd.c: Likewise.
1434 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1436         [BZ #3665]
1437         * manual/errno.texi: Change ECANCELED value to 119.
1439         [BZ #4610]
1440         * mach/lock-intern.h: Include <sys/cdefs.h>.
1442         [BZ #4178]
1443         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
1444         reading A.
1446         [BZ #4126]
1447         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
1448         to __sigsuspend.
1450         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
1452 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
1454         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
1455         `__ASSEMBLER__'.
1456         * sysdeps/mach/hurd/i386/tls.h: Likewise.
1458 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
1460         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
1461         descriptor received from nscd.
1463         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
1465         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
1466         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1467         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1468         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1469         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1470         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1472 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
1474         [BZ #4816]
1475         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
1477         [BZ #4813]
1478         * login/forkpty.c (forkpty): Close master and slave fds on
1479         fork failure.  Patch by
1480         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
1482 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
1484         * include/features.h (__USE_ISOC95): New define.
1485         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
1486         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
1487         for -std=iso9899:199409.
1488         * CONFORMANCE: Remove comments about unsupported AMD1.
1490 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
1492         * sysdeps/ia64/sched_cpucount.c: New file.
1493         * sysdeps/powerpc/sched_cpucount.c: New file.
1495         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
1496         __BEGIN_DECLS/__END_DECLS around the prototype.
1497         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
1498         pointer to const cpu_set_t.
1500         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
1501         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
1502         __need_size_t and include stddef.h.
1503         * sysvipc/sys/msg.h: Likewise.
1504         * posix/sched.h: Likewise.
1505         * hurd/hurd/signal.h (__need_size_t): Define.
1507         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
1508         neither does signal.h in pedantic ISO C namespaces.  stdio.h
1509         no longer defines wint_t or wchar_t.
1511         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
1512         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
1513         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
1514         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
1515         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
1516         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
1517         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
1518         * debug/printf_chk.c (__printf_chk): Likewise.
1519         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
1520         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
1522         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
1523         Define.
1525         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
1526         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
1528 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
1530         [BZ #4792]
1531         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
1532         * malloc/malloc.h (realloc): Likewise.
1534         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
1535         if one of proc_file_chain streams has that fileno.
1536         * stdio-common/Makefile (tests): Add tst-popen2.
1537         * stdio-common/tst-popen2.c: New test.
1539 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
1541         * elf/ldconfig.c: Allow GPLv2 or any later version.
1542         * elf/readlib.c: Likewise.
1543         * elf/chroot_canon.c: Likewise.
1544         * elf/cache.c: Likewise.
1545         * nscd/mem.c: Likewise.
1546         * nscd/getpwuid_r.c: Likewise.
1547         * nscd/grpcache.c: Likewise.
1548         * nscd/aicache.c: Likewise.
1549         * nscd/getsrvbynm_r.c: Likewise.
1550         * nscd/nscd.c: Likewise.
1551         * nscd/servicescache.c: Likewise.
1552         * nscd/getsrvbypt_r.c: Likewise.
1553         * nscd/initgrcache.c: Likewise.
1554         * nscd/gethstbyad_r.c: Likewise.
1555         * nscd/gethstbynm2_r.c: Likewise.
1556         * nscd/getgrnam_r.c: Likewise.
1557         * nscd/nscd_setup_thread.c: Likewise.
1558         * nscd/getpwnam_r.c: Likewise.
1559         * nscd/gai.c: Likewise.
1560         * nscd/connections.c: Likewise.
1561         * nscd/dbg_log.c: Likewise.
1562         * nscd/cache.c: Likewise.
1563         * nscd/hstcache.c: Likewise.
1564         * nscd/nscd_conf.c: Likewise.
1565         * nscd/getgrgid_r.c: Likewise.
1566         * nscd/pwdcache.c: Likewise.
1567         * catgets/gencat.c: Likewise.
1568         * locale/programs/linereader.h: Likewise.
1569         * locale/programs/locarchive.c: Likewise.
1570         * locale/programs/ld-paper.c: Likewise.
1571         * locale/programs/locfile-kw.h: Likewise.
1572         * locale/programs/ld-address.c: Likewise.
1573         * locale/programs/xmalloc.c: Likewise.
1574         * locale/programs/ld-time.c: Likewise.
1575         * locale/programs/localedef.c: Likewise.
1576         * locale/programs/simple-hash.c: Likewise.
1577         * locale/programs/xstrdup.c: Likewise.
1578         * locale/programs/ld-numeric.c: Likewise.
1579         * locale/programs/locfile-kw.gperf: Likewise.
1580         * locale/programs/ld-collate.c: Likewise.
1581         * locale/programs/charmap-kw.gperf: Likewise.
1582         * locale/programs/charmap.h: Likewise.
1583         * locale/programs/charmap-kw.h: Likewise.
1584         * locale/programs/config.h: Likewise.
1585         * locale/programs/locfile.c: Likewise.
1586         * locale/programs/ld-ctype.c: Likewise.
1587         * locale/programs/charmap.c: Likewise.
1588         * locale/programs/ld-messages.c: Likewise.
1589         * locale/programs/repertoire.h: Likewise.
1590         * locale/programs/locale.c: Likewise.
1591         * locale/programs/ld-name.c: Likewise.
1592         * locale/programs/linereader.c: Likewise.
1593         * locale/programs/locfile.h: Likewise.
1594         * locale/programs/3level.h: Likewise.
1595         * locale/programs/ld-monetary.c: Likewise.
1596         * locale/programs/ld-measurement.c: Likewise.
1597         * locale/programs/charmap-dir.c: Likewise.
1598         * locale/programs/ld-identification.c: Likewise.
1599         * locale/programs/localedef.h: Likewise.
1600         * locale/programs/charmap-dir.h: Likewise.
1601         * locale/programs/repertoire.c: Likewise.
1602         * locale/programs/simple-hash.h: Likewise.
1603         * locale/programs/ld-telephone.c: Likewise.
1604         * locale/programs/locale-spec.c: Likewise.
1605         * locale/programs/locfile-token.h: Likewise.
1606         * posix/getconf.c: Likewise.
1607         * iconv/dummy-repertoire.c: Likewise.
1608         * iconv/iconv_charmap.c: Likewise.
1609         * iconv/iconvconfig.c: Likewise.
1610         * iconv/iconv_prog.c: Likewise.
1611         * malloc/memusagestat.c: Likewise.
1612         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
1614 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1616         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
1617         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
1618         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
1619         check for the first argument.
1621 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1623         [BZ #4775]
1624         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
1625         (__tgmath_real_type): Fix if expr is const int or other const
1626         qualified integral type.
1627         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
1628         expressions and handle const qualified arguments.
1629         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
1630         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
1631         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
1632         statement expressions.
1633         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
1634         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
1635         (__TGMATH_UNARY_IMAG): Define.
1636         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
1637         * math/Makefile (tests): Add test-tgmath2.
1638         (CFLAGS-test-tgmath2.c): Add.
1639         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
1640         count_cfloat, count_cldouble): New variables.
1641         (NCCALLS): Define.
1642         (main): Check number of complex calls as well.
1643         (F(compile_test)): Add complex tests and tests with const qualified
1644         arguments.
1645         (y, z, ccount): Define.
1646         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
1647         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
1648         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
1649         F(cproj)): New functions.
1650         * math/test-tgmath2.c: New test.
1652 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
1654         [BZ #4776]
1655         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
1656         RPATH etc. as "/" rather than "", don't segfault on empty paths,
1657         instead output ".".
1658         * dlfcn/Makefile (distribute): Add glreflib3.c.
1659         (module-names): Add glreflib3.
1660         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
1661         glreflib1.so.
1662         (LDFLAGS_glreflib3.so): New.
1663         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
1664         glreflib1.so.
1665         * dlfcn/glreflib3.c: New file.
1667         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
1668         returned -1, return NULL.
1669         * intl/explodename.c (_nl_explode_name): Return -1 if
1670         _nl_normalize_codeset failed.
1672 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
1674         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
1675         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
1676         and avoid branch misspredicts for > 31 bytes memset case.
1677         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1678         Remove toc ref to __cache_line_size.
1680         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
1681         to get ISA-V2.0 branch hints.
1682         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
1683         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
1684         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1685         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1686         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1687         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1688         Remove toc ref to __cache_line_size.
1690         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
1691         Include math_ldbl_opt.h.
1693 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
1695         [BZ #4773]
1696         * time/strptime_l.c (__strptime_internal): Implement greedy
1697         matching of weekday and month names.
1699 2007-07-09  Roland McGrath  <roland@redhat.com>
1701         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
1702         (ELF_NOTE_ABI): Use it.
1703         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
1705 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
1707         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
1708         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1710 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
1712         [BZ #4745]
1713         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
1714         in loop to look for conversion specifier to avoid testing of
1715         wrong errno value.
1716         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
1717         * stdio-common/bug18.c: New file.
1718         * stdio-common/bug18a.c: New file.
1719         * stdio-common/bug19.c: New file.
1720         * stdio-common/bug19a.c: New file.
1722 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
1724         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
1725         running awk script.
1727 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
1729         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
1730         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
1731         Return NULL if mmap failed instead of asserting it does not.
1732         (calloc): Check for integer overflow.
1734         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
1735         than LONG_MAX / 10.
1737 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
1739         [BZ #4702]
1740         * nis/nss-default.c: Include errno.h.
1741         (init): Preserve errno.
1743 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
1745         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
1747 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
1749         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
1751 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1753         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
1755 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1757         * sysdeps/s390/dl-procinfo.c: New file.
1758         * sysdeps/s390/dl-procinfo.h: New file.
1759         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
1761 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
1763         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
1764         in PT_NOTE segments with multiple notes.
1765         * elf/readelflib.c (process_elf_file): Likewise.
1767 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
1769         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
1770         ISO C compliant.
1772 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
1774         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
1776 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
1778         * include/link.h: Don't include rtld-lowlevel.h.
1779         (struct link_map): Remove l_scope_lock.
1780         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
1781         (_dl_scope_free_list): New field (variable) in _rtld_global.
1782         (DL_LOOKUP_SCOPE_LOCK): Remove.
1783         (_dl_scope_free): New prototype.
1784         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
1785         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
1786         (_dl_profile_fixup): Likewise.
1787         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
1788         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
1789         THREAD_GSCOPE_RESET_FLAG around it.
1790         * elf/dl-close.c (_dl_close_worker): Don't use
1791         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
1792         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
1793         scopes were queued or if l_scope_mem has been abandoned.
1794         * elf/dl-open.c (_dl_scope_free): New function.
1795         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
1796         * elf/dl-support.c (_dl_scope_free_list): New variable.
1797         * elf/dl-lookup.c (add_dependency): Remove flags argument.
1798         Remove DL_LOOKUP_SCOPE_LOCK handling.
1799         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
1800         handling.
1801         * elf/dl-object.c (_dl_new_object): Don't use
1802         __rtld_mrlock_initialize.
1804 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
1806         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
1807         to fill in holes
1808         (rtld_global_ro): Likewise.
1810 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
1812         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
1813         Move PT_LOAD checking to...
1814         (_dl_addr_inside_object): ... here, new function.
1815         * elf/dl-sym.c (do_sym): If not l_contiguous,
1816         call _dl_addr_inside_object.
1817         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
1818         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
1819         * elf/dl-open.c (dl_open_worker): Likewise.
1820         (_dl_addr_inside_object): New function if IS_IN_rtld.
1821         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
1822         holes are present or are PROT_NONE protected.
1823         * include/link.h (struct link_map): Add l_contiguous field.
1824         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
1826 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
1827             Tomas Janousek  <tjanouse@redhat.com>
1828             Ulrich Drepper  <drepper@redhat.com>
1830         [BZ #4647]
1831         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
1832         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
1833         socket.
1834         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
1835         unused member a bitmap.
1836         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
1837         servers are configured.
1839 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
1841         * elf/rtld.c (dl_main): Don't call init_tls more than once.
1843 2007-06-17  Andreas Schwab  <schwab@suse.de>
1845         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
1847 2007-06-16  Andreas Jaeger  <aj@suse.de>
1849         [BZ #4125]
1850         * sysdeps/unix/sysv/linux/sys/ptrace.h
1851         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
1852         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
1853         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
1854         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
1855         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
1856         Define.
1857         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1858         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1859         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1860         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1862 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
1864         [BZ #4599]
1865         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
1866         determining whether there are IPv4/IPv6 addresses, ignore loopback
1867         addresses.
1869 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
1871         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
1872         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
1873         as the return type.  Change type of "r" variable to CMPtype.
1874         * soft-fp/eqsf2.c (__eqsf2): Likewise.
1875         * soft-fp/eqtf2.c (__eqtf2): Likewise.
1876         * soft-fp/gedf2.c (__gedf2): Likewise.
1877         * soft-fp/gesf2.c (__gesf2): Likewise.
1878         * soft-fp/getf2.c (__getf2): Likewise.
1879         * soft-fp/ledf2.c (__ledf2): Likewise.
1880         * soft-fp/lesf2.c (__lesf2): Likewise.
1881         * soft-fp/letf2.c (__letf2): Likewise.
1882         * soft-fp/unorddf2 (__unorddf2): Likewise.
1883         * soft-fp/unordsf2 (__unordsf2): Likewise.
1884         * soft-fp/unordtf2 (__unordtf2): Likewise.
1886 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
1888         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
1889         make sure gcc doesn't mess around with this.
1891 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
1893         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
1895 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
1897         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
1898         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
1899         at most once per _dl_close_worker.
1901 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
1903         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
1904         __sched_cpucount as const.
1905         * posix/sched_cpucount.c: Adjust.
1907         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
1908         instruction for counting bits.
1909         * sysdeps/x86_64/sched_cpucount.c: New file.
1911 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
1913         * configure.in: Avoid variable named BASH.
1914         * config.make.in: Likewise.
1915         Patch in part by Mike Frysinger.
1917 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
1919         [BZ #4586]
1920         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
1921         pseudo-zeros as zero.
1922         * sysdeps/x86_64/ldbl2mpn.c: New file.
1923         * sysdeps/ia64/ldbl2mpn.c: New file.
1925 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
1927         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
1928         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
1929         Remove unreachable code at the end.
1931 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
1933         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
1934         ldbl-128ibm in comment.
1935         (fpclassifyl): Correct classification of denormals.
1936         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
1937         return value for MIN denormal. Rewrite using long double math too
1938         correctly handle denormals and canonicalize the results.
1940 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
1942         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
1943         (__mpn_construct_long_double): Fix conversion where result ought
1944         to be smaller than __LDBL_MIN__, or the low double should be
1945         denormal.  Fix decision where to negate low double - honor round
1946         to even rules.
1947         * stdio-common/tst-sprintf2.c: Include string.h.
1948         (COMPARE_LDBL): Define.
1949         (TEST): Also test whether a string hexadecimal float representation
1950         can be parsed back to the number.
1951         (main): Add a couple of further tests.
1953 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
1955         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
1956         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
1957         is non-zero, but smaller than 2 * __DBL_MIN__.
1958         * stdio-common/tst-sprintf2.c: New test.
1959         * stdio-common/Makefile (tests): Add tst-sprintf2.
1961         * math/test-misc.c (main): Don't run last batch of tests with
1962         IBM long double format.
1964 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
1966         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
1967         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
1968         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
1969         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
1970         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
1971         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
1972         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
1973         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
1974         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
1975         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
1976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
1977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
1978         New file.
1979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
1980         New file.
1981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
1982         New file.
1983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
1984         New file.
1985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
1986         New file.
1987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
1988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
1989         New file.
1990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
1991         New file.
1992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
1993         New file.
1994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
1995         New file.
1996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
1997         New file.
1999 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2001         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2002         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2003         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2004         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2005         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2006         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2007         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2008         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2010 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
2012         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2013         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2014         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2015         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2016         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2017         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2018         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2019         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2021 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2023         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2024         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2025         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2026         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2028 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
2030         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2031         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2033 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
2035         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2036         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2037         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2038         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2040 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
2042         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2043         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2045 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2047         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2048         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2050         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2051         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2052         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2053         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2055 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
2057         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2058         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2059         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2060         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2062 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
2064         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2065         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2066         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2067         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2068         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2069         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2071 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2073         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2074         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2075         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2076         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2078 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2080         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2081         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2082         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2083         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2084         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2085         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2086         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2087         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2088         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2089         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2090         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2091         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2092         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2093         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
2094         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
2095         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
2097 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2099         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
2100         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
2102 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2104         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
2105         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
2107 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2109         * sysdeps/powerpc/powerpc32/970/Implies: New file.
2110         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
2111         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
2112         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
2113         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
2114         * sysdeps/powerpc/powerpc64/970/Implies: New file.
2115         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
2116         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
2117         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
2118         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
2120 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2122         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
2124 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
2126         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
2127         branch miss-predicts. Ensure that cache line crossing does not impact
2128         dispatch grouping.
2130 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
2132         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
2133         "../../powerpc32/power4/memcopy.h".
2134         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
2135         "../../powerpc32/power4/wordcopy.c".
2137 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2139         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
2140         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
2141         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
2142         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
2143         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
2144         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2146 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
2148         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
2150 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2152         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
2153         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
2154         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
2155         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
2156         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
2157         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
2158         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
2159         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
2161 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
2163         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
2165 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2167         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
2168         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
2169         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
2170         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
2171         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
2172         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
2173         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
2175 2007-05-29  Roland McGrath  <roland@redhat.com>
2177         * po/Makefile (po-sed-cmd): New variable.
2178         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
2180 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
2182         * crypt/md5-crypt.c: Fix comment.
2184         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
2185         of crashing.  When this is the case or if the reply is malformed,
2186         don't try to close the new file descriptor since it does not
2187         exist.
2188         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
2190 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
2192         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
2193         if __NR_utimensat is not defined.
2195 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
2197         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
2199 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
2201         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
2202         (open): Fix comment typos.  Don't call __open_2 if flags
2203         is a compile time constant without O_CREAT.
2204         (__open64_2): Add nonnull attribute.
2205         (open64): Fix comment typos.  Don't call __open64_2 if flags
2206         is a compile time constant without O_CREAT.
2207         (__openat_2): Add nonnull attribute, fix nonnull attribute
2208         on redirect.
2209         (openat): Fix comment typos.  Don't call __openat_2 if flags
2210         is a compile time constant without O_CREAT.
2211         (__openat64_2): Add nonnull attribute, fix nonnull attribute
2212         on redirect.
2213         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
2214         is a compile time constant without O_CREAT.
2216 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
2218         * Makerules (sysd-rules): Define PTW for ptw-* files.
2219         * Versions: Define GLIBC_2.7 for libc.
2220         * include/stdio.h: Declare __fortify_fail.
2221         * debug/fortify_fail.c: New file.
2222         * debug/Makefile (routines): Add fortify_fail.
2223         * debug/chk_fail.c: Use __fortify_fail.
2224         * debug/stack_chk_fail.c: Likewise.
2225         * io/Versions: Export __open_2, __open64_2, __openat_2, and
2226         __openat64_2 for GLIBC_2.7.
2227         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
2228         * io/open.c: Define *_2 variant of function which checks for O_CREAT
2229         and fails if necessary.
2230         * io/open64.c: Likewise.
2231         * io/openat.c: Likewise.
2232         * io/openat64.c: Likewise.
2233         * sysdeps/unix/sysv/linux/open64.c: Likewise.
2234         * sysdeps/unix/sysv/linux/openat.c: Likewise.
2235         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
2236         * io/bits/fcntl2.h: New file.
2237         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
2238         __openat64_2.
2239         * include/bits/fcntl2.h: New file.
2240         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2241         Add open_2.
2242         * sysdeps/unix/sysv/linux/open_2.c: New file.
2244 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
2246         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
2247         as second parameter to handle_intel.
2249         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
2250         the entry.
2252         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
2253         handling to ...
2254         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
2255         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2256         cacheinfo.
2257         * sysdeps/x86_64/memcpy.S: Complete rewrite.
2258         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
2259         Patch by Evandro Menezes <evandro.menezes@amd.com>.
2261         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
2263 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
2265         [BZ #4525]
2266         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
2267         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
2268         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
2270         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
2272         [BZ #4514]
2273         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
2274         reinitialize workend at the start of each do_positional format spec
2275         loop, free workstart before do_positional loops.
2276         (printf_unknown): Fix size of work_buffer.
2277         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
2279         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
2280         (public_sET_STATe): If ms->version < 3, put all chunks into
2281         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
2282         chunks.
2284         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
2285         * malloc/hooks.c: Likewise.
2286         * malloc/arena.c: Likewise.
2287         * malloc/malloc.c (do_check_malloc_state): Don't assert
2288         n_mmaps is not greater than n_mmaps_max.  This removes the need
2289         for the previous change.
2291         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
2292         2007-05-07 commit.
2294 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
2296         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
2297         Define for kernel >= 2.6.22.
2299 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
2301         * elf/dl-close.c (_dl_close_worker): When removing object from
2302         global scope, wait for all lookups to finish afterwards.
2303         * elf/dl-open.c (add_to_global): When global scope array must
2304         grow, allocate a new one and free old array only after all
2305         lookups finish.
2306         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
2307         (_dl_lookup_symbol_x): Likewise.
2308         * elf/dl-support.c: Define _dl_wait_lookup_done.
2309         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2310         _dl_wait_lookup_done.
2312         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
2313         not overlapping with arena.
2315         * malloc/mcheck.c (reallochook): If size==0, free the block.
2317         * rt/tst-shm.c: Use fstat64 instead of fstat.
2319         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
2320         __NR_sync_file_range is not defined.
2322 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
2324         Dummy files to prevent stub versions from being used.
2325         * sysdeps/x86_64/fpu/k_cosl.c: New file.
2326         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
2327         * sysdeps/x86_64/fpu/k_sinl.c: New file.
2328         * sysdeps/x86_64/fpu/k_tanl.c: New file.
2330         * version.h (VERSION): Set to 2.6.90.
2332 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
2334         * version.h (VERSION): Define to 2.6.
2335         * include/features.h (__GLIBC_MINOR__): Define to 6.
2337         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
2339         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
2340         sizes.
2342 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
2344         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
2345         number of mmaps.  n_mmaps_max is the target.
2346         * malloc/hooks.c: Likewise.
2347         * malloc/arena.c: Likewise.
2349 2007-05-12  Andreas Jaeger  <aj@suse.de>
2351         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
2352         getpid.
2354 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
2356         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
2357         adding new variables.
2359         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2360         optimize.  Completely extend global scope array before making the
2361         new entries visible.
2363 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
2365         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
2366         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
2367         tst-getcpu.
2369         * include/link.h: Move l_version and l_nversion members around to
2370         fill gaps.
2372         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
2374         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2375         (__sched_setaffinity_new): If syscall was successful and
2376         RESET_VGETCPU_CACHE is defined, use it before returning.
2377         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
2379         * io/sys/stat.h: Make sure struct timespec is defined for
2380         __USE_ATFILE.
2382         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
2383         UTIME_OMIT.
2384         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2385         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2386         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2387         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2388         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2389         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2390         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
2391         * io/sys/stat.h: Declare utimensat, futimens.
2392         * io/utimensat.c: New file.
2393         * io/futimens.c: New file.
2394         * sysdeps/unix/sysv/linux/utimensat.c: New file.
2395         * sysdeps/unix/sysv/linux/futimens.c: New file.
2396         * io/Makefile (routines): Add utimensat, futimens.
2397         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
2398         * sysdeps/unix/sysv/linux/lutimes.c: New file.
2399         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
2400         available.
2402         * include/sys/cdefs.h: Redefine __nonnull so that test for
2403         incorrect parameters in the libc code itself are not omitted.
2405 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
2407         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
2408         exception in addition to inexact when asked to raise only FE_INEXACT.
2410         [BZ #3427]
2411         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
2412         in *envp.
2414 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
2416         [BZ #4403]
2417         * string/strfry.c (strfry): Make result more random.
2419 2007-05-07  Richard Henderson  <rth@redhat.com>
2421         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
2422         if __NO_LONG_DOUBLE_MATH.
2423         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
2424         available in the compiler, add .arch directive to the assembly.
2426 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
2428         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
2429         compat_symbol to GLIBC_2_1.
2430         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
2431         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
2432         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
2433         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
2434         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
2435         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
2436         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
2437         libc, not libm.
2438         (__isnanl): New compat_symbol.
2440 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
2441             Jakub Jelinek  <jakub@redhat.com>
2443         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
2444         (new_heap): Initialize mprotect_size.
2445         (grow_heap): When growing, only mprotect from mprotect_size till
2446         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
2447         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
2449 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
2450             Peter Bergner  <bergner@us.ibm.com>
2452         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
2453         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
2454         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
2455         * sysdeps/powerpc/fpu/fe_mask.c: New file.
2456         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
2457         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
2458         Call __fe_mask_env() if all FP exceptions disabled.
2459         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
2460         from old FPSCR to new fenv to propagate DFP rounding modes.
2461         Call __fe_mask_env() if FP exceptions previously enabled.
2462         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
2463         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
2464         transitioning from all exceptions disabled to any exception enabled
2465         or visa versa.
2466         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
2467         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
2468         when transitioning from all exceptions disabled to any exception
2469         enabled or visa versa.
2470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
2471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
2472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
2473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
2475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
2477 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
2479         [BZ #4465]
2480         * posix/unistd.h: Remove __THROW from fdatasync.
2482 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
2484         [BZ #4465]
2485         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
2487 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
2489         * stdio-common/vfprintf.c (process_string_arg): Optimize
2490         ridiculous precision in wide char code printing multi-byte string.
2491         Reported by Jim Meyering <jim@meyering.net>.
2493         [BZ #4131]
2494         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
2495         boundaries to work around systems with overlapping binary loading.
2496         Based on a patch by Suzuki <suzuki@in.ibm.com>.
2498 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
2500         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
2501         __mbsnrtowcs after last change.
2503         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
2504         (get_ident): Likewise.
2506 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
2508         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
2509         with setting the sticky bit.
2510         * math/test-misc.c (main): Add more truncation tests.
2512 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
2514         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
2515         double in the function declaration.
2516         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
2517         double in the function declaration.
2518         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2519         float in the function declaration.
2520         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2521         float in the function declaration.
2523         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
2524         denormal operands.  Do not generate FP_EX_DENORM exception.
2525         (FP_UNPACK_RAW_EP): Ditto.
2526         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
2527         undefined _FP_UNPACK_RAW_E.
2528         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
2529         undefined _FP_UNPACK_RAW_EP.
2530         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
2531         undefined _FP_PACK_RAW_E.
2532         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
2533         undefined _FP_PACK_RAW_EP.
2535         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
2536         _FP_FRAC_COPY_2.
2537         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
2538         _FP_FRAC_COPY_4.
2540 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
2541             Jakub Jelinek  <jakub@redhat.com>
2543         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
2544         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
2545         this case.
2546         * soft-fp/op-common.h (FP_TRUNC): Ditto.
2548 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
2550         * math/test-misc.c (main): Add tests for rounding long double
2551         values close to smallest double denormalized value to double.
2553 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
2555         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
2556         condition for truncating to 0.  Set sticky bit for such
2557         truncation.
2559 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
2561         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
2562         fixed length array for ignore.
2564 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
2566         [BZ #4438]
2567         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
2568         stack for large precisions.
2569         * stdio-common/test-vfprintf.c (main): Add test for large
2570         precision.
2572 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
2574         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
2575         for exponent 0.
2576         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
2578         [BZ #4439]
2579         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
2580         account in the size check.
2581         * resolv/tst-inet_ntop.c: New test.
2582         * resolv/Makefile (tests): Add tst-inet_ntop.
2584 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
2585             Jakub Jelinek  <jakub@redhat.com>
2587         [BZ #4349]
2588         * malloc/malloc.c: Keep separate list for first blocks on the bin
2589         lists with a given size.  This helps skipping over list elements
2590         we know won't fit in two places.
2591         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
2593 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
2595         [BZ #4102]
2596         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
2597         label to Teredo tunnel addresses 2001://32.
2599 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
2601         * locale/programs/ld-collate.c (collate_read): Allow order_start
2602         after copy.
2604         * locale/programs/ld-collate.c (collate_read): Fix printing of
2605         error message.
2607         [BZ #3213]
2608         * locale/C-translit.h.in: Add entry for U2044.
2610         [BZ #4342]
2611         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
2612         hexa-decimal floats without exponent.
2613         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
2615 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
2617         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
2618         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
2619         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
2620         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
2621         GLIBC_2.6.
2622         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
2623         Add sched_getcpu.
2625 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
2627         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
2628         of 0 after the out_fail label.
2630 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
2632         [BZ #4406]
2633         * iconv/gconv_charset.h (strip): Allow ':'.
2634         * iconv/iconv_open.c (iconv_open): Adjust comment.
2636 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
2638         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
2639         version.
2641 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
2643         [BZ #4381]
2644         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
2645         alignment of buffer and tmp_buffer.
2646         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
2647         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
2648         alignment of buffer.
2649         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
2650         bigger than INT_MAX.
2651         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
2652         h_errnop arguments.  Fail if buflen is too small.
2653         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
2655 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
2657         [BZ #4405]
2658         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
2659         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
2661 2007-04-22  Roland McGrath  <roland@redhat.com>
2663         * elf/elf.h (NT_PRXFPREG): New macro.
2665 2007-04-19  Andreas Jaeger  <aj@suse.de>
2667         [BZ #3905]
2668         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
2669         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
2670         Added.
2672 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
2674         * include/sys/mman.h: Mark madvise hidden.
2675         * misc/madvise.c: Add libc_hidden_def.
2677 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
2679         * nis/nis_domain_of.c (__nis_domain_of): New function.
2680         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
2681         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
2682         * nis/nis_call.c (rec_dirsearch): Likewise.
2683         (first_shoot): Likewise.  Remove search_parent_first argument.
2684         (struct nis_server_cache): Rename search_parent_first field
2685         to search_parent.
2686         (nis_server_cache_search, nis_server_cache_add): Rename
2687         search_parent_first argument to search_parent.
2688         (__nisfind_server): Likewise.  If search_parent, call
2689         __nis_domain_of.
2691 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
2693         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
2695 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
2697         [BZ #4368]
2698         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
2700 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
2702         [BZ #4364]
2703         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
2705 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
2707         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
2708         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
2709         current number of locales in SUPPORTED.
2710         (create_archive): Initialize serial.
2711         (enlarge_archive): Preserve aliases rather than duplicating
2712         their locrecs.
2714 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
2716         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
2717         after _IO_un_link, not before it.
2719         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
2720         special case handling when wcp == wstartp + 1.  Fix a comment typo.
2721         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
2723 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
2725         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
2726         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
2727         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
2728         Remove __THROW.
2729         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
2730         _IO_file_xsgetn_maybe_mmap): Likewise.
2731         * libio/oldfileops.c (old_do_write): Likewise.
2732         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
2733         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
2734         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
2735         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
2736         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
2737         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
2738         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
2739         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
2740         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
2741         _IO_file_underflow, _IO_file_underflow_mmap,
2742         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
2743         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
2744         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
2745         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
2746         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
2747         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
2748         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
2749         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
2750         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
2751         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
2752         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
2753         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
2754         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
2755         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
2756         _IO_adjust_column_internal, _IO_default_uflow_internal,
2757         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
2758         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
2759         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
2760         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
2761         _IO_file_close_it_internal, _IO_file_underflow_internal,
2762         _IO_file_overflow_internal, _IO_file_attach_internal,
2763         _IO_file_fopen_internal, _IO_file_sync_internal,
2764         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
2765         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
2766         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
2767         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
2768         _IO_seekpos_unlocked): Likewise.
2769         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
2770         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
2772 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
2774         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
2775         argument in xmalloc size computation.
2777 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
2779         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
2780         math_opt_barrier and math_force_eval macros.
2782 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
2784         [BZ #3306]
2785         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
2786         * sysdeps/i386/fpu/math_private.h: New file.
2787         * sysdeps/x86_64/fpu/math_private.h: New file.
2788         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
2789         math_force_eval macros.  Use "+m" constraint on asm rather than
2790         "=m" and "m".
2791         * math/s_nextafter.c (__nextafter): Likewise.
2792         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
2793         Likewise.
2794         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
2795         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
2796         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2797         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
2798         math_opt_barrier and math_force_eval macros.
2799         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
2800         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
2801         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
2802         (__nexttoward): Use math_opt_barrier and
2803         math_force_eval macros.  Use "+m" constraint on asm rather than
2804         "=m" and "m".  Only use asm to force double result if
2805         FLT_EVAL_METHOD is 2.
2806         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
2807         (__nexttowardf): Use math_opt_barrier and
2808         math_force_eval macros.  Use "+m" constraint on asm rather than
2809         "=m" and "m".  Only use asm to force double result if
2810         FLT_EVAL_METHOD is not 0.
2811         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
2812         (__nexttowardf): Use math_opt_barrier and
2813         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
2814         x to float using asm.
2815         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
2816         (__nldbl_nexttowardf): Use math_opt_barrier and
2817         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
2818         x to float using asm.
2819         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
2820         (__nexttowardf): Use math_opt_barrier and math_force_eval
2821         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
2822         * math/bug-nextafter.c (zero, inf): New variables.
2823         (main): Add new tests.
2824         * math/bug-nexttoward.c (zero, inf): New variables.
2825         (main): Add new tests.
2827 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
2829         [BZ #3427]
2830         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
2831         exceptions both in SW and MXCSR.
2832         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
2833         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
2834         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2835         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
2836         in MXCSR if SSE is available.
2837         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
2838         and ldsodefs.h.
2839         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
2840         Fix comment typo.
2841         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
2842         Return 0 rather than 1.
2843         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
2844         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
2845         * math/test-fenv.c (feholdexcept_tests): New function.
2846         (main): Call it.
2848 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
2850         [BZ #3427]
2851         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
2852         in SW.
2854 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
2856         [BZ #4344]
2857         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
2858         Reported by David Anderson <davea42@earthlink.net>.
2860 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
2862         * posix/sys/wait.h: Remove unnecessary forward declaration.
2864 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
2866         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
2867         with obj->do_servers after first_shoot.
2869 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
2871         * posix/Makefile (routines): Add sched_cpucount.
2872         (tests): Add tst-cpucount.
2873         * posix/sched_cpucount.c: New file.
2874         * posix/tst-cpucount.c: New file.
2875         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
2876         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
2877         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2878         * posix/sched.h: Define CPU_COUNT.
2880 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
2882         * posix/fnmatch.c (STRUCT): Define.
2883         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
2884         * posix/fnmatch_loop.c (struct STRUCT): New type.
2885         (FCT): Add ends argument.  If ends != NULL and normal * is
2886         seen in the pattern, store current pattern and string pointers
2887         and return.  Adjust recursive calls.
2888         (EXT): Adjust FCT callers.
2889         (STRUCT): Undef at the end of the file.
2890         * posix/Makefile (tests): Add tst-fnmatch2.
2891         * posix/tst-fnmatch2.c: New test.
2893 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
2895         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
2896         and 1 on failure.
2898         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
2899         Change last argument to unsigned int.
2901 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
2903         * scripts/check-local-headers.sh: Filter out sys/capability.h.
2905 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
2907         * config.h.in (HAVE_LIBCAP): Add.
2908         * nscd/selinux.h: Include sys/capability.h rather than non-existent
2909         sys/capabilities.h.
2910         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
2911         free_caps.  Cast away const from 4th cap_set_flag argument.
2913 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
2915         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
2916         GLIBC_2.6.
2917         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2918         Add sync_file_range.
2919         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2921 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
2923         * sysdeps/powerpc/bits/atomic.h
2924         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
2925         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
2926         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2927         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
2928         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2929         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
2930         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
2931         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
2932         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2933         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
2934         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
2935         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
2936         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2937         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
2938         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
2939         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
2940         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
2941         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
2942         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
2943         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
2945 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
2947         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
2948         (__cache_line_size): Define the variable here.  Add
2949         attribute_hidden, remove weak_extern.
2950         (__libc_start_main): Set __cache_line_size
2951         unconditionally.
2952         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2953         (__cache_line_size): Define the variable here.  Add
2954         attribute_hidden, remove weak_extern.
2955         (DL_PLATFORM_AUXV): Set __cache_line_size
2956         unconditionally.
2957         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
2958         weak_extern, add attribute_hidden.
2959         (__elf_machine_runtime_setup): Assume __cache_line_size is always
2960         defined in ld.so.
2961         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
2962         definition.
2963         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
2965 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
2967         [BZ #4276]
2968         * timezone/africa: Update from tzdata2007d.
2969         * timezone/asia: Likewise.
2970         * timezone/australasia: Likewise.
2971         * timezone/backward: Likewise.
2972         * timezone/europe: Likewise.
2973         * timezone/iso3166.tab: Likewise.
2974         * timezone/leapseconds: Likewise.
2975         * timezone/northamerica: Likewise.
2976         * timezone/southamerica: Likewise.
2977         * timezone/zone.tab: Likewise.
2979         * timezone/private.h: Update from tzcode2007d.
2980         * timezone/zdump.c: Likewise.
2981         * timezone/zic.c: Likewise.
2983 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2985         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
2986         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
2987         variables.
2988         (nis_server_cache_search, nis_server_cache_add): New functions.
2989         (__nisfind_server): Use them.  Add dbp and flags argument, if
2990         call __nisbind_create.
2991         (__nisbind_create): Add server_used and current_ep arguments,
2992         only call __nis_findfastest if server_used is ~0.
2993         (__do_niscall2, __prepare_niscall): Adjust callers.
2994         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
2995         ckey_cache_euid, ckey_cache_lock): New variables.
2996         (get_ckey): New function.
2997         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
2998         __pmap_getnisport.  Save __pmap_getnisport result in
2999         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
3000         key.
3001         * nis/nis_lookup.c (nis_lookup): Likewise.
3002         * nis/nis_table.c (nis_list): Likewise.
3003         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3004         prototypes.
3006         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3007         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3008         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3009         _nss_nisplus_getservbyport_r): Likewise.
3010         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3011         _nss_nisplus_getnetbyaddr_r): Likewise.
3012         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3013         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3014         _nss_nisplus_getntohost_r): Likewise.
3015         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3016         _nss_nisplus_getrpcbynumber_r): Likewise.
3018 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3020         * configure.in (libc_cv_gnu89_inline): Only do compile test.
3021         * configure: Rebuilt.
3023         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3024         bit-fields.
3025         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3027 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
3029         [BZ #2831]
3030         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3031         bit-fields.
3033 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
3035         * nscd/gai.c: Include alloca.h.
3036         (__libc_use_alloca): Define.
3038 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
3040         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3041         smaller scopes.
3042         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3043         (DL_DST_REQUIRED): Adjust user.
3045         * include/dlfcn.h (struct link_map): New forward decl.
3047         * inet/getnameinfo.c: Include stddef.h.
3048         (getnameinfo): Use offsetof.
3050         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3052         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3054         * string/strerror_l.c: Include stdlib.h.
3056         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3057         * config.make.in (gnu89-inline-CFLAGS): New variable.
3058         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3059         -std=gnu99.
3060         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3061         * argp/argp.h: Use it.
3062         * bits/mathinline.h: Likewise.
3063         * bits/sigset.h: Likewise.
3064         * bits/string.h: Likewise.
3065         * ctype/ctype.h: Likewise.
3066         * hurd/hurd.h: Likewise.
3067         * hurd/hurd/fd.h: Likewise.
3068         * hurd/hurd/port.h: Likewise.
3069         * hurd/hurd/signal.h: Likewise.
3070         * hurd/hurd/threadvar.h: Likewise.
3071         * hurd/hurd/userlink.h: Likewise.
3072         * io/sys/stat.h: Likewise.
3073         * libio/bits/stdio.h: Likewise.
3074         * libio/bits/stdio2.h: Likewise.
3075         * mach/lock-intern.h: Likewise.
3076         * mach/mach/mig_support.h: Likewise.
3077         * math/bits/cmathcalls.h: Likewise.
3078         * posix/bits/unistd.h: Likewise.
3079         * socket/bits/socket2.h: Likewise.
3080         * stdlib/bits/stdlib.h: Likewise.
3081         * stdlib/stdlib.h: Likewise.
3082         * string/argz.h: Likewise.
3083         * string/bits/string2.h: Likewise.
3084         * string/bits/string3.h: Likewise.
3085         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
3086         * sysdeps/generic/inttypes.h: Likewise.
3087         * sysdeps/generic/machine-lock.h: Likewise.
3088         * sysdeps/generic/machine-sp.h: Likewise.
3089         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3090         * sysdeps/i386/i486/bits/string.h: Likewise.
3091         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
3092         * sysdeps/mach/alpha/machine-lock.h: Likewise.
3093         * sysdeps/mach/alpha/machine-sp.h: Likewise.
3094         * sysdeps/mach/i386/machine-lock.h: Likewise.
3095         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3096         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
3097         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3098         * sysdeps/s390/bits/string.h: Likewise.
3099         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3100         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3101         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3102         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3103         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3104         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
3105         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3106         * wcsmbs/bits/wchar2.h: Likewise.
3107         * wcsmbs/wchar.h: Likewise.
3108         * stdlib/gmp.h: Likewise.  Include <features.h> to get
3109         __extern_inline definition.
3111 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
3113         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
3114         NULL.
3116         [BZ #3919]
3117         * math/libm-test.inc (log_test): Test -Inf and NaN.
3118         (log10_test, log1p_test, log2_test): Test -Inf.
3119         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
3120         FE_INVALID when argument is qNaN.
3121         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3122         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3123         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
3124         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
3125         andb $1, %ah with testb $1, %ah, don't test for parity, instead
3126         testb $4, %ah and jump if non-zero.
3127         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
3128         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
3130         [BZ #4101]
3131         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
3132         ancestors with the same depths.
3133         Patch by Niels Moeller <nisse@lysator.liu.se>.
3134         (filter_doc): Don't crash if argp is NULL.
3135         * argp/Makefile (tests): Add tst-argp2.
3136         * argp/tst-argp2.c: New test.
3138         [BZ #4130]
3139         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
3140         open_not_cancel_2.
3141         (updwtmp_file): Likewise.
3143         [BZ #4181]
3144         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
3145         (inet6_opt_append): Don't check extlen is big enough if extbuf
3146         is NULL.
3147         (inet6_opt_finish): Likewise.
3148         * inet/Makefile (tests): Add test-inet6_opt.
3149         * inet/test-inet6_opt.c: New test.
3151         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
3152         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
3153         NLMSG_ERR.  Instead use a page sized buffer.
3154         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
3155         buffer.
3157 2007-03-14  Richard Henderson  <rth@redhat.com>
3159         * sysdeps/alpha/fpu/s_llround.c: New file.
3160         * sysdeps/alpha/fpu/s_llroundf.c: New file.
3161         * sysdeps/alpha/fpu/s_lround.c: New file.
3162         * sysdeps/alpha/fpu/s_lroundf.c: New file.
3163         * sysdeps/alpha/fpu/s_round.c: New file.
3164         * sysdeps/alpha/fpu/s_roundf.c: New file.
3165         * sysdeps/alpha/fpu/s_trunc.c: New file.
3166         * sysdeps/alpha/fpu/s_truncf.c: New file.
3168         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
3169         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
3170         * sysdeps/alpha/fpu/s_floor.c: Likewise.
3171         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
3172         * sysdeps/alpha/fpu/s_rint.c: Likewise.
3173         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3175         * sysdeps/alpha/fpu/s_fmax.S: New file.
3176         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
3177         * sysdeps/alpha/fpu/s_fmin.S: New file.
3178         * sysdeps/alpha/fpu/s_fminf.S: New file.
3179         * sysdeps/alpha/fpu/s_isnan.c: New file.
3180         * sysdeps/alpha/fpu/s_isnanf.c: New file.
3181         * sysdeps/alpha/fpu/s_llrint.c: New file.
3182         * sysdeps/alpha/fpu/s_llrintf.c: New file.
3183         * sysdeps/alpha/fpu/s_lrint.c: New file.
3184         * sysdeps/alpha/fpu/s_lrintf.c: New file.
3185         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
3186         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
3188         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
3189         (__fdimf, fdimf, __fdim, fdim): Remove.
3190         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
3191         (__isnanf, __isnan, __isnanl): New.
3193 2007-03-13  Richard Henderson  <rth@redhat.com>
3195         * sysdeps/ieee754/ldbl-128/Makefile: New file.
3197 2007-03-13  Richard Henderson  <rth@redhat.com>
3199         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
3200         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
3201         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3202         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
3203         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
3204         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
3206 2007-03-13  Richard Henderson  <rth@redhat.com>
3208         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
3209         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
3210         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
3211         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
3212         Move to dl-auxv.h; initialize instead of extern weak.
3213         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
3214         weak symbol.
3215         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
3216         Extern instead of initialized.
3218 2007-03-13  Richard Henderson  <rth@redhat.com>
3220         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
3221         __sigsuspend_nocancel.
3223 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
3225         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
3226         172.16/12 address range.
3228 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
3230         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
3231         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
3232         message.
3234 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
3236         [BZ #4069]
3237         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
3238         earlier.
3239         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
3241         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
3242         for x qNaN and y either +-inf or non-integer value.
3243         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
3244         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3245         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3247 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
3249         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
3250         from sysdep_headers.
3252 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
3254         * time/tzfile.c (find_transition): Instead of a linear search try to
3255         guess the transition index, use a linear search if the result is at
3256         most 10 transitions away from the guess or binary search otherwise.
3258 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
3260         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
3261         memory reallocation.
3263 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
3265         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
3266         and fix some typos.
3267         Optimize use of TOLOWER.
3269         [BZ #3325]
3270         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
3271         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3272         * sysdeps/i386/fpu/e_fmod.S: Likewise.
3274         [BZ #3458]
3275         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
3276         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
3278         [BZ #4076]
3279         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
3280         (open_dir_stream): Likewise.
3281         * io/Makefile (tests): Add bug-ftw5.
3282         * io/bug-ftw5.c: New file.
3284         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
3285         * nscd/servicescache.c (cache_addserv): Likewise.
3287         * nscd/grpcache.c (cache_addgr): In case a record changed on
3288         refresh, adjust key_copy.
3290         [BZ #4074]
3291         * nscd/pwdcache.c (cache_addpw): In case a record changed on
3292         refresh, adjust key_copy.
3294         [BZ #4070]
3295         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
3296         special cases.
3297         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
3299 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
3301         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
3302         optimization.
3304         * stdio-common/vfscanf.c: Small cleanups throughout.
3306 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
3308         [BZ #3325]
3309         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
3310         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3311         * sysdeps/i386/fpu/e_fmod.S: Likewise.
3312         Patch by Jared Casper <jaredcasper@gmail.com>.
3314         * sysdeps/unix/closedir.c: Outside libc don't use locking.
3315         * sysdeps/unix/opendir.c: Likewise.
3316         * sysdeps/unix/readdir.c: Likewise.
3318         [BZ #2211]
3319         * stdio-common/vfscanf.c: Handle localized digits etc for floating
3320         point numbers.
3321         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
3323         * stdio-common/vfscanf.c: Fix problems in width accounting.
3324         * stdio-common/tst-sscanf.c (double_tests): New tests.
3325         (main): Hook them up.
3327         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
3328         More simplifications of floating-point reader.
3330         * stdio-common/Makefile (tests): Add tst-swscanf.
3331         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
3332         testing.
3333         * stdio-common/tst-swscanf.c: New file.
3335 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
3337         [BZ #2633]
3338         * libio/stdio.h: Define struct _IO_FILE in global namespace.
3339         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
3340         Remove using for __jmp_buf_tag.
3341         * locale/locale.h (struct lconv): Also define in std namespace.
3342         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
3344         [BZ #3842]
3345         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
3346         using __libc_enable_secure.
3348         [BZ #3818]
3349         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
3351         [BZ #3745]
3352         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
3353         of names for ellipsises.
3355         [BZ #3348]
3356         * malloc/memusage.sh: Cleanups.
3357         * debug/xtrace.sh: Quoting and trap changes.
3359 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
3361         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
3363         * locale/iso-3166.def: Update entry for Serbia.
3364         * locale/iso-4217.def: Define RSD, remove CSD.
3366         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
3367         and 64-bit operations.
3369         [BZ #4040]
3370         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
3371         16-bit operations.
3373         * nscd/nscd.c (parse_opt): One more conversion to use send instead
3374         of writev.
3376 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
3378         [BZ #3991]
3379         * assert/assert.h (assert): Simplify.
3380         (assert_perror): Likewise.
3381         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
3383         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
3384         reqdata.
3386         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
3387         change: don't pass NULL in place of an integer.
3389 2007-02-02  Bruno Haible  <bruno@clisp.org>
3391         [BZ #3954]
3392         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
3393         Add mapping for U+327E.
3394         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
3395         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3396         mapping of 0xD9 0xE8.
3397         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
3398         mapping of U+327E.
3399         Reported by Jungshik Shin <jungshik@google.com>.
3401         [BZ #3955]
3402         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3403         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
3404         Reported by Jungshik Shin <jungshik@google.com>.
3406 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
3408         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
3409         byte variants.
3411         [BZ #4040]
3412         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
3413         byte variants.  Patch mostly be tom@tommay.net.
3415 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
3417         [BZ #3996]
3418         * posix/glob.c (attribute_hidden): Define if not defined.
3419         (glob): Unescape dirname, filename or username when needed and not
3420         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
3421         is NULL.  Handle unescaped [ in pattern without closing ].
3422         Don't pass GLOB_CHECK down to recursive glob for directories.
3423         (__glob_pattern_type): New function.
3424         (__glob_pattern_p): Implement using __glob_pattern_type.
3425         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3426         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3427         Remove unreachable code.
3428         * posix/globtest.sh: Add a couple of new tests.
3430 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
3432         * po/ru.po: Update from translation team.
3434 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
3436         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
3437         to the list of i486+ CPUs.
3438         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3440 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
3442         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
3443         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
3444         references.
3446 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
3448         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
3450         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
3451         * resolv/res_mkquery.c: Define __res_nopt.
3452         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
3453         try adding EDNS0 record.
3454         * resolv/res_send.c (send_dg): If request failed with FORMERR and
3455         EDNS0 record was send make sure we don't try it again.
3456         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
3457         * include/resolv.h: Declare __res_nopt.
3459 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
3461         [BZ #3944]
3462         * time/strptime_l.c (__strptime_internal): Set have_mon for
3463         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
3464         have been computed from tm_yday and tm_year.  Don't crash
3465         in day_of_the_week or day_of_the_year if not have_mon
3466         and tm_mon contains bogus value.
3467         * time/Makefile (tests): Add tst-strptime3.
3468         * time/tst-strptime3.c: New test.
3470 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
3472         [BZ #3957]
3473         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3474         bit for RE_HAT_LISTS_NOT_NEWLINE.
3475         (build_charclass_op): Remove bogus comment.
3476         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
3477         * posix/bug-regex27.c: New test.
3478         * posix/bug-regex28.c: New test.
3480 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
3482         * po/sv.po: Update from translation team.
3484 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
3486         * nscd/nscd_helper.c (open_socket): Minor size optimization.
3488 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3490         * include/locale.h (__uselocale): Add libc_hidden_proto.
3491         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
3493         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
3494         gettimeofday.
3496 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
3498         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
3499         returning.
3500         (PTR_DEMANGLE): Real definition now that it's not the same as
3501         PRT_MANGLE anymore.
3502         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3504         * string/strerror_l.c: New file.
3505         * string/Makefile (routines): Add strerror_l.
3506         * string/string.h: Declare strerror_l.
3507         * string/Versions: Export strerror_l for GLIBC_2.6.
3509 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
3511         * nscd/nscd_helper.c (open_socket): Now takes request type and key
3512         as parameter.  Construct request record.  Try sending request
3513         before the first poll use, it usually succeeds.  Adjust all
3514         callers.
3515         * nscd/nscd-client.h: Define MAXKEYLEN.
3516         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
3518 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
3520         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
3521         from return value.
3522         * nscd/nscd_helper.c: Include string.h.
3523         (__nscd_cache_search): Remove const qualifier from return value.
3524         On strict alignment architectures check hash entry and data head
3525         alignment.
3526         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
3527         mmapped data during GC cycle contains garbage.  If
3528         __nscd_drop_map_ref fails, decrement mapped->counter when returning
3529         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
3530         dropped to 0.
3531         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3532         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3533         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3534         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3535         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3537 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
3539         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
3541 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
3543         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
3544         names not numbers in cfi_*.
3546 2007-01-26  Andreas Jaeger  <aj@suse.de>
3548         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
3549         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
3550         Correct values of PER_HPUX and PER_OSF4.
3552 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
3554         * elf/dl-minimal.c: Undefine _itoa first.
3555         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
3556         * malloc/mtrace.c: Revert last change.
3557         * posix/wordexp.c: Likewise.
3559 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3561         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
3562         and __geode__ to the list of i486+ CPUs.
3563         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3565 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
3567         * stdio-common/_itoa.c: Include <limits.h>.
3568         * stdio-common/_itowa.c: Likewise.
3570 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
3572         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
3573         platforms.
3574         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
3575         64-bit platforms.
3576         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
3577         possible.
3578         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
3579         if possible.
3581         [BZ #3902]
3582         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
3583         * stdio-common/Makefile (tests): Add bug17.
3584         * stdio-common/bug17.c: New file.
3586 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
3588         * iconvdata/brf.c: New file.
3589         * iconvdata/testdata/BRF: New file.
3590         * iconvdata/testdata/BRF..UTF8: New file.
3591         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3592         * iconvdata/Makefile: Add rules to build BRF.
3593         * iconvdata/TESTS: Add BRF entry.
3594         * iconvdata/gconv-modules: Likewise.
3595         * iconvdata/tst-tables.sh: Likewise.
3597 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
3599         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
3600         type `long long int', not `long int'.
3601         (wcstoq): Likewise.
3603 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
3605         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
3606         of values on 64-bit platforms which are too large.
3608 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
3609             Joe Kerian  <jkerian@us.us.ibm.com>
3611         [BZ #2749]
3612         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
3613         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
3614         (__copysignl): Use signbit() for comparison.
3615         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
3616         SET_LDOUBLE_WORDS64.
3618         [BZ #2423, #2749]
3619         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
3620         (__ceill): Remove calls to fegetround(), fesetround().
3621         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3622         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
3623         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3625 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
3627         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
3629         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
3631 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
3633         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
3634         demangle pointer.
3635         * csu/libc-start.c: Likewise.
3637 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
3639         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
3640         really work anyway.
3642 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
3644         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
3645         users.
3646         (handle_request): Remove unnecessary tests.
3648         * nscd/cache.c (cache_add): Record the failure to add to the cache.
3650 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
3652         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
3653         workbits in semi-raw fraction.
3655         * math/test-misc.c: Add new tests.
3657 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
3659         * math/basic-test.c: Include test-skeleton.c.
3660         (TEST_TRUNC): Define.
3661         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
3662         (main): Rename to ...
3663         (do_test): ...this.  Run new tests.
3664         (TEST_FUNCTION): Define.
3666 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
3667             Joe Kerian  <jkerian@us.us.ibm.com>
3669         [BZ #2749]
3670         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
3671         handling for high words.
3672         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
3673         and overflow for infinity.
3675 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
3677         * nscd/connections.c (handle_request): Add a __builtin_expect.
3679         * nscd/connections.c (serv2db): Change type into structure which
3680         also says whether this is a request for data.  Renamed to
3681         servinfo.  All users changed.
3682         (handle_request): Much simpler test whether we should search the cache.
3684         * nscd/connections.c (handle_request): Fix thinko in selinux test
3685         invocation.
3687         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
3688         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
3689         it before getting dl_load_lock and then relock.
3690         (_dl_lookup_symbol_x): Pass flags to add_dependency.
3691         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
3692         case we unlocked the scope.
3693         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
3694         _dl_lookup_symbol_x in case we locked the scope.
3695         (_dl_profile_fixup): Likewise.
3696         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
3697         set DL_LOOKUP_SCOPE_LOCK.
3699 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
3701         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
3702         CFLAGS-getsrvbynpt_r.c.
3703         * nscd/getsrvbynm_r.c: New file.
3704         * nscd/getsrvbypt_r.c: New file.
3705         * nscd/nscd_getserv_r.c: New file.
3706         * nscd/servicescache.c: New file.
3707         * nscd/Makefile (routines): Add nscd_getserv_r.
3708         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
3709         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
3710         CFLAGS-getsrvbypt_r.c.
3711         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
3712         table.  Add entries for services database.
3713         * nscd/connections.c (serv2str): Mark as const.  Add entries for
3714         services database.
3715         (dbs): Add .reset_res and servdb initialization.
3716         (serv2db): Add entries for services database.
3717         (verify_persistent_db): Accept dbnr == servdb.
3718         (invalidate_cache): Rewrite database name recognition to use a table.
3719         Call res_init() if .reset_res is set for database.
3720         (handle_request): Add code to handle services database.
3721         * nscd/gai.c: Don't define __getservbyname_r.
3722         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
3723         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
3724         (serv_response_header): Define.
3725         (struct datahead): Add serv_response_header member.
3726         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
3727         using table.
3728         * nscd/nscd.conf: Add entries for services database.
3729         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
3730         Declare serv_iov_disabled.
3731         Declare addservbyname, readdservbyname, addservbyport, and
3732         readdservbyport.
3733         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
3734         (find_db): Fix error message.
3735         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
3736         __nscd_getservbyname_r, and __nscd_getservbyport_r.
3737         * nscd/selinux.c (perms): Add entries for services database.
3738         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
3739         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
3741         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
3742         * nscd/hstcache.c: Likewise.
3743         * nscd/pwdcache.c: Likewise.
3745         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
3746         computation of keylen.
3748         * include/string.h: Only redefine strndupa if this is really for
3749         libc code.
3751 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
3753         * nscd/nscd_gethst_r.c: Minor cleanups.
3755         * nscd/connections.c (handle_request): Check selinux permissions
3756         for all non-admin commands.
3758         * sysdeps/i386/i486/bits/atomic.h: Define
3759         atomic_compare_and_exchange_val_acq,
3760         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
3761         using __sync_* built-ins for gcc >= 4.1.
3762         * sysdeps/x86_64/bits/atomic.h: Likewise.
3764         [BZ #3840]
3765         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
3766         and .oS.d files.
3768 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
3770         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
3771         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
3772         (do_test): Check errno and exit(0) if ENOSYS.
3774 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
3776         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
3777         thousands separators.
3778         * stdlib/Makefile: Add rules to build and run tst-strtod4.
3779         * stdlib/tst-strtod4.c: New test.
3781         [BZ #3855]
3782         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
3783         hexadecimal digit should accept just the initial 0.
3784         * stdlib/tst-strtod2.c (tests): New variable.
3785         (do_test): Run several tests rather than just one.
3787 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
3789         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
3790         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
3792 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
3794         * io/fts.c: Make sure fts_cur is always valid after return from
3795         fts_read.
3796         Patch by Miloslav Trmac <mitr@redhat.com>.
3798 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
3800         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
3801         (R_MIPS_NUM): Bump by 1.
3803 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
3805         * posix/execvp.c: Include alloca.h.
3806         (allocate_scripts_argv): Renamed to...
3807         (scripts_argv): ... this.  Don't allocate buffer here nor count
3808         arguments.
3809         (execvp): Use alloca if possible.
3810         * posix/Makefile: Add rules to build and run tst-vfork3 test.
3811         * posix/tst-vfork3.c: New test.
3813 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
3815         * string/Makefile (tst-strxfrm2-ENV): Define.
3816         * stdlib/Makefile (tst-strtod3-ENV): Define.
3818 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
3820         * posix/getconf.c: Update copyright year.
3821         * nss/getent.c: Likewise.
3822         * iconv/iconvconfig.c: Likewise.
3823         * iconv/iconv_prog.c: Likewise.
3824         * elf/ldconfig.c: Likewise.
3825         * catgets/gencat.c: Likewise.
3826         * csu/version.c: Likewise.
3827         * elf/ldd.bash.in: Likewise.
3828         * elf/sprof.c (print_version): Likewise.
3829         * locale/programs/locale.c: Likewise.
3830         * locale/programs/localedef.c: Likewise.
3831         * nscd/nscd.c (print_version): Likewise.
3832         * debug/xtrace.sh: Likewise.
3833         * malloc/memusage.sh: Likewise.
3834         * malloc/mtrace.pl: Likewise.
3835         * debug/catchsegv.sh: Likewise.
3837 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
3839         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
3840         attempts.
3842 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
3844         * posix/wordexp.c: Remove some unnecessary tests.
3846 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
3848         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
3849         blacklist the group till after we look it up.
3851 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
3853         * include/atomic.h (atomic_forced_read): New macro.
3855 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3857         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
3859 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
3861         * nss/getXXbyYY_r.c: Include atomic.h.
3862         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
3863         add atomic_write_barrier () in between.
3865         * stdlib/Makefile (tests): Add tst-makecontext.
3866         * stdlib/tst-makecontext.c: New test.
3868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
3869         (__makecontext): Don't realign uc_mcontext.uc_regs.
3871 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
3873         * elf/dl-support.c: Include dl-procinfo.h.
3874         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
3875         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
3876         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
3877         Define.
3878         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
3879         hardcoded constants.
3880         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
3881         PPC_PLATFORM_* macros for array designators.
3883 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
3885         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
3886         names to the beginning.
3887         (_dl_powerpc_platforms): Add "power6x".
3888         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
3889         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
3890         (_DL_PLATFORMS_COUNT): Increase.
3891         (_dl_string_platform): Handle power6x case.
3892         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
3893         PPC_FEATURE_POWER6_EXT): Define.
3894         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
3896 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
3898         [BZ #3747]
3899         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
3900         [-2^31 .. 2^31) range.
3901         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
3902         targets.
3903         * stdlib/tst-rand48-2.c: New test.
3904         * stdlib/Makefile (tests): Add tst-rand48-2.
3906 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
3908         * misc/tst-pselect.c (do_test): Fix sigblock argument.
3910 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
3912         * misc/tst-pselect.c (do_test): Make sure the helper process is
3913         terminating when the test is aborted.
3915 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
3917         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
3918         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3919         Handle relatime mount option.
3921         [BZ #2337]
3922         * libio/Makefile (tests): Add tst-setvbuf1.
3923         * libio/tst-setvbuf1.c: New file.
3925 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
3927         [BZ #2337]
3928         * libio/genops.c (__uflow): Fix a typo.
3929         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
3930         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
3931         the narrow buffer size.
3933 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
3935         [BZ #2337]
3936         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
3937         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
3938         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
3939         in _flags.
3940         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
3941         _IO_wstr_finish): Likewise.
3942         * libio/wmemstream.c (open_wmemstream): Likewise.
3943         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
3944         even for wide streams.
3946 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
3948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
3949         kernel-features.h.
3951 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
3953         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
3954         separators also if no non-zero digits found.
3955         * stdlib/Makefile (tests): Add tst-strtod3.
3957 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
3959         [BZ #3632]
3960         * include/features.h: Fix comment about default value for
3961         _POSIX_C_SOURCE.
3963         [BZ #3664]
3964         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
3965         empty parsed strings.
3966         * stdlib/Makefile (tests): Add tst-strtod2.
3967         * stdlib/tst-strtod2.c: New file.
3969         [BZ #3673]
3970         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
3971         computation.
3972         * stdlib/Makefile (tests): Add tst-atof2.
3973         * stdlib/tst-atof2.c: New file.
3975         [BZ #3674]
3976         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
3977         correctly if removing trailing zero of hex-float.
3978         * stdlib/Makefile (tests): Add tst-atof1.
3979         * stdlib/tst-atof1.c: New file.
3981 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
3983         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
3984         Start searching for next comma at p rather than rest.
3985         * misc/Makefile (tests): Add tst-mntent2.
3986         * misc/tst-mntent2.c: New test.
3988         * misc/getusershell.c (initshells): Check for integer overflows.
3989         Make strings buffer one bigger as fgets always succeeds when second
3990         argument is 1.  Don't use calloc for shells array.  Disallow
3991         / as shell.
3993 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
3995         * malloc/memusage.c: Handle realloc with new size of zero and
3996         non-NULL pointer correctly.
3997         (me): Really write first record twice.
3998         (struct entry): Make format bi-arch safe.
3999         (dest): Write out more realloc statistics.
4000         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
4002 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
4004         * nis/nis_subr.c (nis_getnames): Revert last change.
4006 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
4008         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
4009         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
4010         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
4011         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
4012         ENOTTY.
4013         * io/Makefile: Add rules to build and run tst-ttyname_r test.
4014         * io/tst-ttyname_r.c: New test.
4016 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4018         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
4020 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
4022         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
4023         jump table entries.
4025 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4027         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
4028         `clone' function to ensure proper unwinding stop of gdb.
4029         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4031 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
4033         * nscd/nscd.init: Remove obsolete and commented-out -S option
4034         handling.
4036 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
4038         [BZ #3514]
4039         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
4041         [BZ #3515]
4042         * manual/string.texi (strtok): Remove duplicate paragraph.
4044 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4046         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
4047         libgcc not supporting `rflags' unwinding (register # >= 17).
4049 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
4051         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
4052         succeeded.
4054 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
4055             Jakub Jelinek  <jakub@redhat.com>
4056             Jan Kratochvil  <jan.kratochvil@redhat.com>
4058         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
4059         unwind information.
4060         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
4061         'restore_rt' even in the 'signal' directory.
4062         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
4064 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
4066         [BZ #3559]
4067         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
4068         malloc crashed.  Don't allocate memory unnecessarily in each
4069         loop.
4071 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
4073         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
4075 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
4077         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
4079 2006-11-18  Bruno Haible  <bruno@clisp.org>
4081         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
4082         __sysconf only after having tried to call getgroups32.
4084 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
4086         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
4087         addresses for IPv4 queries if they can be mapped.
4089 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
4091         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
4092         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
4093         (signmask): Add .size directive.
4094         (othermask): Add .type directive.
4096 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
4098         * po/nl.po: Update from translation team.
4100         * timezone/zdump.c: Redo fix for BZ #3137.
4102 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
4104         * nss/nss_files/files-alias.c (get_next_alias): Set line back
4105         to first_unused after parsing :include: file.
4107 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4109         * timezone/africa: Update from tzdata2006o.
4110         * timezone/antarctica: Likewise.
4111         * timezone/asia: Likewise.
4112         * timezone/australasia: Likewise.
4113         * timezone/backward: Likewise.
4114         * timezone/europe: Likewise.
4115         * timezone/iso3166.tab: Likewise.
4116         * timezone/northamerica: Likewise.
4117         * timezone/southamerica: Likewise.
4118         * timezone/zone.tab: Likewise.
4120         * time/tzfile.c (__tzfile_read): Extend to handle new file format
4121         on machines with 64-bit time_t.
4123         * timezone/checktab.awk: Update from tzcode2006o.
4124         * timezone/ialloc.c: Likewise.
4125         * timezone/private.h: Likewise.
4126         * timezone/scheck.c: Likewise.
4127         * timezone/tzfile.h: Likewise.
4128         * timezone/tzselect.ksh: Likewise.
4129         * timezone/zdump.c: Likewise.
4130         * timezone/zic.c: Likewise.
4132         [BZ #3483]
4133         * elf/ldconfig.c (main): Call setlocale and textdomain.
4134         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4136         [BZ #3480]
4137         * manual/argp.texi: Fix typos.
4138         * manual/charset.texi: Likewise.
4139         * manual/errno.texi: Likewise.
4140         * manual/filesys.texi: Likewise.
4141         * manual/lang.texi: Likewise.
4142         * manual/maint.texi: Likewise.
4143         * manual/memory.texi: Likewise.
4144         * manual/message.texi: Likewise.
4145         * manual/resource.texi: Likewise.
4146         * manual/search.texi: Likewise.
4147         * manual/signal.texi: Likewise.
4148         * manual/startup.texi: Likewise.
4149         * manual/stdio.texi: Likewise.
4150         * manual/sysinfo.texi: Likewise.
4151         * manual/syslog.texi: Likewise.
4152         * manual/time.texi: Likewise.
4153         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4155         [BZ #3465]
4156         * sunrpc/clnt_raw.c: Minimal message improvements.
4157         * sunrpc/pm_getmaps.c: Likewise.
4158         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4159         * nis/nis_print_group_entry.c: Likewise.
4160         * locale/programs/repertoire.c: Likewise.
4161         * locale/programs/charmap.c: Likewise.
4162         * malloc/memusage.sh: Likewise.
4163         * elf/dl-deps.c: Likewise.
4164         * locale/programs/ld-collate.c: Likewise.
4165         * libio/vswprintf.c: Likewise.
4166         * malloc/memusagestat.c: Likewise.
4167         * sunrpc/auth_unix.c: Likewise.
4168         * sunrpc/rpc_main.c: Likewise.
4169         * nscd/cache.c: Likewise.
4170         * locale/programs/repertoire.c: Unify output messages.
4171         * locale/programs/charmap.c: Likewise.
4172         * locale/programs/ld-ctype.c: Likewise.
4173         * locale/programs/ld-monetary.c: Likewise.
4174         * locale/programs/ld-numeric.c: Likewise.
4175         * locale/programs/ld-time.c: Likewise.
4176         * elf/ldconfig.c: Likewise.
4177         * nscd/selinux.c: Likewise.
4178         * elf/cache.c: Likewise.
4179         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4181         [BZ #3451]
4182         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
4183         change atomic.
4184         (ceil): Likewise.
4186 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
4188         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
4189         if N is one bigger than return value.
4190         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
4191         and l1 last arguments, if buf is defined, verify the return value
4192         equals to strlen (buf) and verify no byte beyond passed length
4193         is modified.
4195 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4197         * po/sv.po: Update from translation team.
4199 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
4201         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
4202         noinline attribute.
4204 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
4206         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
4207         noinline attribute.
4209         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
4210         Use __new_sys_siglist instead of _sys_siglist_internal as
4211         second macro argument.
4212         (_old_sys_siglist): Use declare_symbol_alias macro instead of
4213         strong_alias.
4215 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
4217         [BZ #3493]
4218         * posix/unistd.h (sysconf): Remove const attribute.
4220         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
4221         temporary or deprecated addresses.
4222         Patch by Sridhar Samudrala <sri@us.ibm.com>.
4224         * string/Makefile (tests): Add tst-strxfrm2.
4225         * string/tst-strxfrm2.c: New file.
4227 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
4229         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
4230         rather than r->r_brk.
4232 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
4234         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
4235         optimization even if needed > n.
4237         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
4238         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
4239         return false, otherwise return true.
4240         (cache_rpath): Return decompose_rpath return value.
4242 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
4244         * include/libc-symbols.h (declare_symbol): Rename to...
4245         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
4246         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
4247         .size directive.
4248         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
4249         changes.
4250         * sysdeps/gnu/siglist.c: Likewise.
4252 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
4254         * sysdeps/powerpc/fpu/bits/mathinline.h
4255         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
4256         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
4258 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
4260         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
4261         Update handling of cache descriptor 0x49 for new models.
4262         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
4263         Likewise.
4265 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
4267         * malloc/memusage.c (dest): Reset not_me back to false after
4268         printing statistics.
4270 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
4272         * configure.in: Work around ld --help change and avoid -z relro
4273         test completely if the architecture doesn't care about security.
4275 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
4277         * po/sv.po: Update from translation team.
4279 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
4281         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
4282         generate compatibility version.
4284 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
4286         * configure.in: Relax -z relro requirement a bit.
4288         * po/sv.po: Update from translation team.
4290 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
4292         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
4293         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
4294         * elf/dl-close.c (_dl_close_worker): Likewise.
4295         * elf/dl-open.c (_dl_open_worker): Likewise.
4296         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
4298 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
4300         * configure.in: Require assembler support for visibility, compiler
4301         support for visibility and aliases, linker support for various -z
4302         options.
4303         * Makeconfig: Remove conditional code which now is unnecessary.
4304         * config.h.in: Likewise.
4305         * config.make.in: Likewise.
4306         * dlfcn/Makefile: Likewise.
4307         * elf/Makefile: Likewise.
4308         * elf/dl-load.c: Likewise.
4309         * elf/rtld.c: Likewise.
4310         * include/libc-symbols.h: Likewise.
4311         * include/stdio.h: Likewise.
4312         * io/Makefile: Likewise.
4313         * io/fstat.c: Likewise.
4314         * io/fstat64.c: Likewise.
4315         * io/fstatat.c: Likewise.
4316         * io/fstatat64.c: Likewise.
4317         * io/lstat.c: Likewise.
4318         * io/lstat64.c: Likewise.
4319         * io/mknod.c: Likewise.
4320         * io/mknodat.c: Likewise.
4321         * io/stat.c: Likewise.
4322         * io/stat64.c: Likewise.
4323         * libio/stdio.c: Likewise.
4324         * nscd/Makefile: Likewise.
4325         * stdlib/Makefile: Likewise.
4326         * stdlib/atexit.c: Likewise.
4327         * sysdeps/generic/ldsodefs.h: Likewise.
4328         * sysdeps/i386/dl-machine.h: Likewise.
4329         * sysdeps/i386/sysdep.h: Likewise.
4330         * sysdeps/i386/i686/memcmp.S: Likewise.
4331         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4332         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4333         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4335         * Makerules: USE_TLS support is now default.
4336         * tls.make.c: Likewise.
4337         * csu/Versions: Likewise.
4338         * csu/libc-start.c: Likewise.
4339         * csu/libc-tls.c: Likewise.
4340         * csu/version.c: Likewise.
4341         * dlfcn/dlinfo.c: Likewise.
4342         * elf/dl-addr.c: Likewise.
4343         * elf/dl-cache.c: Likewise.
4344         * elf/dl-close.c: Likewise.
4345         * elf/dl-iteratephdr.c: Likewise.
4346         * elf/dl-load.c: Likewise.
4347         * elf/dl-lookup.c: Likewise.
4348         * elf/dl-object.c: Likewise.
4349         * elf/dl-open.c: Likewise.
4350         * elf/dl-reloc.c: Likewise.
4351         * elf/dl-support.c: Likewise.
4352         * elf/dl-sym.c: Likewise.
4353         * elf/dl-sysdep.c: Likewise.
4354         * elf/dl-tls.c: Likewise.
4355         * elf/ldconfig.c: Likewise.
4356         * elf/rtld.c: Likewise.
4357         * elf/tst-tls-dlinfo.c: Likewise.
4358         * elf/tst-tls1.c: Likewise.
4359         * elf/tst-tls10.h: Likewise.
4360         * elf/tst-tls14.c: Likewise.
4361         * elf/tst-tls2.c: Likewise.
4362         * elf/tst-tls3.c: Likewise.
4363         * elf/tst-tls4.c: Likewise.
4364         * elf/tst-tls5.c: Likewise.
4365         * elf/tst-tls6.c: Likewise.
4366         * elf/tst-tls7.c: Likewise.
4367         * elf/tst-tls8.c: Likewise.
4368         * elf/tst-tls9.c: Likewise.
4369         * elf/tst-tlsmod1.c: Likewise.
4370         * elf/tst-tlsmod13.c: Likewise.
4371         * elf/tst-tlsmod13a.c: Likewise.
4372         * elf/tst-tlsmod14a.c: Likewise.
4373         * elf/tst-tlsmod2.c: Likewise.
4374         * elf/tst-tlsmod3.c: Likewise.
4375         * elf/tst-tlsmod4.c: Likewise.
4376         * elf/tst-tlsmod5.c: Likewise.
4377         * elf/tst-tlsmod6.c: Likewise.
4378         * include/errno.h: Likewise.
4379         * include/link.h: Likewise.
4380         * include/tls.h: Likewise.
4381         * locale/global-locale.c: Likewise.
4382         * locale/localeinfo.h: Likewise.
4383         * malloc/arena.c: Likewise.
4384         * malloc/hooks.c: Likewise.
4385         * malloc/malloc.c: Likewise.
4386         * resolv/Versions: Likewise.
4387         * sysdeps/alpha/dl-machine.h: Likewise.
4388         * sysdeps/alpha/libc-tls.c: Likewise.
4389         * sysdeps/generic/ldsodefs.h: Likewise.
4390         * sysdeps/generic/tls.h: Likewise.
4391         * sysdeps/i386/dl-machine.h: Likewise.
4392         * sysdeps/ia64/dl-machine.h: Likewise.
4393         * sysdeps/ia64/libc-tls.c: Likewise.
4394         * sysdeps/mach/hurd/fork.c: Likewise.
4395         * sysdeps/mach/hurd/i386/tls.h: Likewise.
4396         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
4397         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
4398         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4399         * sysdeps/s390/libc-tls.c: Likewise.
4400         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4401         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4402         * sysdeps/sh/dl-machine.h: Likewise.
4403         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4404         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4405         * sysdeps/x86_64/dl-machine.h: Likewise.
4407         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
4408         split out locking and parameter checking.
4409         (_dl_close): Call _dl_close_worker after locking and checking.
4410         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
4411         _dl_close.
4412         * elf/Makefile: Add rules to build and run tst-thrlock.
4413         * elf/tst-thrlock.c:  New file.
4415         [BZ #3426]
4416         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
4417         reality.
4419         [BZ #3429]
4420         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
4421         we are sure we do not need it anymore for _dl_close.  Also move
4422         the asserts inside the lock region.
4423         Patch mostly by Suzuki <suzuki@in.ibm.com>.
4425 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
4427         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
4428         argument.
4429         (_dl_lookup_symbol_x): Adjust caller.
4431         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
4432         _ns_global_scope.
4433         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
4435         * elf/dl-libc.c: Revert l_scope name changes.
4436         * elf/dl-load.c: Likewise.
4437         * elf/dl-object.c: Likewise.
4438         * elf/rtld.c: Likewise.
4439         * elf/dl-close.c (_dl_close): Likewise.
4440         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
4441         always use __rtld_mrlock_{change,done}.  Always free old scope list
4442         here if not l_scope_mem.
4443         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
4444         change.  Never free scope list here.  Just __rtld_mrlock_lock before
4445         the lookup and __rtld_mrlock_unlock it after the lookup.
4446         * elf/dl-sym.c: Likewise.
4447         * include/link.h (struct r_scoperec): Remove.
4448         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
4449         with l_scope_mem and l_scoperec_lock with l_scope_lock.
4451 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
4453         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
4455 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4457         * configure.in: Disable building profile libraries by default.
4459 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4461         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
4462         as signed longs, check for x_base + pos overflow.
4463         * sunrpc/Makefile (tests): Add tst-xdrmem2.
4464         * sunrpc/tst-xdrmem2.c: New test.
4466 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4468         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
4469         _dl_lookup_symbol_x code.
4471 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4473         * elf/dl-runtime.c: Include sysdep-cancel.h.
4474         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
4475         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
4476         instead of catomic_* macros.
4477         * elf/dl-sym.c: Include sysdep-cancel.h.
4478         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
4479         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4480         * elf/dl-close.c: Include sysdep-cancel.h.
4481         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
4482         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4483         * elf/dl-open.c: Include sysdep-cancel.h.
4484         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
4485         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4487 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4489         [BZ #3313]
4490         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
4491         fastbin rather than end of fastbin array.
4493 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4495         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
4496         body macro.
4497         * sysdeps/x86_64/bits/atomic.h
4498         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
4499         (catomic_decrement): Use correct body macro.
4501 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4503         * include/atomic.h: Add a unique prefix to all local variables
4504         in macros.
4505         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
4507 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
4509         [BZ #3369]
4510         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
4511         and 7.
4513 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
4515         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
4517 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
4519         [BZ #3313]
4520         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
4521         determine highest fast bin to consolidate, always look into all of
4522         them.
4523         (do_check_malloc_state): Only require for empty bins for large
4524         sizes in main arena.
4526         * libio/stdio.h: Add more __wur attributes.
4528         * elf/dl-minimal.c (realloc): Optimize last patch.
4530 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
4532         [BZ #3352]
4533         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
4534         and use memcpy() if it does.
4536 2006-11-12  Andreas Jaeger  <aj@suse.de>
4538         [BZ #2510]
4539         * manual/search.texi (Hash Search Function): Clarify.
4540         (Array Search Function): Clarify.
4542 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
4544         [BZ #2830]
4545         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
4546         shifting.
4547         * math/atest-exp2.c (read_mpn_hex): Likewise.
4548         * math/atest-sincos.c (main): Likewise.
4550 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
4552         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
4553         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
4554         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
4555         version GLIBC_2.6.
4556         * Versions.def: Add GLIBC_2.6 for libc.
4558         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
4560         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
4562 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
4564         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
4566         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
4568         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
4569         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
4571 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
4573         * include/atomic.c: Define catomic_* operations.
4574         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
4575         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
4576         * malloc/memusage.c: Likewise.
4577         * gmon/mcount.c: Likewise.
4578         * elf/dl-close.c: Likewise.
4579         * elf/dl-open.c: Likewise.
4580         * elf/dl-profile.c: Likewise.
4581         * elf/dl-sym.c: Likewise.
4582         * elf/dl-runtime.c: Likewise.
4583         * elf/dl-fptr.c: Likewise.
4584         * resolv/res_libc.c: Likewise.
4586 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
4588         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
4589         components which lack them.
4591         * nis/nis_subr.c (nis_getnames): Make sure that we always return
4592         at least one entry consisting of the parameter concatenated with
4593         the domain.
4595 2006-10-10  Roland McGrath  <roland@frob.com>
4597         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
4598         * sysdeps/mach/hurd/futimes.c: Likewise.
4599         * sysdeps/mach/hurd/lutimes.c: Likewise.
4601 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
4602             Jakub Jelinek  <jakub@redhat.com>
4604         Implement reference counting of scope records.
4605         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
4606         from the list in objects which remain.  Always allocate new scope
4607         record.
4608         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
4609         don't resize, allocate a new one.
4610         * elf/dl-runtime.c: Update reference counters before using a scope
4611         array.
4612         * elf/dl-sym.c: Likewise.
4613         * elf/dl-libc.c: Adjust for l_scope name change.
4614         * elf/dl-load.c: Likewise.
4615         * elf/dl-object.c: Likewise.
4616         * elf/rtld.c: Likewise.
4617         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
4618         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
4619         Add l_scoperec_lock.
4620         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
4621         * sysdeps/generic/rtld-lowlevel.h: New file.
4623         * include/atomic.h: Rename atomic_and to atomic_and_val and
4624         atomic_or to atomic_or_val.  Define new macros atomic_and and
4625         atomic_or which do not return values.
4626         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
4627         Various cleanups.
4628         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4630         * po/sv.po: Update from translation team.
4632 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
4634         * Versions.def: Add GLIBC_2.6 to libpthread.
4636         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
4637         (versioned_symbol): Likewise.
4638         (compat_symbol): Likewise.
4640         * po/tr.po: Update from translation team.
4642 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
4644         * nis/Banner: Removed.  It's been integral part forever and the
4645         author info is incomplete anyway.
4646         * libio/Banner: Likewise.
4648         * nis/nis_table.c (nis_list): If __follow_path fails in the new
4649         code, make sure the nis_freeresult call doesn't crash and that the
4650         result is reported correctly.
4652 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
4654         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
4655         when callback is NULL.
4657         * nis/Versions (libnss_nisplus): Add
4658         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
4659         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
4660         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
4661         _nss_create_tablename): Rename to...
4662         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
4663         ... these.  No longer static.
4664         (internal_setgrent): Adjust users.
4665         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
4666         Don't use locking around _nss_grp_create_tablename call.
4667         * nis/nss_nisplus/nisplus-initgroups.c: New file.
4669 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
4671         * version.h (VERSION): Bump to 2.5.90 for new development tree.
4673 2006-10-06  Andreas Jaeger  <aj@suse.de>
4675         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
4677 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
4679         * po/pl.po: Update from translation team.
4681         * nscd/nscd.c (main): Fix typo in message.
4682         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
4684 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
4686         [BZ #3291]
4687         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4688         errno.h, signal.h, unistd.h and sysdep-cancel.h.
4689         (__sigprocmask): Define.
4691 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
4693         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
4694         used.
4696 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
4698         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
4699         in oldtotal and newtotal calculation.
4700         * nscd/nscd-client.h (struct mapped_database): Add datasize
4701         field.
4702         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
4703         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
4704         increased.
4705         (__nscd_cache_search): Add checks to make sure we never reference
4706         data beyond the current mapping.
4708 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4710         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
4711         variables const to avoid compiler warnings.
4713         * io/fts.c (fts_close): Remove redundant checks.
4714         (fts_build): Likewise.
4715         (fts_palloc): Likewise.
4717         * manual/message.texi (Advanced gettext functions,
4718         Using gettextized software): Fix typos.
4720 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4722         * posix/glob.c (glob_in_dir): Add some comments and asserts to
4723         explain why there are no leaks.
4725 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
4727         * libio/wmemstream.c: Include <wchar.h>.
4728         * libio/bug-wmemstream1.c: Likewise.
4729         * libio/tst-wmemstream1.c: Likewise.
4730         * libio/tst-wmemstream2.c: Likewise.
4732         * version.h (RELEASE): Bump to 2.5.
4733         * README: Regenerated.
4735         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
4737         [BZ #3273]
4738         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
4739         found no group members.
4740         Patch by Petr Baudis.
4742 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
4744         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
4745         assert bootstrap_map.l_tls_modid is zero.
4746         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
4747         if USE___THREAD.
4749 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
4751         * libio/stdio.h: Move open_wmemstream prototype to ...
4752         * wcsmbs/wchar.h: ... here.
4754 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4756         [BZ #3252]
4757         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
4758         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
4759         __{,l}chown to handle the rest.
4760         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
4761         fchownat syscall and __ASSUME_32BITUIDS case inline, call
4762         __{,l}chown to handle the rest.
4763         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
4764         i386/fchownat.c.
4765         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
4766         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
4768         [BZ #3253]
4769         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4770         time, rather allocate increasingly bigger arrays of pointers, if
4771         possible with alloca, if too large with malloc.
4773 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
4775         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
4777         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
4779 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
4781         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
4782         home addresses.
4783         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
4784         IFA_F_HOMEADDRESS flag for interfaces.
4785         * include/ifaddrs.h (struct in6addrinfo): Define
4786         in6ai_homeaddress.
4788 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
4790         [BZ #3225]
4791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
4792         PTR_DEMANGLE3): Define.
4793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
4794         PTR_DEMANGLE3): Likewise.
4795         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
4796         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4797         Likewise.
4798         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
4800 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
4802         * po/libc.pot: Regenerated.
4803         * po/be.po: Updated.
4804         * po/ca.po: Likewise.
4805         * po/cs.po: Likewise.
4806         * po/da.po: Likewise.
4807         * po/de.po: Likewise.
4808         * po/el.po: Likewise.
4809         * po/en_GB.po: Likewise.
4810         * po/es.po: Likewise.
4811         * po/fi.po: Likewise.
4812         * po/fr.po: Likewise.
4813         * po/gl.po: Likewise.
4814         * po/hr.po: Likewise.
4815         * po/hu.po: Likewise.
4816         * po/ja.po: Likewise.
4817         * po/ko.po: Likewise.
4818         * po/nb.po: Likewise.
4819         * po/nl.po: Likewise.
4820         * po/pl.po: Likewise.
4821         * po/pt_BR.po: Likewise.
4822         * po/ru.po: Likewise.
4823         * po/rw.po: Likewise.
4824         * po/sk.po: Likewise.
4825         * po/sv.po: Likewise.
4826         * po/tr.po: Likewise.
4827         * po/zh_CN.po: Likewise.
4828         * po/zh_TW.po: Likewise.
4830         [BZ #3137]
4831         * iconv/iconv_prog.c (main): Fix spelling in error message.
4832         * iconv/iconvconfig.c (main): Likewise.
4833         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
4834         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
4835         * locale/programs/localedef.c (main): Likewise.
4836         * locale/programs/repertoire.c (repertoire_read): Likewise.
4837         * timezone/zdump.c (main): Likewise.
4838         * nscd/connections.c (handle_request): Fix spelling in log message.
4839         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
4841 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
4843         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
4844         interfaces.
4846 2006-09-20  Andreas Jaeger  <aj@suse.de>
4848         * math/libm-test.inc (lrint_test_upward): Fix typo.
4850 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
4852         [BZ #2592]
4853         * math/libm-test.inc (lrint_test_tonearest): New function.
4854         (lrint_test_towardzero): New function.
4855         (lrint_test_downward): New function.
4856         (lrint_test_upward): New function.
4857         (main): Run these new tests.
4858         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
4859         of values near to 0.
4860         (two52): Use double not long double.
4861         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
4862         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
4863         (two23): Use float not double.
4864         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
4865         (two23): Use float not double.
4866         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
4867         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
4868         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
4869         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
4871 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4873         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
4874         Cast sp to unsigned long to avoid compiler warning.
4875         Use __makecontext_ret function instead of a trampoline on the stack.
4876         (__makecontext_ret): New function.
4877         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
4879 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
4881         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
4882         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
4883         bits.
4885 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
4887         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
4888         sure no reference to the unloaded map's search list remains in the
4889         dependency's scope.
4891 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
4893         * elf/Makefile: Add rules to build and run unload7 test.
4894         * elf/unload7.c: New test.
4895         * elf/unload7mod1.c: New file.
4896         * elf/unload7mod2.c: New file.
4898 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
4900         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
4901         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
4902         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
4903         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
4904         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
4905         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
4906         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
4907         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
4908         PTRACE_GETEVENTMSG): Likewise.
4909         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
4910         values.
4912 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
4914         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
4915         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
4916         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
4917         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
4919 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
4921         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
4922         write '\0' to the fd.
4923         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
4924         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
4925         Change regs to unsigned long pointer from unsigned int, fix fscr
4926         offset.
4928 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
4930         * io/Makefile (CFLAGS-fstatat.c): Set.
4931         (CFLAGS-fstatat64.c): Likewise.
4932         (CFLAGS-mknodat.c): Likewise.
4934         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
4935         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4936         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
4937         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
4939 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
4940             Steven Munroe  <sjmunroe@us.ibm.com>
4942         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
4943         names to the beginning.  Rename "cell" to "cellbe".
4944         (_dl_powerpc_platforms): New.
4945         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4946         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
4947         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
4948         (_DL_HWCAP_PLATFORM): Define to new mask.
4949         (_dl_platform_string, _dl_string_platform): New functions.
4950         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
4951         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
4953 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
4955         [BZ #2526]
4956         * README.libm: Fix a thinko in sqrt algorithm description.
4958         [BZ #3143]
4959         * manual/string.texi (argz_delete): Fix prototype.
4960         Patch by <alpt@freaknet.org>.
4962 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
4964         [BZ #3138]
4965         * io/test-lfs.c (do_prepare): Give name_len type size_t.
4966         * io/tst-fcntl.c (do_prepare): Likewise.
4967         * posix/tst-exec.c (do_prepare): Likewise.
4968         * posix/tst-preadwrite.c (do_prepare): Likewise.
4969         * posix/tst-spawn.c (do_prepare): Likewise.
4970         * posix/tst-truncate.c (do_prepare): Likewise.
4971         * rt/tst-aio.c (do_prepare): Likewise.
4972         * rt/tst-aio64.c (do_prepare): Likewise.
4973         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
4974         size_t.
4976 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
4978         [BZ #2821]
4979         * time/mktime.c (guess_time_tm): Fix overflow detection.
4980         * time/Makefile (tests): Add bug-mktime1.
4981         * time/bug-mktime1.c: New file.
4983         [BZ #3189, #3188]
4984         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
4985         (mremap): Likewise.
4987 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
4989         [BZ #1006]
4990         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
4991         Ensure relocation doesn't clobber any bits outside of the
4992         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
4993         R_SPARC_HI22 and R_SPARC_H44.
4995         [BZ #2775]
4996         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
4997         (long) (MINSIZE + nb - old_size) is positive.
4999         * malloc/arena.c (grow_heap): When growing bail even if new_size
5000         is negative.
5002         [BZ #3155]
5003         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
5004         stack below r1.
5006 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
5008         * posix/regex_internal.c (re_string_reconstruct): Handle
5009         offset < pstr->valid_raw_len && pstr->offsets_needed case.
5010         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
5011         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5012         re_string_context_at.
5013         * posix/Makefile: Add rules to build and run bug-regex26 test.
5014         * posix/bug-regex26.c: New test.
5016         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
5017         rather than col_sym_free.  Move seqp declaration earlier.
5019         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
5021 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
5023         * nscd/initgrcache.c (addinitgroupsX): Move any_success
5024         decl before first goto out.
5026 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5028         * Makerules (shlib.lds): If have-hash-style, put .hash section
5029         at the end of the RO segment.
5031 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
5033         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
5034         style hash table format is used.
5036 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5038         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
5039         randomization rather than before.
5040         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
5042 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
5044         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
5046         * malloc/malloc.c (_int_malloc): Use full list insert and not
5047         shortcut which assumes the list is empty for large requests
5048         too.
5050         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
5052 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
5054         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
5055         and offout arguments to the prototype.
5056         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
5057         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
5058         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
5059         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
5060         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
5061         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
5063         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
5065 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
5067         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
5069         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
5070         dlopen parameters.
5072 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
5074         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
5075         only if herrno is NETDB_INTERNAL.  Handle errors other than
5076         ERANGE outside of the loops, handle TRY_AGAIN.
5078         * locale/programs/ld-ctype.c (translit_flatten): Issue error
5079         if other's ctype category was missing.
5080         * locale/programs/ld-collate.c (collate_read): Return if
5081         copy_locale's collate category is missing.
5083 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
5085         [BZ #2684]
5086         * malloc/malloc.c (public_rEALLOc): Try harder by using other
5087         arenas if allocation failed.
5088         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
5090 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
5092         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
5093         waste bins[0..1].
5094         (malloc_state): Reduce bins size by 2.
5095         (_int_malloc): Fix test for large enough buffer for early termination.
5096         When no unsorted block matches perfectly and an exiting block has
5097         to be split, use full list insert and not shortcut which assumes
5098         the list is empty.
5100         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
5101         failure.
5103 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5105         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
5106         do anything.
5108         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
5109         symbol require exact match (these are PLTs).
5110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
5111         (_dl_ppc64_addr_sym_match): Likewise.
5113         [BZ #2683]
5114         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
5115         If symbol has a value use it.
5116         * elf/tst-dladdr1.c: New file.
5117         * elf/Makefile: Add rules to build and run tst-addr1.
5119 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
5121         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
5122         keeps failing and heap growth or new heap creation isn't
5123         successful either.
5124         * malloc/tst-malloc.c (main): Add new tests.
5126 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5128         [BZ #2734]
5129         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
5130         as in the x86-64 code to use bswap.
5132 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
5134         [BZ #2680]
5135         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
5136         __USE_UNIX98.
5137         * posix/bits/unistd.h: Likewise.
5139 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
5141         [BZ #2751]
5142         * string/strchr.c: Add cast to avoid warning.
5144 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5146         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
5147         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
5148         limit is needed to avoid the exploding of the address space
5149         requirement for secondary heaps.
5150         * malloc/arena.c (HEAP_MAX_SIZE): Define using
5151         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
5153 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
5155         [BZ #3018]
5156         * Makerules (depfiles): Handle extra-test-objs the same as
5157         extra-objs.
5158         (common-mostlyclean): Likewise.
5159         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
5160         instead.
5161         * elf/Makefile (extra-objs): Likewise.
5162         * stdlib/Makefile (extra-objs): Likewise.
5164 2006-08-14  Eric Blake  <ebb9@byu.net>
5166         [BZ #3044]
5167         * misc/error.h: Assume C89 or better.
5168         * misc/error.c: Likewise.
5170 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5172         [BZ #3040]
5173         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
5174         __ASSUME_ATFCTS is defined.
5176 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
5178         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
5179         to sort in each call.
5181         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
5182         is empty simply return and use next service.
5183         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
5185         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
5186         tells us when not finding a charmap file is an error.
5187         * locale/programs/charmap.h: Adjust charmap_read prototype.
5188         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
5189         cannot find a charmap.
5190         * locale/programs/localedef.c (main): Adjust charmap_read call.
5192 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
5194         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
5195         sysdeps/posix/pause.c implementation instead.
5197 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
5199         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
5200         to EPERM.
5202 2006-08-13  Andreas Schwab  <schwab@suse.de>
5204         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
5205         Don't clobber caller's LRSAVE.
5206         (_dl_prof_resolve): Likewise.
5208 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
5210         [BZ #1996]
5211         * libio/memstream.c (open_memstream): Allocate initial buffer with
5212         calloc.
5213         * libio/wmemstream.c (open_wmemstream): Likewise.
5214         * libio/strops.c: Pretty printing.
5215         (_IO_str_overflow): Clear uninitialized part of the new buffer.
5216         (enlarge_userbuf): New function.
5217         (_IO_str_seekoff): Call it if seek position is larger than current
5218         buffer.
5219         * libio/wstrops.c: Likewise.
5220         * libio/vasprintf.c: Add comment as to why we do not have to use
5221         calloc instead of malloc to allocate initial buffer.
5222         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
5223         * libio/bug-memstream1.c: New file.
5224         * libio/bug-wmemstream1.c: New file.
5226 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
5228         * libio/wstrops.c: Remove dead macro definitions and comments.
5229         * libio/strops.c: Likewise.
5231         [BZ #2764]
5232         * login/utmpname.c (__utmpname): Remove unnecessary test.
5234 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
5236         [BZ #2832]
5237         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
5238         0s from integers.
5240 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
5242         [BZ #2987]
5243         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
5244         for CPU clocks.
5245         * sysdeps/unix/clock_settime.c: Add support for platform-specific
5246         setting of CPU clocks.
5248 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5250         [BZ #2841]
5251         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
5252         since C99 requires the result to promote to 'int' when uint_least8_t
5253         and uint_least16_t promote to 'int'.
5255 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5257         [BZ #3013]
5258         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
5259         lenght of one output field, correct bitmask creation.
5260         * locale/programs/ld-time.c: Add alignment.
5262         [BZ #2997]
5263         * misc/error.c: Add space between program name and message if file
5264         name is missing.
5266 2006-08-03  Eric Blake  <ebb9@byu.net>
5268         [BZ #2998]
5269         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
5271 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
5273         * malloc/memusagestat.c: Silence warnings.
5275         * malloc/malloc.c: Dynamically size mmap treshold if the program
5276         frees mmaped blocks.
5277         Patch by Valerie Henson and Arjan van de Ven.
5279 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
5281         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
5282         __USE_GNU.
5284         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
5285         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
5286         (DEF): Don't put the var into .gnu.linkonce.r.* section.
5287         Only provide var definitions in strtol_l (or for *ull*
5288         in strtoll_l).
5290         * stdio-common/bug16.c (tests): New array.
5291         (do_tests): Allow the first hexadecimal digit
5292         to be 1, 2, 4 or 8.  Do 3 additional tests.
5294         * sysdeps/s390/fpu/libm-test-ulps: Update.
5296         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
5297         fchownat syscall if available.
5298         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
5299         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
5300         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
5302 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
5304         * nis/nis_xdr.c: Avoid some function calls.
5306 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
5307             Ulrich Drepper  <drepper@redhat.com>
5309         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
5310         short cut if only one name component is stripped away.
5312 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
5314         * nis/nis_call.c: Minor cleanups throughout.
5315         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
5316         (first_shoot): Add search_parent_first parameter.  Only if it is set
5317         search parent server first.
5318         If directory for table found through cold start cache is not the same
5319         as referenced in the cache, don't use it.
5320         (__nisfind_server): Take additional parameter.  Pass it on to
5321         first_shoot.
5322         (__prepare_niscall): Adjust __nisfind_server call.
5323         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
5324         * nis/nis_table.c: Adjust __nisfind_server call.
5325         * nis/nis_lookup.c: Likewise.
5326         (nis_lookup): Don't loop endlessly if name is reduced to ".".
5328 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
5330         [BZ #2182]
5331         * math/s_cacosh.c: Return values from positive branch.
5332         * math/s_cacoshf.c: Likewise.
5333         * math/s_cacoshl.c: Likewise.
5335         [BZ #2883]
5336         * sysvipc/sys/msg.h: Change return value to ssize_t.
5337         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5338         * sysvipc/msgrcv.c: Likewise.
5339         * include/sys/msg.h: Likewise.
5341         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
5342         test introduced in patch for bz #661.
5343         (getgrouplist): Simplify code a bit.  Don't allocate one additional
5344         element for NEWGROUPS.
5346         [BZ #2908]
5347         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
5348         'f', use '1' as leading digit not '\1'.
5349         * stdio-common/Makefile (tests): Add bug16.
5350         * stdio-common/bug16.c: New file.
5352         [BZ #2914]
5353         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
5354         and don't try to open it.  The patch introducing the macro
5355         contained a bug and used the same file name as the new file
5356         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
5357         this out completely.
5359         [BZ #2926]
5360         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
5361         Patch by Jerry James <Jerry.James@usu.edu>.
5363         * rt/Makefile (tests): Add tst-clock2.
5364         * rt/tst-clock2.c: New file.
5366         [BZ #2978]
5367         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
5368         function and its parameters and pass it to new thread.
5369         (__gai_notify): Add support for alternative waiting for completion.
5370         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
5371         waiting for completion.
5372         * resolv/getaddrinfo_a.c: Likewise.
5373         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
5374         waiting for completion is used.
5375         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
5376         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
5377         * resolv/gai_error.c: Likewise.
5378         * resolv/gai_sigqueue.c: Likewise.
5380 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
5382         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
5383         errno to EBADF and return MACH_PORT_NULL.
5385 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
5387         [BZ #2980]
5388         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
5390 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
5392         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
5393         walk them instead of the symbol table.
5395 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
5397         [BZ #2098]
5398         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
5399         status of NSS calls, not the number of returned entries.
5401         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
5402         request_key, keyctl.
5404 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5406         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
5408 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
5410         * elf/tst-auditmod1.c: Fix typo in #error.
5412 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5414         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
5416         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
5418 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
5420         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
5421         that the directory is empty even on non-POSIX filesystems.
5423 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5425         * elf/dl-open.c (dl_open_worker): Add branch prediction.
5427         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
5428         the backend NSS module.  If backend setgrent call failed, don't have
5429         internal_setgrent fail.  Just remember this until it is needed.
5430         * nis/nss_compat/compat-pwd.c: Likewise.
5431         * nis/nss_compat/compat-spwd.c: Likewise.
5433 2006-07-30  Roland McGrath  <roland@redhat.com>
5435         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
5436         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
5437         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
5438         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
5440         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
5441         (nanosleep_not_cancel): New macro.
5442         (sigsuspend_not_cancel): new macro.
5443         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
5444         (do_sigsuspend): Define as inline.
5445         (__sigsuspend): Always use do_sigsuspend.
5446         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
5447         * include/signal.h: Declare __sigsuspend_nocancel.
5448         * sysdeps/posix/pause.c
5449         [! NO_CANCELLATION] (__pause_nocancel): New function.
5451         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
5452         * include/time.h (__nanosleep_nocancel): Likewise.
5454 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
5456         * locale/programs/localedef.c (add_to_readlist): Rename local
5457         variables to avoid confusion.
5459         * locale/programs/charmap.c (charmap_read): Emit error message if
5460         charmap couldn't be found or read.
5462 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
5464         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5465         __ASSUME_FUTEX_LOCK_PI.
5466         * include/time.h: Declare __nanosleep_nocancel.
5467         * include/unistd.h: Declare __pause_nocancel.
5469         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
5470         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
5471         get the __stack_chk_fail_local definition when it's needed.
5473 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
5475         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
5476         * dlfcn/bug-atexit3.c: New file.
5477         * dlfcn/bug-atexit3-lib.cc: New file.
5479         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
5480         used when the namespace is not the base namespace.
5482 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
5484         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
5485         (__new_exitfn): Bump it in every successful call.
5486         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
5487         more exit handlers, call them right away.
5488         * stdlib/exit.h: Declare __new_exitfn_called.
5490 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
5492         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
5493         calling registered handler.
5495         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
5496         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5497         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5498         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5499         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5500         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5501         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5502         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5504 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
5506         * elf/dl-lookup.c (dl_new_hash): New functions.
5507         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
5508         value here.  Compute new-style hash value.  Pass new hash value
5509         and reference to variable with the old value to do_lookup_x.
5510         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
5511         old-style hash table.
5512         (_dl_debug_bindings): Pass new hash value and reference to variable
5513         with the old value to do_lookup_x.
5514         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
5515         new-style hash value and change old-style hash value parameter to
5516         be a reference.  Reoganize functions to determine whether
5517         new-style hash table is available.  Only fall back on old-style
5518         table.  If old-style hash value is needed, compute it here.
5519         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
5520         entry.
5521         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
5522         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
5523         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
5524         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
5525         * Makeconfig: If linker supports --hash-style option add it to all
5526         linker command lines to build DSOs.
5527         * config.make.in: Define have-hash-style.
5528         * configure.in: Test whether linker supports --hash-style option.
5530         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
5531         * sysdeps/generic/ldsodefs.h: Adjust prototype.
5533 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
5535         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
5536         auditing.
5538         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
5539         RPATH of main map twice.
5541 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
5543         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
5544         look further, return original strings.
5545         (_nl_find_msg): Do not return found translation if the conversion
5546         failed.  Either signal the string is unusable or that something went
5547         wrong and the original should be used.
5549 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
5551         * string/_strerror.c (__strerror_r): Add __builtin_expect.
5553 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
5555         [BZ #2766]
5556         * misc/insremque.c (insque): Handle prev == NULL.
5557         * misc/Makefile (tests): Add tst-insremque.
5558         * misc/tst-insremque.c: New test.
5560 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
5562         [BZ #2792]
5563         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
5564         conflict with DL_DST_REQUIRED.
5566 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
5568         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
5569         match what Solaris does.
5571 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
5573         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
5574         local_setegid instead of seteuid and setegid.
5575         * sysdeps/generic/local-setxid.h: New file.
5576         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
5578         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
5580         * string/Makefile (tests): Add bug-envz1.
5581         * string/bug-envz1.c: New file.
5583 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
5585         * posix/regex_internal.c (re_string_skip_chars): If no character has
5586         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
5587         to the byte which couldn't be converted.
5588         (re_string_reconstruct): Don't clear valid_raw_len before calling
5589         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
5590         tip_context using re_string_context_at.
5591         * posix/Makefile: Add rules to build and run bug-regex25 test.
5592         * posix/bug-regex25.c: New test.
5594 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
5596         [BZ #2703]
5597         * string/envz.c (envz_strip): Correct erroneously reversed src
5598         and dest parameters to memmove() invocation.
5600 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
5602         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
5603         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
5604         to make sure the database has been already invalidated.
5605         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
5606         after the cache has been invalidated.  Use pthread_mutex_lock rather
5607         than pthread_mutex_trylock if fd != -1.
5608         * nscd/connections.c (invalidate_cache): Add fd argument, write
5609         response to fd if not calling prune_cache, pass fd to prune_cache.
5610         (handle_request): Adjust invalidate_cache caller.
5611         (nscd_run): Pass -1 as fd to prune_cache.
5613 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
5615         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
5616         the correct place.
5618 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
5620         * nscd/nscd.h (struct database_dyn): Add prunelock field.
5621         * nscd/cache.c (prune_cache): Take prunelock before starting the
5622         work.  Just return in case it is already taken.
5623         * nscd/connections.c (dbs): Initialize .prunelock.
5625 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
5627         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
5628         copying.  No need to allocate new array for group members.  Just
5629         move the pointers and update the size.
5631         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
5632         Avoid memory leak in case realloc fails.  Simplification for
5633         better code generation.
5635         Avoid deprecation warning because of libc_hidden_proto for
5636         inet6_option_alloc.
5637         * inet/inet6_option.c (option_alloc): Renamed from
5638         inet6_option_alloc.  Made static.
5639         (inet6_option_alloc): Now a simple wrapper around option_alloc.
5640         (inet6_option_append): Call option_alloc.
5641         * include/netinet/in.h: Remove libc_hidden_proto for
5642         inet6_option_alloc.
5644         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
5645         for cleanup when cb!=NULL [Coverity CID 233].
5647 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
5649         [BZ #2693]
5650         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
5651         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
5652         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
5653         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
5654         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
5655         and inet6_rth_getaddr.
5656         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
5657         array.
5658         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
5659         Mark inet6_option_* interfaces as deprecated.
5660         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
5661         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
5662         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
5663         inet6_rth_segments, and inet6_rth_getaddr.
5664         * inet/inet6_opt.c: New file.
5665         * inet/inet6_rth.c: New file.
5667         * inet/netinet/icmp6.h: Pretty printing.
5669         [BZ #2683]
5670         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
5672 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
5674         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
5675         doing it all here.  When server does not know the answer do not
5676         fail immediate, try parent first.
5678         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
5679         overflow test.
5681 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
5683         * nis/nis_call.c (__prepare_niscall): New function.  Split out
5684         from __do_niscall.
5685         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
5686         and exported.
5687         (__follow_path): New function.  Split out from nis_list.
5688         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
5689         _xdr_nis_result.
5690         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
5691         _xdr_nis_result.
5692         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
5693         and __follow_path.
5694         * nis/Versions: Export __prepare_niscall, __create_ib_request,
5695         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
5696         from libnsl for version GLIBC_PRIVATE.
5697         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
5698         Remove entry parameter from _nss_nisplus_parse_pwent and
5699         _nss_nisplus_parse_grent.
5700         * nis/nss_nisplus/nisplus-parser.c: Likewise.
5701         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
5702         again.  Rewrite getpwent handling to not use nis_first_entry and
5703         nis_next_entry.  Roll out own niscall handling.
5704         * nis/nss_nisplus/nisplus-grp.c: Likewise.
5706         * sunrpc/xdr_rec.c: Fix typo in comment.
5708 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
5710         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
5711         handling.
5713         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
5714         to allocate memory for my_pollfd.  Better initialization of
5715         cb_is_running.  Use TEMP_FAILURE_RETRY.
5717         * malloc/memusage.sh (memusageso): Add quotes.
5718         (memusagestat): Likewise.
5719         * debug/xtrace.sh (pcprofileso): Likewise.
5720         (pcprofiledump): Likewise.
5721         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
5722         replacement.
5723         * malloc/Makefile ($(objpfx)memusage): Likewise.
5725         * nis/nis_callback.c (__nis_create_callback): Calls to
5726         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
5727         asprintf call fails.
5729         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
5730         no uninitialized memory is passed to sendto.
5732 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
5734         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
5735         of snprintf+strdup.  Handle OOM.
5736         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
5737         cb->serv together.  Remove now obsolete free calls.
5738         (__nis_destroy_callback): Remove now obsolete free call.
5740 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
5742         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
5743         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
5744         and ULA respectively). Set precedence for IPv4 address to 10 as
5745         defined in RFC3484 for preferring IPv6.
5746         * posix/gai.conf: Update to match the new default tables.
5748 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
5750         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
5751         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
5752         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
5753         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
5755         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
5756         Removed.
5757         (init_nss_interface): Remove initialization of these variables.
5759 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
5761         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
5762         nis_free_directory forward to avoid duplication.
5764 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
5766         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
5767         rec_dirsearch returning NULL.
5768         (first_shoot): Handle __nis_finddirectory returning NULL.
5769         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
5771         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
5772         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
5774 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
5776         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
5777         pid changed.
5779 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
5781         * include/rpc/pmap_prot.h: Mark all functions as hidden.
5783         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
5784         * nscd/nscd_getgr_r.c: Likewise.
5786         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
5788         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
5789         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
5791         * stdlib/longlong.h (__clz_tab): Mark as hidden.
5793         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
5795         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
5797         * include/rpc/auth.h: Mark xdr_des_block_internal and
5798         xdr_opaque_auth_internal as hidden.
5800         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
5801         hidden.
5803         * include/rpc/xdr.h: Mark all _internal functions as hidden.
5805         * misc/getusershell.c (okshells): Don't use static initializers,
5806         do it dynamically.
5808         * stdlib/fmtmsg.c (keywords): Change type of len element to
5809         uint32_t to not waste space on 64bit machines.
5811         * locale/setlocale.c: Change _nl_category_names into a string.
5812         Add new _nl_category_name_idxs.  Change all users.
5813         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
5814         Declare _nl_category_name_idxs.
5815         * locale/findlocale.c: Adjust for _nl_category_names change.
5816         * locale/loadlocale.c: Likewise.
5817         * locale/newlocale.c: Likewise.
5818         * intl/dcigettext.c: Likewise.
5820         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
5821         (add_alias2): ...here.  New function.
5822         (__gconv_read_conf): Simplify builtin alias handling.
5823         (builtin_aliases): Convert to string to avoid relocations.
5824         * iconv/gconv_builtin.h: Add comment about correct formatting.
5826 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
5828         * resolv/res_debug.c (loc_ntoa): Make error const.
5830 2006-05-14  Andreas Schwab  <schwab@suse.de>
5832         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
5834 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
5836         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
5837         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
5838         sizeof (cpu_set_t).
5840 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
5842         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
5844         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
5846         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
5847         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
5849         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
5850         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
5852         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
5853         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
5854         xdr_cback_data.
5856         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
5857         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
5858         xdr_ypupdate_args.
5860         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
5861         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
5863         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
5864         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
5866         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
5867         * include/rpcsvc/nis_callback.h: New file.
5869         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
5870         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
5872         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
5873         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
5875         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
5876         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
5878         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
5879         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
5881         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
5882         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
5883         xdr_ypdelete_args.
5885         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
5886         __BEGIN_DECLS and __END_DECLS, the header is not installed.
5888         * nis/nis_error.c: Remove table of strings.  Use position
5889         independent mechanism.
5890         * nis/nis_error.h: New file.
5892 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
5894         * locale/programs/ld-time.c (time_finish): If wide era name or
5895         format aren't provided, set both wname and wformat to L"".
5897 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
5899         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
5900         results if the call was succesful.
5902         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
5904         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
5905         as hidden.
5907 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
5909         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
5911 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
5913         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
5914         caller makes sure this is not the case.
5915         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
5917 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
5919         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
5920         calls.
5922         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
5923         [Coverity CID 229, 230]
5925         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
5926         DGETTEXT calls.
5927         (hol_help): Likewise.  [Coverity CID 226, 227]
5929         * string/argz-replace.c (__argz_replace): Unconditionally call
5930         free on SRC.  [Coverity CID 225]
5932         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
5933         the return value of __nis_default_owner and __nis_default_group,
5934         it has been especially allocated.  [Coverity CID 224]
5936         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
5937         searchgroup and searchowner.  Significantly simplified.
5938         (__nis_default_owner): Remove duplication.  Do not locally copy the
5939         string before duplicating it.
5940         (__nis_default_group): Likewise.
5942         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
5943         we must clear the variable before calling __nisfind_server.
5945         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
5946         nis_getnames.  [Coverity CID 223]
5948         * locale/programs/locfile.c (locfile_read): Use alloca instead of
5949         xmalloc to allocate local repertoire name.  [Coverity CID 222]
5951         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
5952         allocate memory for the input to add_bytes.  [Coverity CID 221]
5954         * posix/wordexp.c (w_addword): Free word if realloc fails and it
5955         was allocated here.  [Coverity CID 219, 220]
5957         * posix/getconf.c (print_all): Free confstr data after printing.
5958         [Coverity CID 218]
5960         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
5961         list allocation fails.  [Coverity CID 215]
5963         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
5964         [Coverity CID 213]
5966         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
5967         string is NULL.  [Coverity CID 212]
5968         * argp/Makefile: Add rules to build and run bug-argp1.
5969         * argp/bug-argp1.c: New file.
5971         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
5972         end of string.
5973         * stdlib/canonicalize.c (__realpath): Likewise.
5975         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
5976         pointer.  [Coverity CID 206]
5978         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
5979         in statically linked code.
5980         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
5981         statically built code, be prepared to have no link map.
5982         [Coverity CID 205]
5984         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
5985         dgettext calls. [Coverity CID 204]
5987         * argp/argp-help.c (struct uparams): Remove valid member.  Change
5988         the one user.
5989         (uparam_names): Reduce size.  Avoid relative relocations.
5990         Moved to read-only segment.
5991         (fill_in_uparams): Update for new layout.
5993         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
5994         assumed to always be != NULL. [Coverity CID 202]
5996         * argp/argp-help.c (hol_entry_help): Remove some dead code
5997         [Coverity CID 200].
5999         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
6000         away a few more unconditional yperr2nss calls.
6001         (_nss_nis_getservbyname_r): Likewise.
6003 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
6005         * sysdeps/generic/ldsodefs.h: Remove support for non-core
6006         architectures.
6008         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
6009         that unused memory passed to sendto is nevertheless initialized.
6011         [BZ #2499]
6012         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
6013         possibly unaligned memory accesses.
6015         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
6016         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
6017         and __putlong respectively.  Correct buffer overflow check for
6018         NS_NOTIFY_OP.
6020         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
6022         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
6023         (send_dg): Rewrite error handling to be more compact and avoid
6024         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
6026         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
6028         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
6029         instead of ns_get16.
6030         (res_queriesmatch): Likewise.  Minor optimization.
6032         [BZ #2499]
6033         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
6034         __libc_res_nsend might reallocate the buffer for the answer.  In
6035         this case we have to reload the HP pointer.
6037 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6039         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
6040         some branch prediction hints.
6042         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
6043         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6044         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6045         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6046         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6047         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6048         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6049         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6051 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6053         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
6054         by a GOT relocation to make Scrt1.o position independent.
6055         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6057         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
6058         six system call parameters.
6059         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6061 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6063         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
6064         malloc&bzero.
6066         * sunrpc/svc_udp.c (BZERO): Remove definition.
6067         (CALLOC): Define.
6068         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
6070         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
6071         (des_SPtrans): Use uint32_t type.
6072         (des_skb): Likewise.
6074         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
6076 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
6078         [BZ #2509]
6079         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
6080         on 32-bit arches.
6082 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6084         * locale/programs/ld-address.c (address_finish): Fix one more
6085         place where the iso639 array might be accessed beyond the limits.
6087 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
6089         * nis/nis_table.c (nis_list): Avoid clearing res twice before
6090         filling it for the first time.
6092         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
6093         Adjust all callers.
6094         Free res object content before returning.
6096         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
6098         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
6099         client->cl_auth.
6101         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
6102         cleanup for initial thread, just the free call on TVP.
6104         * nscd/gai.c (__getline): Define.
6107 See ChangeLog.16 for earlier changes.