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