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