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