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