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