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