(getaddrinfo): Rewrite to avoid loop over gaih array. There is only
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2006-04-16  Ulrich Drepper  <drepper@redhat.com>
2
3         * include/ifaddrs.h: Define struct in6addrinfo.
4         Add two more parameters to __check_pf.
5         * sysdeps/unix/sysv/linux/check_pf.c: When using the netlink
6         interface, determine whether IPv6 addresses are deprecated or
7         temporary.  Create array of those addresses.
8         * inet/check_pf.c: Always tell caller there are no depracated
9         and temporary addresses.
10         * sysdeps/posix/getaddrinfo.c: Pretty printing.
11         (struct sort_result): Add source_addr_flags field.
12         (rfc3484_sort): Implement rule 3 and 7.
13         (in6aicmp): New function.
14         (getaddrinfo): Call __check_pf also when we need info about IPv6
15         source addresses.  When creating array for sorting addresses,
16         look up deprecated and temporary addresses returned by __check_pf
17         and add flag if necessary.
18
19 2006-04-15  Ulrich Drepper  <drepper@redhat.com>
20
21         * sysdeps/posix/getaddrinfo.c: Fix precedence for IP V4-to-V6
22         mapped addresses.
23         * posix/Makefile (tests): Add tst-rfc3484-2.
24         * posix/tst-rfc3484-2.c: New file.
25
26         * nis/nss_nisplus/nisplus-publickey.c: Minor cleanups throughout.
27         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_parse_servent):
28         Significant cleanups.  Correct adjustment for pointer array.
29         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_parse_rpcent):
30         Likewise.
31         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_parse_protoent):
32         Likewise.
33         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_parse_netent):
34         Likewise.
35         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
36         Likewise.
37
38 2006-04-14  Ulrich Drepper  <drepper@redhat.com>
39
40         * sysdeps/unix/sysv/linux/syscalls.list: Add tee syscall.
41         * sysdeps/unix/sysv/linux/Versions: Export tee@GLIBC_2.5.
42         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Add prototype for tee.
43         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
48         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
49         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
50
51         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_parse_etherent):
52         Minor cleanups.  NUL terminate name string.
53
54         * nis/Versions: No need to export _nss_nisplus_parse_grent,
55         _nss_nisplus_parse_pwent, and _nss_nisplus_parse_spent.
56
57         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_parse_aliasent):
58         Avoid unnecessary allocation.  Fix adjustment for pointer value.
59
60         * nis/nss_nisplus/nisplus-parser.c: Cleanups, use NIS_RES_*
61         macros.  Avoid unnecessary allocation.
62
63         * sysdeps/unix/sysv/linux/sync_file_range.c: New file.
64
65 2006-04-13  Ulrich Drepper  <drepper@redhat.com>
66
67         * nis/Makefile (libnsl-routimes): Add nss-default.
68         * nis/Versions (libnsl) [GLIBC_PRIVATE]: Export _nsl_default_nss.
69         * nis/nss-nis.c: Move /etc/default/nss handling to...
70         * nis/nss-default.c: ...here.  New file.
71         * nis/libnsl.h: New file.
72         * nis/nss-nis.h: Remove NSS_FLAG_* definitions and _nis_default_nss
73         plus auxilary definitions.
74         * nis/nss_nis/nis-initgroups.c: Use _nsl_default_nss instead of
75         _nis_default_nss.
76         * nis/nss_nis/nis-service.c: Likewise.
77
78 2006-04-07  Steven Munroe  <sjmunroe@us.ibm.com>
79
80         * sysdeps/powerpc/fpu/bits/mathinline.h
81         [__WORDSIZE == 64 || _ARCH_PWR4]: Define __CPU_HAS_FSQRT.
82         (__ieee754_sqrt): Fix comment.
83         (__ieee754_sqrtf): Fix comment.
84         * sysdeps/powerpc/fpu/e_sqrt.c (__ieee754_sqrt): Fix comment.
85         Check __CPU_HAS_FSQRT instead of dl_hwcap.
86         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Likewise.
87
88 2006-04-08  Ulrich Drepper  <drepper@redhat.com>
89
90         * inet/inet_ntoa.c: Rewrite to use TLS instead of TSD.
91
92         * nis/nss_nis/nis-alias.c: Optimize use of yperr2nss.  Avoid calling
93         it for YPERR_SUCCESS.  Minor cleanups.  Add __builtin_expect.
94         * nis/nss_nis/nis-ethers.c: Likewise.
95         * nis/nss_nis/nis-grp.c: Likewise.
96         * nis/nss_nis/nis-hosts.c: Likewise.
97         * nis/nss_nis/nis-initgroups.c: Likewise.
98         * nis/nss_nis/nis-netgrp.c: Likewise.
99         * nis/nss_nis/nis-network.c: Likewise.
100         * nis/nss_nis/nis-proto.c: Likewise.
101         * nis/nss_nis/nis-publickey.c: Likewise.
102         * nis/nss_nis/nis-pwd.c: Likewise.
103         * nis/nss_nis/nis-rpc.c: Likewise.
104         * nis/nss_nis/nis-service.c: Likewise.
105         * nis/nss_nis/nis-spwd.c: Likewise.
106
107         * nis/nis_ping.c: Remove unnecessary conditionals before
108         nis_freeresult calls.
109         * nis/nis_ismember.c: Likewise.
110
111         * elf/rtld.c (process_envvars): Fix handling of LD_POINTER_GUARD.
112         Reported by genesh@comcast.net.
113
114         * io/fts.c (fts_build): Call fts_lfree in the two error cases
115         after the loop [Coverity CID 187].
116
117         * nis/nis_getservlist.c (nis_getservlist): Also free lookup result
118         in error case [Coverity CID 189].
119
120         * nis/nis_getservlist.c (nis_getservlist): One more free call
121         needed [Coverity CID 190].
122
123 2006-04-07  Jakub Jelinek  <jakub@redhat.com>
124
125         * sysdeps/generic/unwind-dw2-fde.c (end_fde_sort): Remove
126         unnecessary test for accu->linear == NULL [Coverity CID 79].
127
128 2006-04-07  Ulrich Drepper  <drepper@redhat.com>
129
130         * sysdeps/posix/tempname.c (__gen_tempname): Change attempts_min
131         into a macro.  Use preprocessor to decide how to initialize
132         attempts [Coverity CID 67].
133
134         * io/fts.c (fts_build): Comment out dead code [Coverity CID 68].
135
136         * sunrpc/rpc_parse.c (def_union): Comment out dead code
137         [Coverity CID 70].
138
139         * locale/programs/linereader.c (lr_token): Remove duplicate
140         handling of EOF [Coverity CID 71].
141
142         * locale/programs/ld-numeric.c (numeric_read) [case tok_grouping]:
143         We bail out early if ignore_content is set, so there is no need to
144         check it later again [Coverity CID 72].
145
146         * inet/inet6_option.c (inet6_option_find): Check *tptrp for NULL,
147         not tptrp [Coverity CID 73].
148
149         * inet/inet6_option.c (inet6_option_next): Check *tptrp for NULL,
150         not tptrp [Coverity CID 74].
151
152         * misc/tsearch.c (__tsearch): Don't rotate tree if memory
153         allocation failed [Coverity CID 78].
154
155 2006-04-07  Jakub Jelinek  <jakub@redhat.com>
156
157         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix typo in
158         the last change.
159
160 2006-04-07  Ulrich Drepper  <drepper@redhat.com>
161
162         * inet/rexec.c (rexec_af): If we have no canonical name don't
163         proceed further [Coverity CID 86].
164
165         * iconv/iconv_charmap.c (process_fd): Initialize inptr from inbuf,
166         not to NULL [Coverity CID 88].
167
168 2006-04-06  Ulrich Drepper  <drepper@redhat.com>
169
170         * elf/ldconfig.c (main): Use rawmemchr instead of strchr.
171         * nis/nis_call.c (rec_dirsearch): Likewise.
172         * nis/nis_local_names.c (nis_local_host): Likewise.
173         (nis_local_directory): Likewise.
174         * intl/explodename.c (_nl_explode_name): Likewise.
175
176         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Don't handle
177         DW_CFA_GNU_window_save if it obviously cannot work [Coverity CID 102].
178
179         * locale/programs/ld-address.c (address_finish): Fix conditions
180         for error messages [Coverity CID 104].
181
182         * libio/fmemopen.c (fmemopen): Free stream memory in case of
183         invalid length [Coverity CID 106].
184
185         * nss/nss_files/files-key.c (search): Close stream before
186         successful return [Coverity CID 107].
187
188         * io/fts.c (fts_open): Don't allocate parent if *argv==NULL
189         [Coverity CID 108].
190
191         * sunrpc/rpc_cout.c (inline_struct): Free sizestr after use
192         [Coverity CID 110, 109].
193
194         * sunrpc/rpc_scan.c (docppline): Free file string if it is not
195         going to be used [Coverity CID 111].
196
197         * sysdeps/unix/sysv/linux/getsourcefilter.c (getsourcefilter): Free
198         memory if socket level value cannot be retrieved [Coverity CID 112].
199
200         * nis/nis_clone_dir.c (nis_clone_directory): Free all memory in
201         error case [Coverity CID 114].
202
203         * nis/nis_clone_res.c (nis_clone_result): Free all memory in the
204         error cases [Coverity CID 115].
205
206         * sunrpc/rpc_parse.c (get_definition): Free defp if tok ==
207         TOK_EOF [Coverity CID 116].
208
209         * sysdeps/unix/sysv/linux/setsourcefilter.c (setsourcefilter): Free
210         memory if socket level value cannot be retrieved [Coverity CID 117].
211
212         * elf/cache.c (save_cache): Initialize pad to avoid writing
213         uninitialized data to disk.
214
215         * elf/cache.c (save_cache): Free file_entries_new [Coverity CID 118].
216
217         * intl/finddomain.c (_nl_find_domain): Avoid strdup of expand
218         locale name, use strdupa.  Remove free call [Coverity CID 119].
219
220         * sunrpc/rpc_main.c (generate_guard): Avoid extra allocation and
221         the resulting leak [Coverity CID 121].
222
223         * sunrpc/rpc_main.c (mkfile_output): Free all allocated memory
224         [Coverity CID 122].
225
226         * sunrpc/rpc_main.c (h_output): Free guard after we are done
227         [Coverity CID 123].
228
229         * sunrpc/svc_udp.c (cache_set): Free victim if newbuf allocation
230         fails [Coverity CID 126].
231
232         * sunrpc/svc_udp.c (svcudp_enablecache): Free memory in error
233         cases [Coverity CID 127].
234
235         * nis/nis_table.c (__create_ib_request): Free ibreq in case strdup
236         fails [Coverity CID 128].
237
238         * nis/nis_getservlist.c (nis_getservlist): Free all memory in case
239         of an error [Coverity CID 130, 129].
240
241         * nis/nis_print_group_entry.c (nis_print_group_entry): If
242         nis_lookup call failed, return.  Free lookup result in error
243         cases [Coverity CID 131].
244
245         * nis/nis_removemember.c (nis_removemember): Free all memory in
246         error cases [Coverity CID 132].
247
248         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
249         Always free lookup result [Coverity CID 134].
250
251         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
252         Always free lookup result [Coverity CID 135].
253
254         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_getntohost_r):
255         Always free lookup result [Coverity CID 136].
256
257         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
258         Before retrying, free old result [Coverity CID 137].
259
260         * nis/nss_nisplus/nisplus-publickey.c (_nss_nisplus_netname2user):
261         Free res in case UID is zero [Coverity CID 138].
262
263         * nis/ypclnt.c (yp_update): Always free master string
264         [Coverity CID 140].
265
266         * nis/nis_creategroup.c (nis_creategroup): Free all memory in
267         error cases [Coverity CID 143, 142, 141].
268
269         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Free result
270         if yp_match call succeeded [Coverity CID 155].
271
272         * nis/nss_nis/nis-publickey.c (_nss_nis_getsecretkey): Free string
273         allocated in yp_match at all times [Coverity CID 157, 156].
274
275         * nscd/nscd.c (write_pid): Close stream also if writing failed
276         [Coverity CID 165].
277
278         * nis/nis_table.c (nis_add_entry): Move test for NULL parameter
279         ahead of first use [Coverity CID 167].
280
281         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Move test
282         for NULL parameter ahead of first use [Coverity CID 168].
283
284         * intl/finddomain.c (_nl_find_domain): We never return NULL if we
285         found the locale [Coverity CID 169].
286
287         * inet/getnameinfo.c (getnameinfo): __getservbyport_r does not set
288         herrno [Coverity CID 178].
289
290         * nis/nis_checkpoint.c (nis_checkpoint): Don't access and returned
291         freed object [Coverity CID 182].
292
293 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
294             Jakub Jelinek  <jakub@redhat.com>
295
296         * posix/bits/unistd.h (readlink, __readlink_chk, __readlink_alias):
297         Change return value to ssize_t.
298
299 2006-04-04  Roland McGrath  <roland@redhat.com>
300
301         * string/Makefile (CFLAGS-inl-tester.c): New variable.
302         (CFLAGS-tst-inlcall.c): Likewise.
303
304         [BZ #2508]
305         * nscd/Makefile ($(objpfx)nscd_stat.o: sysincludes): Move setting
306         inside [$(have-selinux) = yes].
307         ($(objpfx)selinux.o: sysincludes): Likewise.
308
309         * iconvdata/Makefile (generate-8bit-table): Use LC_ALL=C.
310         (generate-8bit-gap-table): Likewise.
311         ($(objpfx)iso8859-7jp.stmp): Likewise.
312         Reported by S.Ã\87\9flar Onur <caglar@uludag.org.tr>.
313
314 2006-03-21  Joseph S. Myers  <joseph@codesourcery.com>
315
316         * soft-fp/adddf3.c: Add libgcc exception.  Update FSF address.
317         * soft-fp/addsf3.c: Likewise.
318         * soft-fp/addtf3.c: Likewise.
319         * soft-fp/divdf3.c: Likewise.
320         * soft-fp/divsf3.c: Likewise.
321         * soft-fp/divtf3.c: Likewise.
322         * soft-fp/double.h: Likewise.
323         * soft-fp/eqdf2.c: Likewise.
324         * soft-fp/eqsf2.c: Likewise.
325         * soft-fp/eqtf2.c: Likewise.
326         * soft-fp/extenddftf2.c: Likewise.
327         * soft-fp/extended.h: Likewise.
328         * soft-fp/extendsfdf2.c: Likewise.
329         * soft-fp/extendsftf2.c: Likewise.
330         * soft-fp/fixdfdi.c: Likewise.
331         * soft-fp/fixdfsi.c: Likewise.
332         * soft-fp/fixsfdi.c: Likewise.
333         * soft-fp/fixsfsi.c: Likewise.
334         * soft-fp/fixtfdi.c: Likewise.
335         * soft-fp/fixtfsi.c: Likewise.
336         * soft-fp/fixunsdfdi.c: Likewise.
337         * soft-fp/fixunsdfsi.c: Likewise.
338         * soft-fp/fixunssfdi.c: Likewise.
339         * soft-fp/fixunssfsi.c: Likewise.
340         * soft-fp/fixunstfdi.c: Likewise.
341         * soft-fp/fixunstfsi.c: Likewise.
342         * soft-fp/floatdidf.c: Likewise.
343         * soft-fp/floatdisf.c: Likewise.
344         * soft-fp/floatditf.c: Likewise.
345         * soft-fp/floatsidf.c: Likewise.
346         * soft-fp/floatsisf.c: Likewise.
347         * soft-fp/floatsitf.c: Likewise.
348         * soft-fp/floatundidf.c: Likewise.
349         * soft-fp/floatundisf.c: Likewise.
350         * soft-fp/floatunditf.c: Likewise.
351         * soft-fp/floatunsidf.c: Likewise.
352         * soft-fp/floatunsisf.c: Likewise.
353         * soft-fp/floatunsitf.c: Likewise.
354         * soft-fp/gedf2.c: Likewise.
355         * soft-fp/gesf2.c: Likewise.
356         * soft-fp/getf2.c: Likewise.
357         * soft-fp/ledf2.c: Likewise.
358         * soft-fp/lesf2.c: Likewise.
359         * soft-fp/letf2.c: Likewise.
360         * soft-fp/muldf3.c: Likewise.
361         * soft-fp/mulsf3.c: Likewise.
362         * soft-fp/multf3.c: Likewise.
363         * soft-fp/negdf2.c: Likewise.
364         * soft-fp/negsf2.c: Likewise.
365         * soft-fp/negtf2.c: Likewise.
366         * soft-fp/op-1.h: Likewise.
367         * soft-fp/op-2.h: Likewise.
368         * soft-fp/op-4.h: Likewise.
369         * soft-fp/op-8.h: Likewise.
370         * soft-fp/op-common.h: Likewise.
371         * soft-fp/quad.h: Likewise.
372         * soft-fp/single.h: Likewise.
373         * soft-fp/soft-fp.h: Likewise.
374         * soft-fp/sqrtdf2.c: Likewise.
375         * soft-fp/sqrtsf2.c: Likewise.
376         * soft-fp/sqrttf2.c: Likewise.
377         * soft-fp/subdf3.c: Likewise.
378         * soft-fp/subsf3.c: Likewise.
379         * soft-fp/subtf3.c: Likewise.
380         * soft-fp/truncdfsf2.c: Likewise.
381         * soft-fp/trunctfdf2.c: Likewise.
382         * soft-fp/trunctfsf2.c: Likewise.
383         * soft-fp/unorddf2.c: Likewise.
384         * soft-fp/unordsf2.c: Likewise.
385         * soft-fp/unordtf2.c: Likewise.
386
387 2006-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
388
389         [BZ #2505]
390         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR4]:
391         Define atomic_read_barrier and __ARCH_REL_INSTR using lwsync.
392
393 2006-04-03  Andreas Schwab  <schwab@suse.de>
394
395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Terminate FDE
396         before syscall.
397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
398
399         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Test for <asm/elf.h>
400         with [! _ASM_POWERPC_ELF_H] as well as [!__PPC64_ELF_H].
401
402 2006-04-03  Roland McGrath  <roland@frob.com>
403
404         [BZ #2507]
405         * mach/Machrules (.udeps-targets): New variable.
406         ($(objpfx)%.udeps static pattern rule): Use it to avoid \ inside
407         quoted string.
408
409 2006-04-02  Ulrich Drepper  <drepper@redhat.com>
410
411         [BZ #2501]
412         * nscd/nscd_helper.c (get_mapping): Rewrite code to send request
413         so it uses send and not writev.
414
415         [BZ #2418]
416         * sysdeps/unix/sysv/linux/bits/socket.h: Use larger of PATH_MAX and
417         page size when allocating buffer.
418
419 2006-04-01  Ulrich Drepper  <drepper@redhat.com>
420
421         [BZ #2415]
422         * elf/ldd.bash.in: Create better error messages for invalid input
423         files.
424
425         [BZ #2477]
426         * sysdeps/unix/sysv/linux/i386/sysdep.h: Create correct LOADARGS_*
427         macros for non-shared position-independent code.
428
429         [BZ #2472]
430         * bits/siginfo.h: Fix typo in ILL_ILLOPN definition.
431
432         [BZ #2450]
433         * posix/unistd.h: Match return value of readlink to what POSIX
434         says these days.
435         * io/readlink.c: Likewise.
436         * io/readlinkat.c: Likewise.
437         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
438
439         [BZ #2498]
440         * nscd/connections.c (main_loop_poll): If the connection cannot be
441         accepted because of user-imposed limits close the descriptor.
442
443 2006-03-31  Ulrich Drepper  <drepper@redhat.com>
444
445         * sysdeps/unix/sysv/linux/Versions: Export sync_file_range with
446         GLIBC_2.5.
447         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove
448         LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT.
449         Declare sync_file_range and splice.
450         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
451         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
452         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
453         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
455         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
456         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
457         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add
458         sync_file_range.
459         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: New file.
460         * sysdeps/unix/sysv/linux/syscalls.list: Add splice syscall.
461         * sysdeps/unix/sysv/linux/Versions: Export splice with GLIBC_2.5
462         version.
463         * Versions.def: Define GLIBC_2.5 for libc.
464
465 2006-03-29  Ulrich Drepper  <drepper@redhat.com>
466
467         * sysdeps/posix/getaddrinfo.c (gaih_inet): No need to duplicate
468         'name' for 'canon'.  The final allocation will happen later.
469
470 2006-03-27  Ulrich Drepper  <drepper@redhat.com>
471
472         * sysdeps/unix/sysv/linux/kernel-features.h: Remove support for
473         architectures which moved to ports.
474
475         * sysdeps/unix/sysv/linux/kernel-features.h: Add
476         __ASSUME_SET_ROBUST_LIST.
477
478 2006-03-27  Jakub Jelinek  <jakub@redhat.com>
479
480         * wcsmbs/wchar.h (btowc, wctob): Don't optimize in C++.
481
482 2006-03-24  David S. Miller  <davem@sunset.davemloft.net>
483
484         * sysdeps/sparc/sparc32/bits/atomic.h
485         (__v9_compare_and_exchange_val_32_acq): Add "memory" clobber.
486         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
487         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_acq):
488         Likewise.
489         * sysdeps/sparc/sparc64/bits/atomic.h
490         (__arch_compare_and_exchange_val_32_acq,
491         __arch_compare_and_exchange_val_64_acq, atomic_exchange_acq): Likewise.
492
493 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
494
495         * nis/nss_nisplus/nisplus-proto.c (_nss_create_tablename): Check the
496         return value of malloc rather than the static var again.
497         * nis/nss_nisplus/nisplus-grp.c (_nss_create_tablename): Likewise.
498         * nis/nss_nisplus/nisplus-network.c (_nss_create_tablename): Likewise.
499         * nis/nss_nisplus/nisplus-ethers.c (_nss_create_tablename): Likewise.
500         * nis/nss_nisplus/nisplus-rpc.c (_nss_create_tablename): Likewise.
501         * nis/nss_nisplus/nisplus-service.c (_nss_create_tablename): Likewise.
502         * nis/nss_nisplus/nisplus-hosts.c (_nss_create_tablename): Likewise.
503         * nis/nss_nisplus/nisplus-alias.c (_nss_create_tablename): Likewise.
504         * nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename): Likewise.
505
506 2006-03-25  Ulrich Drepper  <drepper@redhat.com>
507
508         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Add POLLMSG,
509         POLLREMOVE, and POLLRDHUP.
510         * sysdeps/unix/sysv/linux/bits/poll.h: Add POLLREMOVE and POLLRDHUP.
511
512 2006-03-24  Ulrich Drepper  <drepper@redhat.com>
513
514         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define
515         LINUX_FADV_ASYNC_WRITE and LINUX_FADV_WRITE_WAIT.
516         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
517         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
518         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
519         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
520         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
521         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
522         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
523
524 2006-03-17  Roland McGrath  <roland@redhat.com>
525
526         * elf/rtld.c (dl_main): Run final self-relocation after setting up TLS.
527         From Alexandre Oliva <aoliva@redhat.com>.
528
529         * elf/tst-audit2.c: New file.
530         * elf/Makefile (tests): Add it.
531         ($(objpfx)tst-audit2.out): New target.
532         (tst-audit2-ENV): New variable.
533
534         * elf/tst-leaks1.c: Include <stdio.h>.
535
536 2006-03-16  Roland McGrath  <roland@redhat.com>
537
538         * sysdeps/unix/sysv/linux/alpha/getcontext.S (__getcontext_x):
539         Use .set noat to quiet assembler warning.
540
541         * math/gen-libm-test.pl (parse_args): Take function name for pretty
542         output as an argument.
543         (generate_testfile): Pass it the name given in the START macro.
544
545         [BZ #2466]
546         * math/libm-test.inc (llrint_test, llround_test): Fix last change to
547         protect large-precision cases with [LDBL_MANT_DIG > 100].
548         (llrint_test_tonearest, llrint_test_towardzero): Likewise.
549         (llrint_test_downward, llrint_test_upward): Likewise.
550
551 2006-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
552             Alan Modra  <amodra@bigpond.net.au>
553
554         [BZ #2466]
555         * math/libm-test.inc (llrint_test, llround_test) [TEST_LDOUBLE]:
556         Add new test values.
557         (llrint_test_tonearest, llrint_test_towardzero, llrint_test_downward,
558         llrint_test_upward): New functions.
559         (main): Call them.
560
561         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Handle
562         rounding that spans doubles in IBM long double format.
563         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
564         * sysdeps/powerpc/powerpc64/fpu/s_llrintl.S: Removed.
565         * sysdeps/powerpc/powerpc64/fpu/s_llroundl.S: Removed.
566         * sysdeps/powerpc/powerpc64/fpu/s_lrintl.S: Removed.
567         * sysdeps/powerpc/powerpc64/fpu/s_lroundl.S: Removed.
568
569 2006-03-16  Roland McGrath  <roland@redhat.com>
570
571         * wcsmbs/wchar.h (__wcstol_internal, __wcstoul_internal): Declare these
572          only when we will use them, under [__OPTIMIZE__ && __GNUC__ >= 2].
573         (__wcstoll_internal, __wcstoull_internal_defined): Likewise.
574
575 2006-03-06  Steven Munroe  <sjmunroe@us.ibm.com>
576
577         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Add cfi_offset for spilling
578         of non-volatile floating-point registers to the stack (fp14-fp31).
579         * sysdeps/powerpc/powerpc32/gprsave0.S: Add cfi_offset for spilling of
580         non-volatile general-purpose registers to the stack (gpr13-gpr31).
581         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Add cfi_offset
582         for non-volatiles gpr30 - grp31 spilled to the stack.
583         * sysdeps/powerpc/powerpc64/memcpy.S: Add cfi_offset for non-volatile
584         gpr31 spill to the stack.
585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
586         Add cfi_offset for non-volatile gpr31 spill to the stack.
587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Add cfi_offset
588         for non-volatiles gpr28 - grp31 spilled to the stack.
589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Add
590         cfi_adjust_cfa_offset when a frame is stacked.
591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
592         (__novec_setcontext) : Add cfi_offset for non-volatile gpr31 spill
593         add LR saved to the stack.  Add cfi_adjust_cfa_offset when frame is
594         stacked.
595         (__setcontext) : Add cfi_offset for non-volatile gpr31 spill to
596         the stack.
597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
598         (__novec_swapcontext) : Add cfi_offset for non-volatile gpr31 spill
599         add LR saved to the stack.
600         (__swapcontext) : Add cfi_offset for non-volatile gpr31 spill add LR
601         saved to the stack.  Add cfi_adjust_cfa_offset when frame is stacked.
602
603 2006-03-07  Jakub Jelinek  <jakub@redhat.com>
604
605         [BZ #2423]
606         * math/libm-test.inc [TEST_LDOUBLE] (ceil_test, floor_test, rint_test,
607         round_test, trunc_test): Only run some of the new tests if
608         LDBL_MANT_DIG > 100.
609
610 2006-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
611             Alan Modra  <amodra@bigpond.net.au>
612
613         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround, __fesetround):
614         Define inline implementations.
615         * sysdeps/powerpc/fpu/fegetround.c: Use __fegetround.
616         * sysdeps/powerpc/fpu/fesetround.c: Use __fesetround.
617
618         * sysdeps/powerpc/fpu/math_ldbl.h: New file.
619
620         [BZ #2423]
621         * math/libm-test.inc [TEST_LDOUBLE] (ceil_test, floor_test, rint_test,
622         round_test, trunc_test): Add new tests.
623         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
624         (EXTRACT_IBM_EXTENDED_MANTISSA, INSERT_IBM_EXTENDED_MANTISSA):
625         Removed, replaced with ...
626         (ldbl_extract_mantissa, ldbl_insert_mantissa, ldbl_pack, ldbl_unpack,
627         ldbl_canonicalise, ldbl_nearbyint): New functions.
628         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Replace
629         EXTRACT_IBM_EXTENDED_MANTISSA and INSERT_IBM_EXTENDED_MANTISSA
630         with ldbl_extract_mantissa and ldbl_insert_mantissa.
631         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
632         Replace EXTRACT_IBM_EXTENDED_MANTISSA with ldbl_extract_mantissa.
633         (ldbl_extract_mantissa, ldbl_insert_mantissa): New inline functions.
634         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Handle rounding
635         that spans doubles in IBM long double format.
636         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
637         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
638         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
639         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
640         * sysdeps/powerpc/powerpc64/fpu/s_rintl.S: File removed.
641
642 2004-12-09  Randolph Chung  <tausq@debian.org>
643
644         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Don't
645         define for hppa, which doesn't support this syscall.
646
647 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
648
649         [BZ #2451]
650         * elf/dl-load.c (open_verify): Add free_name argument, if true, free
651         name before calling lose.
652         (open_path): Adjust caller.
653         (_dl_map_object): Adjust callers.  Free name_copy before calling
654         _dl_signal_error.
655         * elf/Makefile: Add rules to build and run tst-leaks1.
656         * elf/tst-leaks1.c: New test.
657
658 2006-03-06  Roland McGrath  <roland@redhat.com>
659
660         * version.h (VERSION): 2.4
661         * README.template: Update for 2.4.
662         * README: Regenerated.
663         * manual/install.texi (Configuring and compiling): Separate build
664         directory is mandatory.  Use glibc-2.4 in example.
665         Update --enable-add-ons description.
666         (Supported Configurations): Remove section.
667         * INSTALL: Regenerated.
668
669         * sysdeps/unix/sysv/linux/x86_64/sysconf.c
670         (handle_intel, handle_amd): Add __attribute__ ((noinline)).
671         * sysdeps/unix/sysv/linux/i386/sysconf.c
672         (handle_i486, handle_intel, handle_amd): Likewise.
673
674         * sysdeps/unix/sysv/linux/i386/sysconf.c (__sysconf): Don't handle
675         _SC_CPUTIME and _SC_THREAD_CPUTIME here.
676         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Likewise.
677
678 2006-03-05  Roland McGrath  <roland@redhat.com>
679
680         * malloc/malloc.c (MALLOC_ALIGNMENT): Revert to (2 * SIZE_SZ) value.
681         The correct value differs only on powerpc32, and for now changing it
682         there is causing more trouble than it's worth.
683
684         * malloc/arena.c: Add compile-time sanity check on padding calculation.
685
686 2006-03-05  Jakub Jelinek  <jakub@redhat.com>
687
688         * malloc/arena.c (heap_info): Adjust the padding size if
689         MALLOC_ALIGNMENT > 2 * SIZE_SZ.
690
691 2006-03-05  Roland McGrath  <roland@frob.com>
692
693         * sysdeps/mach/hurd/faccessat.c: New file.
694         * sysdeps/mach/hurd/fchmodat.c: New file.
695         * sysdeps/mach/hurd/fchownat.c: New file.
696         * sysdeps/mach/hurd/fxstatat.c: New file.
697         * sysdeps/mach/hurd/fxstatat64.c: New file.
698         * sysdeps/mach/hurd/linkat.c: New file.
699         * sysdeps/mach/hurd/mkdirat.c: New file.
700         * sysdeps/mach/hurd/openat.c: New file.
701         * sysdeps/mach/hurd/openat64.c: New file.
702         * sysdeps/mach/hurd/symlinkat.c: New file.
703         * sysdeps/mach/hurd/unlinkat.c: New file.
704         * sysdeps/mach/hurd/xmknod.c (__xmknod): Just call __xmknodat.
705         Guts move to ...
706         * sysdeps/mach/hurd/xmknodat.c: ... here, new file.
707
708         * hurd/lookup-at.c: New file.
709         * hurd/Makefile (routines): Add it.
710         * hurd/hurd/fd.h: Declare __file_name_lookup_at,
711         __file_name_split_at and __directory_name_split_at.
712
713         * hurd/hurd/lookup.h: Declare {,__}hurd_directory_name_split.
714
715         * hurd/hurdlookup.c (__hurd_directory_name_split): Use __memrchr
716         unconditionally.
717
718         * sysdeps/mach/hurd/open.c: Define {,__,__libc_,}open64 as aliases.
719         * sysdeps/mach/hurd/open64.c: New file.
720
721         * sysdeps/posix/sysconf.c (__sysconf): Use #if _POSIX_FOO > 0
722         rather than #ifdef _POSIX_FOO for options.  We should return -1
723         at runtime for an option defined to 0 at compile time.
724
725         * sysdeps/mach/hurd/bits/posix_opt.h: Define many missing options,
726         many to -1 or 0.
727
728 2006-03-05  Roland McGrath  <roland@redhat.com>
729
730         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
731         [__NR_clock_getres || HP_TIMING_AVAIL]: Handle _SC_CPUTIME,
732         _SC_THREAD_CPUTIME.
733
734 2006-03-05  David S. Miller  <davem@sunset.davemloft.net>
735
736         * sysdeps/sparc/sparc32/dl-trampoline.S: Add CFI markings.
737         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
738         * sysdeps/sparc/sparc64/dl-trampoline.S: Likewise.
739         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
740         * sysdeps/sparc/sparc32/memchr.S: Rearrange code to reside
741         within ENTRY/END.
742         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
743         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
744         * sysdeps/sparc/sparc32/strcat.S: Likewise.
745         * sysdeps/sparc/sparc32/strchr.S: Likewise.
746         * sysdeps/sparc/sparc32/strcmp.S: Likewise.
747         * sysdeps/sparc/sparc32/strcpy.S: Likewise.
748         * sysdeps/sparc/sparc32/strlen.S: Likewise.
749         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
750         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
751         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Add CFI markings
752         and use __syscall_error.
753         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
754         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
755         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S: Use __syscall_error.
756         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
757         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
758         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
759         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Likewise.
760         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
761         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Rewrite to use
762         CFI markings and __syscall_error.
763         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
764         * sysdeps/unix/sysv/linux/sparc/sparc64/setcontext.S: Rearrange
765         code to reside within ENTRY/END.
766         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
767         * sysdeps/unix/sysv/linux/sparc/sysdep.c: New file.
768         * sysdeps/unix/sysv/linux/sparc/sysdep.S: File removed.
769         * sysdeps/unix/sysv/linux/sparc/rt-sysdep.c: New file.
770         * sysdeps/unix/sysv/linux/sparc/Makefile (librt-routines): Add it.
771
772         * shlib-versions: Use sparc64.*- for CPU patterns.
773
774 2006-03-05  Roland McGrath  <roland@frob.com>
775
776         * bits/resource.h (RLIMIT_SBSIZE, RLIMIT_AS, RLIMIT_VMEM): Define.
777
778         * sysdeps/mach/hurd/fdopendir.c (__fdopendir): Use O_DIRECTORY
779         to force directory check.
780         * sysdeps/mach/hurd/opendir.c (__opendir): Likewise.
781
782 2006-03-04  Roland McGrath  <roland@frob.com>
783
784         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Make sure high bits
785         of SEL are clear after copying %gs to low bits.
786         (_hurd_tls_fork): Likewise.
787
788 2006-03-03  Roland McGrath  <roland@redhat.com>
789
790         [BZ #2414]
791         * stdlib/tst-setcontext.c (f1): Take arguments of type int.
792
793 2006-03-02  Roland McGrath  <roland@redhat.com>
794
795         * sysdeps/unix/alpha/sysdep.h (PTR_MANGLE): Use __typeof in cast.
796
797 2006-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
798
799         * sysdeps/unix/sysv/linux/configure.in: Remove MIPS cases.  Allow
800         libc_cv_slibdir et al. to be overridden.
801         * sysdeps/unix/sysv/linux/configure: Regenerated.
802
803 2005-12-27  Jakub Jelinek  <jakub@redhat.com>
804
805         * elf/ldconfig.c (search_dir): Skip prelink temporaries.
806
807 2006-03-02  H.J. Lu  <hongjiu.lu@intel.com>
808
809         * elf/check-textrel.c: Don't include "config.h".
810
811 2006-03-02  Jakub Jelinek  <jakub@redhat.com>
812
813         * io/ftw.c (process_entry): If dir->streamfd != -1,
814         use FXSTATAT rather than LXSTAT to find if unstatable
815         file is a dead symlink.
816
817         * elf/check-textrel.c: Include config.h.
818         (AB(handle_file)): Don't fail if PF_X | PF_W on architectures known
819         to have executable writable PLT.
820         * sysdeps/powerpc/powerpc32/configure.in (HAVE_PPC_SECURE_PLT): New
821         test.
822         * config.h.in (HAVE_PPC_SECURE_PLT): Add.
823
824         * malloc/malloc.c (MALLOC_ALIGNMENT): Set to __alignof__ (long double)
825         if long double is more aligned than 2 * SIZE_SZ.
826         (misaligned_chunk): Define.
827         (public_rEALLOc, _int_free, _int_realloc): Use it.
828
829 2006-01-05  H.J. Lu  <hongjiu.lu@intel.com>
830
831         [BZ #2013]
832         * sysdeps/ia64/memccpy.S: Properly handle recovery for
833         predicated speculative load.
834
835 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
836
837         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
838
839         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat64): Use
840         libc_hidden_ver rather than libc_hidden_def.
841
842         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
843         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept):
844         Use inline asm to make sure the compiler doesn't optimize insns out.
845
846         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
847         (DECLARGS_6): Fix a typo.
848
849 2006-03-01  Roland McGrath  <roland@redhat.com>
850
851         * version.h (VERSION): 2.3.91
852
853         * Makeconfig (sysdeps-srcdirs): New variable.
854         (sysdeps-add-ons-srcdirs): Use it.
855         * csu/Makefile (all-Banner-files): Use it.
856
857         * Makefile (dist-selector): New variable.
858         (glibc-%.tar rule): Use it.  Make $(dist-separate) tarballs
859         contain one version-named directory.
860
861         * Makefile (format-me): Use  --plaintext --no-number-sections.
862
863         * NOTES, INSTALL: Regenerated.
864
865         * NEWS: Update 2.4 items.
866
867 2006-03-01  David S. Miller  <davem@sunset.davemloft.net>
868
869         * configure.in (machine): Match sparcv9v and sparc64v.
870         * configure: Regenerated.
871         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: New file.
872         * sysdeps/sparc/sparc32/sparcv9v/memset.S: New file.
873         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: New file.
874         * sysdeps/sparc/sparc64/sparcv9v/memset.S: New file.
875
876 2006-03-01  Roland McGrath  <roland@frob.com>
877
878         * sysdeps/mach/hurd/Subdirs: Use "first hurd".
879
880 2006-02-28  Roland McGrath  <roland@redhat.com>
881
882         * sysdeps/rs6000: Directory removed, saved in ports repository.
883
884 2006-03-01  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
885
886         * sysdeps/unix/sysv/linux/sh/pread.c: Copy in mips pread.c.
887         * sysdeps/unix/sysv/linux/sh/pwrite.c: Copy in mips pwrite.c.
888         * sysdeps/unix/sysv/linux/sh/pread64.c: Copy in mips pread64.c.
889         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Copy in mips pwrite64.c.
890
891 2006-02-28  Roland McGrath  <roland@redhat.com>
892
893         * elf/tst-tls-dlinfo.c: New file.
894         * elf/Makefile (tests): Add it.
895         ($(objpfx)tst-tls-dlinfo): Depend on $(libdl).
896         ($(objpfx)tst-tls-dlinfo.out): Depend on $(objpfx)tst-tlsmod2.so.
897
898         * dlfcn/dlfcn.h (RTLD_DI_PROFILENAME, RTLD_DI_PROFILEOUT): New enum
899         values, reserve unsupported requested names used on Solaris.
900         (RTLD_DI_TLS_MODID, RTLD_DI_TLS_DATA): New enum values.
901         (RTLD_DI_MAX): Likewise.
902         * dlfcn/dlinfo.c (dlinfo_doit): Handle RTLD_DI_TLS_MODID and
903         RTLD_DI_TLS_DATA.
904
905         * elf/dl-tls.c (_dl_tls_get_addr_soft): New function.
906         * sysdeps/generic/ldsodefs.h: Declare it.
907         * elf/Versions (ld: GLIBC_PRIVATE): Add it.
908         * elf/link.h (struct dl_phdr_info): New members dlpi_tls_modid,
909         dlpi_tls_data.
910         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill them in.
911
912         * include/link.h: Don't copy contents from elf/link.h.
913         Instead, #include it while #define'ing around link_map.
914         * elf/dl-debug.c (_dl_debug_initialize): Add a cast.
915         Add bogus extern decl to verify link_map members.
916         * elf/loadtest.c (MAPS): New macro, cast _r_debug._r_map.
917         (OUT, main): Use it in place of _r_debug._r_map.
918         * elf/unload.c: Likewise.
919         * elf/unload2.c: Likewise.
920         * elf/neededtest.c (check_loaded_objects): Likewise.
921         * elf/neededtest2.c (check_loaded_objects): Likewise.
922         * elf/neededtest3.c (check_loaded_objects): Likewise.
923         * elf/neededtest4.c (check_loaded_objects): Likewise.
924         * elf/circleload1.c (check_loaded_objects): Likewise.
925
926         * nscd/nscd_helper.c: Include <time.h> for `time' declaration.
927
928         * include/fcntl.h: Declare __openat, __open64.  Use libc_hidden_proto.
929         * io/openat.c (__openat): Define instead of openat.
930         Use libc_hidden_def.  Define openat with weak_alias.
931         * io/openat64.c (__openat64): Define instead of openat64.
932         Use libc_hidden_def.  Define openat64 with weak_alias.
933         * sysdeps/unix/sysv/linux/openat.c: Likewise.
934
935         * libio/genops.c: Include <sched.h> for __sched_yield decl.
936
937         * Makeconfig (+includes): Add back $(includes)
938         after $(+sysdep-includes).
939
940         * Makerules ($(common-objpfx)%.make): Use -DASSEMBLER.
941
942 2006-02-28  Jakub Jelinek  <jakub@redhat.com>
943
944         * posix/sys/types.h [!__GNUC_PREREQ (2, 7)] (int64_t, u_int64_t):
945         typedef to long int resp. unsigned long int on 64-bit arches.
946
947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Include x86_64
948         umount.c rather than hppa umount.c.
949         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Include sh chown.c
950         rather than m68k chown.c.
951         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include sh
952         fchownat.c rather than m68k fchownat.c.
953         * sysdeps/unix/sysv/linux/sh/chown.c: Copy over from m68k chown.c.
954         * sysdeps/unix/sysv/linux/sh/fchownat.c: Copy over from m68k
955         fchownat.c.
956         * sysdeps/unix/sysv/linux/x86_64/brk.c: Copy over from hppa brk.c.
957         * sysdeps/unix/sysv/linux/x86_64/umount.c: Copy over from hppa
958         umount.c.
959
960 2006-02-28  Roland McGrath  <roland@redhat.com>
961
962         * sysdeps/hppa: Directory removed, saved in ports repository.
963         * sysdeps/mach/hppa: Likewise.
964         * sysdeps/mach/hurd/hppa: Likewise.
965         * sysdeps/unix/sysv/linux/hppa: Likewise.
966         * configure.in (machine): Remove hppa* cases.
967         * configure: Regenerated.
968         * shlib-versions: Remove hppa cases.
969
970         * sysdeps/m68k: Directory removed, saved in ports repository.
971         * sysdeps/unix/bsd/m68k: Likewise.
972         * sysdeps/unix/sysv/linux/m68k: Likewise.
973         * configure.in (machine): Remove m68* cases.
974         * configure: Regenerated.
975
976         * elf/rtld-Rules (subdir-args): New variable.
977         (rtld-subdir-make): Use it.
978
979 2006-02-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
980
981         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
982         (DO_CALL): Add support for 6 system call parameters.
983         (DECLARGS_6, ASMFMT_6): Define.
984         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
985
986 2006-02-28  Roland McGrath  <roland@redhat.com>
987
988         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Copy in i386/bits/fcntl.h.
989
990 2006-02-27  Roland McGrath  <roland@redhat.com>
991
992         * scripts/config.guess: Update from master, timestamp='2006-02-27'.
993         * scripts/config.sub: Update from master, timestamp='2006-02-27'.
994
995         * Makefile (subdir-target-args): New variable.
996         ($(all-subdirs-targets)): Use it in place of -C option.
997         * Rules: Use $(..) instead of ../ if it's already defined.
998         * Makeconfig (subdir-srcdirs): New variable.
999         * csu/Makefile (all-Banner-files): Use it.
1000
1001         * configure.in (--enable-add-ons): Set to "yes" by default.
1002         Handle absolute add-on directory names when looking for configure
1003         fragments.  Also look for sysdeps/*/preconfigure fragments in add-ons.
1004         Require add-on configure to set $libc_add_on_canonical, use
1005         that in $add_ons_sfx.  Substitute add_on_subdirs with computed list
1006         of subdir names each add-on configure set in libc_add_on_subdirs.
1007         * configure: Regenerated.
1008         * Makefile (%/preconfigure: %/preconfigure.in): New pattern rule.
1009         * config.make.in (add-on-subdirs): New substituted variable.
1010         * Makeconfig (all-subdirs): Include $(add-on-subdirs).
1011         Remove $(add-ons), $(sysdep-subdirs).
1012         Don't filter out $(sysdep-inhibit-subdirs).
1013         ($(common-objpfx)sysd-dirs): Target removed.  Don't include it.
1014         ($(common-objpfx)sysd-sorted): Rewritten to feed Depend and Subdirs
1015         files together to gen-sorted.awk, and $(subdirs) via -v.
1016         (subdirs): Remove magic reordering for mach and hurd.
1017         * scripts/gen-sorted.awk: Use subdirs from command line.
1018         Process Subdirs and Depend files directly.
1019         Let Subdirs files use "first dir" and "inhibit dir".
1020         Always move elf to the end of the list.
1021         * hurd/Depend: New file.
1022         * sysdeps/mach/Subdirs: Use "first mach".
1023
1024         * Makefile (dist-separate): Remove linuxthreads.
1025         (dist-separate-linuxthreads): Variable removed.
1026         (glibc-%.tar rule): Use $(sysdeps-add-ons).
1027
1028         * Makerules ($(common-objpfx)Versions.v.i): Use $(subdirs),
1029         not $(all-subdirs).
1030         (sysdep-makefiles): Use $(sysdirs).
1031         (sysdirs): Remove export.
1032         ($(+sysdir_pfx)sysd-rules): Handle absolute directory names in
1033         $(config-sysdirs).
1034         (+sysdir_pfx): Variable removed.
1035         (sysd-rules): Use $(common-objpfx) in place of it.
1036         (sysdirs): Variable moved to ...
1037         * Makeconfig (sysdirs): ... here.
1038         Handle absolute directory names in $(config-sysdirs).
1039         (full_config_sysdirs): Variable removed.
1040         * csu/Makefile: Use $(sysdirs) in vpath directive.
1041         * math/Makefile (ulps-file): Use $(sysdirs).
1042         * sysdeps/gnu/Makefile (errlist-c): Likewise.
1043         ($(objpfx)errlist-compat.c): Likewise.
1044         * Makeconfig (all-Subdirs-files): Likewise.
1045         ($(common-objpfx)config.status): Likewise.
1046
1047         * configure.in (sysnames): Handle absolute add-on directory names.
1048         (sysdeps_add_ons): New variable, AC_SUBST it.
1049         Compute which add-ons contributed sysdeps directories.
1050         * configure: Regenerated.
1051         * config.make.in (sysdeps-add-ons): New substituted variable.
1052         * Makerules (+sysdep_dirs, +sysdep-includes): Variables moved ...
1053         * Makeconfig: ... to here.
1054         (+sysdep_dirs): Append $(sysdeps-add-ons) here.
1055         (+includes): Remove $(objpfx) include, already in $(+sysdep_dirs).
1056         Remove $(includes).
1057         (sysdep-makeconfigs): Use $(+sysdep_dirs).
1058         ($(common-objpfx)shlib-versions.v.i): Likewise.
1059
1060         * Makeconfig: Remove hair to set Makeconfig-add-on.
1061
1062         * sysdeps/unix/Makefile (sysdirs): Remove export.
1063         (asm_CPP): Variable removed.
1064         ($(common-objpfx)sysd-syscalls): Pass them directly for the script.
1065
1066         * sysdeps/posix/Makefile: New file.
1067         * Makerules (L_tmpnam, TMP_MAX, L_ctermid, L_cuserid): Set non-posix
1068         values here with ?=.
1069
1070         * stdlib/gen-mpn-copy: File removed.
1071         * stdlib/Makefile (distribute): Remove it.
1072         * configure.in: Don't grok --with-gmp.
1073         * configure: Regenerated.
1074
1075         * configure.in (libc_cv_idn): Don't check it; libidn/configure does it.
1076         * configure: Regenerated.
1077
1078 2006-02-27  Ulrich Drepper  <drepper@redhat.com>
1079
1080         * sysdeps/unix/sysv/linux/linkat.c (linkat): Allow flags to be set
1081         when syscall is used.
1082         * io/fcntl.h (AT_SYMLINK_FOLLOW): Define.
1083
1084 2006-02-26  Roland McGrath  <roland@redhat.com>
1085
1086         * bare: Directory removed, saved in ports repository.
1087
1088         * sysdeps/unix/common/Makefile: File removed.
1089         * sysdeps/unix/common/glue-ctype.c: File removed.
1090         * sysdeps/unix/common/configure.in: File removed.
1091         * sysdeps/unix/common/configure: File removed.
1092
1093         * sysdeps/unix/configure.in: File removed.
1094         * sysdeps/unix/configure: File removed.
1095         * sysdeps/unix/make_errlist.c: File removed.
1096         * sysdeps/unix/Makefile ($(objpfx)errlist.c, $(objpfx)make_errlist):
1097         Rules removed.
1098
1099         * timezone/africa: Update from tzdata2006b (comment changes only).
1100         * timezone/antarctica: Likewise.
1101         * timezone/asia: Likewise.
1102         * timezone/australasia: Likewise.
1103         * timezone/backward: Likewise.
1104         * timezone/etcetera: Likewise.
1105         * timezone/europe: Likewise.
1106         * timezone/factory: Likewise.
1107         * timezone/iso3166.tab: Likewise.
1108         * timezone/leapseconds: Likewise.
1109         * timezone/northamerica: Likewise.
1110         * timezone/pacificnew: Likewise.
1111         * timezone/solar87: Likewise.
1112         * timezone/solar88: Likewise.
1113         * timezone/solar89: Likewise.
1114         * timezone/southamerica: Likewise.
1115         * timezone/systemv: Likewise.
1116         * timezone/zone.tab: Likewise.
1117
1118 2006-02-26  Ulrich Drepper  <drepper@redhat.com>
1119
1120         * posix/unistd.h: Add fifth parameter to linkat.
1121         * io/linkat.c: Likewise.
1122         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1123         * io/tst-linkat.c (do_test): Pass new parameter to linkat.
1124
1125         * elf/do-lookup.h (do_lookup_x): No need to compare SKIP to NULL
1126         before comparison with MAP.
1127
1128         * elf/dl-sym.c (do_sym): For RTLD_NEXT, pass MATCH to
1129         dl_lookup_symbol_x instead of L.
1130
1131 2006-02-24  Mike Frysinger  <vapier@gentoo.org>
1132
1133         * sysdeps/gnu/net/if.h (IFF_DYNAMIC): New macro.
1134
1135 2006-02-24  David S. Miller  <davem@sunset.davemloft.net>
1136
1137         * configure.in: Use sparc/sparc32/sparcv9/sparcv9b in place
1138         of sparc/sparc32/sparcv9b.
1139         * sysdeps/sparc/sparc32/sparcv9b/Implies: File removed.
1140         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9b/Implies: File removed.
1141
1142 2006-02-24  Roland McGrath  <roland@redhat.com>
1143
1144         * elf/elf.h (HWCAP_SPARC_BLKINIT): New macro.
1145         * sysdeps/sparc/dl-procinfo.h (HWCAP_IMPORTANT): Add it.
1146         (_DL_HWCAP_COUNT): Increase to 7.
1147         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add "v9v".
1148         From David S. Miller <davem@sunset.davemloft.net>.
1149
1150         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: Moved to ...
1151         * sysdeps/sparc/dl-procinfo.c: ... here, new file.
1152         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Moved to ...
1153         * sysdeps/sparc/dl-procinfo.h: ... here, new file.
1154         (HWCAP_IMPORTANT): Include HWCAP_SPARC_V9 when [__WORDSIZE != 64].
1155         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: File removed.
1156         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: File removed.
1157
1158         * elf/sofini.c (__FRAME_END__): Mark as const.
1159         * elf/soinit.c (__EH_FRAME_BEGIN__): Likewise.  Add used attribute.
1160
1161 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
1162
1163         * soft-fp/single.h (SFtype): Define.
1164         (union _FP_UNION_S): Use it.
1165         * soft-fp/double.h (DFtype): Define.
1166         (union _FP_UNION_D): Use it.
1167         * soft-fp/extended.h (XFtype): Define.
1168         (union _FP_UNION_E): Use it.
1169         * soft-fp/quad.h (TFtype): Define.
1170         (union _FP_UNION_Q): Use it.
1171         * soft-fp/soft-fp.h: Add _LIBC conditionals.
1172         (SI_BITS, DI_BITS): Define.
1173         * soft-fp/op-common.h (_FP_DECL): Add __attribute__((unused)) for
1174         X##_c.
1175         (_FP_CMP_EQ): Use parentheses for && inside ||.
1176         (_FP_TO_INT): Use statement expressions in conditional controlling
1177         constant shift.
1178         (_FP_FROM_INT): Likewise.  Take unsigned type as argument.
1179         * soft-fp/op-2.h (_FP_FRAC_SLL_2, _FP_FRAC_SRL_2, _FP_FRAC_SRST_2,
1180         _FP_FRAC_SRS_2, _FP_FRAC_ASSEMBLE_2): Use statement expressions in
1181         conditional controlling possibly constant shift.
1182         (_FP_FRAC_SRST_2, _FP_FRAC_SRS_2): Avoid left shift by exactly
1183         _FP_W_TYPE_SIZE.
1184         (_FP_FRAC_GT_2, _FP_FRAC_GE_2): Use parentheses for && inside ||.
1185         * soft-fp/op-4.h (_FP_FRAC_SRST_4): Avoid left shift by exactly
1186         _FP_W_TYPE_SIZE.
1187         (__FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
1188         __FP_FRAC_SUB_4): Use _FP_W_TYPE for carry flags.
1189         * soft-fp/op-8.h (_FP_FRAC_SRS_8): Avoid left shift by exactly
1190         _FP_W_TYPE_SIZE.
1191         * soft-fp/floatdidf.c: Pass unsigned type and macro for type size.
1192         * soft-fp/floatdisf.c: Likewise.
1193         * soft-fp/floatditf.c: Likewise.
1194         * soft-fp/floatsidf.c: Likewise.
1195         * soft-fp/floatsisf.c: Likewise.
1196         * soft-fp/floatsitf.c: Likewise.
1197         * soft-fp/floatundidf.c: Likewise.
1198         * soft-fp/floatundisf.c: Likewise.
1199         * soft-fp/floatunditf.c: Likewise.
1200         * soft-fp/floatunsidf.c: Likewise.
1201         * soft-fp/floatunsisf.c: Likewise.
1202         * soft-fp/floatunsitf.c: Likewise.
1203         * soft-fp/fixdfdi.c: Pass macro for type size.
1204         * soft-fp/fixdfsi.c: Likewise.
1205         * soft-fp/fixsfdi.c: Likewise.
1206         * soft-fp/fixsfsi.c: Likewise.
1207         * soft-fp/fixtfdi.c: Likewise.
1208         * soft-fp/fixtfsi.c: Likewise.
1209         * soft-fp/fixunsdfdi.c: Likewise.
1210         * soft-fp/fixunsdfsi.c: Likewise.
1211         * soft-fp/fixunssfdi.c: Likewise.
1212         * soft-fp/fixunssfsi.c: Likewise.
1213         * soft-fp/fixunstfdi.c: Likewise.
1214         * soft-fp/fixunstfsi.c: Likewise.
1215         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Pass unsigned type.
1216         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Likewise.
1217         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
1218         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
1219         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
1220         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
1221         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Likewise.
1222         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Likewise.
1223         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Likewise.
1224         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Likewise.
1225         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Likewise.
1226         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Likewise.
1227         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Likewise.
1228         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Likewise.
1229         * soft-fp/adddf3.c: Use typedefs for argument and return types.
1230         * soft-fp/addsf3.c: Likewise.
1231         * soft-fp/addtf3.c: Likewise.
1232         * soft-fp/divdf3.c: Likewise.
1233         * soft-fp/divsf3.c: Likewise.
1234         * soft-fp/divtf3.c: Likewise.
1235         * soft-fp/eqdf2.c: Likewise.
1236         * soft-fp/eqsf2.c: Likewise.
1237         * soft-fp/eqtf2.c: Likewise.
1238         * soft-fp/extenddftf2.c: Likewise.
1239         * soft-fp/extendsfdf2.c: Likewise.
1240         * soft-fp/extendsftf2.c: Likewise.
1241         * soft-fp/fixdfdi.c: Likewise.
1242         * soft-fp/fixdfsi.c: Likewise.
1243         * soft-fp/fixsfdi.c: Likewise.
1244         * soft-fp/fixsfsi.c: Likewise.
1245         * soft-fp/fixtfdi.c: Likewise.
1246         * soft-fp/fixtfsi.c: Likewise.
1247         * soft-fp/fixunsdfdi.c: Likewise.
1248         * soft-fp/fixunsdfsi.c: Likewise.
1249         * soft-fp/fixunssfdi.c: Likewise.
1250         * soft-fp/fixunssfsi.c: Likewise.
1251         * soft-fp/fixunstfdi.c: Likewise.
1252         * soft-fp/fixunstfsi.c: Likewise.
1253         * soft-fp/floatdidf.c: Likewise.
1254         * soft-fp/floatdisf.c: Likewise.
1255         * soft-fp/floatditf.c: Likewise.
1256         * soft-fp/floatsidf.c: Likewise.
1257         * soft-fp/floatsisf.c: Likewise.
1258         * soft-fp/floatsitf.c: Likewise.
1259         * soft-fp/floatundidf.c: Likewise.
1260         * soft-fp/floatundisf.c: Likewise.
1261         * soft-fp/floatunditf.c: Likewise.
1262         * soft-fp/floatunsidf.c: Likewise.
1263         * soft-fp/floatunsisf.c: Likewise.
1264         * soft-fp/floatunsitf.c: Likewise.
1265         * soft-fp/gedf2.c: Likewise.
1266         * soft-fp/gesf2.c: Likewise.
1267         * soft-fp/getf2.c: Likewise.
1268         * soft-fp/ledf2.c: Likewise.
1269         * soft-fp/lesf2.c: Likewise.
1270         * soft-fp/letf2.c: Likewise.
1271         * soft-fp/muldf3.c: Likewise.
1272         * soft-fp/mulsf3.c: Likewise.
1273         * soft-fp/multf3.c: Likewise.
1274         * soft-fp/negdf2.c: Likewise.
1275         * soft-fp/negsf2.c: Likewise.
1276         * soft-fp/negtf2.c: Likewise.
1277         * soft-fp/sqrtdf2.c: Likewise.
1278         * soft-fp/sqrtsf2.c: Likewise.
1279         * soft-fp/sqrttf2.c: Likewise.
1280         * soft-fp/subdf3.c: Likewise.
1281         * soft-fp/subsf3.c: Likewise.
1282         * soft-fp/subtf3.c: Likewise.
1283         * soft-fp/truncdfsf2.c: Likewise.
1284         * soft-fp/trunctfdf2.c: Likewise.
1285         * soft-fp/trunctfsf2.c: Likewise.
1286         * soft-fp/unorddf2.c: Likewise.
1287         * soft-fp/unordsf2.c: Likewise.
1288         * soft-fp/unordtf2.c: Likewise.
1289
1290 2006-02-09  Joseph S. Myers  <joseph@codesourcery.com>
1291
1292         * soft-fp/op-common.h (_FP_UNPACK_SEMIRAW): Define.
1293         (_FP_OVERFLOW_SEMIRAW): Likewise.
1294         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
1295         (_FP_CHOOSENAN_SEMIRAW): Likewise.
1296         (_FP_EXP_NORMAL): Likewise.
1297         (_FP_PACK_SEMIRAW): Likewise.
1298         (_FP_ADD_INTERNAL): Rewrite to operate on semi-raw value.
1299         (_FP_SUB): Likewise.
1300         (_FP_TO_INT): Rewrite to operate on raw values.  Don't set INVALID
1301         exception for conversions where most negative representable
1302         integer is correct truncated value, but do set INEXACT for such
1303         conversions where appropriate.  Don't always left-shift for
1304         converting to a wider integer.
1305         (_FP_FROM_INT): Rewrite to yield raw value.  Correct shift for
1306         integers with one more bits than (mantissa + guard) bits for the
1307         floating point format.  Don't use __FP_FRAC_SRS_1 for shifting
1308         integers that may be wider than _FP_W_TYPE_SIZE.
1309         (FP_CONV): Don't define.
1310         (FP_EXTEND): Define.
1311         (FP_TRUNC): Likewise.
1312         * soft-fp/op-1.h (_FP_FRAC_SRST_1, __FP_FRAC_SRST_1): Define.
1313         (_FP_FRAC_CONV_1_1): Don't define.
1314         (_FP_FRAC_COPY_1_1): Define.
1315         * soft-fp/op-2.h (_FP_FRAC_SRST_2): Define.
1316         (_FP_FRAC_CONV_1_2, _FP_FRAC_CONV_2_1): Don't define.
1317         (_FP_FRAC_COPY_1_2, _FP_FRAC_COPY_2_1): Define.
1318         * soft-fp/op-4.h (_FP_FRAC_SRST_4): Define.
1319         (_FP_FRAC_SRS_4): Define based on _FP_FRAC_SRST_4.
1320         (_FP_FRAC_CONV_1_4, _FP_FRAC_CONV_2_4): Don't define.
1321         (_FP_FRAC_COPY_1_4, _FP_FRAC_COPY_2_4): Define.
1322         (_FP_FRAC_CONV_4_1, _FP_FRAC_CONV_4_2): Don't define.
1323         (_FP_FRAC_COPY_4_1, _FP_FRAC_COPY_4_2): Define.
1324         * soft-fp/single.h (_FP_FRACTBITS_S): Define.
1325         (_FP_FRACXBITS_S): Define in terms of _FP_FRACXBITS_S.
1326         (_FP_WFRACXBITS_S): Likewise.
1327         (_FP_QNANBIT_SH_S, _FP_IMPLBIT_SH_S): Define.
1328         (FP_UNPACK_SEMIRAW_S, FP_UNPACK_SEMIRAW_SP): Define.
1329         (FP_PACK_SEMIRAW_S, FP_PACK_SEMIRAW_SP): Define.
1330         * soft-fp/double.h (_FP_QNANBIT_SH_D, _FP_IMPLBIT_SH_D): Define.
1331         (FP_UNPACK_SEMIRAW_D, FP_UNPACK_SEMIRAW_D): Define
1332         (FP_PACK_SEMIRAW_D, FP_PACK_SEMIRAW_DP): Define.
1333         * soft-fp/extended.h (_FP_QNANBIT_SH_E, _FP_IMPLBIT_SH_E): Define.
1334         (FP_UNPACK_EP): Correct typo.
1335         (FP_UNPACK_SEMIRAW_E, FP_UNPACK_SEMIRAW_EP): Define.
1336         (FP_PACK_SEMIRAW_E, FP_PACK_SEMIRAW_EP): Define.
1337         * soft-fp/quad.h (_FP_QNANBIT_SH_Q, _FP_IMPLBIT_SH_Q): Define.
1338         (FP_UNPACK_SEMIRAW_Q, FP_UNPACK_SEMIRAW_QP): Define.
1339         (FP_PACK_SEMIRAW_Q, FP_PACK_SEMIRAW_QP): Define.
1340         * soft-fp/fixdfdi.c: Use unsigned type for result of conversion.
1341         * soft-fp/fixdfsi.c: Likewise.
1342         * soft-fp/fixsfdi.c: Likewise.
1343         * soft-fp/fixsfsi.c: Likewise.
1344         * soft-fp/fixtfdi.c: Likewise.
1345         * soft-fp/fixtfsi.c: Likewise.
1346         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Likewise.
1347         * sysdeps/alpha/soft-fp/ots_nintxq.c: Likewise.
1348         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
1349         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
1350         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Likewise.
1351         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Likewise.
1352         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
1353         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
1354         * soft-fp/adddf3.c: Update for changed soft-fp interfaces.
1355         * soft-fp/addsf3.c: Likewise.
1356         * soft-fp/addtf3.c: Likewise.
1357         * soft-fp/extenddftf2.c: Likewise.
1358         * soft-fp/extendsfdf2.c: Likewise.
1359         * soft-fp/extendsftf2.c: Likewise.
1360         * soft-fp/fixdfdi.c: Likewise.
1361         * soft-fp/fixdfsi.c: Likewise.
1362         * soft-fp/fixsfdi.c: Likewise.
1363         * soft-fp/fixsfsi.c: Likewise.
1364         * soft-fp/fixtfdi.c: Likewise.
1365         * soft-fp/fixtfsi.c: Likewise.
1366         * soft-fp/fixunsdfdi.c: Likewise.
1367         * soft-fp/fixunsdfsi.c: Likewise.
1368         * soft-fp/fixunssfdi.c: Likewise.
1369         * soft-fp/fixunssfsi.c: Likewise.
1370         * soft-fp/fixunstfdi.c: Likewise.
1371         * soft-fp/fixunstfsi.c: Likewise.
1372         * soft-fp/floatdidf.c: Likewise.
1373         * soft-fp/floatdisf.c: Likewise.
1374         * soft-fp/floatditf.c: Likewise.
1375         * soft-fp/floatsidf.c: Likewise.
1376         * soft-fp/floatsisf.c: Likewise.
1377         * soft-fp/floatsitf.c: Likewise.
1378         * soft-fp/floatundidf.c: Likewise.
1379         * soft-fp/floatundisf.c: Likewise.
1380         * soft-fp/floatunditf.c: Likewise.
1381         * soft-fp/floatunsidf.c: Likewise.
1382         * soft-fp/floatunsisf.c: Likewise.
1383         * soft-fp/floatunsitf.c: Likewise.
1384         * soft-fp/subdf3.c: Likewise.
1385         * soft-fp/subsf3.c: Likewise.
1386         * soft-fp/subtf3.c: Likewise.
1387         * soft-fp/truncdfsf2.c: Likewise.
1388         * soft-fp/trunctfdf2.c: Likewise.
1389         * soft-fp/trunctfsf2.c: Likewise.
1390         * sysdeps/alpha/soft-fp/ots_add.c: Likewise.
1391         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Likewise.
1392         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Likewise.
1393         * sysdeps/alpha/soft-fp/ots_cvttx.c: Likewise.
1394         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Likewise.
1395         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Likewise.
1396         * sysdeps/alpha/soft-fp/ots_nintxq.c: Likewise.
1397         * sysdeps/alpha/soft-fp/ots_sub.c: Likewise.
1398         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
1399         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
1400         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
1401         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
1402         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
1403         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
1404         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
1405         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
1406         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
1407         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
1408         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
1409         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
1410         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
1411         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
1412         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Likewise.
1413         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Likewise.
1414         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Likewise.
1415         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Likewise.
1416         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Likewise.
1417         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Likewise.
1418         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Likewise.
1419         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Likewise.
1420         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Likewise.
1421         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Likewise.
1422         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Likewise.
1423         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Likewise.
1424         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Likewise.
1425         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Likewise.
1426         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Likewise.
1427         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Likewise.
1428         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Likewise.
1429         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Likewise.
1430         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
1431         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Likewise.
1432         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
1433         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
1434         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
1435         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Likewise.
1436         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Likewise.
1437         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Likewise.
1438         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Likewise.
1439         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Likewise.
1440
1441 2006-02-23  Roland McGrath  <roland@redhat.com>
1442
1443         * include/libc-symbols.h: Fix comment typo.
1444         From Peter Kjellerstedt <peter.kjellerstedt@axis.com>.
1445
1446         * sysdeps/unix/sysv/linux/i386/fchownat.c: Diddle code so that "fail"
1447         label is always used.
1448
1449         [BZ #2172]
1450         * bits/syslog-path.h: New file.
1451         * misc/Makefile (headers): Add it.
1452         * misc/sys/syslog.h: Include it.
1453         (_PATH_LOG): Macro removed.
1454         From Robert Millan <robertmh@gnu.org>.
1455
1456         * sysdeps/unix/sysv/linux/ftruncate64.c: Find generic implementation
1457         in misc/, not posix/.
1458         Reported by David S. Miller <davem@davemloft.net>.
1459
1460 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
1461
1462         * posix/sched_yield.c (__sched_yield): Add libc_hidden_def.
1463         * sysdeps/mach/sched_yield.c (__sched_yield): Likewise.
1464
1465 2006-02-22  Roland McGrath  <roland@redhat.com>
1466
1467         * po/libc.pot: Regenerated.
1468
1469 2006-02-22  Jakub Jelinek  <jakub@redhat.com>
1470
1471         * nis/ypclnt.c (yperr_string, ypbinderr_string): Add N_()
1472         around string literals.
1473
1474 2005-10-03  Jakub Jelinek  <jakub@redhat.com>
1475
1476         * nscd/selinux.c (audit_init): Print error string in the failure
1477         message.
1478
1479 2006-02-21  Roland McGrath  <roland@redhat.com>
1480
1481         * sysdeps/unix/sysv/linux/kernel-features.h
1482         (__ASSUME_CLONE_THREAD_FLAGS): Consolidate definitions.
1483
1484         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Update comment, remove
1485         __THROW from epoll_wait, to match .../linux/sys/epoll.h file.
1486
1487 2006-02-03  Jakub Jelinek  <jakub@redhat.com>
1488
1489         * manual/filesys.texi (futimes): Fix prototype.
1490
1491 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1492
1493         [BZ #315]
1494         * manual/memory.texi (Obstacks Data Alignment): The default
1495         alignment is not 4: it is enough to hold any type of data.
1496         Problem reported by Benno in
1497         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
1498
1499 2005-11-15  Robert Millan  <robertmh@gnu.org>
1500
1501         [BZ #2161]
1502         * manual/llio.texi (read, write): Document EINVAL on unaligned access.
1503
1504 2006-02-21  Roland McGrath  <roland@redhat.com>
1505
1506         * sysdeps/i386/i686/memset.S: Fix treatment of unaligned pointer.
1507         Reported by John Zulauf <john.zulauf@amd.com>.
1508
1509 2004-11-23  Richard Sandiford  <rsandifo@redhat.com>
1510
1511         * configure.in (libc_cv_gcc_dwarf2_unwind_info): Delete.
1512         (HAVE_DWARF2_UNWIND_INFO{,_STATIC}): Remove AC_DEFINEs.
1513         * configure: Regenerate.
1514         * config.h.in (HAVE_DWARF2_UNWIND_INFO{,_STATIC}): Remove undefs.
1515         * elf/soinit.c: Don't include gccframe.h.
1516         (__EH_FRAME_BEGIN__): Define unconditionally.
1517         (__register_frame_info, __deregister_frame_info)
1518         (__register_frame_info_bases, __deregister_frame_info_bases)
1519         (__register_frame, __deregister_frame): Remove declarations.
1520         (__libc_global_ctors, __libc_fini): Don't call registry functions.
1521         * elf/sofini.c (__EH_FRAME_END__): Define unconditionally.
1522
1523 2006-01-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1524
1525         [BZ #2178]
1526         * sysdeps/mach/hurd/getsid.c (getsid): When parameter PID is zero,
1527         use _hurd_pid instead.
1528
1529 2006-02-20  Richard Henderson  <rth@redhat.com>
1530
1531         * sysdeps/alpha/soft-fp/Makefile (CPPFLAGS): Add soft-fp include
1532         to math subdir.
1533         * sysdeps/alpha/soft-fp/e_sqrtl.c: Don't use local-soft-fp.h.
1534         (__ieee754_sqrtl): Add _round local variable.
1535         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: Remove.
1536
1537         * sysdeps/unix/sysv/linux/alpha/fxstatat.c: Fix hidden defs.
1538
1539 2006-02-20  Roland McGrath  <roland@redhat.com>
1540
1541         * sysdeps/mips: Directory removed, saved in ports repository.
1542         * sysdeps/unix/mips: Likewise.
1543         * sysdeps/unix/sysv/linux/mips: Likewise.
1544         * sysdeps/mach/mips: Likewise.
1545         * sysdeps/mach/hurd/mips: Likewise.
1546         * shlib-versions: Remove mips matches, now in ports fragment.
1547         * sysdeps/unix/sysv/linux/kernel-features.h: Likewise.
1548         * configure.in (machine): Likewise.
1549         * configure: Regenerated.
1550
1551         * hurd/hurd/xattr.h: New file.
1552         * hurd/xattr.c: New file.
1553         * hurd/Makefile (routines): Add it.
1554         * sysdeps/mach/hurd/fgetxattr.c: New file.
1555         * sysdeps/mach/hurd/flistxattr.c: New file.
1556         * sysdeps/mach/hurd/fremovexattr.c: New file.
1557         * sysdeps/mach/hurd/fsetxattr.c: New file.
1558         * sysdeps/mach/hurd/getxattr.c: New file.
1559         * sysdeps/mach/hurd/lgetxattr.c: New file.
1560         * sysdeps/mach/hurd/listxattr.c: New file.
1561         * sysdeps/mach/hurd/lsetxattr.c: New file.
1562         * sysdeps/mach/hurd/removexattr.c: New file.
1563         * sysdeps/mach/hurd/setxattr.c: New file.
1564
1565 2006-02-15  Thomas Schwinge  <tschwinge@gnu.org>
1566
1567         [BZ #2329]
1568         * include/unistd.h (__getresuid, __getresgid, __setresuid)
1569         (__setresgid): Fix argument name order in prototypes.
1570         * posix/unistd.h (getresuid, getresgid, setresuid, setresgid):
1571         Likewise.
1572         * posix/getresuid.c (__getresuid): Fix argument order in definition.
1573         * posix/getresgid.c (__getresgid): Likewise.
1574         * posix/setresuid.c (__setresuid): Likewise.
1575         * posix/setresgid.c (__setresgid): Likewise.
1576         * sysdeps/mach/hurd/getresuid.c (__getresuid): Likewise.
1577         * sysdeps/mach/hurd/getresgid.c (__getresgid): Likewise.
1578         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1579         * sysdeps/mach/hurd/setresgid.c (__setresgid): Likewise.
1580         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1581
1582 2006-02-13  Mike Frysinger  <vapier@gentoo.org>
1583
1584         [BZ #2380]
1585         * string/tester.c (test_strnlen): New function.
1586         (test_strchr): Call it.
1587         (test_strncat): Test lengths where the sign bit is set.
1588         (test_strncmp): Likewise.
1589
1590 2006-02-17  Jakub Jelinek  <jakub@redhat.com>
1591
1592         * include/atomic.h (atomic_and, atomic_or): Define.
1593
1594 2006-02-15  Ulrich Drepper  <drepper@redhat.com>
1595
1596         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Define MADV_DONTFORK
1597         and MADV_DOFORK.
1598         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1599         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1600         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1601         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1602         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1603         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
1604         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1605         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1606
1607 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1608
1609         * sysdeps/unix/sysv/linux/not-cancel.h (__openat_not_cancel,
1610         __openat64_not_cancel): Remove prototypes.
1611         (__openat_nocancel, __openat64_nocancel): New prototypes or defines.
1612         (openat_not_cancel, openat_not_cancel_3, openat64_not_cancel,
1613         openat64_not_cancel_3): Use them.
1614
1615 2006-02-12  Ulrich Drepper  <drepper@redhat.com>
1616
1617         * io/ftw.c: Start using *at functions.
1618         * io/ftw64.c: Likewise.
1619
1620         * sysdeps/generic/not-cancel.h: Define openat_not_cancel,
1621         openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
1622         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
1623
1624         * sysdeps/unix/sysv/linux/openat.c: Create separate _nocancel
1625         functions.
1626
1627         * io/fxstatat.c: Add __fxstatat alias.
1628         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1629         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.  Add support for
1630         newfstatat syscall.
1631         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Add __fxstatat alias.
1632         Add support for fstatat64 syscall.
1633         * include/sys/stat.h: Declare __fxstatat.
1634         * io/fxstatat64.c: Add __fxstatat64 alias.
1635         * sysdeps/unix/sysv/linux/fxstatat64.c: Add support for fstatat64
1636         syscall.
1637
1638         * dirent/fdopendir.c: Add __fdopendir alias.
1639         * sysdeps/unix/fdopendir.c: Likewise.
1640         * sysdeps/mach/hurd/fdopendir.c: Likewise.
1641         * include/dirent.h: Add __fdopendir declaration.
1642
1643         [BZ #2226]
1644         * libio/wgenops.c (_IO_wsetb): Use correct size of wide char
1645         buffer in FREE_BUF call.
1646
1647 2006-02-08  Ulrich Drepper  <drepper@redhat.com>
1648
1649         * sysdeps/unix/sysv/linux/bits/sched.h: Declare unshare.
1650         * sysdeps/unix/sysv/linux/Versions [libc, GLIBC_2.4]: Export
1651         unshare.
1652         * sysdeps/unix/sysv/linux/syscalls.list: Add unshare syscall.
1653
1654         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Add some
1655         preprocessor magic so that the compiler won't see the prototypes
1656         for the functions we are defining as stubs.
1657
1658 2006-02-05  Ulrich Drepper  <drepper@redhat.com>
1659
1660         * io/ftw.c (ftw_startup): Use fchdir to return to original
1661         directory for FTW_CHDIR.
1662
1663 2006-02-03  Ulrich Drepper  <drepper@redhat.com>
1664
1665         * manual/stdio.texi (Formatted Output Functions): Fix make_message
1666         example.  Patch by NIIBE Yutaka <gniibe@m17n.org>.
1667
1668 2006-02-03  Roland McGrath  <roland@redhat.com>
1669
1670         [BZ #2268]
1671         * sysdeps/posix/profil.c (__profil): Use __profile_frequency to choose
1672         timer interval, don't assume smallest possible interval is it.
1673
1674 2006-02-03  Jakub Jelinek  <jakub@redhat.com>
1675
1676         * sysdeps/powerpc/fpu/bits/fenvinline.h (fegetround): Make asm
1677         volatile.
1678
1679         * stdlib/bits/stdlib-ldbl.h (qecvt, qfcvt, qgcvt, qecvt_r, qfcvt_r):
1680         Guard with [__USE_SVID || __USE_XOPEN_EXTENDED].
1681
1682         * math/math.h [__LDBL_COMPAT && __USE_ISOC99] (nexttowardl): New
1683         prototype.
1684
1685         * math/math.h (__nldbl_nexttowardf): Put __THROW before
1686         __attribute__ ((__const__)).
1687         (__MATHDECL_2): Use __REDIRECT_NTH instead of __REDIRECT
1688         followed by __THROW.
1689
1690 2006-02-02  Ulrich Drepper  <drepper@redhat.com>
1691
1692         * sysdeps/unix/sysv/linux/futimesat.c [__NR_futimesat]
1693         (futimesat): If file is NULL use __futimes.
1694         * include/sys/time.h: Declare __futimes.
1695
1696 2006-02-02  Roland McGrath  <roland@redhat.com>
1697
1698         * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): Use the same
1699         fstat check for ENOENT that should be EBADF as for ENOTDIR, and also
1700         check for missing /proc the same way.
1701
1702         * include/errno.h [__cplusplus]: Avoid extra header magic for C++.
1703
1704         * manual/install.texi (Tools for Compilation): Require gcc 3.4,
1705         recommend 4.1, advise 4.0 for powerpc64, and note 4.1 required for
1706         powerpc, s390{x,} with new long double.
1707         * INSTALL: Regenerated.
1708
1709         * timezone/private.h: Update from tzcode2006a.
1710         * timezone/scheck.c: Likewise.
1711         * timezone/asia: Update from tzdata2006a.
1712         * timezone/northamerica: Likewise.
1713         * timezone/zone.tab: Likewise.
1714
1715         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): New variable.
1716         (CFLAGS-mcount.c): Use it instead of -msoft-float.
1717         * sysdeps/powerpc/powerpc64/elf/Makefile
1718         (CFLAGS-dl-runtime.os, CFLAGS-dl-lookup.os, CFLAGS-dl-misc.os,
1719         CFLAGS-rtld-mempcpy.os, CFLAGS-rtld-memmove.os, CFLAGS-rtld-memchr.os,
1720         CFLAGS-rtld-strnlen.os): Likewise.
1721
1722 2006-02-01  Roland McGrath  <roland@redhat.com>
1723
1724         * sysdeps/ieee754/ldbl-opt/Makefile (sysdep-CFLAGS): Avoid adding
1725         -mlong-double-128 when it's already there.
1726
1727 2006-02-01  Roland McGrath  <roland@frob.com>
1728
1729         * mach/Machrules ($(objpfx)%.uh, $(objpfx)%.__h): Use static pattern
1730         rules for these, not implicit rules.
1731         ($(objpfx)%.h): Likewise.
1732         Reported by Thomas Schwinge <tschwinge@gnu.org>.
1733
1734 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
1735
1736         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Use long_double_symbol
1737         even for libm.
1738
1739         * libio/bits/libio-ldbl.h (_IO_vfwscanf, _IO_vfwprintf): Remove
1740         __LDBL_REDIR_DECL.
1741
1742         * math/bits/mathcalls.h: Guard __END_NAMESPACE_C99 with the
1743         same #if condition as corresponding __BEGIN_NAMESPACE_C99.
1744         (scalb): Don't define only if __USE_ISOC99.
1745
1746         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Fix a typo.
1747         * sysdeps/s390/fpu/libm-test-ulps: Remove llrint ulps.
1748
1749 2006-01-19  Thomas Schwinge  <tschwinge@gnu.org>
1750
1751         * libio/genops.c: Include <stdbool.h>.
1752
1753 2006-02-01  Ulrich Drepper  <drepper@redhat.com>
1754
1755         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add
1756         some more entries.
1757         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_02_known): Likewise.
1758
1759 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
1760
1761         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
1762         * sysdeps/alpha/fpu/s_ceil.c: Include math_ldbl_opt.h, add
1763         compat_symbol if LONG_DOUBLE_COMPAT.
1764         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
1765         * sysdeps/alpha/fpu/s_fabs.c: Likewise.
1766         * sysdeps/alpha/fpu/s_floor.c: Likewise.
1767         * sysdeps/alpha/fpu/s_rint.c: Likewise.
1768         * sysdeps/alpha/soft-fp/e_sqrtl.c: New file.
1769         * sysdeps/alpha/Implies: Add ieee754/ldbl-128.
1770
1771         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: New file.
1772         * sysdeps/unix/sysv/linux/alpha/Implies: Add ieee754/ldbl-64-128,
1773         ieee754/ldbl-opt.
1774         * sysdeps/alpha/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Remove.
1775         * sysdeps/unix/sysv/linux/alpha/nldbl-abi.h: New file.
1776         * sysdeps/unix/sysv/linux/alpha/Makefile
1777         [$(subdir) = math] (libm-routines): Add multc3, divtc3.
1778
1779         * math/divtc3.c: New file.
1780         * math/multc3.c: New file.
1781         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile
1782         [$(subdir) = math] (libm-routines): Add multc3, divtc3.
1783
1784         * sysdeps/unix/sysv/linux/sparc/sparc32/fpu/Implies: New file.
1785         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include math.h and
1786         math_ldbl_opt.h.
1787         (fabsl): Use long_double_symbol instead of weak_alias.
1788         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Include math.h and
1789         math_ldbl_opt.h.
1790         [LONG_DOUBLE_COMPAT] (fabsl): Add compat_symbol.
1791
1792 2006-01-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1793             Jakub Jelinek  <jakub@redhat.com>
1794
1795         * sysdeps/unix/sysv/linux/s390/Implies: New file.
1796         * sysdeps/unix/sysv/linux/s390/fpu/Implies: New file.
1797         * sysdeps/unix/sysv/linux/s390/nldbl-abi.h: New file.
1798         * sysdeps/s390/fpu/bits/mathinline.h (signbitl, sqrtl): New inlines.
1799         * sysdeps/s390/bits/mathdef.h: New file.
1800         * sysdeps/s390/fpu/e_sqrtl.c: New file.
1801         * sysdeps/s390/s390-32/bits/wordsize.h (__LONG_DOUBLE_MATH_OPTIONAL,
1802         __NO_LONG_DOUBLE_MATH): Define.
1803         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
1804         * sysdeps/s390/Implies: Add ieee754/ldbl-128.
1805         * sysdeps/s390/ldbl2mpn.c: File removed.
1806         * sysdeps/s390/fpu/libm-test-ulps: Updated.
1807
1808 2006-01-31  Roland McGrath  <roland@redhat.com>
1809
1810         * sysdeps/alpha/fpu/bits/mathdef.h: Moved to ...
1811         * sysdeps/alpha/bits/mathdef.h: ... here.
1812         * sysdeps/i386/fpu/bits/mathdef.h: Moved to ...
1813         * sysdeps/i386/bits/mathdef.h: ... here.
1814         * sysdeps/mips/fpu/bits/mathdef.h: Moved to ...
1815         * sysdeps/mips/bits/mathdef.h: ... here.
1816         * sysdeps/m68k/fpu/bits/mathdef.h: Moved to ...
1817         * sysdeps/m68k/bits/mathdef.h: ... here.
1818         * sysdeps/powerpc/fpu/bits/mathdef.h: Moved to ...
1819         * sysdeps/powerpc/bits/mathdef.h: ... here.
1820         * sysdeps/sparc/fpu/bits/mathdef.h: Moved to ...
1821         * sysdeps/sparc/bits/mathdef.h: ... here.
1822         * sysdeps/ia64/fpu/bits/mathdef.h: Moved to ...
1823         * sysdeps/ia64/bits/mathdef.h: ... here.
1824         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Moved to ...
1825         * sysdeps/sh/sh4/bits/mathdef.h: ... here.
1826         * sysdeps/x86_64/fpu/bits/mathdef.h: Moved to ...
1827         * sysdeps/x86_64/bits/mathdef.h: ... here.
1828
1829 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
1830
1831         * sysdeps/unix/sysv/linux/i386/fxstatat.c [XSTAT_IS_STAT64]
1832         (__fxstatat64): Add libc_hidden_ver.
1833         * sysdeps/unix/sysv/linux/fxstatat.c [XSTAT_IS_STAT64] (__fxstatat64):
1834         Likewise.
1835
1836         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Remove jmpbuf-offsets.h
1837         include.
1838
1839 2006-01-31  Roland McGrath  <roland@redhat.com>
1840
1841         * sysdeps/powerpc/fpu/libm-test-ulps: Update by Jakub.
1842
1843         * inet/rcmd.c (iruserfopen): Remove redundant initialization.
1844         From Bernhard Fischer <rep.nop@aon.at>.
1845
1846         * posix/regcomp.c (calc_eclosure_iter): Remove dead variables.
1847         Reported by Mike Frysinger <vapier@gentoo.org>.
1848
1849 2006-01-30  Steven Munroe  <sjmunroe@us.ibm.com>
1850
1851         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Correct index
1852         for __sincosl_table.
1853         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
1854         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1855
1856         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Correct sign of 0.0.
1857         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1858
1859         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: New file.
1860         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: New file.
1861         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: New file.
1862
1863 2006-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
1864
1865         * sysdeps/unix/sysv/linux/mips/bits/errno.h (ECANCELED,
1866         EOWNERDEAD, ENOTRECOVERABLE): Define.
1867
1868         * sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_REMOVE): Define.
1869
1870         * sysdeps/mips/dl-machine.h (RTLD_START): Correct offsets for
1871         N64.
1872
1873         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct msghdr): Use
1874         size_t for msg_controllen.
1875         (__cmsg_nxthdr): Correct test.
1876         (__SCM_CONNECT): Delete.
1877
1878 2006-01-30  Alexandre Oliva  <aoliva@redhat.com>
1879             Roland McGrath  <roland@redhat.com>
1880
1881         * configure.in (fno_unit_at_a_time): Set to
1882         -fno-toplevel-reorder if the compiler supports it.
1883         Otherwise use -fno-unit-at-a-time unconditionally.
1884         * configure: Regenerated.
1885
1886 2006-01-30  Jakub Jelinek  <jakub@redhat.com>
1887
1888         * sysdeps/powerpc/fpu/libm-test-ulps: Merge ulps with older
1889         libm-test-ulps rather than overwrite it.  Remove excessively high ulps.
1890
1891 2006-01-29  Joseph S. Myers  <joseph@codesourcery.com>
1892
1893         * soft-fp/double.h (FP_CMP_UNORD_D): Also define in
1894         [_FP_W_TYPE_SIZE >= 64] case.
1895         * soft-fp/extended.h (FP_CMP_UNORD_E): Likewise.
1896         * soft-fp/quad.h (FP_CMP_UNORD_Q): Likewise.
1897
1898 2006-01-27  Dwayne Grant McConnell  <decimal@us.ibm.com>
1899             Jakub Jelinek  <jakub@redhat.com>
1900             Roland McGrath  <roland@redhat.com>
1901             Steven Munroe  <sjmunroe@us.ibm.com>
1902             Alan Modra  <amodra@bigpond.net.au>
1903
1904         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Comment fix.
1905         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1906         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
1907
1908         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1909
1910         * math/libm-test.inc (check_float_internal): Allow ulp <= 0.5.
1911         (erfc_test): Don't run erfcl (27.0L) test if erfcl (27.0L) is
1912         denormal.
1913         [TEST_LDOUBLE] (ceil_test, floor_test, llrint_test, llround_test,
1914         rint_test, round_test, trunc_test): Add new tests.
1915
1916         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: New file.
1917         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: New file.
1918         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S: New file.
1919         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: New file.
1920         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: New file.
1921         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: New file.
1922         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: New file.
1923
1924         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: New file.
1925         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: New file.
1926         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: New file.
1927         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S: New file.
1928         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: New file.
1929         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: New file.
1930         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: New file.
1931         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: New file.
1932         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: New file.
1933         * sysdeps/powerpc/powerpc64/fpu/s_llrintl.S: New file.
1934         * sysdeps/powerpc/powerpc64/fpu/s_llroundl.S: New file.
1935         * sysdeps/powerpc/powerpc64/fpu/s_lrintl.S: New file.
1936         * sysdeps/powerpc/powerpc64/fpu/s_lroundl.S: New file.
1937         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: New file.
1938         * sysdeps/powerpc/powerpc64/fpu/s_rintl.S: New file.
1939         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: New file.
1940         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: New file.
1941
1942         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
1943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: New file.
1944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: New file.
1945         * sysdeps/unix/sysv/linux/powerpc/configure.in: New file.
1946         * sysdeps/unix/sysv/linux/powerpc/configure: New file.
1947         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
1948         (__LONG_DOUBLE_MATH_OPTIONAL): Define.
1949         (__NO_LONG_DOUBLE_MATH): Define.
1950         * sysdeps/unix/sysv/linux/powerpc/nldbl-abi.h: New file.
1951         * sysdeps/powerpc/fpu/s_isnan.c: Include math_ldbl_opt.h.
1952         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include math_ldbl_opt.h.
1953         [LONG_DOUBLE_COMPAT] (ceill): Add compatibility symbols.
1954         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include math_ldbl_opt.h.
1955         [LONG_DOUBLE_COMPAT] (copysignl): Add compatibility symbols.
1956         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include math_ldbl_opt.h.
1957         [LONG_DOUBLE_COMPAT] (floorl): Add compatibility symbols.
1958         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include math_ldbl_opt.h.
1959         [LONG_DOUBLE_COMPAT] (llrintl, lrintl): Add compatibility symbols.
1960         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include math_ldbl_opt.h.
1961         [LONG_DOUBLE_COMPAT] (llroundl, lroundl): Add compatibility symbols.
1962         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include math_ldbl_opt.h.
1963         [LONG_DOUBLE_COMPAT] (rintl): Add compatibility symbols.
1964         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include math_ldbl_opt.h.
1965         [LONG_DOUBLE_COMPAT] (roundl): Add compatibility symbols.
1966         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include math_ldbl_opt.h.
1967         [LONG_DOUBLE_COMPAT] (truncl): Add compatibility symbols.
1968         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include math_ldbl_opt.h.
1969         [LONG_DOUBLE_COMPAT] (ceill): Add compatibility symbols.
1970         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include math_ldbl_opt.h.
1971         [LONG_DOUBLE_COMPAT] (copysignl): Add compatibility symbols.
1972         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include math_ldbl_opt.h.
1973         [LONG_DOUBLE_COMPAT] (floorl): Add compatibility symbols.
1974         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include math_ldbl_opt.h.
1975         [LONG_DOUBLE_COMPAT] (lrintl): Add compatibility symbols.
1976         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include math_ldbl_opt.h.
1977         [LONG_DOUBLE_COMPAT] (llrintl): Add compatibility symbols.
1978         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include math_ldbl_opt.h.
1979         [LONG_DOUBLE_COMPAT] (lroundl): Add compatibility symbols.
1980         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include math_ldbl_opt.h.
1981         [LONG_DOUBLE_COMPAT] (rintl): Add compatibility symbols.
1982         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include math_ldbl_opt.h.
1983         [LONG_DOUBLE_COMPAT] (roundl): Add compatibility symbols.
1984         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include math_ldbl_opt.h.
1985         [LONG_DOUBLE_COMPAT] (truncl): Add compatibility symbols.
1986
1987         * misc/qefgcvt_r.c [LDBL_MIN_10_EXP == -291] (FLOAT_MIN_10_NORM): New.
1988
1989         * sysdeps/powerpc/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Remove.
1990         * sysdeps/powerpc/Implies: Add ieee754/ldbl-128ibm.
1991         * sysdeps/powerpc/powerpc32/Implies: Remove powerpc/soft-fp.
1992         * sysdeps/ieee754/ldbl-128ibm/Makefile: New file.
1993         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: New file.
1994         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: New file.
1995         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: New file.
1996         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: New file.
1997         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: New file.
1998         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: New file.
1999         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: New file.
2000         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: New file.
2001         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: New file.
2002         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: New file.
2003         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: New file.
2004         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: New file.
2005         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: New file.
2006         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: New file.
2007         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: New file.
2008         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: New file.
2009         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: New file.
2010         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: New file.
2011         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: New file.
2012         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: New file.
2013         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: New file.
2014         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: New file.
2015         * sysdeps/ieee754/ldbl-128ibm/ieee754.h: New file.
2016         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: New file.
2017         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: New file.
2018         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: New file.
2019         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: New file.
2020         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: New file.
2021         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: New file.
2022         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: New file.
2023         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: New file.
2024         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: New file.
2025         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: New file.
2026         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: New file.
2027         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: New file.
2028         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: New file.
2029         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: New file.
2030         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: New file.
2031         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: New file.
2032         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: New file.
2033         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: New file.
2034         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: New file.
2035         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: New file.
2036         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: New file.
2037         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: New file.
2038         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: New file.
2039         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: New file.
2040         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: New file.
2041         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: New file.
2042         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: New file.
2043         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: New file.
2044         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: New file.
2045         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: New file.
2046         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: New file.
2047         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: New file.
2048         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: New file.
2049         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: New file.
2050         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: New file.
2051         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: New file.
2052         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: New file.
2053         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: New file.
2054         * sysdeps/ieee754/ldbl-128ibm/t_sincosl.c: New file.
2055         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: New file.
2056         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: New file.
2057         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: New file.
2058         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: New file.
2059         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: New file.
2060         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: New file.
2061         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: New file.
2062         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: New file.
2063         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: New file.
2064         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: New file.
2065
2066         * sysdeps/ieee754/ldbl-128/e_powl.c: Fix old comment.
2067
2068 2006-01-22  Aurelien Jarno  <aurelien@aurel32.net>
2069
2070         * sysdeps/gnu/errlist-compat.awk: Reduce required number of symbols in
2071         sanity check.
2072
2073 2006-01-21  Ulrich Drepper  <drepper@redhat.com>
2074
2075         * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correctly
2076         return EBADF for non-existing file descriptors.
2077         * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): Likewise.
2078         * io/tst-openat.c (do_test): Add some more tests.
2079         * io/tst-faccessat.c (do_test): Likewise.
2080         * io/tst-renameat.c (do_test): Likewise.
2081         * io/tst-fstatat.c (do_test): Likewise.
2082         * io/tst-fchmodat.c (do_test): Likewise.
2083         * io/tst-fchownat.c (do_test): Likewise.
2084
2085 2006-01-21  Roland McGrath  <roland@redhat.com>
2086
2087         * sysdeps/unix/sysv/linux/faccessat.c: Move RESULT defn inside block.
2088
2089         * misc/tst-pselect.c: Include <unistd.h>.
2090
2091         * time/time.h [__need_timespec et al]: Include <bits/types.h> here too.
2092
2093         * stdlib/fpioconst.c: Fix whitespace typo.
2094
2095 2006-01-20  Jakub Jelinek  <jakub@redhat.com>
2096
2097         * sysdeps/ieee754/ldbl-64-128/s_nexttowardfd.c: Moved to...
2098         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: ... here.  New file.
2099         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (long_double_symbol_1): For
2100         C define again using _weak_alias, for assembler use weak_alias.
2101
2102         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: New file.
2103         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: New file.
2104         * sysdeps/powerpc/fpu/bits/mathinline.h (__CPU_HAS_FSQRT): New macro.
2105         (__ieee754_sqrt, __ieee754_sqrtf): Use it.
2106
2107 2006-01-21  Ulrich Drepper  <drepper@redhat.com>
2108
2109         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Allow actual
2110         system call code to be redefined in macro CALL_PSELECT6.
2111         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
2112         (sysdep_routines): Add call_pselect6.
2113         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: New file.
2114         * sysdeps/unix/sysv/linux/i386/pselect.c: New file.
2115         * misc/Makefile (tests): Add tst-pselect.
2116         * misc/tst-pselect.c: New file.
2117
2118 2006-01-20  Roland McGrath  <roland@frob.com>
2119
2120         * sysdeps/mach/hurd/ppoll.c: New file.
2121
2122 2006-01-20  Ulrich Drepper  <drepper@redhat.com>
2123
2124         * sysdeps/unix/sysv/linux/pselect.c: Fix typo in declaration.
2125
2126         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Cast k_dev
2127         value to unsigned int to match kernel.
2128
2129         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the
2130         syscall in more cases.
2131
2132         * io/Makefile (tests): Add tst-symlinkat, tst-linkat, tst-readlinkat,
2133         tst-mkdirat, tst-mknodat, and tst-mkfifoat.
2134         * io/tst-symlinkat.c: New file.
2135         * io/tst-linkat.c: New file.
2136         * io/tst-readlinkat.c: New file.
2137         * io/tst-mkdirat.c: New file.
2138         * io/tst-mknodat.c: New file.
2139         * io/tst-mkfifoat.c: New file.
2140
2141         * dirent/Makefile (tests): Add tst-fdopendir2.
2142         * dirent/tst-fdopendir2.c: New file.
2143
2144 2006-01-20  Alexandre Oliva  <aoliva@redhat.com>
2145
2146         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h
2147         (sigcontext_struct) [__WORDSIZE == 32]: Define.
2148
2149 2006-01-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2150
2151         * sysdeps/sh/sh4/__longjmp.S: Demangle also r14 and r15.
2152         * sysdeps/sh/sh3/__longjmp.S: Likewise.
2153         * sysdeps/sh/sh4/setjmp.S: Mangle also r14 and r15.
2154         * sysdeps/sh/sh3/setjmp.S: Likewise.
2155         * sysdeps/unix/sysv/linux/sh/sysdep.h [__ASSEMBLER__]
2156         (PTR_MANGLE): Add temporary register as the second parameter.
2157         (PTR_DEMANGLE): Likewize.
2158         (PTR_MANGLE2, PTR_DEMANGLE2): Define.
2159
2160 2006-01-19  Ulrich Drepper  <drepper@redhat.com>
2161
2162         * include/fcntl.h: Declare __have_atfcts.
2163         * sysdeps/unix/sysv/linux/faccessat.c: Use syscall if available.
2164         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
2165         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
2166         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
2167         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
2168         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
2169         * sysdeps/unix/sysv/linux/openat.c: Likewise.
2170         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
2171         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
2172         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
2173         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
2174         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
2175         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
2176         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PSELECT,
2177         __ASSUME_PPOLL, and __ASSUME_ATFCTS if possible.
2178
2179         * io/ppoll.c: New file.
2180         * io/Makefile (routines): Add ppoll.
2181         (CFLAGS-ppoll.c): Define.
2182         * io/Versions: Export ppoll for GLIBC_2.4.
2183         * io/sys/poll.h: Declare ppoll.
2184         * sysdeps/unix/sysv/linux/ppoll.c: New file.
2185
2186         * misc/pselect.c: Make it possible to include this file to define
2187         the generic code as a static function.
2188         * sysdeps/unix/sysv/linux/pselect.c: New file.
2189
2190 2006-01-19  Jakub Jelinek  <jakub@redhat.com>
2191
2192         * misc/pselect.c (__pselect): Remove static.
2193         Include sysdep-cancel.h again.  Add LIBC_CANCEL_HANDLED ().
2194
2195 2006-01-18  Roland McGrath  <roland@redhat.com>
2196
2197         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h [__ASSEMBLER__]: Don't
2198         include problematic headers for assembler.
2199
2200         * Makerules ($(+sysdir_pfx)sysd-rules): Don't emit m_%.c rules,
2201         instead emit m_%.o compilation rules from s_%.? source files.
2202         * math/Makefile ($(objpfx)m_%$o: s_%.c): New rule using o-iterator.
2203
2204 2006-01-18  Ulrich Drepper  <drepper@redhat.com>
2205
2206         * misc/pselect.c (__pselect): No need to enable async cancellation
2207         here.  This is done in select.
2208
2209         * sysdeps/unix/sysv/linux/fxstatat.c [STAT_IS_KERNEL_STAT]
2210         (__fxstatat): Correct handling of invalid vers values.
2211
2212         [BZ #2173]
2213         * libio/fileops.c (_IO_new_file_fopen): If ,ccs= is given, also
2214         set vtable to the wide vtable.
2215         * libio/tst-fopenloc2.c: New file.
2216         * libio/Makefile (tests): Add tst-fopenloc2.
2217
2218 2006-01-18  Roland McGrath  <roland@redhat.com>
2219
2220         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf.c: Restore
2221         attribute_hidden here.
2222
2223         * sysdeps/sparc/sparc64/Makefile (long-double-fcts): Move this ...
2224         * sysdeps/sparc/Makefile (long-double-fcts): ... to here.
2225
2226 2006-01-18  Jakub Jelinek  <jakub@redhat.com>
2227
2228         * elf/dl-deps.c (_dl_map_object_deps): In case of failure also make a
2229         copy of objname string.
2230
2231 2006-01-16  Roland McGrath  <roland@redhat.com>
2232
2233         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules to install
2234         into $(inst_includedir)/%.h from sysdirs.
2235         [headers]: Change static pattern rule for installing
2236         $(headers) to do only those not matching %.h.
2237         ($(inst_includedir)/%.h: $(objpfx)%.h): Add this pattern rule instead.
2238         ($(inst_includedir)/%.h: %.h): Likewise.
2239         ($(inst_includedir)/%.h: $(..)include/%.h): Likewise.
2240
2241         * Makefile ($(inst_includedir)/gnu/stubs.h):
2242         Add $(make-target-directory).
2243
2244         * stdlib/Makefile (headers): Restore headers removed in last change.
2245
2246 2006-01-16  Jakub Jelinek  <jakub@redhat.com>
2247
2248         * math/e_exp2l.c: Don't include stdio.h, errno.h, stub-tag.h, include
2249         math_private.h.
2250         (__ieee754_exp2l): Compute for now as expl (M_LN2l * x)
2251         instead of failing.
2252         (exp2l): Remove stub_warning.
2253
2254 2006-01-15  Jakub Jelinek  <jakub@redhat.com>
2255
2256         * io/tst-faccessat.c (do_test): Don't fail if geteuid () == 0.
2257
2258 2006-01-16  Ulrich Drepper  <drepper@redhat.com>
2259
2260         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2261         __ASSUME_TMPFS_NAME.
2262         * sysdeps/unix/sysv/linux/shm_open.c [__ASSUME_TMPFS_NAME]
2263         (where_is_shmfs): Don't test for obsolete shm filesystem name.
2264
2265         * sysdeps/unix/sysv/linux/getsysstats.c: Don't search for proc
2266         mount point.  We assume procfs is mounted at /proc in many other
2267         places already.
2268
2269 2006-01-15  Andreas Jaeger  <aj@suse.de>
2270
2271         [BZ #1950]
2272         * posix/regex_internal.c (re_string_reconstruct): Adjust for
2273         build_wcs_upper_buffer change.
2274         (build_wcs_upper_buffer): Change return type.
2275
2276         [BZ #2153]
2277         * math/s_cacosh.c (__cacosh): Do not return a negative
2278         value. Patch by Wes Loewer <wjltemp-temp01@yahoo.com>.
2279         * math/s_cacoshl.c (__cacoshl): Likewise.
2280         * math/s_cacoshf.c (__cacoshf): Likewise.
2281         * math/libm-test.inc (cacosh_test): Adjust for change.
2282
2283         * sysdeps/alpha/fpu/libm-test-ulps: Adopt for cacosh test change.
2284         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
2285         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
2286         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
2287         * sysdeps/m68k/fpu/libm-test-ulps: Likewise.
2288         * sysdeps/mips/fpu/libm-test-ulps: Likewise.
2289         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2290         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2292         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
2293         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
2294         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
2295
2296         [BZ #2079]
2297         * libio/fputwc_u.c (fputwc_unlocked): Fix return value.
2298         * libio/getwc_u.c (__getwc_unlocked): Likewise.
2299         * libio/wfileops.c (_IO_wdo_write): Likewise.
2300
2301         [BZ #2078]
2302         * libio/fputwc.c (fputwc): Use proper type for result.
2303         * libio/ioungetwc.c (ungetwc): Likewise.
2304
2305 2006-01-14  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_BATCH.
2308
2309 2006-01-14  Roland McGrath  <roland@redhat.com>
2310
2311         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_DECL): Don't try
2312         attribute_hidden here.
2313         * sysdeps/ieee754/ldbl-opt/nldbl-vsyslog.c (vsyslog): Restore
2314         attribute_hidden here.
2315         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf.c (__asprintf): Likewise.
2316         * sysdeps/ieee754/ldbl-opt/nldbl-fprintf.c (fprintf): Likewise.
2317         * sysdeps/ieee754/ldbl-opt/nldbl-qecvt.c (qecvt): Likewise.
2318         * sysdeps/ieee754/ldbl-opt/nldbl-qfcvt.c (qfcvt): Likewise.
2319         * sysdeps/ieee754/ldbl-opt/nldbl-qgcvt.c (qgcvt): Likewise.
2320
2321         * sysdeps/ieee754/ldbl-opt/configure.in: Use AC_TRY_COMPILE and
2322         verify __LONG_DOUBLE_128__ predefine.
2323         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2324
2325         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_HIDDEN): Removed.
2326         (NLDBL_DECL): Rewritten.
2327         Remove __THROW from NLDBL_DECL uses.
2328         Use NLDBL_DECL for __vstrfmon_l.
2329         (__nldbl___vsyslog_chk): Restore missing decl.
2330         * sysdeps/ieee754/ldbl-opt/nldbl-asinh.c: Restore attribute_hidden.
2331
2332 2006-01-14  Jakub Jelinek  <jakub@redhat.com>
2333
2334         * misc/sys/cdefs.h (__LDBL_REDIR1_DECL): Define.
2335         (__LDBL_REDIR_DECL): Stringize __nldbl and name.
2336         * stdlib/bits/monetary-ldbl.h: Remove pastos from wchar-ldbl.h.
2337         (strfmon, strfmon_l): Add __LDBL_REDIR_DECL.
2338         * stdlib/bits/stdlib-ldbl.h (strtold, strtold_l, __strtold_internal,
2339         qecvt, qfcvt, qgcvt, qecvt_r, qfcvt_r): Use __LDBL_REDIR1_DECL
2340         instead of __LDBL_REDIR_DECL.
2341         * wcsmbs/bits/wchar-ldbl.h: Remove stale #if.
2342         (__LDBL_REDIR_WCHAR): Remove.
2343         (fwprintf, wprintf, swprintf, vfwprintf, vwprintf, vswprintf,
2344         fwscanf, wscanf, swscanf, vfwscanf, vwscanf, vswscanf): Use
2345         __LDBL_REDIR_DECL instead of __LDBL_REDIR_WCHAR.
2346         (wcstold, wcstold_l, __wcstold_internal): Add __LDBL_REDIR1_DECL.
2347         * wcsmbs/wchar.h: Include bits/wchar-ldbl.h after bits/wchar2.h
2348         instead of before it.
2349         (wcstold inline): Move #ifndef __LDBL_COMPAT before
2350         extern keyword.
2351         * libio/bits/stdio-ldbl.h (__snprintf_chk, __vsnprintf_chk): Add
2352         __LDBL_REDIR_DECL.
2353         * misc/bits/syslog-ldbl.h (vsyslog): Protect with #ifdef __USE_BSD.
2354         (__syslog_chk, __vsyslog_chk): Add __LDBL_REDIR_DECL.
2355
2356 2006-01-14  Roland McGrath  <roland@redhat.com>
2357
2358         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_DECL): Fix typo.
2359         (NLDBL_HIDDEN): New macro.
2360         (NLDBL_DECL): Use it in place of attribute_hidden.
2361
2362         * misc/efgcvt.c: Include <math_ldbl_opt.h> instead of <shlib-compat.h>.
2363         * misc/efgcvt_r.c: Likewise.
2364
2365         * sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h: New file.
2366         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: #include <nldbl-abi.h>
2367         to define LONG_DOUBLE_COMPAT_VERSION.  Use that in place of
2368         NLDBL_VERSION.
2369         * sysdeps/ieee754/ldbl-opt/Versions: Include <nldbl-abi.h>.
2370         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Revert last change.
2371
2372 2006-01-14  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New
2375         prototype.
2376         (nexttowardf): Redirect to __nldbl_nexttowardf.
2377         (nexttoward): Redirect to nextafter.
2378         (__MATHDECL_2, __MATHDECL_1): Redirect *l functions to
2379         non-*l versions if __LONG_DOUBLE_MATH_OPTIONAL and
2380         __NO_LONG_DOUBLE_MATH.
2381         * math/complex.h (__MATHDECL_1): Likewise.
2382         * math/bits/mathcalls.h (nexttoward): Don't prototype if
2383         __LDBL_COMPAT.
2384         * misc/sys/cdefs.h: Include <bits/wordsize.h>.
2385         (__LDBL_COMPAT, __LDBL_REDIR1, __LDBL_REDIR, __LDBL_REDIR1_NTH,
2386         __LDBL_REDIR_NTH, __LDBL_REDIR_DECL): New macros.
2387
2388         * libio/bits/stdio-ldbl.h: New file.
2389         * libio/Makefile (headers): Add it.
2390         * libio/stdio.h [__LDBL_COMPAT]: #include it.
2391         * libio/bits/libio-ldbl.h: New file.
2392         * libio/Makefile (headers): Add it.
2393         * libio/libio.h [__LDBL_COMPAT]: #include it.
2394         * libio/libioP.h: Include <math_ldbl_opt.h>.
2395         * include/wchar.h (__fwprintf, __vfwprintf): Fix commented out
2396         attribute.
2397         (__vfwprintf_chk): New prototype.  Add libc_hidden_proto.
2398         * wcsmbs/bits/wchar-ldbl.h: New file.
2399         * wcsmbs/Makefile (headers): Add it.
2400         * wcsmbs/wchar.h [__LDBL_COMPAT]: #include it.
2401         * wcsmbs/bits/wchar2.h (__vswprintf_alias): Removed.
2402         (vswprintf): Define as a macro rather than inline function.
2403         * stdio-common/bits/printf-ldbl.h: New file.
2404         * stdio-common/Makefile (headers): Add it.
2405         * stdio-common/printf.h [__LDBL_COMPAT]: #include it.
2406         * libio/fwprintf.c: Include libioP.h.
2407         (fwprintf): Use ldbl_weak_alias instead of weak_alias.
2408         * libio/fwscanf.c: Include libioP.h.
2409         (fwscanf): Rename to __fwscanf and add ldbl_strong_alias.
2410         * libio/iovdprintf.c (vdprintf): Use ldbl_weak_alias instead of
2411         weak_alias.
2412         * libio/iovsprintf.c (_IO_vsprintf): Rename to __IO_vsprintf,
2413         add ldbl_strong_alias and use INTDEF2 instead of INTDEF.
2414         (vsprintf): Use ldbl_weak_alias instead of weak_alias.
2415         * libio/iovsscanf.c (__vsscanf, vsscanf): Use ldbl_weak_alias
2416         instead of weak_alias.
2417         * libio/iovswscanf.c (vswscanf): Rename to __vswscanf,
2418         add ldbl_strong_alias and use ldbl_hidden_def instead of
2419         libc_hidden_def.
2420         * libio/obprintf.c (obstack_printf, obstack_vprintf): Use
2421         ldbl_weak_alias instead of weak_alias.
2422         * libio/swprintf.c: Include libioP.h.
2423         (swprintf): Rename to __swprintf and add ldbl_strong_alias.
2424         * libio/swscanf.c: Include libioP.h.
2425         (swscanf): Rename to __swscanf and add ldbl_strong_alias.
2426         * libio/vasprintf.c (vasprintf): Use ldbl_weak_alias instead of
2427         weak_alias.
2428         * libio/vscanf.c (vscanf): Use ldbl_weak_alias instead of
2429         weak_alias.
2430         * libio/vsnprintf.c (__vsnprintf, vsnprintf): Use ldbl_weak_alias
2431         instead of weak_alias.
2432         * libio/vswprintf.c (__vswprintf): Remove alias.
2433         (vswprintf): Use ldbl_weak_alias instead of weak_alias.
2434         * libio/vwprintf.c: Include libioP.h.
2435         (vwprintf): Rename to __vwprintf and add ldbl_strong_alias.
2436         * libio/vwscanf.c (vwscanf): Rename to __vwscanf and add
2437         ldbl_strong_alias.
2438         * libio/wprintf.c: Include libioP.h.
2439         (wprintf): Rename to __wprintf and add ldbl_strong_alias.
2440         * libio/wscanf.c: Include libioP.h.
2441         (wscanf): Rename to __wscanf and add ldbl_strong_alias.
2442         * stdio-common/asprintf.c (__asprintf): Rename to ___asprintf, add
2443         ldbl_strong_alias and use INTDEF2 instead of INTDEF.
2444         (asprintf): Use ldbl_weak_alias instead of weak_alias.
2445         * stdio-common/dprintf.c (dprintf): Rename to __dprintf, add
2446         ldbl_strong_alias and use ldbl_hidden_def instead of
2447         libc_hidden_def.
2448         * stdio-common/fprintf.c: Include libioP.h.
2449         (fprintf): Rename to __fprintf, add ldbl_strong_alias and
2450         use ldbl_hidden_def instead of libc_hidden_def.
2451         (_IO_fprintf): Use ldbl_weak_alias instead of weak_alias.
2452         * stdio-common/fscanf.c: Include libioP.h.
2453         (fscanf): Rename to __fscanf and add ldbl_strong_alias.
2454         * stdio-common/printf.c: Include libioP.h.
2455         (printf): Rename to __printf and add ldbl_strong_alias.
2456         (_IO_printf): Use ldbl_strong_alias instead of strong_alias.
2457         * stdio-common/printf_fp.c (__printf_fp): Rename to __printf_fp, add
2458         ldbl_strong_alias and use ldbl_hidden_def instead of
2459         libc_hidden_def.
2460         * stdio-common/printf_size.c (printf_size): Rename to __printf_size
2461         and add ldbl_strong_alias.
2462         * stdio-common/scanf.c (scanf): Rename to __scanf and add
2463         ldbl_strong_alias.
2464         * stdio-common/snprintf.c (snprintf): Use ldbl_weak_alias instead of
2465         weak_alias.
2466         * stdio-common/sprintf.c (sprintf): Rename to __sprintf, add
2467         ldbl_strong_alias and use ldbl_hidden_def instead of
2468         libc_hidden_def.
2469         (_IO_sprintf): Use ldbl_strong_alias instead of strong_alias.
2470         * stdio-common/sscanf.c: Include libioP.h instead of iolibio.h.
2471         (sscanf): Rename to __sscanf and add ldbl_strong_alias.
2472         * stdio-common/vfprintf.c (vfprintf): Define to
2473         _IO_vfprintf_internal.  Use ldbl_strong_alias instead.  Use
2474         ldbl_hidden_def instead of libc_hidden_def.
2475         (_IO_vfprintf_internal): Clear is_long_double if __ldbl_is_dbl,
2476         handle the argument as double if it is non-zero.
2477         (vfwprintf): Use ldbl_weak_alias instead of weak_alias.
2478         (_IO_vfprintf): Add ldbl_strong_alias.
2479         * stdio-common/vfscanf.c (_IO_vfscanf): Rename to
2480         _IO_vfscanf_internal, don't use strtold if __ldbl_is_dbl, add
2481         ldbl_strong_alias.
2482         (vfwscanf): Use ldbl_weak_alias instead of weak_alias.
2483         (__vfscanf): Rename to ___vfscanf, add ldbl_strong_alias and
2484         use ldbl_hidden_def instead of libc_hidden_def.
2485         (vfscanf): Use ldbl_weak_alias instead of weak_alias.
2486         * stdio-common/vprintf.c: Include libioP.h.
2487         (vprintf): Rename to __vprintf and add ldbl_strong_alias.
2488         * debug/fprintf_chk.c (__fprintf_chk): Rename to ___fprintf_chk
2489         and add ldbl_strong_alias.
2490         * debug/printf_chk.c (__printf_chk): Rename to ___printf_chk
2491         and add ldbl_strong_alias.
2492         * debug/snprintf_chk.c: Include libioP.h.
2493         (__snprintf_chk): Rename to ___snprintf_chk and add ldbl_strong_alias.
2494         * debug/sprintf_chk.c: Include libioP.h.
2495         (__sprintf_chk): Rename to ___sprintf_chk and add ldbl_strong_alias.
2496         * debug/vfprintf_chk.c (__vfprintf_chk): Rename to ___vfprintf_chk,
2497         add ldbl_strong_alias and use ldbl_hidden_def instead of
2498         libc_hidden_def.
2499         * debug/vfwprintf_chk.c (__vfwprintf_chk): Add libc_hidden_def.
2500         * debug/vprintf_chk.c (__vprintf_chk): Rename to ___vprintf_chk
2501         and add ldbl_strong_alias.
2502         * debug/vsnprintf_chk.c (__vsnprintf_chk): Rename to ___vsnprintf_chk,
2503         add ldbl_strong_alias and use ldbl_hidden_def instead of
2504         libc_hidden_def.
2505         * debug/vsprintf_chk.c (__vsprintf_chk): Rename to ___vsprintf_chk,
2506         add ldbl_strong_alias and use ldbl_hidden_def instead of
2507         libc_hidden_def.
2508
2509         * stdlib/stdlib.h (strtold): Don't define inline if [!__LDBL_COMPAT].
2510         * wcsmbs/wchar.h (wcstold): Likewise.
2511         * stdlib/strtod_l.c: Include math_ldbl_opt.h.
2512         (____STRTOF_INTERNAL): Define.
2513         (INTERNAL (__STRTOF)): Rename to ____STRTOF_INTERNAL.
2514         (__STRTOF): Call ____STRTOF_INTERNAL instead.
2515         [LONG_DOUBLE_COMPAT] (strtold_l, wcstold_l, __strtold_l, __wcstold_l):
2516         Add compatibility symbols.
2517         * stdlib/strtod.c: Include math_ldbl_opt.h.
2518         [LONG_DOUBLE_COMPAT] (strtold, wcstold, __strtold_internal,
2519         __wcstold_internal): Add compatibility symbols.
2520         * stdlib/strtold.c: Include bits/wordsize.h, wchar.h.
2521         (NEW, NEW1): Define.
2522         (__new_strtold, __new_wcstold): New prototypes.
2523         (____new_strtold_internal, ____new_wcstold_internal): Likewise.
2524         Add libc_hidden_proto.
2525         (STRTOF): Define to NEW (*told).
2526         [__LONG_DOUBLE_MATH_OPTIONAL] (wcstold, strtold): Add
2527         long_double_symbol.
2528         [__LONG_DOUBLE_MATH_OPTIONAL] (__wcstold_internal,
2529         __strtold_internal): Likewise. Add libc_hidden_ver.
2530
2531         * stdlib/bits/stdlib-ldbl.h: New file.
2532         * stdlib/Makefile (headers): Add it.
2533         * stdlib/stdlib.h [__LDBL_COMPAT]: #include it.
2534         * include/stdlib.h (ecvt_r, fcvt_r, qecvt_r, qfcvt_r): Remove
2535         libc_hidden_proto.
2536         (__ecvt, __fcvt, __gcvt, __ecvt_r, __fcvt_r, __qecvt, __qfcvt,
2537         __qgcvt, __qecvt_r, __qfcvt_r): New prototypes.
2538         * misc/efgcvt_r.c: Include shlib-compat.h.
2539         (LONG_DOUBLE_CVT): Define.
2540         (__APPEND, __APPEND2): Define.
2541         (*fcvt_r): Use __APPEND instead of APPEND.  Remove libc_hidden_def.
2542         (*ecvt_r): Likewise.
2543         (cvt_symbol): Define.  Use it on fcvt_r and ecvt_r.
2544         * misc/efgcvt.c: Include shlib-compat.h.
2545         (LONG_DOUBLE_CVT): Define.
2546         (__APPEND, __APPEND2): Define.
2547         (fcvt): Use __APPEND instead of APPEND.  Remove libc_hidden_def.
2548         (ecvt, gcvt): Likewise.
2549         (cvt_symbol): Define.  Use it on fcvt, ecvt and gcvt.
2550
2551         * stdlib/bits/monetary-ldbl.h: New file.
2552         * stdlib/Makefile (headers): Add it.
2553         * stdlib/monetary.h [__LDBL_COMPAT]: #include it.
2554         * stdlib/strfmon.c: Include math_ldbl_opt.h.
2555         (strfmon): Rename to __strfmon and add ldbl_strong_alias.
2556         * stdlib/strfmon_l.c: Remove all traces of [!USE_IN_LIBIO].
2557         (__vstrfmon_l): Don't set is_long_double if __ldbl_is_dbl.
2558         (__strfmon_l): Rename to ___strfmon_l and add ldbl_strong_alias.
2559         (strfmon_l): Use ldbl_weak_alias instead of weak_alias.
2560
2561         * misc/bits/syslog-ldbl.h: New file.
2562         * misc/Makefile (headers): Add it.
2563         * misc/sys/syslog.h [__LDBL_COMPAT]: #include it.
2564         * misc/syslog.c: Include math_ldbl_opt.h.
2565         (syslog): Rename to __syslog and add ldbl_strong_alias,
2566         use ldbl_hidden_def instead of libc_hidden_def.
2567         (vsyslog): Rename to __vsyslog and add ldbl_strong_alias,
2568         use ldbl_hidden_def instead of libc_hidden_def.
2569
2570         * sysdeps/generic/math_ldbl_opt.h: New file.
2571         * math/w_j1l.c (j1l, y1l): Rename to __ prefixed variants.
2572         Add weak_alias.
2573         * math/w_j0l.c (j0l, y0l): Likewise.
2574         * math/w_jnl.c (jnl, ynl): Likewise.
2575         * sysdeps/ieee754/ldbl-96/s_nexttoward.c
2576         (__nexttowardl): Remove strong_alias.
2577         (nexttowardl): Remove weak_alias.
2578         * sysdeps/ieee754/ldbl-96/s_erfl.c
2579         (__erfl, __erfcl): Remove strong_alias.
2580         (erfl, erfcl): Remove weak_alias.
2581
2582         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: New file.
2583         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: New file.
2584         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: New file.
2585         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: New file.
2586         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: New file.
2587         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: New file.
2588         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: New file.
2589         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: New file.
2590         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: New file.
2591         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: New file.
2592         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: New file.
2593         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: New file.
2594         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: New file.
2595         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: New file.
2596         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: New file.
2597         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: New file.
2598         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: New file.
2599         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: New file.
2600         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: New file.
2601         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: New file.
2602         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: New file.
2603         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: New file.
2604         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: New file.
2605         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: New file.
2606         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c: New file.
2607         * sysdeps/ieee754/ldbl-64-128/s_nexttoward.c: New file.
2608         * sysdeps/ieee754/ldbl-64-128/s_nexttowardf.c: New file.
2609         * sysdeps/ieee754/ldbl-64-128/s_nexttowardfd.c: New file.
2610         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: New file.
2611         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: New file.
2612         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: New file.
2613         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: New file.
2614         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: New file.
2615         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: New file.
2616         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: New file.
2617         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: New file.
2618         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: New file.
2619         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: New file.
2620         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: New file.
2621         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: New file.
2622         * sysdeps/ieee754/ldbl-64-128/w_expl.c: New file.
2623         * sysdeps/ieee754/ldbl-opt/configure.in: New file.
2624         * sysdeps/ieee754/ldbl-opt/configure: New file.
2625         * sysdeps/ieee754/ldbl-opt/Makefile: New file.
2626         * sysdeps/ieee754/ldbl-opt/Versions: New file.
2627         * sysdeps/ieee754/ldbl-opt/cabs.c: New file.
2628         * sysdeps/ieee754/ldbl-opt/cabsl.c: New file.
2629         * sysdeps/ieee754/ldbl-opt/carg.c: New file.
2630         * sysdeps/ieee754/ldbl-opt/cargl.c: New file.
2631         * sysdeps/ieee754/ldbl-opt/cimag.c: New file.
2632         * sysdeps/ieee754/ldbl-opt/cimagl.c: New file.
2633         * sysdeps/ieee754/ldbl-opt/conj.c: New file.
2634         * sysdeps/ieee754/ldbl-opt/conjl.c: New file.
2635         * sysdeps/ieee754/ldbl-opt/creal.c: New file.
2636         * sysdeps/ieee754/ldbl-opt/creall.c: New file.
2637         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: New file.
2638         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: New file.
2639         * sysdeps/ieee754/ldbl-opt/nldbl-acos.c: New file.
2640         * sysdeps/ieee754/ldbl-opt/nldbl-acosh.c: New file.
2641         * sysdeps/ieee754/ldbl-opt/nldbl-asin.c: New file.
2642         * sysdeps/ieee754/ldbl-opt/nldbl-asinh.c: New file.
2643         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf.c: New file.
2644         * sysdeps/ieee754/ldbl-opt/nldbl-atan.c: New file.
2645         * sysdeps/ieee754/ldbl-opt/nldbl-atan2.c: New file.
2646         * sysdeps/ieee754/ldbl-opt/nldbl-atanh.c: New file.
2647         * sysdeps/ieee754/ldbl-opt/nldbl-cabs.c: New file.
2648         * sysdeps/ieee754/ldbl-opt/nldbl-cacos.c: New file.
2649         * sysdeps/ieee754/ldbl-opt/nldbl-cacosh.c: New file.
2650         * sysdeps/ieee754/ldbl-opt/nldbl-carg.c: New file.
2651         * sysdeps/ieee754/ldbl-opt/nldbl-casin.c: New file.
2652         * sysdeps/ieee754/ldbl-opt/nldbl-casinh.c: New file.
2653         * sysdeps/ieee754/ldbl-opt/nldbl-catan.c: New file.
2654         * sysdeps/ieee754/ldbl-opt/nldbl-catanh.c: New file.
2655         * sysdeps/ieee754/ldbl-opt/nldbl-cbrt.c: New file.
2656         * sysdeps/ieee754/ldbl-opt/nldbl-ccos.c: New file.
2657         * sysdeps/ieee754/ldbl-opt/nldbl-ccosh.c: New file.
2658         * sysdeps/ieee754/ldbl-opt/nldbl-ceil.c: New file.
2659         * sysdeps/ieee754/ldbl-opt/nldbl-cexp.c: New file.
2660         * sysdeps/ieee754/ldbl-opt/nldbl-cimag.c: New file.
2661         * sysdeps/ieee754/ldbl-opt/nldbl-clog.c: New file.
2662         * sysdeps/ieee754/ldbl-opt/nldbl-clog10.c: New file.
2663         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: New file.
2664         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: New file.
2665         * sysdeps/ieee754/ldbl-opt/nldbl-conj.c: New file.
2666         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c: New file.
2667         * sysdeps/ieee754/ldbl-opt/nldbl-cos.c: New file.
2668         * sysdeps/ieee754/ldbl-opt/nldbl-cosh.c: New file.
2669         * sysdeps/ieee754/ldbl-opt/nldbl-cpow.c: New file.
2670         * sysdeps/ieee754/ldbl-opt/nldbl-cproj.c: New file.
2671         * sysdeps/ieee754/ldbl-opt/nldbl-creal.c: New file.
2672         * sysdeps/ieee754/ldbl-opt/nldbl-csin.c: New file.
2673         * sysdeps/ieee754/ldbl-opt/nldbl-csinh.c: New file.
2674         * sysdeps/ieee754/ldbl-opt/nldbl-csqrt.c: New file.
2675         * sysdeps/ieee754/ldbl-opt/nldbl-ctan.c: New file.
2676         * sysdeps/ieee754/ldbl-opt/nldbl-ctanh.c: New file.
2677         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf.c: New file.
2678         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: New file.
2679         * sysdeps/ieee754/ldbl-opt/nldbl-erf.c: New file.
2680         * sysdeps/ieee754/ldbl-opt/nldbl-erfc.c: New file.
2681         * sysdeps/ieee754/ldbl-opt/nldbl-exp.c: New file.
2682         * sysdeps/ieee754/ldbl-opt/nldbl-exp10.c: New file.
2683         * sysdeps/ieee754/ldbl-opt/nldbl-exp2.c: New file.
2684         * sysdeps/ieee754/ldbl-opt/nldbl-expm1.c: New file.
2685         * sysdeps/ieee754/ldbl-opt/nldbl-fabs.c: New file.
2686         * sysdeps/ieee754/ldbl-opt/nldbl-fdim.c: New file.
2687         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: New file.
2688         * sysdeps/ieee754/ldbl-opt/nldbl-floor.c: New file.
2689         * sysdeps/ieee754/ldbl-opt/nldbl-fma.c: New file.
2690         * sysdeps/ieee754/ldbl-opt/nldbl-fmax.c: New file.
2691         * sysdeps/ieee754/ldbl-opt/nldbl-fmin.c: New file.
2692         * sysdeps/ieee754/ldbl-opt/nldbl-fmod.c: New file.
2693         * sysdeps/ieee754/ldbl-opt/nldbl-fprintf.c: New file.
2694         * sysdeps/ieee754/ldbl-opt/nldbl-fprintf_chk.c: New file.
2695         * sysdeps/ieee754/ldbl-opt/nldbl-frexp.c: New file.
2696         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c: New file.
2697         * sysdeps/ieee754/ldbl-opt/nldbl-fwprintf.c: New file.
2698         * sysdeps/ieee754/ldbl-opt/nldbl-fwprintf_chk.c: New file.
2699         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c: New file.
2700         * sysdeps/ieee754/ldbl-opt/nldbl-gamma.c: New file.
2701         * sysdeps/ieee754/ldbl-opt/nldbl-hypot.c: New file.
2702         * sysdeps/ieee754/ldbl-opt/nldbl-ilogb.c: New file.
2703         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c: New file.
2704         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: New file.
2705         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: New file.
2706         * sysdeps/ieee754/ldbl-opt/nldbl-j0.c: New file.
2707         * sysdeps/ieee754/ldbl-opt/nldbl-j1.c: New file.
2708         * sysdeps/ieee754/ldbl-opt/nldbl-jn.c: New file.
2709         * sysdeps/ieee754/ldbl-opt/nldbl-ldexp.c: New file.
2710         * sysdeps/ieee754/ldbl-opt/nldbl-lgamma.c: New file.
2711         * sysdeps/ieee754/ldbl-opt/nldbl-lgamma_r.c: New file.
2712         * sysdeps/ieee754/ldbl-opt/nldbl-llrint.c: New file.
2713         * sysdeps/ieee754/ldbl-opt/nldbl-llround.c: New file.
2714         * sysdeps/ieee754/ldbl-opt/nldbl-log.c: New file.
2715         * sysdeps/ieee754/ldbl-opt/nldbl-log10.c: New file.
2716         * sysdeps/ieee754/ldbl-opt/nldbl-log1p.c: New file.
2717         * sysdeps/ieee754/ldbl-opt/nldbl-log2.c: New file.
2718         * sysdeps/ieee754/ldbl-opt/nldbl-logb.c: New file.
2719         * sysdeps/ieee754/ldbl-opt/nldbl-lrint.c: New file.
2720         * sysdeps/ieee754/ldbl-opt/nldbl-lround.c: New file.
2721         * sysdeps/ieee754/ldbl-opt/nldbl-modf.c: New file.
2722         * sysdeps/ieee754/ldbl-opt/nldbl-nan.c: New file.
2723         * sysdeps/ieee754/ldbl-opt/nldbl-nearbyint.c: New file.
2724         * sysdeps/ieee754/ldbl-opt/nldbl-nextafter.c: New file.
2725         * sysdeps/ieee754/ldbl-opt/nldbl-nexttoward.c: New file.
2726         * sysdeps/ieee754/ldbl-opt/nldbl-nexttowardf.c: New file.
2727         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf.c: New file.
2728         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf.c: New file.
2729         * sysdeps/ieee754/ldbl-opt/nldbl-pow.c: New file.
2730         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: New file.
2731         * sysdeps/ieee754/ldbl-opt/nldbl-printf.c: New file.
2732         * sysdeps/ieee754/ldbl-opt/nldbl-printf_chk.c: New file.
2733         * sysdeps/ieee754/ldbl-opt/nldbl-printf_fp.c: New file.
2734         * sysdeps/ieee754/ldbl-opt/nldbl-printf_size.c: New file.
2735         * sysdeps/ieee754/ldbl-opt/nldbl-qecvt.c: New file.
2736         * sysdeps/ieee754/ldbl-opt/nldbl-qecvt_r.c: New file.
2737         * sysdeps/ieee754/ldbl-opt/nldbl-qfcvt.c: New file.
2738         * sysdeps/ieee754/ldbl-opt/nldbl-qfcvt_r.c: New file.
2739         * sysdeps/ieee754/ldbl-opt/nldbl-qgcvt.c: New file.
2740         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c: New file.
2741         * sysdeps/ieee754/ldbl-opt/nldbl-remquo.c: New file.
2742         * sysdeps/ieee754/ldbl-opt/nldbl-rint.c: New file.
2743         * sysdeps/ieee754/ldbl-opt/nldbl-round.c: New file.
2744         * sysdeps/ieee754/ldbl-opt/nldbl-scalb.c: New file.
2745         * sysdeps/ieee754/ldbl-opt/nldbl-scalbln.c: New file.
2746         * sysdeps/ieee754/ldbl-opt/nldbl-scalbn.c: New file.
2747         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c: New file.
2748         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: New file.
2749         * sysdeps/ieee754/ldbl-opt/nldbl-significand.c: New file.
2750         * sysdeps/ieee754/ldbl-opt/nldbl-sin.c: New file.
2751         * sysdeps/ieee754/ldbl-opt/nldbl-sincos.c: New file.
2752         * sysdeps/ieee754/ldbl-opt/nldbl-sinh.c: New file.
2753         * sysdeps/ieee754/ldbl-opt/nldbl-snprintf.c: New file.
2754         * sysdeps/ieee754/ldbl-opt/nldbl-snprintf_chk.c: New file.
2755         * sysdeps/ieee754/ldbl-opt/nldbl-sprintf.c: New file.
2756         * sysdeps/ieee754/ldbl-opt/nldbl-sprintf_chk.c: New file.
2757         * sysdeps/ieee754/ldbl-opt/nldbl-sqrt.c: New file.
2758         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c: New file.
2759         * sysdeps/ieee754/ldbl-opt/nldbl-strfmon.c: New file.
2760         * sysdeps/ieee754/ldbl-opt/nldbl-strfmon_l.c: New file.
2761         * sysdeps/ieee754/ldbl-opt/nldbl-strtold.c: New file.
2762         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: New file.
2763         * sysdeps/ieee754/ldbl-opt/nldbl-strtoldint.c: New file.
2764         * sysdeps/ieee754/ldbl-opt/nldbl-swprintf.c: New file.
2765         * sysdeps/ieee754/ldbl-opt/nldbl-swprintf_chk.c: New file.
2766         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c: New file.
2767         * sysdeps/ieee754/ldbl-opt/nldbl-syslog.c: New file.
2768         * sysdeps/ieee754/ldbl-opt/nldbl-syslog_chk.c: New file.
2769         * sysdeps/ieee754/ldbl-opt/nldbl-tan.c: New file.
2770         * sysdeps/ieee754/ldbl-opt/nldbl-tanh.c: New file.
2771         * sysdeps/ieee754/ldbl-opt/nldbl-tgamma.c: New file.
2772         * sysdeps/ieee754/ldbl-opt/nldbl-trunc.c: New file.
2773         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf.c: New file.
2774         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf.c: New file.
2775         * sysdeps/ieee754/ldbl-opt/nldbl-vfprintf.c: New file.
2776         * sysdeps/ieee754/ldbl-opt/nldbl-vfprintf_chk.c: New file.
2777         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c: New file.
2778         * sysdeps/ieee754/ldbl-opt/nldbl-vfwprintf.c: New file.
2779         * sysdeps/ieee754/ldbl-opt/nldbl-vfwprintf_chk.c: New file.
2780         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c: New file.
2781         * sysdeps/ieee754/ldbl-opt/nldbl-vprintf.c: New file.
2782         * sysdeps/ieee754/ldbl-opt/nldbl-vprintf_chk.c: New file.
2783         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c: New file.
2784         * sysdeps/ieee754/ldbl-opt/nldbl-vsnprintf.c: New file.
2785         * sysdeps/ieee754/ldbl-opt/nldbl-vsnprintf_chk.c: New file.
2786         * sysdeps/ieee754/ldbl-opt/nldbl-vsprintf.c: New file.
2787         * sysdeps/ieee754/ldbl-opt/nldbl-vsprintf_chk.c: New file.
2788         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c: New file.
2789         * sysdeps/ieee754/ldbl-opt/nldbl-vswprintf.c: New file.
2790         * sysdeps/ieee754/ldbl-opt/nldbl-vswprintf_chk.c: New file.
2791         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c: New file.
2792         * sysdeps/ieee754/ldbl-opt/nldbl-vsyslog.c: New file.
2793         * sysdeps/ieee754/ldbl-opt/nldbl-vsyslog_chk.c: New file.
2794         * sysdeps/ieee754/ldbl-opt/nldbl-vwprintf.c: New file.
2795         * sysdeps/ieee754/ldbl-opt/nldbl-vwprintf_chk.c: New file.
2796         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c: New file.
2797         * sysdeps/ieee754/ldbl-opt/nldbl-wcstold.c: New file.
2798         * sysdeps/ieee754/ldbl-opt/nldbl-wcstold_l.c: New file.
2799         * sysdeps/ieee754/ldbl-opt/nldbl-wcstoldint.c: New file.
2800         * sysdeps/ieee754/ldbl-opt/nldbl-wprintf.c: New file.
2801         * sysdeps/ieee754/ldbl-opt/nldbl-wprintf_chk.c: New file.
2802         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c: New file.
2803         * sysdeps/ieee754/ldbl-opt/nldbl-y0.c: New file.
2804         * sysdeps/ieee754/ldbl-opt/nldbl-y1.c: New file.
2805         * sysdeps/ieee754/ldbl-opt/nldbl-yn.c: New file.
2806         * sysdeps/ieee754/ldbl-opt/s_asinh.c: New file.
2807         * sysdeps/ieee754/ldbl-opt/s_atan.c: New file.
2808         * sysdeps/ieee754/ldbl-opt/s_cacos.c: New file.
2809         * sysdeps/ieee754/ldbl-opt/s_cacosh.c: New file.
2810         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: New file.
2811         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: New file.
2812         * sysdeps/ieee754/ldbl-opt/s_casin.c: New file.
2813         * sysdeps/ieee754/ldbl-opt/s_casinh.c: New file.
2814         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: New file.
2815         * sysdeps/ieee754/ldbl-opt/s_casinl.c: New file.
2816         * sysdeps/ieee754/ldbl-opt/s_catan.c: New file.
2817         * sysdeps/ieee754/ldbl-opt/s_catanh.c: New file.
2818         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: New file.
2819         * sysdeps/ieee754/ldbl-opt/s_catanl.c: New file.
2820         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: New file.
2821         * sysdeps/ieee754/ldbl-opt/s_ccos.c: New file.
2822         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: New file.
2823         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: New file.
2824         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: New file.
2825         * sysdeps/ieee754/ldbl-opt/s_ceil.c: New file.
2826         * sysdeps/ieee754/ldbl-opt/s_cexp.c: New file.
2827         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: New file.
2828         * sysdeps/ieee754/ldbl-opt/s_clog.c: New file.
2829         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
2830         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: New file.
2831         * sysdeps/ieee754/ldbl-opt/s_clogl.c: New file.
2832         * sysdeps/ieee754/ldbl-opt/s_copysign.c: New file.
2833         * sysdeps/ieee754/ldbl-opt/s_cpow.c: New file.
2834         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: New file.
2835         * sysdeps/ieee754/ldbl-opt/s_cproj.c: New file.
2836         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: New file.
2837         * sysdeps/ieee754/ldbl-opt/s_csin.c: New file.
2838         * sysdeps/ieee754/ldbl-opt/s_csinh.c: New file.
2839         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: New file.
2840         * sysdeps/ieee754/ldbl-opt/s_csinl.c: New file.
2841         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: New file.
2842         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: New file.
2843         * sysdeps/ieee754/ldbl-opt/s_ctan.c: New file.
2844         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: New file.
2845         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: New file.
2846         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: New file.
2847         * sysdeps/ieee754/ldbl-opt/s_erf.c: New file.
2848         * sysdeps/ieee754/ldbl-opt/s_expm1.c: New file.
2849         * sysdeps/ieee754/ldbl-opt/s_fabs.c: New file.
2850         * sysdeps/ieee754/ldbl-opt/s_fdim.c: New file.
2851         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: New file.
2852         * sysdeps/ieee754/ldbl-opt/s_finite.c: New file.
2853         * sysdeps/ieee754/ldbl-opt/s_floor.c: New file.
2854         * sysdeps/ieee754/ldbl-opt/s_fma.c: New file.
2855         * sysdeps/ieee754/ldbl-opt/s_fmal.c: New file.
2856         * sysdeps/ieee754/ldbl-opt/s_fmax.c: New file.
2857         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: New file.
2858         * sysdeps/ieee754/ldbl-opt/s_fmin.c: New file.
2859         * sysdeps/ieee754/ldbl-opt/s_fminl.c: New file.
2860         * sysdeps/ieee754/ldbl-opt/s_frexp.c: New file.
2861         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: New file.
2862         * sysdeps/ieee754/ldbl-opt/s_isinf.c: New file.
2863         * sysdeps/ieee754/ldbl-opt/s_isnan.c: New file.
2864         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: New file.
2865         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: New file.
2866         * sysdeps/ieee754/ldbl-opt/s_llrint.c: New file.
2867         * sysdeps/ieee754/ldbl-opt/s_llround.c: New file.
2868         * sysdeps/ieee754/ldbl-opt/s_log1p.c: New file.
2869         * sysdeps/ieee754/ldbl-opt/s_logb.c: New file.
2870         * sysdeps/ieee754/ldbl-opt/s_lrint.c: New file.
2871         * sysdeps/ieee754/ldbl-opt/s_lround.c: New file.
2872         * sysdeps/ieee754/ldbl-opt/s_modf.c: New file.
2873         * sysdeps/ieee754/ldbl-opt/s_nan.c: New file.
2874         * sysdeps/ieee754/ldbl-opt/s_nanl.c: New file.
2875         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: New file.
2876         * sysdeps/ieee754/ldbl-opt/s_nextafter.c: New file.
2877         * sysdeps/ieee754/ldbl-opt/s_remquo.c: New file.
2878         * sysdeps/ieee754/ldbl-opt/s_rint.c: New file.
2879         * sysdeps/ieee754/ldbl-opt/s_round.c: New file.
2880         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: New file.
2881         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: New file.
2882         * sysdeps/ieee754/ldbl-opt/s_significand.c: New file.
2883         * sysdeps/ieee754/ldbl-opt/s_significandl.c: New file.
2884         * sysdeps/ieee754/ldbl-opt/s_sin.c: New file.
2885         * sysdeps/ieee754/ldbl-opt/s_sincos.c: New file.
2886         * sysdeps/ieee754/ldbl-opt/s_tan.c: New file.
2887         * sysdeps/ieee754/ldbl-opt/s_tanh.c: New file.
2888         * sysdeps/ieee754/ldbl-opt/s_trunc.c: New file.
2889         * sysdeps/ieee754/ldbl-opt/w_acos.c: New file.
2890         * sysdeps/ieee754/ldbl-opt/w_acosh.c: New file.
2891         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: New file.
2892         * sysdeps/ieee754/ldbl-opt/w_acosl.c: New file.
2893         * sysdeps/ieee754/ldbl-opt/w_asin.c: New file.
2894         * sysdeps/ieee754/ldbl-opt/w_asinl.c: New file.
2895         * sysdeps/ieee754/ldbl-opt/w_atan2.c: New file.
2896         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: New file.
2897         * sysdeps/ieee754/ldbl-opt/w_atanh.c: New file.
2898         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: New file.
2899         * sysdeps/ieee754/ldbl-opt/w_cosh.c: New file.
2900         * sysdeps/ieee754/ldbl-opt/w_coshl.c: New file.
2901         * sysdeps/ieee754/ldbl-opt/w_drem.c: New file.
2902         * sysdeps/ieee754/ldbl-opt/w_dreml.c: New file.
2903         * sysdeps/ieee754/ldbl-opt/w_exp.c: New file.
2904         * sysdeps/ieee754/ldbl-opt/w_exp10.c: New file.
2905         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: New file.
2906         * sysdeps/ieee754/ldbl-opt/w_fmod.c: New file.
2907         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: New file.
2908         * sysdeps/ieee754/ldbl-opt/w_hypot.c: New file.
2909         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: New file.
2910         * sysdeps/ieee754/ldbl-opt/w_j0.c: New file.
2911         * sysdeps/ieee754/ldbl-opt/w_j0l.c: New file.
2912         * sysdeps/ieee754/ldbl-opt/w_j1.c: New file.
2913         * sysdeps/ieee754/ldbl-opt/w_j1l.c: New file.
2914         * sysdeps/ieee754/ldbl-opt/w_jn.c: New file.
2915         * sysdeps/ieee754/ldbl-opt/w_jnl.c: New file.
2916         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: New file.
2917         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: New file.
2918         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: New file.
2919         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: New file.
2920         * sysdeps/ieee754/ldbl-opt/w_log.c: New file.
2921         * sysdeps/ieee754/ldbl-opt/w_log10.c: New file.
2922         * sysdeps/ieee754/ldbl-opt/w_log10l.c: New file.
2923         * sysdeps/ieee754/ldbl-opt/w_log2.c: New file.
2924         * sysdeps/ieee754/ldbl-opt/w_log2l.c: New file.
2925         * sysdeps/ieee754/ldbl-opt/w_logl.c: New file.
2926         * sysdeps/ieee754/ldbl-opt/w_pow.c: New file.
2927         * sysdeps/ieee754/ldbl-opt/w_powl.c: New file.
2928         * sysdeps/ieee754/ldbl-opt/w_remainder.c: New file.
2929         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: New file.
2930         * sysdeps/ieee754/ldbl-opt/w_scalb.c: New file.
2931         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: New file.
2932         * sysdeps/ieee754/ldbl-opt/w_sinh.c: New file.
2933         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: New file.
2934         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: New file.
2935         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: New file.
2936         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: New file.
2937         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: New file.
2938
2939         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: New file.
2940         * sysdeps/unix/sysv/linux/sparc/sparc32/Implies: New file.
2941         * sysdeps/sparc/sparc32/Implies: Move ldbl-128 first and flt-32
2942         after dbl-64.
2943         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (NLDBL_VERSION):
2944         %define this to to GLIBC_2.4.
2945         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
2946         * sysdeps/sparc/sparc32/fpu/s_fabs.c: New file.
2947         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: New file.
2948         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: New file.
2949         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: Removed.
2950         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: Removed.
2951         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: Removed.
2952         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: Removed.
2953         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: Removed.
2954         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: Removed.
2955         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: New file.
2956         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: New file.
2957         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: New file.
2958         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: New file.
2959         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: New file.
2960         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: New file.
2961         * sysdeps/sparc/sparc32/soft-fp/Versions: New file.
2962         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_cmp,
2963         __unordered_v9cmp): Define differently depending on
2964         -m32 -mlong-double-{64,128}.
2965         (__signbitl, sqrtl, __ieee754_sqrtl): New inlines.
2966         * sysdeps/sparc/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Remove.
2967         * sysdeps/sparc/sparc32/soft-fp/Makefile (sparc32-quad-routines):
2968         Set.
2969         (sysdep-routines): Add sparc32-quad-routines.
2970         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Include stdlib.h.
2971         (FP_HANDLE_EXCEPTIONS): Call ___Q_simulate_exceptions as a normal
2972         function.
2973         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): New
2974         alias to _Q_sqrt.
2975         * sysdeps/sparc/sparc32/soft-fp/q_div.c (_Q_div): Fix a typo.
2976         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Include stdlib.h.
2977         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2978
2979         * libio/libio.h (_IO_vfscanf, _IO_vfprintf): Remove __THROW.
2980         (_IO_vfwscanf, _IO_vfwprintf): Likewise.
2981         * libio/libioP.h (_IO_vdprintf): Likewise.
2982
2983 2006-01-13  Richard Henderson  <rth@redhat.com>
2984
2985         * sysdeps/unix/sysv/linux/alpha/sysdep.h (PTR_MANGLE, PTR_MANGLE2,
2986         PTR_DEMANGLE, PTR_DEMANGLE2): Move ...
2987         * sysdeps/unix/alpha/sysdep.h: ... here.
2988         * sysdeps/unix/sysv/linux/alpha/fxstatat.c: Define __GI___fxstatat64.
2989
2990 2006-01-13  Andreas Jaeger  <aj@suse.de>
2991
2992         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (ELF_NVRREG): Fix
2993         value for PowerPC64.
2994
2995 2006-01-12  Roland McGrath  <roland@redhat.com>
2996
2997         * sysdeps/s390/jmpbuf-offsets.h: New file.
2998         * sysdeps/s390/jmpbuf-unwind.h: Include it.
2999
3000         * sysdeps/alpha/__longjmp.S: Include <jmpbuf-offsets.h>
3001         instead of <bits/setjmp.h>.
3002         * sysdeps/alpha/setjmp.S: Likewise.
3003         * sysdeps/i386/__longjmp.S: Likewise.
3004         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3005         * sysdeps/i386/bsd-setjmp.S: Likewise.
3006         * sysdeps/i386/setjmp.S: Likewise.
3007         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
3008         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3009         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S:
3010         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
3011         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3012         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
3013         * sysdeps/sh/sh3/setjmp.S: Likewise.
3014         * sysdeps/sh/sh4/setjmp.S: Likewise.
3015         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3016         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
3017         * sysdeps/x86_64/__longjmp.S: Likewise.
3018         * sysdeps/x86_64/setjmp.S: Likewise.
3019         * sysdeps/mach/hurd/i386/longjmp-ts.c: Include <jmpbuf-offsets.h>.
3020         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: Likewise.
3021         * sysdeps/mach/hurd/alpha/longjmp-ts.c: Likewise.
3022         * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
3023         * sysdeps/hppa/jmpbuf-unwind.h: Likewise.
3024         * sysdeps/i386/jmpbuf-unwind.h: Likewise.
3025         * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
3026         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
3027         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
3028         * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
3029         * setjmp/jmpbuf-offsets.h: File removed.
3030         * include/bits/setjmp.h: File removed.
3031
3032 2006-01-11  Ulrich Drepper  <drepper@redhat.com>
3033
3034         * libio/wmemstream.c: New file.
3035         * libio/stdio.h: Declare open_wmemstream.
3036         * libio/Versions: Export open_wmemstream for GLIBC_2.4.
3037         * libio/Makefile (routines): Add wmemstream.
3038         (tests): Add tst-memstream1, tst-memstream2, tst-wmemstream2, and
3039         tst-wmemstream2.
3040         * libio/tst-memstream1.c: New file.
3041         * libio/tst-memstream2.c: New file.
3042         * libio/tst-wmemstream1.c: New file.
3043         * libio/tst-wmemstream2.c: New file.
3044
3045         * libio/memstream.c (_IO_mem_sync): Remove useless call to
3046         _IO_default_sync.
3047
3048         * elf/check-textrel.c: Add missing argument.
3049
3050         * Makerules: Define build-module-asneeded.
3051         * iconvdata/extra-module.mk: Use build-module-asneeded.
3052         needed.
3053
3054 2006-01-09  Richard Henderson  <rth@redhat.com>
3055
3056         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on ld.so.
3057         * sysdeps/alpha/__longjmp.S: Use PTR_DEMANGLE.
3058         * sysdeps/alpha/setjmp.S: Likewise.  Avoid __sigjmp_save for rtld;
3059         tailcall in libc.so.
3060         * sysdeps/unix/sysv/linux/alpha/sysdep.h (PTR_MANGLE): Define.
3061         (PTR_MANGLE2): Define.
3062
3063 2006-01-11  Ulrich Drepper  <drepper@redhat.com>
3064
3065         * elf/check-localplt.c: New file.
3066         * elf/Makefile: Add rules to build and run check-localplt.
3067         * scripts/data/localplt-x86_64-linux-gnu.data: New file.
3068         * scripts/data/localplt-i386-linux-gnu.data: New file.
3069
3070         * include/sys/stat.h: Add libc_hidden_proto for __fxstatat64.
3071         * sysdeps/unix/sysv/linux/fxstatat64.c: Add libc_hidden_def for
3072         __fxstatat64.
3073         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Add
3074         __GI___fxstatat64 alias.
3075
3076         * libio/memstream.c (_IO_mem_finish): Fix potential memory leak if
3077         realloc fails.
3078
3079         * include/sched.h: Add libc_hidden_proto for __sched_yield.
3080
3081         * libio/genops.c (_IO_unbuffer_write): Give concurrently running
3082         threads the chance to work correctly by trying to lock the stream.
3083         If this does not work, proceed without locking.
3084
3085 2006-01-10  Ulrich Drepper  <drepper@redhat.com>
3086
3087         * libio/genops.c (_IO_unbuffer_write): Don't always free the
3088         buffer.  This is not necessary except in debug mode.  If we don't
3089         free the buffer but the FILE structure to a list.
3090         (buffer_free): New function.  Free buffers or tell _IO_unbuffer_write
3091         to do so.
3092         * libio/libio.h (struct _IO_FILE): Add new members to keep track
3093         of which buffers have to be freed.
3094
3095         * iconv/gconv_cache.c (free_mem): Don't call munmap if gconv_cache
3096         is NULL.
3097
3098 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3099
3100         * malloc/obstack.c: Fix old comments.  Update FSF snail mail address.
3101         * malloc/obstack.h: Likewise.
3102
3103         [BZ #321]
3104         Fix portability bugs encountered when porting to Itanium.
3105         * malloc/obstack.h (obstack_empty_p, obstack_finish): Do not
3106         assume that the "contents" member is suitably aligned.  It is
3107         not, for some hosts and alignments: e.g., Itanium, long-double.
3108         * malloc/obstack.c (_obstack_begin, _obstack_begin_1,
3109         _obstack_newchunk): Likewise.
3110         * malloc/obstack.c: Include <stddef.h>, for size_t.
3111         Include <inttypes.h>, <stdint.h> if needed and available.
3112         (DEFAULT_ALIGNMENT): Now an enum constant, not a macro.
3113         Use C89 offsetof rather than K&R trick.
3114         Use the maximum alignment of uintmax_t, long double, void *
3115         rather than the alignment of double.
3116         (union fooround): Use uintmax_t, long double, void * members
3117         rather than just long and double.
3118
3119         [BZ #321]
3120         Fix portability bugs encountered when porting to the IBM iSeries,
3121         where pointers are 256 bits wide and no integers are that wide.
3122         * malloc/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
3123         All uses changed to:
3124         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
3125         (struct _obstack_chunk.temp): Change from int to a union
3126         of pointer and int.  All uses changed.
3127
3128         [BZ #321]
3129         * malloc/obstack.c (print_and_abort) [!_LIBC]:
3130         Call fprintf (stderr, ...), not __fxprintf (NULL, ...).
3131         [_LIBC && USE_IN_LIBIO]: Don't include <wchar.h>; no longer needed.
3132
3133 2006-01-10  Derek Price  <derek@ximbiot.com>
3134             Paul Eggert  <eggert@cs.ucla.edu>
3135
3136         [BZ #1060]
3137         * posix/glob.c: Assume freestanding C89 compiler.  Simplify cruft that
3138         may be replaced with GNULIB modules.  Make no attempt to find 64-bit
3139         versions of file access functions directly when [!_LIBC].
3140         Don't define GLOB_* macros here.
3141         (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK, DIRENT_MIGHT_BE_DIR): New
3142         macros to abstract dirent->d_type access.
3143         (GETPW_R_SIZE_MAX, GET_LOGIN_NAME_MAX): New macros to abstract sysconf
3144         access.
3145
3146 2006-01-10  Roland McGrath  <roland@redhat.com>
3147
3148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3149         (PTR_MANGLE): Fix cast.
3150
3151         * timezone/test-tz.c: Revert last change, updating to match
3152         tzdata2005r definition of "MST".
3153
3154 2006-01-10  Ulrich Drepper  <drepper@redhat.com>
3155
3156         * include/bits/setjmp.h: Don't include jmpbuf-offsets.h if _ISOMAC is
3157         defined.
3158
3159 2006-01-10  Andreas Jaeger  <aj@suse.de>
3160
3161         * include/time.h: Use normal comments.
3162
3163 2006-01-10  Thomas Schwinge  <tschwinge@gnu.org>
3164
3165         * hurd/sigunwind.c: Include <jmpbuf-unwind.h> instead of <setjmp.h>.
3166         * sysdeps/mach/hurd/jmp-unwind.c: Likewise.
3167
3168 2006-01-10  Jakub Jelinek  <jakub@redhat.com>
3169
3170         * wcsmbs/bits/wchar2.h (vswprintf): Call __vswprintf_alias rather than
3171         vswprintf recursively.
3172
3173 2006-01-10  Ulrich Drepper  <drepper@redhat.com>
3174
3175         * sysdeps/x86_64/bits/setjmp.h: Add back accidently removed #endif.
3176
3177 2006-01-10  Roland McGrath  <roland@redhat.com>
3178
3179         * include/bits/setjmp.h: New file.
3180         * setjmp/jmpbuf-offsets.h: New file.
3181         * sysdeps/alpha/bits/setjmp.h: Move JB_* macros ...
3182         * sysdeps/alpha/jmpbuf-offsets.h: ... here, new file.
3183         * sysdeps/hppa/bits/setjmp.h (JB_SP): Macro moved ...
3184         * sysdeps/hppa/jmpbuf-offsets.h: ... here, new file.
3185         * sysdeps/i386/bits/setjmp.h: Move JB_* macros ...
3186         * sysdeps/i386/jmpbuf-offsets.h: ... here, new file.
3187         * sysdeps/mips/bits/setjmp.h (JB_PC): Macro removed.
3188         * sysdeps/powerpc/bits/setjmp.h: Move JB_* macros ...
3189         * sysdeps/powerpc/jmpbuf-offsets.h: ... here, new file.
3190         * sysdeps/s390/bits/setjmp.h: Remove __JB_* macros.
3191         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Macro moved ...
3192         * sysdeps/sh/jmpbuf-offsets.h: ... here, new file.
3193         * sysdeps/sparc/sparc32/bits/setjmp.h: Move JB_* macros ...
3194         * sysdeps/sparc/sparc32/jmpbuf-offsets.h: ... here, new file.
3195         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Remove JB_* macros.
3196         * sysdeps/x86_64/bits/setjmp.h: Move JB_* macros ...
3197         * sysdeps/x86_64/jmpbuf-offsets.h: ... here, new file.
3198
3199         * sysdeps/powerpc/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3200         * sysdeps/powerpc/jmpbuf-unwind.h: ... here.
3201         * sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3202         * sysdeps/alpha/jmpbuf-unwind.h: ... here.
3203         * sysdeps/sparc/sparc32/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3204         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: ... here.
3205         * sysdeps/i386/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3206         * sysdeps/i386/jmpbuf-unwind.h: ... here.
3207         * sysdeps/x86_64/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3208         * sysdeps/x86_64/jmpbuf-unwind.h: ... here.
3209         * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3210         * sysdeps/sh/jmpbuf-unwind.h: ... here.
3211         * sysdeps/hppa/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3212         * sysdeps/hppa/jmpbuf-unwind.h: ... here, new file.
3213         * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3214         * sysdeps/mips/jmpbuf-unwind.h: ... here.
3215         * sysdeps/m68k/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3216         * sysdeps/m68k/jmpbuf-unwind.h: ... here, new file.
3217         * sysdeps/s390/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
3218         * sysdeps/s390/jmpbuf-unwind.h: ... here.
3219         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
3220         Move macro ...
3221         * sysdeps/ia64/jmpbuf-unwind.h: ... here.
3222         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS):
3223         Move macro ...
3224         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: ... here.
3225
3226         * sysdeps/alpha/jmpbuf-unwind.h: New file, moved from nptl/.
3227         * sysdeps/i386/jmpbuf-unwind.h: New file, moved from nptl/.
3228         * sysdeps/ia64/jmpbuf-unwind.h: New file, moved from nptl/.
3229         * sysdeps/mips/jmpbuf-unwind.h: New file, moved from nptl/.
3230         * sysdeps/powerpc/jmpbuf-unwind.h: New file, moved from nptl/.
3231         * sysdeps/s390/jmpbuf-unwind.h: New file, moved from nptl/.
3232         * sysdeps/sh/jmpbuf-unwind.h: New file, moved from nptl/.
3233         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file, moved from nptl/.
3234         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file, moved from nptl/.
3235         * sysdeps/x86_64/jmpbuf-unwind.h: New file, moved from nptl/.
3236
3237         * sysdeps/linkmap.h: File removed.
3238
3239 2006-01-07  Carlos O'Donell  <carlos@systemhalted.org>
3240
3241         * sysdeps/hppa/elf/start.S (_start): Use PLABEL32 relocations
3242         by using LR and RR. Add %sr0 to iitlbp.
3243
3244 2006-01-09  Roland McGrath  <roland@redhat.com>
3245
3246         * timezone/private.h: Update from tzcode2005r.
3247         * timezone/tzfile.h: Likewise.
3248         * timezone/zdump.c: Likewise.
3249         * timezone/zic.c: Likewise.
3250         * timezone/africa: Update from tzdata2005r.
3251         * timezone/antarctica: Likewise.
3252         * timezone/asia: Likewise.
3253         * timezone/australasia: Likewise.
3254         * timezone/backward: Likewise.
3255         * timezone/europe: Likewise.
3256         * timezone/northamerica: Likewise.
3257         * timezone/southamerica: Likewise.
3258         * timezone/systemv: Likewise.
3259
3260         * elf/Makefile ($(objpfx)reldep5.out): Fix dependency typo,
3261         so we depend on $(objpfx)reldepmod6.so as intended.
3262
3263 2006-01-09  Ulrich Drepper  <drepper@redhat.com>
3264
3265         [BZ #2126]
3266         * sysdeps/i386/i686/strtok.S: Store pointer to NUL byte if NULL is
3267         returned.
3268         * sysdeps/i386/strtok.S: Likewise.
3269         * sysdeps/x86_64/strtok.S: Likewise.
3270         * string/Makefile (tests): Add bug-strtok1.
3271         * string/bug-strtok1.c: New file.
3272
3273         * elf/check-textrel.c (AB): Also check for writable and executable
3274         segments.
3275
3276         * sysdeps/ieee754/dbl-64/e_exp2.c: Remove section attribute from
3277         const variables, gas produces garbage.
3278         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
3279         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
3280         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3281
3282 2006-01-09  Jakub Jelinek  <jakub@redhat.com>
3283
3284         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS): Add
3285         stack bias to mc_fp field.
3286
3287         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h
3288         (struct kernel_stat): Rename st_[amc]time fields to st_[amc]time_sec.
3289         (struct kernel_stat64): New type.
3290         (_HAVE___UNUSED1, _HAVE___UNUSED2, _HAVE_STAT___UNUSED1,
3291         _HAVE_STAT___UNUSED2, _HAVE_STAT___UNUSED3, _HAVE_STAT___UNUSED4,
3292         _HAVE_STAT___UNUSED5, _HAVE_STAT___PAD1, _HAVE_STAT___PAD2,
3293         _HAVE_STAT64___UNUSED1, _HAVE_STAT64___UNUSED2,
3294         _HAVE_STAT64___UNUSED3, _HAVE_STAT64___UNUSED4,
3295         _HAVE_STAT64___UNUSED5, _HAVE_STAT64___PAD1, _HAVE_STAT64___PAD2):
3296         Remove.
3297         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Use i386/xstat.c.
3298         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c:
3299         Use i386/fxstatat.c.
3300         * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat.c: Use i386/lxstat.c.
3301         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: New file.
3302         * sysdeps/unix/sysv/linux/sparc/bits/stat.h (struct stat,
3303         struct stat64): Add nsec resolution for 64-bit code like already done
3304         for 32-bit code.
3305         * sysdeps/unix/sysv/linux/kernel-features.h
3306         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_MMAP2_SYSCALL): Don't define
3307         for sparc64.
3308         (__ASSUME_STAT64_SYSCALL): Only define for sparc64 for >= 2.6.12
3309         kernels.
3310
3311         * scripts/data/c++-types-sparc-linux-gnu.data: New file.
3312         * scripts/data/c++-types-sparc64-linux-gnu.data: New file.
3313         * scripts/data/c++-types-alpha-linux-gnu.data: Adjust.
3314
3315 2006-01-08  Roland McGrath  <roland@redhat.com>
3316
3317         [BZ #1535]
3318         * sysdeps/unix/get_child_max.c: New file.
3319         * posix/get_child_max.c: New file.
3320         * posix/Makefile (routines): Add it.
3321         * include/sys/sysinfo.h (__get_child_max): Declare it.
3322         * sysdeps/posix/sysconf.c (__sysconf) [! CHILD_MAX]: Use it.
3323
3324         * sysdeps/unix/sysv/linux/futimes.c [!__NR_fcntl && __NR_fcntl64]: Use
3325         fcntl64 syscall instead.
3326
3327         * stdio-common/tst-fmemopen2.c (do_test): Add a cast.
3328         * stdio-common/printf-parsemb.c (__find_specmb): Likewise.
3329
3330         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use <> instead of "" in
3331         #include for kernel-features.h.
3332         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: Likewise.
3333         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: Likewise.
3334         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
3335         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
3336         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3337         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3338         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
3339         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3340         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
3341         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
3342         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3343         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
3344         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
3345         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
3346         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
3347         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
3348         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
3349         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
3350         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
3351         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
3352         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
3353         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3354         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
3355         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
3356         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3357         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
3358         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
3359         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3360         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3361         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
3362         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3363         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3364         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
3365         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
3366         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3367         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
3368         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
3369         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3370         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3371         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3372         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3373         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3374         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
3375         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
3376         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3377         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
3378         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3379         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3380         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3381         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3382         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
3383         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3384         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
3385         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
3386         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
3387         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
3388         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3389         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3390         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
3391         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3392         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3393         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3394         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3395         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3396         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3397         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
3398         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
3399         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
3400         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3401         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
3402         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Likewise.
3403         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3404         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
3405         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3406         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
3407         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3408         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
3409         * sysdeps/unix/sysv/linux/opendir.c: Likewise.
3410         * sysdeps/unix/sysv/linux/poll.c: Likewise.
3411         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
3412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Likewise.
3413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
3414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
3415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
3419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Likewise.
3420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
3421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
3422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
3427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3428         * sysdeps/unix/sysv/linux/pread.c: Likewise.
3429         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3430         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
3431         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3432         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3433         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.