.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2006-02-12  Ulrich Drepper  <drepper@redhat.com>
2
3         * io/ftw.c: Start using *at functions.
4         * io/ftw64.c: Likewise.
5
6         * sysdeps/generic/not-cancel.h: Define openat_not_cancel,
7         openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
8         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
9
10         * sysdeps/unix/sysv/linux/openat.c: Create separate _nocancel
11         functions.
12
13         * io/fxstatat.c: Add __fxstatat alias.
14         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
15         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.  Add support for
16         newfstatat syscall.
17         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Add __fxstatat alias.
18         Add support for fstatat64 syscall.
19         * include/sys/stat.h: Declare __fxstatat.
20         * io/fxstatat64.c: Add __fxstatat64 alias.
21         * sysdeps/unix/sysv/linux/fxstatat64.c: Add support for fstatat64
22         syscall.
23
24         * dirent/fdopendir.c: Add __fdopendir alias.
25         * sysdeps/unix/fdopendir.c: Likewise.
26         * sysdeps/mach/hurd/fdopendir.c: Likewise.
27         * include/dirent.h: Add __fdopendir declaration.
28
29         [BZ #2226]
30         * libio/wgenops.c (_IO_wsetb): Use correct size of wide char
31         buffer in FREE_BUF call.
32
33 2006-02-08  Ulrich Drepper  <drepper@redhat.com>
34
35         * sysdeps/unix/sysv/linux/bits/sched.h: Declare unshare.
36         * sysdeps/unix/sysv/linux/Versions [libc, GLIBC_2.4]: Export
37         unshare.
38         * sysdeps/unix/sysv/linux/syscalls.list: Add unshare syscall.
39
40         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Add some
41         preprocessor magic so that the compiler won't see the prototypes
42         for the functions we are defining as stubs.
43
44 2006-02-05  Ulrich Drepper  <drepper@redhat.com>
45
46         * io/ftw.c (ftw_startup): Use fchdir to return to original
47         directory for FTW_CHDIR.
48
49 2006-02-03  Ulrich Drepper  <drepper@redhat.com>
50
51         * manual/stdio.texi (Formatted Output Functions): Fix make_message
52         example.  Patch by NIIBE Yutaka <gniibe@m17n.org>.
53
54 2006-02-03  Roland McGrath  <roland@redhat.com>
55
56         [BZ #2268]
57         * sysdeps/posix/profil.c (__profil): Use __profile_frequency to choose
58         timer interval, don't assume smallest possible interval is it.
59
60 2006-02-03  Jakub Jelinek  <jakub@redhat.com>
61
62         * sysdeps/powerpc/fpu/bits/fenvinline.h (fegetround): Make asm
63         volatile.
64
65         * stdlib/bits/stdlib-ldbl.h (qecvt, qfcvt, qgcvt, qecvt_r, qfcvt_r):
66         Guard with [__USE_SVID || __USE_XOPEN_EXTENDED].
67
68         * math/math.h [__LDBL_COMPAT && __USE_ISOC99] (nexttowardl): New
69         prototype.
70
71         * math/math.h (__nldbl_nexttowardf): Put __THROW before
72         __attribute__ ((__const__)).
73         (__MATHDECL_2): Use __REDIRECT_NTH instead of __REDIRECT
74         followed by __THROW.
75
76 2006-02-02  Ulrich Drepper  <drepper@redhat.com>
77
78         * sysdeps/unix/sysv/linux/futimesat.c [__NR_futimesat]
79         (futimesat): If file is NULL use __futimes.
80         * include/sys/time.h: Declare __futimes.
81
82 2006-02-02  Roland McGrath  <roland@redhat.com>
83
84         * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): Use the same
85         fstat check for ENOENT that should be EBADF as for ENOTDIR, and also
86         check for missing /proc the same way.
87
88         * include/errno.h [__cplusplus]: Avoid extra header magic for C++.
89
90         * manual/install.texi (Tools for Compilation): Require gcc 3.4,
91         recommend 4.1, advise 4.0 for powerpc64, and note 4.1 required for
92         powerpc, s390{x,} with new long double.
93         * INSTALL: Regenerated.
94
95         * timezone/private.h: Update from tzcode2006a.
96         * timezone/scheck.c: Likewise.
97         * timezone/asia: Update from tzdata2006a.
98         * timezone/northamerica: Likewise.
99         * timezone/zone.tab: Likewise.
100
101         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): New variable.
102         (CFLAGS-mcount.c): Use it instead of -msoft-float.
103         * sysdeps/powerpc/powerpc64/elf/Makefile
104         (CFLAGS-dl-runtime.os, CFLAGS-dl-lookup.os, CFLAGS-dl-misc.os,
105         CFLAGS-rtld-mempcpy.os, CFLAGS-rtld-memmove.os, CFLAGS-rtld-memchr.os,
106         CFLAGS-rtld-strnlen.os): Likewise.
107
108 2006-02-01  Roland McGrath  <roland@redhat.com>
109
110         * sysdeps/ieee754/ldbl-opt/Makefile (sysdep-CFLAGS): Avoid adding
111         -mlong-double-128 when it's already there.
112
113 2006-02-01  Roland McGrath  <roland@frob.com>
114
115         * mach/Machrules ($(objpfx)%.uh, $(objpfx)%.__h): Use static pattern
116         rules for these, not implicit rules.
117         ($(objpfx)%.h): Likewise.
118         Reported by Thomas Schwinge <tschwinge@gnu.org>.
119
120 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
121
122         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Use long_double_symbol
123         even for libm.
124
125         * libio/bits/libio-ldbl.h (_IO_vfwscanf, _IO_vfwprintf): Remove
126         __LDBL_REDIR_DECL.
127
128         * math/bits/mathcalls.h: Guard __END_NAMESPACE_C99 with the
129         same #if condition as corresponding __BEGIN_NAMESPACE_C99.
130         (scalb): Don't define only if __USE_ISOC99.
131
132         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Fix a typo.
133         * sysdeps/s390/fpu/libm-test-ulps: Remove llrint ulps.
134
135 2006-01-19  Thomas Schwinge  <tschwinge@gnu.org>
136
137         * libio/genops.c: Include <stdbool.h>.
138
139 2006-02-01  Ulrich Drepper  <drepper@redhat.com>
140
141         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add
142         some more entries.
143         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_02_known): Likewise.
144
145 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
146
147         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
148         * sysdeps/alpha/fpu/s_ceil.c: Include math_ldbl_opt.h, add
149         compat_symbol if LONG_DOUBLE_COMPAT.
150         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
151         * sysdeps/alpha/fpu/s_fabs.c: Likewise.
152         * sysdeps/alpha/fpu/s_floor.c: Likewise.
153         * sysdeps/alpha/fpu/s_rint.c: Likewise.
154         * sysdeps/alpha/soft-fp/e_sqrtl.c: New file.
155         * sysdeps/alpha/Implies: Add ieee754/ldbl-128.
156
157         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: New file.
158         * sysdeps/unix/sysv/linux/alpha/Implies: Add ieee754/ldbl-64-128,
159         ieee754/ldbl-opt.
160         * sysdeps/alpha/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Remove.
161         * sysdeps/unix/sysv/linux/alpha/nldbl-abi.h: New file.
162         * sysdeps/unix/sysv/linux/alpha/Makefile
163         [$(subdir) = math] (libm-routines): Add multc3, divtc3.
164
165         * math/divtc3.c: New file.
166         * math/multc3.c: New file.
167         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile
168         [$(subdir) = math] (libm-routines): Add multc3, divtc3.
169
170         * sysdeps/unix/sysv/linux/sparc/sparc32/fpu/Implies: New file.
171         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include math.h and
172         math_ldbl_opt.h.
173         (fabsl): Use long_double_symbol instead of weak_alias.
174         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Include math.h and
175         math_ldbl_opt.h.
176         [LONG_DOUBLE_COMPAT] (fabsl): Add compat_symbol.
177
178 2006-01-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
179             Jakub Jelinek  <jakub@redhat.com>
180
181         * sysdeps/unix/sysv/linux/s390/Implies: New file.
182         * sysdeps/unix/sysv/linux/s390/fpu/Implies: New file.
183         * sysdeps/unix/sysv/linux/s390/nldbl-abi.h: New file.
184         * sysdeps/s390/fpu/bits/mathinline.h (signbitl, sqrtl): New inlines.
185         * sysdeps/s390/bits/mathdef.h: New file.
186         * sysdeps/s390/fpu/e_sqrtl.c: New file.
187         * sysdeps/s390/s390-32/bits/wordsize.h (__LONG_DOUBLE_MATH_OPTIONAL,
188         __NO_LONG_DOUBLE_MATH): Define.
189         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
190         * sysdeps/s390/Implies: Add ieee754/ldbl-128.
191         * sysdeps/s390/ldbl2mpn.c: File removed.
192         * sysdeps/s390/fpu/libm-test-ulps: Updated.
193
194 2006-01-31  Roland McGrath  <roland@redhat.com>
195
196         * sysdeps/alpha/fpu/bits/mathdef.h: Moved to ...
197         * sysdeps/alpha/bits/mathdef.h: ... here.
198         * sysdeps/i386/fpu/bits/mathdef.h: Moved to ...
199         * sysdeps/i386/bits/mathdef.h: ... here.
200         * sysdeps/mips/fpu/bits/mathdef.h: Moved to ...
201         * sysdeps/mips/bits/mathdef.h: ... here.
202         * sysdeps/m68k/fpu/bits/mathdef.h: Moved to ...
203         * sysdeps/m68k/bits/mathdef.h: ... here.
204         * sysdeps/powerpc/fpu/bits/mathdef.h: Moved to ...
205         * sysdeps/powerpc/bits/mathdef.h: ... here.
206         * sysdeps/sparc/fpu/bits/mathdef.h: Moved to ...
207         * sysdeps/sparc/bits/mathdef.h: ... here.
208         * sysdeps/ia64/fpu/bits/mathdef.h: Moved to ...
209         * sysdeps/ia64/bits/mathdef.h: ... here.
210         * sysdeps/sh/sh4/fpu/bits/mathdef.h: Moved to ...
211         * sysdeps/sh/sh4/bits/mathdef.h: ... here.
212         * sysdeps/x86_64/fpu/bits/mathdef.h: Moved to ...
213         * sysdeps/x86_64/bits/mathdef.h: ... here.
214
215 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
216
217         * sysdeps/unix/sysv/linux/i386/fxstatat.c [XSTAT_IS_STAT64]
218         (__fxstatat64): Add libc_hidden_ver.
219         * sysdeps/unix/sysv/linux/fxstatat.c [XSTAT_IS_STAT64] (__fxstatat64):
220         Likewise.
221
222         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Remove jmpbuf-offsets.h
223         include.
224
225 2006-01-31  Roland McGrath  <roland@redhat.com>
226
227         * sysdeps/powerpc/fpu/libm-test-ulps: Update by Jakub.
228
229         * inet/rcmd.c (iruserfopen): Remove redundant initialization.
230         From Bernhard Fischer <rep.nop@aon.at>.
231
232         * posix/regcomp.c (calc_eclosure_iter): Remove dead variables.
233         Reported by Mike Frysinger <vapier@gentoo.org>.
234
235 2006-01-30  Steven Munroe  <sjmunroe@us.ibm.com>
236
237         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Correct index
238         for __sincosl_table.
239         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
240         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
241
242         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Correct sign of 0.0.
243         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
244
245         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: New file.
246         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: New file.
247         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: New file.
248
249 2006-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
250
251         * sysdeps/unix/sysv/linux/mips/bits/errno.h (ECANCELED,
252         EOWNERDEAD, ENOTRECOVERABLE): Define.
253
254         * sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_REMOVE): Define.
255
256         * sysdeps/mips/dl-machine.h (RTLD_START): Correct offsets for
257         N64.
258
259         * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct msghdr): Use
260         size_t for msg_controllen.
261         (__cmsg_nxthdr): Correct test.
262         (__SCM_CONNECT): Delete.
263
264 2006-01-30  Alexandre Oliva  <aoliva@redhat.com>
265             Roland McGrath  <roland@redhat.com>
266
267         * configure.in (fno_unit_at_a_time): Set to
268         -fno-toplevel-reorder if the compiler supports it.
269         Otherwise use -fno-unit-at-a-time unconditionally.
270         * configure: Regenerated.
271
272 2006-01-30  Jakub Jelinek  <jakub@redhat.com>
273
274         * sysdeps/powerpc/fpu/libm-test-ulps: Merge ulps with older
275         libm-test-ulps rather than overwrite it.  Remove excessively high ulps.
276
277 2006-01-29  Joseph S. Myers  <joseph@codesourcery.com>
278
279         * soft-fp/double.h (FP_CMP_UNORD_D): Also define in
280         [_FP_W_TYPE_SIZE >= 64] case.
281         * soft-fp/extended.h (FP_CMP_UNORD_E): Likewise.
282         * soft-fp/quad.h (FP_CMP_UNORD_Q): Likewise.
283
284 2006-01-27  Dwayne Grant McConnell  <decimal@us.ibm.com>
285             Jakub Jelinek  <jakub@redhat.com>
286             Roland McGrath  <roland@redhat.com>
287             Steven Munroe  <sjmunroe@us.ibm.com>
288             Alan Modra  <amodra@bigpond.net.au>
289
290         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Comment fix.
291         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
292         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
293
294         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
295
296         * math/libm-test.inc (check_float_internal): Allow ulp <= 0.5.
297         (erfc_test): Don't run erfcl (27.0L) test if erfcl (27.0L) is
298         denormal.
299         [TEST_LDOUBLE] (ceil_test, floor_test, llrint_test, llround_test,
300         rint_test, round_test, trunc_test): Add new tests.
301
302         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: New file.
303         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: New file.
304         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S: New file.
305         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: New file.
306         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: New file.
307         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: New file.
308         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: New file.
309
310         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: New file.
311         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: New file.
312         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: New file.
313         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S: New file.
314         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: New file.
315         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: New file.
316         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: New file.
317         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: New file.
318         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: New file.
319         * sysdeps/powerpc/powerpc64/fpu/s_llrintl.S: New file.
320         * sysdeps/powerpc/powerpc64/fpu/s_llroundl.S: New file.
321         * sysdeps/powerpc/powerpc64/fpu/s_lrintl.S: New file.
322         * sysdeps/powerpc/powerpc64/fpu/s_lroundl.S: New file.
323         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: New file.
324         * sysdeps/powerpc/powerpc64/fpu/s_rintl.S: New file.
325         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: New file.
326         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: New file.
327
328         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: New file.
330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: New file.
331         * sysdeps/unix/sysv/linux/powerpc/configure.in: New file.
332         * sysdeps/unix/sysv/linux/powerpc/configure: New file.
333         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
334         (__LONG_DOUBLE_MATH_OPTIONAL): Define.
335         (__NO_LONG_DOUBLE_MATH): Define.
336         * sysdeps/unix/sysv/linux/powerpc/nldbl-abi.h: New file.
337         * sysdeps/powerpc/fpu/s_isnan.c: Include math_ldbl_opt.h.
338         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include math_ldbl_opt.h.
339         [LONG_DOUBLE_COMPAT] (ceill): Add compatibility symbols.
340         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include math_ldbl_opt.h.
341         [LONG_DOUBLE_COMPAT] (copysignl): Add compatibility symbols.
342         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include math_ldbl_opt.h.
343         [LONG_DOUBLE_COMPAT] (floorl): Add compatibility symbols.
344         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include math_ldbl_opt.h.
345         [LONG_DOUBLE_COMPAT] (llrintl, lrintl): Add compatibility symbols.
346         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include math_ldbl_opt.h.
347         [LONG_DOUBLE_COMPAT] (llroundl, lroundl): Add compatibility symbols.
348         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include math_ldbl_opt.h.
349         [LONG_DOUBLE_COMPAT] (rintl): Add compatibility symbols.
350         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include math_ldbl_opt.h.
351         [LONG_DOUBLE_COMPAT] (roundl): Add compatibility symbols.
352         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include math_ldbl_opt.h.
353         [LONG_DOUBLE_COMPAT] (truncl): Add compatibility symbols.
354         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include math_ldbl_opt.h.
355         [LONG_DOUBLE_COMPAT] (ceill): Add compatibility symbols.
356         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include math_ldbl_opt.h.
357         [LONG_DOUBLE_COMPAT] (copysignl): Add compatibility symbols.
358         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include math_ldbl_opt.h.
359         [LONG_DOUBLE_COMPAT] (floorl): Add compatibility symbols.
360         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include math_ldbl_opt.h.
361         [LONG_DOUBLE_COMPAT] (lrintl): Add compatibility symbols.
362         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include math_ldbl_opt.h.
363         [LONG_DOUBLE_COMPAT] (llrintl): Add compatibility symbols.
364         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include math_ldbl_opt.h.
365         [LONG_DOUBLE_COMPAT] (lroundl): Add compatibility symbols.
366         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include math_ldbl_opt.h.
367         [LONG_DOUBLE_COMPAT] (rintl): Add compatibility symbols.
368         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include math_ldbl_opt.h.
369         [LONG_DOUBLE_COMPAT] (roundl): Add compatibility symbols.
370         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include math_ldbl_opt.h.
371         [LONG_DOUBLE_COMPAT] (truncl): Add compatibility symbols.
372
373         * misc/qefgcvt_r.c [LDBL_MIN_10_EXP == -291] (FLOAT_MIN_10_NORM): New.
374
375         * sysdeps/powerpc/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Remove.
376         * sysdeps/powerpc/Implies: Add ieee754/ldbl-128ibm.
377         * sysdeps/powerpc/powerpc32/Implies: Remove powerpc/soft-fp.
378         * sysdeps/ieee754/ldbl-128ibm/Makefile: New file.
379         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: New file.
380         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: New file.
381         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: New file.
382         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: New file.
383         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: New file.
384         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: New file.
385         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: New file.
386         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: New file.
387         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: New file.
388         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: New file.
389         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: New file.
390         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: New file.
391         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: New file.
392         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: New file.
393         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: New file.
394         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: New file.
395         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: New file.
396         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: New file.
397         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: New file.
398         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: New file.
399         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: New file.
400         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: New file.
401         * sysdeps/ieee754/ldbl-128ibm/ieee754.h: New file.
402         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: New file.
403         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: New file.
404         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: New file.
405         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: New file.
406         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: New file.
407         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: New file.
408         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: New file.
409         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: New file.
410         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: New file.
411         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: New file.
412         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: New file.
413         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: New file.
414         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: New file.
415         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: New file.
416         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: New file.
417         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: New file.
418         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: New file.
419         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: New file.
420         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: New file.
421         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: New file.
422         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: New file.
423         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: New file.
424         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: New file.
425         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: New file.
426         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: New file.
427         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: New file.
428         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: New file.
429         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: New file.
430         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: New file.
431         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: New file.
432         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: New file.
433         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: New file.
434         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: New file.
435         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: New file.
436         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: New file.
437         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: New file.
438         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: New file.
439         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: New file.
440         * sysdeps/ieee754/ldbl-128ibm/t_sincosl.c: New file.
441         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: New file.
442         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: New file.
443         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: New file.
444         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: New file.
445         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: New file.
446         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: New file.
447         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: New file.
448         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: New file.
449         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: New file.
450         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: New file.
451
452         * sysdeps/ieee754/ldbl-128/e_powl.c: Fix old comment.
453
454 2006-01-22  Aurelien Jarno  <aurelien@aurel32.net>
455
456         * sysdeps/gnu/errlist-compat.awk: Reduce required number of symbols in
457         sanity check.
458
459 2006-01-21  Ulrich Drepper  <drepper@redhat.com>
460
461         * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correctly
462         return EBADF for non-existing file descriptors.
463         * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): Likewise.
464         * io/tst-openat.c (do_test): Add some more tests.
465         * io/tst-faccessat.c (do_test): Likewise.
466         * io/tst-renameat.c (do_test): Likewise.
467         * io/tst-fstatat.c (do_test): Likewise.
468         * io/tst-fchmodat.c (do_test): Likewise.
469         * io/tst-fchownat.c (do_test): Likewise.
470
471 2006-01-21  Roland McGrath  <roland@redhat.com>
472
473         * sysdeps/unix/sysv/linux/faccessat.c: Move RESULT defn inside block.
474
475         * misc/tst-pselect.c: Include <unistd.h>.
476
477         * time/time.h [__need_timespec et al]: Include <bits/types.h> here too.
478
479         * stdlib/fpioconst.c: Fix whitespace typo.
480
481 2006-01-20  Jakub Jelinek  <jakub@redhat.com>
482
483         * sysdeps/ieee754/ldbl-64-128/s_nexttowardfd.c: Moved to...
484         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: ... here.  New file.
485         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (long_double_symbol_1): For
486         C define again using _weak_alias, for assembler use weak_alias.
487
488         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: New file.
489         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: New file.
490         * sysdeps/powerpc/fpu/bits/mathinline.h (__CPU_HAS_FSQRT): New macro.
491         (__ieee754_sqrt, __ieee754_sqrtf): Use it.
492
493 2006-01-21  Ulrich Drepper  <drepper@redhat.com>
494
495         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Allow actual
496         system call code to be redefined in macro CALL_PSELECT6.
497         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
498         (sysdep_routines): Add call_pselect6.
499         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: New file.
500         * sysdeps/unix/sysv/linux/i386/pselect.c: New file.
501         * misc/Makefile (tests): Add tst-pselect.
502         * misc/tst-pselect.c: New file.
503
504 2006-01-20  Roland McGrath  <roland@frob.com>
505
506         * sysdeps/mach/hurd/ppoll.c: New file.
507
508 2006-01-20  Ulrich Drepper  <drepper@redhat.com>
509
510         * sysdeps/unix/sysv/linux/pselect.c: Fix typo in declaration.
511
512         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Cast k_dev
513         value to unsigned int to match kernel.
514
515         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Try using the
516         syscall in more cases.
517
518         * io/Makefile (tests): Add tst-symlinkat, tst-linkat, tst-readlinkat,
519         tst-mkdirat, tst-mknodat, and tst-mkfifoat.
520         * io/tst-symlinkat.c: New file.
521         * io/tst-linkat.c: New file.
522         * io/tst-readlinkat.c: New file.
523         * io/tst-mkdirat.c: New file.
524         * io/tst-mknodat.c: New file.
525         * io/tst-mkfifoat.c: New file.
526
527         * dirent/Makefile (tests): Add tst-fdopendir2.
528         * dirent/tst-fdopendir2.c: New file.
529
530 2006-01-20  Alexandre Oliva  <aoliva@redhat.com>
531
532         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h
533         (sigcontext_struct) [__WORDSIZE == 32]: Define.
534
535 2006-01-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
536
537         * sysdeps/sh/sh4/__longjmp.S: Demangle also r14 and r15.
538         * sysdeps/sh/sh3/__longjmp.S: Likewise.
539         * sysdeps/sh/sh4/setjmp.S: Mangle also r14 and r15.
540         * sysdeps/sh/sh3/setjmp.S: Likewise.
541         * sysdeps/unix/sysv/linux/sh/sysdep.h [__ASSEMBLER__]
542         (PTR_MANGLE): Add temporary register as the second parameter.
543         (PTR_DEMANGLE): Likewize.
544         (PTR_MANGLE2, PTR_DEMANGLE2): Define.
545
546 2006-01-19  Ulrich Drepper  <drepper@redhat.com>
547
548         * include/fcntl.h: Declare __have_atfcts.
549         * sysdeps/unix/sysv/linux/faccessat.c: Use syscall if available.
550         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
551         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
552         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
553         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
554         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
555         * sysdeps/unix/sysv/linux/openat.c: Likewise.
556         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
557         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
558         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
559         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
560         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
561         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
562         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PSELECT,
563         __ASSUME_PPOLL, and __ASSUME_ATFCTS if possible.
564
565         * io/ppoll.c: New file.
566         * io/Makefile (routines): Add ppoll.
567         (CFLAGS-ppoll.c): Define.
568         * io/Versions: Export ppoll for GLIBC_2.4.
569         * io/sys/poll.h: Declare ppoll.
570         * sysdeps/unix/sysv/linux/ppoll.c: New file.
571
572         * misc/pselect.c: Make it possible to include this file to define
573         the generic code as a static function.
574         * sysdeps/unix/sysv/linux/pselect.c: New file.
575
576 2006-01-19  Jakub Jelinek  <jakub@redhat.com>
577
578         * misc/pselect.c (__pselect): Remove static.
579         Include sysdep-cancel.h again.  Add LIBC_CANCEL_HANDLED ().
580
581 2006-01-18  Roland McGrath  <roland@redhat.com>
582
583         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h [__ASSEMBLER__]: Don't
584         include problematic headers for assembler.
585
586         * Makerules ($(+sysdir_pfx)sysd-rules): Don't emit m_%.c rules,
587         instead emit m_%.o compilation rules from s_%.? source files.
588         * math/Makefile ($(objpfx)m_%$o: s_%.c): New rule using o-iterator.
589
590 2006-01-18  Ulrich Drepper  <drepper@redhat.com>
591
592         * misc/pselect.c (__pselect): No need to enable async cancellation
593         here.  This is done in select.
594
595         * sysdeps/unix/sysv/linux/fxstatat.c [STAT_IS_KERNEL_STAT]
596         (__fxstatat): Correct handling of invalid vers values.
597
598         [BZ #2173]
599         * libio/fileops.c (_IO_new_file_fopen): If ,ccs= is given, also
600         set vtable to the wide vtable.
601         * libio/tst-fopenloc2.c: New file.
602         * libio/Makefile (tests): Add tst-fopenloc2.
603
604 2006-01-18  Roland McGrath  <roland@redhat.com>
605
606         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf.c: Restore
607         attribute_hidden here.
608
609         * sysdeps/sparc/sparc64/Makefile (long-double-fcts): Move this ...
610         * sysdeps/sparc/Makefile (long-double-fcts): ... to here.
611
612 2006-01-18  Jakub Jelinek  <jakub@redhat.com>
613
614         * elf/dl-deps.c (_dl_map_object_deps): In case of failure also make a
615         copy of objname string.
616
617 2006-01-16  Roland McGrath  <roland@redhat.com>
618
619         * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules to install
620         into $(inst_includedir)/%.h from sysdirs.
621         [headers]: Change static pattern rule for installing
622         $(headers) to do only those not matching %.h.
623         ($(inst_includedir)/%.h: $(objpfx)%.h): Add this pattern rule instead.
624         ($(inst_includedir)/%.h: %.h): Likewise.
625         ($(inst_includedir)/%.h: $(..)include/%.h): Likewise.
626
627         * Makefile ($(inst_includedir)/gnu/stubs.h):
628         Add $(make-target-directory).
629
630         * stdlib/Makefile (headers): Restore headers removed in last change.
631
632 2006-01-16  Jakub Jelinek  <jakub@redhat.com>
633
634         * math/e_exp2l.c: Don't include stdio.h, errno.h, stub-tag.h, include
635         math_private.h.
636         (__ieee754_exp2l): Compute for now as expl (M_LN2l * x)
637         instead of failing.
638         (exp2l): Remove stub_warning.
639
640 2006-01-15  Jakub Jelinek  <jakub@redhat.com>
641
642         * io/tst-faccessat.c (do_test): Don't fail if geteuid () == 0.
643
644 2006-01-16  Ulrich Drepper  <drepper@redhat.com>
645
646         * sysdeps/unix/sysv/linux/kernel-features.h: Define
647         __ASSUME_TMPFS_NAME.
648         * sysdeps/unix/sysv/linux/shm_open.c [__ASSUME_TMPFS_NAME]
649         (where_is_shmfs): Don't test for obsolete shm filesystem name.
650
651         * sysdeps/unix/sysv/linux/getsysstats.c: Don't search for proc
652         mount point.  We assume procfs is mounted at /proc in many other
653         places already.
654
655 2006-01-15  Andreas Jaeger  <aj@suse.de>
656
657         [BZ #1950]
658         * posix/regex_internal.c (re_string_reconstruct): Adjust for
659         build_wcs_upper_buffer change.
660         (build_wcs_upper_buffer): Change return type.
661
662         [BZ #2153]
663         * math/s_cacosh.c (__cacosh): Do not return a negative
664         value. Patch by Wes Loewer <wjltemp-temp01@yahoo.com>.
665         * math/s_cacoshl.c (__cacoshl): Likewise.
666         * math/s_cacoshf.c (__cacoshf): Likewise.
667         * math/libm-test.inc (cacosh_test): Adjust for change.
668
669         * sysdeps/alpha/fpu/libm-test-ulps: Adopt for cacosh test change.
670         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
671         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
672         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
673         * sysdeps/m68k/fpu/libm-test-ulps: Likewise.
674         * sysdeps/mips/fpu/libm-test-ulps: Likewise.
675         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
676         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
678         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
679         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
680         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
681
682         [BZ #2079]
683         * libio/fputwc_u.c (fputwc_unlocked): Fix return value.
684         * libio/getwc_u.c (__getwc_unlocked): Likewise.
685         * libio/wfileops.c (_IO_wdo_write): Likewise.
686
687         [BZ #2078]
688         * libio/fputwc.c (fputwc): Use proper type for result.
689         * libio/ioungetwc.c (ungetwc): Likewise.
690
691 2006-01-14  Ulrich Drepper  <drepper@redhat.com>
692
693         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_BATCH.
694
695 2006-01-14  Roland McGrath  <roland@redhat.com>
696
697         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_DECL): Don't try
698         attribute_hidden here.
699         * sysdeps/ieee754/ldbl-opt/nldbl-vsyslog.c (vsyslog): Restore
700         attribute_hidden here.
701         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf.c (__asprintf): Likewise.
702         * sysdeps/ieee754/ldbl-opt/nldbl-fprintf.c (fprintf): Likewise.
703         * sysdeps/ieee754/ldbl-opt/nldbl-qecvt.c (qecvt): Likewise.
704         * sysdeps/ieee754/ldbl-opt/nldbl-qfcvt.c (qfcvt): Likewise.
705         * sysdeps/ieee754/ldbl-opt/nldbl-qgcvt.c (qgcvt): Likewise.
706
707         * sysdeps/ieee754/ldbl-opt/configure.in: Use AC_TRY_COMPILE and
708         verify __LONG_DOUBLE_128__ predefine.
709         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
710
711         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_HIDDEN): Removed.
712         (NLDBL_DECL): Rewritten.
713         Remove __THROW from NLDBL_DECL uses.
714         Use NLDBL_DECL for __vstrfmon_l.
715         (__nldbl___vsyslog_chk): Restore missing decl.
716         * sysdeps/ieee754/ldbl-opt/nldbl-asinh.c: Restore attribute_hidden.
717
718 2006-01-14  Jakub Jelinek  <jakub@redhat.com>
719
720         * misc/sys/cdefs.h (__LDBL_REDIR1_DECL): Define.
721         (__LDBL_REDIR_DECL): Stringize __nldbl and name.
722         * stdlib/bits/monetary-ldbl.h: Remove pastos from wchar-ldbl.h.
723         (strfmon, strfmon_l): Add __LDBL_REDIR_DECL.
724         * stdlib/bits/stdlib-ldbl.h (strtold, strtold_l, __strtold_internal,
725         qecvt, qfcvt, qgcvt, qecvt_r, qfcvt_r): Use __LDBL_REDIR1_DECL
726         instead of __LDBL_REDIR_DECL.
727         * wcsmbs/bits/wchar-ldbl.h: Remove stale #if.
728         (__LDBL_REDIR_WCHAR): Remove.
729         (fwprintf, wprintf, swprintf, vfwprintf, vwprintf, vswprintf,
730         fwscanf, wscanf, swscanf, vfwscanf, vwscanf, vswscanf): Use
731         __LDBL_REDIR_DECL instead of __LDBL_REDIR_WCHAR.
732         (wcstold, wcstold_l, __wcstold_internal): Add __LDBL_REDIR1_DECL.
733         * wcsmbs/wchar.h: Include bits/wchar-ldbl.h after bits/wchar2.h
734         instead of before it.
735         (wcstold inline): Move #ifndef __LDBL_COMPAT before
736         extern keyword.
737         * libio/bits/stdio-ldbl.h (__snprintf_chk, __vsnprintf_chk): Add
738         __LDBL_REDIR_DECL.
739         * misc/bits/syslog-ldbl.h (vsyslog): Protect with #ifdef __USE_BSD.
740         (__syslog_chk, __vsyslog_chk): Add __LDBL_REDIR_DECL.
741
742 2006-01-14  Roland McGrath  <roland@redhat.com>
743
744         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_DECL): Fix typo.
745         (NLDBL_HIDDEN): New macro.
746         (NLDBL_DECL): Use it in place of attribute_hidden.
747
748         * misc/efgcvt.c: Include <math_ldbl_opt.h> instead of <shlib-compat.h>.
749         * misc/efgcvt_r.c: Likewise.
750
751         * sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h: New file.
752         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: #include <nldbl-abi.h>
753         to define LONG_DOUBLE_COMPAT_VERSION.  Use that in place of
754         NLDBL_VERSION.
755         * sysdeps/ieee754/ldbl-opt/Versions: Include <nldbl-abi.h>.
756         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Revert last change.
757
758 2006-01-14  Jakub Jelinek  <jakub@redhat.com>
759
760         * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New
761         prototype.
762         (nexttowardf): Redirect to __nldbl_nexttowardf.
763         (nexttoward): Redirect to nextafter.
764         (__MATHDECL_2, __MATHDECL_1): Redirect *l functions to
765         non-*l versions if __LONG_DOUBLE_MATH_OPTIONAL and
766         __NO_LONG_DOUBLE_MATH.
767         * math/complex.h (__MATHDECL_1): Likewise.
768         * math/bits/mathcalls.h (nexttoward): Don't prototype if
769         __LDBL_COMPAT.
770         * misc/sys/cdefs.h: Include <bits/wordsize.h>.
771         (__LDBL_COMPAT, __LDBL_REDIR1, __LDBL_REDIR, __LDBL_REDIR1_NTH,
772         __LDBL_REDIR_NTH, __LDBL_REDIR_DECL): New macros.
773
774         * libio/bits/stdio-ldbl.h: New file.
775         * libio/Makefile (headers): Add it.
776         * libio/stdio.h [__LDBL_COMPAT]: #include it.
777         * libio/bits/libio-ldbl.h: New file.
778         * libio/Makefile (headers): Add it.
779         * libio/libio.h [__LDBL_COMPAT]: #include it.
780         * libio/libioP.h: Include <math_ldbl_opt.h>.
781         * include/wchar.h (__fwprintf, __vfwprintf): Fix commented out
782         attribute.
783         (__vfwprintf_chk): New prototype.  Add libc_hidden_proto.
784         * wcsmbs/bits/wchar-ldbl.h: New file.
785         * wcsmbs/Makefile (headers): Add it.
786         * wcsmbs/wchar.h [__LDBL_COMPAT]: #include it.
787         * wcsmbs/bits/wchar2.h (__vswprintf_alias): Removed.
788         (vswprintf): Define as a macro rather than inline function.
789         * stdio-common/bits/printf-ldbl.h: New file.
790         * stdio-common/Makefile (headers): Add it.
791         * stdio-common/printf.h [__LDBL_COMPAT]: #include it.
792         * libio/fwprintf.c: Include libioP.h.
793         (fwprintf): Use ldbl_weak_alias instead of weak_alias.
794         * libio/fwscanf.c: Include libioP.h.
795         (fwscanf): Rename to __fwscanf and add ldbl_strong_alias.
796         * libio/iovdprintf.c (vdprintf): Use ldbl_weak_alias instead of
797         weak_alias.
798         * libio/iovsprintf.c (_IO_vsprintf): Rename to __IO_vsprintf,
799         add ldbl_strong_alias and use INTDEF2 instead of INTDEF.
800         (vsprintf): Use ldbl_weak_alias instead of weak_alias.
801         * libio/iovsscanf.c (__vsscanf, vsscanf): Use ldbl_weak_alias
802         instead of weak_alias.
803         * libio/iovswscanf.c (vswscanf): Rename to __vswscanf,
804         add ldbl_strong_alias and use ldbl_hidden_def instead of
805         libc_hidden_def.
806         * libio/obprintf.c (obstack_printf, obstack_vprintf): Use
807         ldbl_weak_alias instead of weak_alias.
808         * libio/swprintf.c: Include libioP.h.
809         (swprintf): Rename to __swprintf and add ldbl_strong_alias.
810         * libio/swscanf.c: Include libioP.h.
811         (swscanf): Rename to __swscanf and add ldbl_strong_alias.
812         * libio/vasprintf.c (vasprintf): Use ldbl_weak_alias instead of
813         weak_alias.
814         * libio/vscanf.c (vscanf): Use ldbl_weak_alias instead of
815         weak_alias.
816         * libio/vsnprintf.c (__vsnprintf, vsnprintf): Use ldbl_weak_alias
817         instead of weak_alias.
818         * libio/vswprintf.c (__vswprintf): Remove alias.
819         (vswprintf): Use ldbl_weak_alias instead of weak_alias.
820         * libio/vwprintf.c: Include libioP.h.
821         (vwprintf): Rename to __vwprintf and add ldbl_strong_alias.
822         * libio/vwscanf.c (vwscanf): Rename to __vwscanf and add
823         ldbl_strong_alias.
824         * libio/wprintf.c: Include libioP.h.
825         (wprintf): Rename to __wprintf and add ldbl_strong_alias.
826         * libio/wscanf.c: Include libioP.h.
827         (wscanf): Rename to __wscanf and add ldbl_strong_alias.
828         * stdio-common/asprintf.c (__asprintf): Rename to ___asprintf, add
829         ldbl_strong_alias and use INTDEF2 instead of INTDEF.
830         (asprintf): Use ldbl_weak_alias instead of weak_alias.
831         * stdio-common/dprintf.c (dprintf): Rename to __dprintf, add
832         ldbl_strong_alias and use ldbl_hidden_def instead of
833         libc_hidden_def.
834         * stdio-common/fprintf.c: Include libioP.h.
835         (fprintf): Rename to __fprintf, add ldbl_strong_alias and
836         use ldbl_hidden_def instead of libc_hidden_def.
837         (_IO_fprintf): Use ldbl_weak_alias instead of weak_alias.
838         * stdio-common/fscanf.c: Include libioP.h.
839         (fscanf): Rename to __fscanf and add ldbl_strong_alias.
840         * stdio-common/printf.c: Include libioP.h.
841         (printf): Rename to __printf and add ldbl_strong_alias.
842         (_IO_printf): Use ldbl_strong_alias instead of strong_alias.
843         * stdio-common/printf_fp.c (__printf_fp): Rename to __printf_fp, add
844         ldbl_strong_alias and use ldbl_hidden_def instead of
845         libc_hidden_def.
846         * stdio-common/printf_size.c (printf_size): Rename to __printf_size
847         and add ldbl_strong_alias.
848         * stdio-common/scanf.c (scanf): Rename to __scanf and add
849         ldbl_strong_alias.
850         * stdio-common/snprintf.c (snprintf): Use ldbl_weak_alias instead of
851         weak_alias.
852         * stdio-common/sprintf.c (sprintf): Rename to __sprintf, add
853         ldbl_strong_alias and use ldbl_hidden_def instead of
854         libc_hidden_def.
855         (_IO_sprintf): Use ldbl_strong_alias instead of strong_alias.
856         * stdio-common/sscanf.c: Include libioP.h instead of iolibio.h.
857         (sscanf): Rename to __sscanf and add ldbl_strong_alias.
858         * stdio-common/vfprintf.c (vfprintf): Define to
859         _IO_vfprintf_internal.  Use ldbl_strong_alias instead.  Use
860         ldbl_hidden_def instead of libc_hidden_def.
861         (_IO_vfprintf_internal): Clear is_long_double if __ldbl_is_dbl,
862         handle the argument as double if it is non-zero.
863         (vfwprintf): Use ldbl_weak_alias instead of weak_alias.
864         (_IO_vfprintf): Add ldbl_strong_alias.
865         * stdio-common/vfscanf.c (_IO_vfscanf): Rename to
866         _IO_vfscanf_internal, don't use strtold if __ldbl_is_dbl, add
867         ldbl_strong_alias.
868         (vfwscanf): Use ldbl_weak_alias instead of weak_alias.
869         (__vfscanf): Rename to ___vfscanf, add ldbl_strong_alias and
870         use ldbl_hidden_def instead of libc_hidden_def.
871         (vfscanf): Use ldbl_weak_alias instead of weak_alias.
872         * stdio-common/vprintf.c: Include libioP.h.
873         (vprintf): Rename to __vprintf and add ldbl_strong_alias.
874         * debug/fprintf_chk.c (__fprintf_chk): Rename to ___fprintf_chk
875         and add ldbl_strong_alias.
876         * debug/printf_chk.c (__printf_chk): Rename to ___printf_chk
877         and add ldbl_strong_alias.
878         * debug/snprintf_chk.c: Include libioP.h.
879         (__snprintf_chk): Rename to ___snprintf_chk and add ldbl_strong_alias.
880         * debug/sprintf_chk.c: Include libioP.h.
881         (__sprintf_chk): Rename to ___sprintf_chk and add ldbl_strong_alias.
882         * debug/vfprintf_chk.c (__vfprintf_chk): Rename to ___vfprintf_chk,
883         add ldbl_strong_alias and use ldbl_hidden_def instead of
884         libc_hidden_def.
885         * debug/vfwprintf_chk.c (__vfwprintf_chk): Add libc_hidden_def.
886         * debug/vprintf_chk.c (__vprintf_chk): Rename to ___vprintf_chk
887         and add ldbl_strong_alias.
888         * debug/vsnprintf_chk.c (__vsnprintf_chk): Rename to ___vsnprintf_chk,
889         add ldbl_strong_alias and use ldbl_hidden_def instead of
890         libc_hidden_def.
891         * debug/vsprintf_chk.c (__vsprintf_chk): Rename to ___vsprintf_chk,
892         add ldbl_strong_alias and use ldbl_hidden_def instead of
893         libc_hidden_def.
894
895         * stdlib/stdlib.h (strtold): Don't define inline if [!__LDBL_COMPAT].
896         * wcsmbs/wchar.h (wcstold): Likewise.
897         * stdlib/strtod_l.c: Include math_ldbl_opt.h.
898         (____STRTOF_INTERNAL): Define.
899         (INTERNAL (__STRTOF)): Rename to ____STRTOF_INTERNAL.
900         (__STRTOF): Call ____STRTOF_INTERNAL instead.
901         [LONG_DOUBLE_COMPAT] (strtold_l, wcstold_l, __strtold_l, __wcstold_l):
902         Add compatibility symbols.
903         * stdlib/strtod.c: Include math_ldbl_opt.h.
904         [LONG_DOUBLE_COMPAT] (strtold, wcstold, __strtold_internal,
905         __wcstold_internal): Add compatibility symbols.
906         * stdlib/strtold.c: Include bits/wordsize.h, wchar.h.
907         (NEW, NEW1): Define.
908         (__new_strtold, __new_wcstold): New prototypes.
909         (____new_strtold_internal, ____new_wcstold_internal): Likewise.
910         Add libc_hidden_proto.
911         (STRTOF): Define to NEW (*told).
912         [__LONG_DOUBLE_MATH_OPTIONAL] (wcstold, strtold): Add
913         long_double_symbol.
914         [__LONG_DOUBLE_MATH_OPTIONAL] (__wcstold_internal,
915         __strtold_internal): Likewise. Add libc_hidden_ver.
916
917         * stdlib/bits/stdlib-ldbl.h: New file.
918         * stdlib/Makefile (headers): Add it.
919         * stdlib/stdlib.h [__LDBL_COMPAT]: #include it.
920         * include/stdlib.h (ecvt_r, fcvt_r, qecvt_r, qfcvt_r): Remove
921         libc_hidden_proto.
922         (__ecvt, __fcvt, __gcvt, __ecvt_r, __fcvt_r, __qecvt, __qfcvt,
923         __qgcvt, __qecvt_r, __qfcvt_r): New prototypes.
924         * misc/efgcvt_r.c: Include shlib-compat.h.
925         (LONG_DOUBLE_CVT): Define.
926         (__APPEND, __APPEND2): Define.
927         (*fcvt_r): Use __APPEND instead of APPEND.  Remove libc_hidden_def.
928         (*ecvt_r): Likewise.
929         (cvt_symbol): Define.  Use it on fcvt_r and ecvt_r.
930         * misc/efgcvt.c: Include shlib-compat.h.
931         (LONG_DOUBLE_CVT): Define.
932         (__APPEND, __APPEND2): Define.
933         (fcvt): Use __APPEND instead of APPEND.  Remove libc_hidden_def.
934         (ecvt, gcvt): Likewise.
935         (cvt_symbol): Define.  Use it on fcvt, ecvt and gcvt.
936
937         * stdlib/bits/monetary-ldbl.h: New file.
938         * stdlib/Makefile (headers): Add it.
939         * stdlib/monetary.h [__LDBL_COMPAT]: #include it.
940         * stdlib/strfmon.c: Include math_ldbl_opt.h.
941         (strfmon): Rename to __strfmon and add ldbl_strong_alias.
942         * stdlib/strfmon_l.c: Remove all traces of [!USE_IN_LIBIO].
943         (__vstrfmon_l): Don't set is_long_double if __ldbl_is_dbl.
944         (__strfmon_l): Rename to ___strfmon_l and add ldbl_strong_alias.
945         (strfmon_l): Use ldbl_weak_alias instead of weak_alias.
946
947         * misc/bits/syslog-ldbl.h: New file.
948         * misc/Makefile (headers): Add it.
949         * misc/sys/syslog.h [__LDBL_COMPAT]: #include it.
950         * misc/syslog.c: Include math_ldbl_opt.h.
951         (syslog): Rename to __syslog and add ldbl_strong_alias,
952         use ldbl_hidden_def instead of libc_hidden_def.
953         (vsyslog): Rename to __vsyslog and add ldbl_strong_alias,
954         use ldbl_hidden_def instead of libc_hidden_def.
955
956         * sysdeps/generic/math_ldbl_opt.h: New file.
957         * math/w_j1l.c (j1l, y1l): Rename to __ prefixed variants.
958         Add weak_alias.
959         * math/w_j0l.c (j0l, y0l): Likewise.
960         * math/w_jnl.c (jnl, ynl): Likewise.
961         * sysdeps/ieee754/ldbl-96/s_nexttoward.c
962         (__nexttowardl): Remove strong_alias.
963         (nexttowardl): Remove weak_alias.
964         * sysdeps/ieee754/ldbl-96/s_erfl.c
965         (__erfl, __erfcl): Remove strong_alias.
966         (erfl, erfcl): Remove weak_alias.
967
968         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: New file.
969         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: New file.
970         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: New file.
971         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: New file.
972         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: New file.
973         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: New file.
974         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: New file.
975         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: New file.
976         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: New file.
977         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: New file.
978         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: New file.
979         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: New file.
980         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: New file.
981         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: New file.
982         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: New file.
983         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: New file.
984         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: New file.
985         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: New file.
986         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: New file.
987         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: New file.
988         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: New file.
989         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: New file.
990         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: New file.
991         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: New file.
992         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c: New file.
993         * sysdeps/ieee754/ldbl-64-128/s_nexttoward.c: New file.
994         * sysdeps/ieee754/ldbl-64-128/s_nexttowardf.c: New file.
995         * sysdeps/ieee754/ldbl-64-128/s_nexttowardfd.c: New file.
996         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: New file.
997         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: New file.
998         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: New file.
999         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: New file.
1000         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: New file.
1001         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: New file.
1002         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: New file.
1003         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: New file.
1004         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: New file.
1005         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: New file.
1006         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: New file.
1007         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: New file.
1008         * sysdeps/ieee754/ldbl-64-128/w_expl.c: New file.
1009         * sysdeps/ieee754/ldbl-opt/configure.in: New file.
1010         * sysdeps/ieee754/ldbl-opt/configure: New file.
1011         * sysdeps/ieee754/ldbl-opt/Makefile: New file.
1012         * sysdeps/ieee754/ldbl-opt/Versions: New file.
1013         * sysdeps/ieee754/ldbl-opt/cabs.c: New file.
1014         * sysdeps/ieee754/ldbl-opt/cabsl.c: New file.
1015         * sysdeps/ieee754/ldbl-opt/carg.c: New file.
1016         * sysdeps/ieee754/ldbl-opt/cargl.c: New file.
1017         * sysdeps/ieee754/ldbl-opt/cimag.c: New file.
1018         * sysdeps/ieee754/ldbl-opt/cimagl.c: New file.
1019         * sysdeps/ieee754/ldbl-opt/conj.c: New file.
1020         * sysdeps/ieee754/ldbl-opt/conjl.c: New file.
1021         * sysdeps/ieee754/ldbl-opt/creal.c: New file.
1022         * sysdeps/ieee754/ldbl-opt/creall.c: New file.
1023         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: New file.
1024         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: New file.
1025         * sysdeps/ieee754/ldbl-opt/nldbl-acos.c: New file.
1026         * sysdeps/ieee754/ldbl-opt/nldbl-acosh.c: New file.
1027         * sysdeps/ieee754/ldbl-opt/nldbl-asin.c: New file.
1028         * sysdeps/ieee754/ldbl-opt/nldbl-asinh.c: New file.
1029         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf.c: New file.
1030         * sysdeps/ieee754/ldbl-opt/nldbl-atan.c: New file.
1031         * sysdeps/ieee754/ldbl-opt/nldbl-atan2.c: New file.
1032         * sysdeps/ieee754/ldbl-opt/nldbl-atanh.c: New file.
1033         * sysdeps/ieee754/ldbl-opt/nldbl-cabs.c: New file.
1034         * sysdeps/ieee754/ldbl-opt/nldbl-cacos.c: New file.
1035         * sysdeps/ieee754/ldbl-opt/nldbl-cacosh.c: New file.
1036         * sysdeps/ieee754/ldbl-opt/nldbl-carg.c: New file.
1037         * sysdeps/ieee754/ldbl-opt/nldbl-casin.c: New file.
1038         * sysdeps/ieee754/ldbl-opt/nldbl-casinh.c: New file.
1039         * sysdeps/ieee754/ldbl-opt/nldbl-catan.c: New file.
1040         * sysdeps/ieee754/ldbl-opt/nldbl-catanh.c: New file.
1041         * sysdeps/ieee754/ldbl-opt/nldbl-cbrt.c: New file.
1042         * sysdeps/ieee754/ldbl-opt/nldbl-ccos.c: New file.
1043         * sysdeps/ieee754/ldbl-opt/nldbl-ccosh.c: New file.
1044         * sysdeps/ieee754/ldbl-opt/nldbl-ceil.c: New file.
1045         * sysdeps/ieee754/ldbl-opt/nldbl-cexp.c: New file.
1046         * sysdeps/ieee754/ldbl-opt/nldbl-cimag.c: New file.
1047         * sysdeps/ieee754/ldbl-opt/nldbl-clog.c: New file.
1048         * sysdeps/ieee754/ldbl-opt/nldbl-clog10.c: New file.
1049         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: New file.
1050         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: New file.
1051         * sysdeps/ieee754/ldbl-opt/nldbl-conj.c: New file.
1052         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c: New file.
1053         * sysdeps/ieee754/ldbl-opt/nldbl-cos.c: New file.
1054         * sysdeps/ieee754/ldbl-opt/nldbl-cosh.c: New file.
1055         * sysdeps/ieee754/ldbl-opt/nldbl-cpow.c: New file.
1056         * sysdeps/ieee754/ldbl-opt/nldbl-cproj.c: New file.
1057         * sysdeps/ieee754/ldbl-opt/nldbl-creal.c: New file.
1058         * sysdeps/ieee754/ldbl-opt/nldbl-csin.c: New file.
1059         * sysdeps/ieee754/ldbl-opt/nldbl-csinh.c: New file.
1060         * sysdeps/ieee754/ldbl-opt/nldbl-csqrt.c: New file.
1061         * sysdeps/ieee754/ldbl-opt/nldbl-ctan.c: New file.
1062         * sysdeps/ieee754/ldbl-opt/nldbl-ctanh.c: New file.
1063         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf.c: New file.
1064         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: New file.
1065         * sysdeps/ieee754/ldbl-opt/nldbl-erf.c: New file.
1066         * sysdeps/ieee754/ldbl-opt/nldbl-erfc.c: New file.
1067         * sysdeps/ieee754/ldbl-opt/nldbl-exp.c: New file.
1068         * sysdeps/ieee754/ldbl-opt/nldbl-exp10.c: New file.
1069         * sysdeps/ieee754/ldbl-opt/nldbl-exp2.c: New file.
1070         * sysdeps/ieee754/ldbl-opt/nldbl-expm1.c: New file.
1071         * sysdeps/ieee754/ldbl-opt/nldbl-fabs.c: New file.
1072         * sysdeps/ieee754/ldbl-opt/nldbl-fdim.c: New file.
1073         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: New file.
1074         * sysdeps/ieee754/ldbl-opt/nldbl-floor.c: New file.
1075         * sysdeps/ieee754/ldbl-opt/nldbl-fma.c: New file.
1076         * sysdeps/ieee754/ldbl-opt/nldbl-fmax.c: New file.
1077         * sysdeps/ieee754/ldbl-opt/nldbl-fmin.c: New file.
1078         * sysdeps/ieee754/ldbl-opt/nldbl-fmod.c: New file.
1079         * sysdeps/ieee754/ldbl-opt/nldbl-fprintf.c: New file.
1080         * sysdeps/ieee754/ldbl-opt/nldbl-fprintf_chk.c: New file.
1081         * sysdeps/ieee754/ldbl-opt/nldbl-frexp.c: New file.
1082         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c: New file.
1083         * sysdeps/ieee754/ldbl-opt/nldbl-fwprintf.c: New file.
1084         * sysdeps/ieee754/ldbl-opt/nldbl-fwprintf_chk.c: New file.
1085         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c: New file.
1086         * sysdeps/ieee754/ldbl-opt/nldbl-gamma.c: New file.
1087         * sysdeps/ieee754/ldbl-opt/nldbl-hypot.c: New file.
1088         * sysdeps/ieee754/ldbl-opt/nldbl-ilogb.c: New file.
1089         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c: New file.
1090         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: New file.
1091         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: New file.
1092         * sysdeps/ieee754/ldbl-opt/nldbl-j0.c: New file.
1093         * sysdeps/ieee754/ldbl-opt/nldbl-j1.c: New file.
1094         * sysdeps/ieee754/ldbl-opt/nldbl-jn.c: New file.
1095         * sysdeps/ieee754/ldbl-opt/nldbl-ldexp.c: New file.
1096         * sysdeps/ieee754/ldbl-opt/nldbl-lgamma.c: New file.
1097         * sysdeps/ieee754/ldbl-opt/nldbl-lgamma_r.c: New file.
1098         * sysdeps/ieee754/ldbl-opt/nldbl-llrint.c: New file.
1099         * sysdeps/ieee754/ldbl-opt/nldbl-llround.c: New file.
1100         * sysdeps/ieee754/ldbl-opt/nldbl-log.c: New file.
1101         * sysdeps/ieee754/ldbl-opt/nldbl-log10.c: New file.
1102         * sysdeps/ieee754/ldbl-opt/nldbl-log1p.c: New file.
1103         * sysdeps/ieee754/ldbl-opt/nldbl-log2.c: New file.
1104         * sysdeps/ieee754/ldbl-opt/nldbl-logb.c: New file.
1105         * sysdeps/ieee754/ldbl-opt/nldbl-lrint.c: New file.
1106         * sysdeps/ieee754/ldbl-opt/nldbl-lround.c: New file.
1107         * sysdeps/ieee754/ldbl-opt/nldbl-modf.c: New file.
1108         * sysdeps/ieee754/ldbl-opt/nldbl-nan.c: New file.
1109         * sysdeps/ieee754/ldbl-opt/nldbl-nearbyint.c: New file.
1110         * sysdeps/ieee754/ldbl-opt/nldbl-nextafter.c: New file.
1111         * sysdeps/ieee754/ldbl-opt/nldbl-nexttoward.c: New file.
1112         * sysdeps/ieee754/ldbl-opt/nldbl-nexttowardf.c: New file.
1113         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf.c: New file.
1114         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf.c: New file.
1115         * sysdeps/ieee754/ldbl-opt/nldbl-pow.c: New file.
1116         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: New file.
1117         * sysdeps/ieee754/ldbl-opt/nldbl-printf.c: New file.
1118         * sysdeps/ieee754/ldbl-opt/nldbl-printf_chk.c: New file.
1119         * sysdeps/ieee754/ldbl-opt/nldbl-printf_fp.c: New file.
1120         * sysdeps/ieee754/ldbl-opt/nldbl-printf_size.c: New file.
1121         * sysdeps/ieee754/ldbl-opt/nldbl-qecvt.c: New file.
1122         * sysdeps/ieee754/ldbl-opt/nldbl-qecvt_r.c: New file.
1123         * sysdeps/ieee754/ldbl-opt/nldbl-qfcvt.c: New file.
1124         * sysdeps/ieee754/ldbl-opt/nldbl-qfcvt_r.c: New file.
1125         * sysdeps/ieee754/ldbl-opt/nldbl-qgcvt.c: New file.
1126         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c: New file.
1127         * sysdeps/ieee754/ldbl-opt/nldbl-remquo.c: New file.
1128         * sysdeps/ieee754/ldbl-opt/nldbl-rint.c: New file.
1129         * sysdeps/ieee754/ldbl-opt/nldbl-round.c: New file.
1130         * sysdeps/ieee754/ldbl-opt/nldbl-scalb.c: New file.
1131         * sysdeps/ieee754/ldbl-opt/nldbl-scalbln.c: New file.
1132         * sysdeps/ieee754/ldbl-opt/nldbl-scalbn.c: New file.
1133         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c: New file.
1134         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: New file.
1135         * sysdeps/ieee754/ldbl-opt/nldbl-significand.c: New file.
1136         * sysdeps/ieee754/ldbl-opt/nldbl-sin.c: New file.
1137         * sysdeps/ieee754/ldbl-opt/nldbl-sincos.c: New file.
1138         * sysdeps/ieee754/ldbl-opt/nldbl-sinh.c: New file.
1139         * sysdeps/ieee754/ldbl-opt/nldbl-snprintf.c: New file.
1140         * sysdeps/ieee754/ldbl-opt/nldbl-snprintf_chk.c: New file.
1141         * sysdeps/ieee754/ldbl-opt/nldbl-sprintf.c: New file.
1142         * sysdeps/ieee754/ldbl-opt/nldbl-sprintf_chk.c: New file.
1143         * sysdeps/ieee754/ldbl-opt/nldbl-sqrt.c: New file.
1144         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c: New file.
1145         * sysdeps/ieee754/ldbl-opt/nldbl-strfmon.c: New file.
1146         * sysdeps/ieee754/ldbl-opt/nldbl-strfmon_l.c: New file.
1147         * sysdeps/ieee754/ldbl-opt/nldbl-strtold.c: New file.
1148         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: New file.
1149         * sysdeps/ieee754/ldbl-opt/nldbl-strtoldint.c: New file.
1150         * sysdeps/ieee754/ldbl-opt/nldbl-swprintf.c: New file.
1151         * sysdeps/ieee754/ldbl-opt/nldbl-swprintf_chk.c: New file.
1152         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c: New file.
1153         * sysdeps/ieee754/ldbl-opt/nldbl-syslog.c: New file.
1154         * sysdeps/ieee754/ldbl-opt/nldbl-syslog_chk.c: New file.
1155         * sysdeps/ieee754/ldbl-opt/nldbl-tan.c: New file.
1156         * sysdeps/ieee754/ldbl-opt/nldbl-tanh.c: New file.
1157         * sysdeps/ieee754/ldbl-opt/nldbl-tgamma.c: New file.
1158         * sysdeps/ieee754/ldbl-opt/nldbl-trunc.c: New file.
1159         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf.c: New file.
1160         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf.c: New file.
1161         * sysdeps/ieee754/ldbl-opt/nldbl-vfprintf.c: New file.
1162         * sysdeps/ieee754/ldbl-opt/nldbl-vfprintf_chk.c: New file.
1163         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c: New file.
1164         * sysdeps/ieee754/ldbl-opt/nldbl-vfwprintf.c: New file.
1165         * sysdeps/ieee754/ldbl-opt/nldbl-vfwprintf_chk.c: New file.
1166         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c: New file.
1167         * sysdeps/ieee754/ldbl-opt/nldbl-vprintf.c: New file.
1168         * sysdeps/ieee754/ldbl-opt/nldbl-vprintf_chk.c: New file.
1169         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c: New file.
1170         * sysdeps/ieee754/ldbl-opt/nldbl-vsnprintf.c: New file.
1171         * sysdeps/ieee754/ldbl-opt/nldbl-vsnprintf_chk.c: New file.
1172         * sysdeps/ieee754/ldbl-opt/nldbl-vsprintf.c: New file.
1173         * sysdeps/ieee754/ldbl-opt/nldbl-vsprintf_chk.c: New file.
1174         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c: New file.
1175         * sysdeps/ieee754/ldbl-opt/nldbl-vswprintf.c: New file.
1176         * sysdeps/ieee754/ldbl-opt/nldbl-vswprintf_chk.c: New file.
1177         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c: New file.
1178         * sysdeps/ieee754/ldbl-opt/nldbl-vsyslog.c: New file.
1179         * sysdeps/ieee754/ldbl-opt/nldbl-vsyslog_chk.c: New file.
1180         * sysdeps/ieee754/ldbl-opt/nldbl-vwprintf.c: New file.
1181         * sysdeps/ieee754/ldbl-opt/nldbl-vwprintf_chk.c: New file.
1182         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c: New file.
1183         * sysdeps/ieee754/ldbl-opt/nldbl-wcstold.c: New file.
1184         * sysdeps/ieee754/ldbl-opt/nldbl-wcstold_l.c: New file.
1185         * sysdeps/ieee754/ldbl-opt/nldbl-wcstoldint.c: New file.
1186         * sysdeps/ieee754/ldbl-opt/nldbl-wprintf.c: New file.
1187         * sysdeps/ieee754/ldbl-opt/nldbl-wprintf_chk.c: New file.
1188         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c: New file.
1189         * sysdeps/ieee754/ldbl-opt/nldbl-y0.c: New file.
1190         * sysdeps/ieee754/ldbl-opt/nldbl-y1.c: New file.
1191         * sysdeps/ieee754/ldbl-opt/nldbl-yn.c: New file.
1192         * sysdeps/ieee754/ldbl-opt/s_asinh.c: New file.
1193         * sysdeps/ieee754/ldbl-opt/s_atan.c: New file.
1194         * sysdeps/ieee754/ldbl-opt/s_cacos.c: New file.
1195         * sysdeps/ieee754/ldbl-opt/s_cacosh.c: New file.
1196         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: New file.
1197         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: New file.
1198         * sysdeps/ieee754/ldbl-opt/s_casin.c: New file.
1199         * sysdeps/ieee754/ldbl-opt/s_casinh.c: New file.
1200         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: New file.
1201         * sysdeps/ieee754/ldbl-opt/s_casinl.c: New file.
1202         * sysdeps/ieee754/ldbl-opt/s_catan.c: New file.
1203         * sysdeps/ieee754/ldbl-opt/s_catanh.c: New file.
1204         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: New file.
1205         * sysdeps/ieee754/ldbl-opt/s_catanl.c: New file.
1206         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: New file.
1207         * sysdeps/ieee754/ldbl-opt/s_ccos.c: New file.
1208         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: New file.
1209         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: New file.
1210         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: New file.
1211         * sysdeps/ieee754/ldbl-opt/s_ceil.c: New file.
1212         * sysdeps/ieee754/ldbl-opt/s_cexp.c: New file.
1213         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: New file.
1214         * sysdeps/ieee754/ldbl-opt/s_clog.c: New file.
1215         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
1216         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: New file.
1217         * sysdeps/ieee754/ldbl-opt/s_clogl.c: New file.
1218         * sysdeps/ieee754/ldbl-opt/s_copysign.c: New file.
1219         * sysdeps/ieee754/ldbl-opt/s_cpow.c: New file.
1220         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: New file.
1221         * sysdeps/ieee754/ldbl-opt/s_cproj.c: New file.
1222         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: New file.
1223         * sysdeps/ieee754/ldbl-opt/s_csin.c: New file.
1224         * sysdeps/ieee754/ldbl-opt/s_csinh.c: New file.
1225         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: New file.
1226         * sysdeps/ieee754/ldbl-opt/s_csinl.c: New file.
1227         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: New file.
1228         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: New file.
1229         * sysdeps/ieee754/ldbl-opt/s_ctan.c: New file.
1230         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: New file.
1231         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: New file.
1232         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: New file.
1233         * sysdeps/ieee754/ldbl-opt/s_erf.c: New file.
1234         * sysdeps/ieee754/ldbl-opt/s_expm1.c: New file.
1235         * sysdeps/ieee754/ldbl-opt/s_fabs.c: New file.
1236         * sysdeps/ieee754/ldbl-opt/s_fdim.c: New file.
1237         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: New file.
1238         * sysdeps/ieee754/ldbl-opt/s_finite.c: New file.
1239         * sysdeps/ieee754/ldbl-opt/s_floor.c: New file.
1240         * sysdeps/ieee754/ldbl-opt/s_fma.c: New file.
1241         * sysdeps/ieee754/ldbl-opt/s_fmal.c: New file.
1242         * sysdeps/ieee754/ldbl-opt/s_fmax.c: New file.
1243         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: New file.
1244         * sysdeps/ieee754/ldbl-opt/s_fmin.c: New file.
1245         * sysdeps/ieee754/ldbl-opt/s_fminl.c: New file.
1246         * sysdeps/ieee754/ldbl-opt/s_frexp.c: New file.
1247         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: New file.
1248         * sysdeps/ieee754/ldbl-opt/s_isinf.c: New file.
1249         * sysdeps/ieee754/ldbl-opt/s_isnan.c: New file.
1250         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: New file.
1251         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: New file.
1252         * sysdeps/ieee754/ldbl-opt/s_llrint.c: New file.
1253         * sysdeps/ieee754/ldbl-opt/s_llround.c: New file.
1254         * sysdeps/ieee754/ldbl-opt/s_log1p.c: New file.
1255         * sysdeps/ieee754/ldbl-opt/s_logb.c: New file.
1256         * sysdeps/ieee754/ldbl-opt/s_lrint.c: New file.
1257         * sysdeps/ieee754/ldbl-opt/s_lround.c: New file.
1258         * sysdeps/ieee754/ldbl-opt/s_modf.c: New file.
1259         * sysdeps/ieee754/ldbl-opt/s_nan.c: New file.
1260         * sysdeps/ieee754/ldbl-opt/s_nanl.c: New file.
1261         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: New file.
1262         * sysdeps/ieee754/ldbl-opt/s_nextafter.c: New file.
1263         * sysdeps/ieee754/ldbl-opt/s_remquo.c: New file.
1264         * sysdeps/ieee754/ldbl-opt/s_rint.c: New file.
1265         * sysdeps/ieee754/ldbl-opt/s_round.c: New file.
1266         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: New file.
1267         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: New file.
1268         * sysdeps/ieee754/ldbl-opt/s_significand.c: New file.
1269         * sysdeps/ieee754/ldbl-opt/s_significandl.c: New file.
1270         * sysdeps/ieee754/ldbl-opt/s_sin.c: New file.
1271         * sysdeps/ieee754/ldbl-opt/s_sincos.c: New file.
1272         * sysdeps/ieee754/ldbl-opt/s_tan.c: New file.
1273         * sysdeps/ieee754/ldbl-opt/s_tanh.c: New file.
1274         * sysdeps/ieee754/ldbl-opt/s_trunc.c: New file.
1275         * sysdeps/ieee754/ldbl-opt/w_acos.c: New file.
1276         * sysdeps/ieee754/ldbl-opt/w_acosh.c: New file.
1277         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: New file.
1278         * sysdeps/ieee754/ldbl-opt/w_acosl.c: New file.
1279         * sysdeps/ieee754/ldbl-opt/w_asin.c: New file.
1280         * sysdeps/ieee754/ldbl-opt/w_asinl.c: New file.
1281         * sysdeps/ieee754/ldbl-opt/w_atan2.c: New file.
1282         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: New file.
1283         * sysdeps/ieee754/ldbl-opt/w_atanh.c: New file.
1284         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: New file.
1285         * sysdeps/ieee754/ldbl-opt/w_cosh.c: New file.
1286         * sysdeps/ieee754/ldbl-opt/w_coshl.c: New file.
1287         * sysdeps/ieee754/ldbl-opt/w_drem.c: New file.
1288         * sysdeps/ieee754/ldbl-opt/w_dreml.c: New file.
1289         * sysdeps/ieee754/ldbl-opt/w_exp.c: New file.
1290         * sysdeps/ieee754/ldbl-opt/w_exp10.c: New file.
1291         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: New file.
1292         * sysdeps/ieee754/ldbl-opt/w_fmod.c: New file.
1293         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: New file.
1294         * sysdeps/ieee754/ldbl-opt/w_hypot.c: New file.
1295         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: New file.
1296         * sysdeps/ieee754/ldbl-opt/w_j0.c: New file.
1297         * sysdeps/ieee754/ldbl-opt/w_j0l.c: New file.
1298         * sysdeps/ieee754/ldbl-opt/w_j1.c: New file.
1299         * sysdeps/ieee754/ldbl-opt/w_j1l.c: New file.
1300         * sysdeps/ieee754/ldbl-opt/w_jn.c: New file.
1301         * sysdeps/ieee754/ldbl-opt/w_jnl.c: New file.
1302         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: New file.
1303         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: New file.
1304         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: New file.
1305         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: New file.
1306         * sysdeps/ieee754/ldbl-opt/w_log.c: New file.
1307         * sysdeps/ieee754/ldbl-opt/w_log10.c: New file.
1308         * sysdeps/ieee754/ldbl-opt/w_log10l.c: New file.
1309         * sysdeps/ieee754/ldbl-opt/w_log2.c: New file.
1310         * sysdeps/ieee754/ldbl-opt/w_log2l.c: New file.
1311         * sysdeps/ieee754/ldbl-opt/w_logl.c: New file.
1312         * sysdeps/ieee754/ldbl-opt/w_pow.c: New file.
1313         * sysdeps/ieee754/ldbl-opt/w_powl.c: New file.
1314         * sysdeps/ieee754/ldbl-opt/w_remainder.c: New file.
1315         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: New file.
1316         * sysdeps/ieee754/ldbl-opt/w_scalb.c: New file.
1317         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: New file.
1318         * sysdeps/ieee754/ldbl-opt/w_sinh.c: New file.
1319         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: New file.
1320         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: New file.
1321         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: New file.
1322         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: New file.
1323         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: New file.
1324
1325         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: New file.
1326         * sysdeps/unix/sysv/linux/sparc/sparc32/Implies: New file.
1327         * sysdeps/sparc/sparc32/Implies: Move ldbl-128 first and flt-32
1328         after dbl-64.
1329         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (NLDBL_VERSION):
1330         %define this to to GLIBC_2.4.
1331         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
1332         * sysdeps/sparc/sparc32/fpu/s_fabs.c: New file.
1333         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: New file.
1334         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: New file.
1335         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: Removed.
1336         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: Removed.
1337         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: Removed.
1338         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: Removed.
1339         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: Removed.
1340         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: Removed.
1341         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: New file.
1342         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: New file.
1343         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: New file.
1344         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: New file.
1345         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: New file.
1346         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: New file.
1347         * sysdeps/sparc/sparc32/soft-fp/Versions: New file.
1348         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_cmp,
1349         __unordered_v9cmp): Define differently depending on
1350         -m32 -mlong-double-{64,128}.
1351         (__signbitl, sqrtl, __ieee754_sqrtl): New inlines.
1352         * sysdeps/sparc/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Remove.
1353         * sysdeps/sparc/sparc32/soft-fp/Makefile (sparc32-quad-routines):
1354         Set.
1355         (sysdep-routines): Add sparc32-quad-routines.
1356         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Include stdlib.h.
1357         (FP_HANDLE_EXCEPTIONS): Call ___Q_simulate_exceptions as a normal
1358         function.
1359         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): New
1360         alias to _Q_sqrt.
1361         * sysdeps/sparc/sparc32/soft-fp/q_div.c (_Q_div): Fix a typo.
1362         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Include stdlib.h.
1363         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1364
1365         * libio/libio.h (_IO_vfscanf, _IO_vfprintf): Remove __THROW.
1366         (_IO_vfwscanf, _IO_vfwprintf): Likewise.
1367         * libio/libioP.h (_IO_vdprintf): Likewise.
1368
1369 2006-01-13  Richard Henderson  <rth@redhat.com>
1370
1371         * sysdeps/unix/sysv/linux/alpha/sysdep.h (PTR_MANGLE, PTR_MANGLE2,
1372         PTR_DEMANGLE, PTR_DEMANGLE2): Move ...
1373         * sysdeps/unix/alpha/sysdep.h: ... here.
1374         * sysdeps/unix/sysv/linux/alpha/fxstatat.c: Define __GI___fxstatat64.
1375
1376 2006-01-13  Andreas Jaeger  <aj@suse.de>
1377
1378         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (ELF_NVRREG): Fix
1379         value for PowerPC64.
1380
1381 2006-01-12  Roland McGrath  <roland@redhat.com>
1382
1383         * sysdeps/s390/jmpbuf-offsets.h: New file.
1384         * sysdeps/s390/jmpbuf-unwind.h: Include it.
1385
1386         * sysdeps/alpha/__longjmp.S: Include <jmpbuf-offsets.h>
1387         instead of <bits/setjmp.h>.
1388         * sysdeps/alpha/setjmp.S: Likewise.
1389         * sysdeps/i386/__longjmp.S: Likewise.
1390         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1391         * sysdeps/i386/bsd-setjmp.S: Likewise.
1392         * sysdeps/i386/setjmp.S: Likewise.
1393         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
1394         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1395         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S:
1396         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1397         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1398         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1399         * sysdeps/sh/sh3/setjmp.S: Likewise.
1400         * sysdeps/sh/sh4/setjmp.S: Likewise.
1401         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
1402         * sysdeps/sparc/sparc32/setjmp.S: Likewise.
1403         * sysdeps/x86_64/__longjmp.S: Likewise.
1404         * sysdeps/x86_64/setjmp.S: Likewise.
1405         * sysdeps/mach/hurd/i386/longjmp-ts.c: Include <jmpbuf-offsets.h>.
1406         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: Likewise.
1407         * sysdeps/mach/hurd/alpha/longjmp-ts.c: Likewise.
1408         * sysdeps/alpha/jmpbuf-unwind.h: Likewise.
1409         * sysdeps/hppa/jmpbuf-unwind.h: Likewise.
1410         * sysdeps/i386/jmpbuf-unwind.h: Likewise.
1411         * sysdeps/powerpc/jmpbuf-unwind.h: Likewise.
1412         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
1413         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
1414         * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
1415         * setjmp/jmpbuf-offsets.h: File removed.
1416         * include/bits/setjmp.h: File removed.
1417
1418 2006-01-11  Ulrich Drepper  <drepper@redhat.com>
1419
1420         * libio/wmemstream.c: New file.
1421         * libio/stdio.h: Declare open_wmemstream.
1422         * libio/Versions: Export open_wmemstream for GLIBC_2.4.
1423         * libio/Makefile (routines): Add wmemstream.
1424         (tests): Add tst-memstream1, tst-memstream2, tst-wmemstream2, and
1425         tst-wmemstream2.
1426         * libio/tst-memstream1.c: New file.
1427         * libio/tst-memstream2.c: New file.
1428         * libio/tst-wmemstream1.c: New file.
1429         * libio/tst-wmemstream2.c: New file.
1430
1431         * libio/memstream.c (_IO_mem_sync): Remove useless call to
1432         _IO_default_sync.
1433
1434         * elf/check-textrel.c: Add missing argument.
1435
1436         * Makerules: Define build-module-asneeded.
1437         * iconvdata/extra-module.mk: Use build-module-asneeded.
1438         needed.
1439
1440 2006-01-09  Richard Henderson  <rth@redhat.com>
1441
1442         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on ld.so.
1443         * sysdeps/alpha/__longjmp.S: Use PTR_DEMANGLE.
1444         * sysdeps/alpha/setjmp.S: Likewise.  Avoid __sigjmp_save for rtld;
1445         tailcall in libc.so.
1446         * sysdeps/unix/sysv/linux/alpha/sysdep.h (PTR_MANGLE): Define.
1447         (PTR_MANGLE2): Define.
1448
1449 2006-01-11  Ulrich Drepper  <drepper@redhat.com>
1450
1451         * elf/check-localplt.c: New file.
1452         * elf/Makefile: Add rules to build and run check-localplt.
1453         * scripts/data/localplt-x86_64-linux-gnu.data: New file.
1454         * scripts/data/localplt-i386-linux-gnu.data: New file.
1455
1456         * include/sys/stat.h: Add libc_hidden_proto for __fxstatat64.
1457         * sysdeps/unix/sysv/linux/fxstatat64.c: Add libc_hidden_def for
1458         __fxstatat64.
1459         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Add
1460         __GI___fxstatat64 alias.
1461
1462         * libio/memstream.c (_IO_mem_finish): Fix potential memory leak if
1463         realloc fails.
1464
1465         * include/sched.h: Add libc_hidden_proto for __sched_yield.
1466
1467         * libio/genops.c (_IO_unbuffer_write): Give concurrently running
1468         threads the chance to work correctly by trying to lock the stream.
1469         If this does not work, proceed without locking.
1470
1471 2006-01-10  Ulrich Drepper  <drepper@redhat.com>
1472
1473         * libio/genops.c (_IO_unbuffer_write): Don't always free the
1474         buffer.  This is not necessary except in debug mode.  If we don't
1475         free the buffer but the FILE structure to a list.
1476         (buffer_free): New function.  Free buffers or tell _IO_unbuffer_write
1477         to do so.
1478         * libio/libio.h (struct _IO_FILE): Add new members to keep track
1479         of which buffers have to be freed.
1480
1481         * iconv/gconv_cache.c (free_mem): Don't call munmap if gconv_cache
1482         is NULL.
1483
1484 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1485
1486         * malloc/obstack.c: Fix old comments.  Update FSF snail mail address.
1487         * malloc/obstack.h: Likewise.
1488
1489         [BZ #321]
1490         Fix portability bugs encountered when porting to Itanium.
1491         * malloc/obstack.h (obstack_empty_p, obstack_finish): Do not
1492         assume that the "contents" member is suitably aligned.  It is
1493         not, for some hosts and alignments: e.g., Itanium, long-double.
1494         * malloc/obstack.c (_obstack_begin, _obstack_begin_1,
1495         _obstack_newchunk): Likewise.
1496         * malloc/obstack.c: Include <stddef.h>, for size_t.
1497         Include <inttypes.h>, <stdint.h> if needed and available.
1498         (DEFAULT_ALIGNMENT): Now an enum constant, not a macro.
1499         Use C89 offsetof rather than K&R trick.
1500         Use the maximum alignment of uintmax_t, long double, void *
1501         rather than the alignment of double.
1502         (union fooround): Use uintmax_t, long double, void * members
1503         rather than just long and double.
1504
1505         [BZ #321]
1506         Fix portability bugs encountered when porting to the IBM iSeries,
1507         where pointers are 256 bits wide and no integers are that wide.
1508         * malloc/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
1509         All uses changed to:
1510         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
1511         (struct _obstack_chunk.temp): Change from int to a union
1512         of pointer and int.  All uses changed.
1513
1514         [BZ #321]
1515         * malloc/obstack.c (print_and_abort) [!_LIBC]:
1516         Call fprintf (stderr, ...), not __fxprintf (NULL, ...).
1517         [_LIBC && USE_IN_LIBIO]: Don't include <wchar.h>; no longer needed.
1518
1519 2006-01-10  Derek Price  <derek@ximbiot.com>
1520             Paul Eggert  <eggert@cs.ucla.edu>
1521
1522         [BZ #1060]
1523         * posix/glob.c: Assume freestanding C89 compiler.  Simplify cruft that
1524         may be replaced with GNULIB modules.  Make no attempt to find 64-bit
1525         versions of file access functions directly when [!_LIBC].
1526         Don't define GLOB_* macros here.
1527         (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK, DIRENT_MIGHT_BE_DIR): New
1528         macros to abstract dirent->d_type access.
1529         (GETPW_R_SIZE_MAX, GET_LOGIN_NAME_MAX): New macros to abstract sysconf
1530         access.
1531
1532 2006-01-10  Roland McGrath  <roland@redhat.com>
1533
1534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1535         (PTR_MANGLE): Fix cast.
1536
1537         * timezone/test-tz.c: Revert last change, updating to match
1538         tzdata2005r definition of "MST".
1539
1540 2006-01-10  Ulrich Drepper  <drepper@redhat.com>
1541
1542         * include/bits/setjmp.h: Don't include jmpbuf-offsets.h if _ISOMAC is
1543         defined.
1544
1545 2006-01-10  Andreas Jaeger  <aj@suse.de>
1546
1547         * include/time.h: Use normal comments.
1548
1549 2006-01-10  Thomas Schwinge  <tschwinge@gnu.org>
1550
1551         * hurd/sigunwind.c: Include <jmpbuf-unwind.h> instead of <setjmp.h>.
1552         * sysdeps/mach/hurd/jmp-unwind.c: Likewise.
1553
1554 2006-01-10  Jakub Jelinek  <jakub@redhat.com>
1555
1556         * wcsmbs/bits/wchar2.h (vswprintf): Call __vswprintf_alias rather than
1557         vswprintf recursively.
1558
1559 2006-01-10  Ulrich Drepper  <drepper@redhat.com>
1560
1561         * sysdeps/x86_64/bits/setjmp.h: Add back accidently removed #endif.
1562
1563 2006-01-10  Roland McGrath  <roland@redhat.com>
1564
1565         * include/bits/setjmp.h: New file.
1566         * setjmp/jmpbuf-offsets.h: New file.
1567         * sysdeps/alpha/bits/setjmp.h: Move JB_* macros ...
1568         * sysdeps/alpha/jmpbuf-offsets.h: ... here, new file.
1569         * sysdeps/hppa/bits/setjmp.h (JB_SP): Macro moved ...
1570         * sysdeps/hppa/jmpbuf-offsets.h: ... here, new file.
1571         * sysdeps/i386/bits/setjmp.h: Move JB_* macros ...
1572         * sysdeps/i386/jmpbuf-offsets.h: ... here, new file.
1573         * sysdeps/mips/bits/setjmp.h (JB_PC): Macro removed.
1574         * sysdeps/powerpc/bits/setjmp.h: Move JB_* macros ...
1575         * sysdeps/powerpc/jmpbuf-offsets.h: ... here, new file.
1576         * sysdeps/s390/bits/setjmp.h: Remove __JB_* macros.
1577         * sysdeps/sh/bits/setjmp.h (JB_SIZE): Macro moved ...
1578         * sysdeps/sh/jmpbuf-offsets.h: ... here, new file.
1579         * sysdeps/sparc/sparc32/bits/setjmp.h: Move JB_* macros ...
1580         * sysdeps/sparc/sparc32/jmpbuf-offsets.h: ... here, new file.
1581         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Remove JB_* macros.
1582         * sysdeps/x86_64/bits/setjmp.h: Move JB_* macros ...
1583         * sysdeps/x86_64/jmpbuf-offsets.h: ... here, new file.
1584
1585         * sysdeps/powerpc/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1586         * sysdeps/powerpc/jmpbuf-unwind.h: ... here.
1587         * sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1588         * sysdeps/alpha/jmpbuf-unwind.h: ... here.
1589         * sysdeps/sparc/sparc32/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1590         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: ... here.
1591         * sysdeps/i386/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1592         * sysdeps/i386/jmpbuf-unwind.h: ... here.
1593         * sysdeps/x86_64/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1594         * sysdeps/x86_64/jmpbuf-unwind.h: ... here.
1595         * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1596         * sysdeps/sh/jmpbuf-unwind.h: ... here.
1597         * sysdeps/hppa/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1598         * sysdeps/hppa/jmpbuf-unwind.h: ... here, new file.
1599         * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1600         * sysdeps/mips/jmpbuf-unwind.h: ... here.
1601         * sysdeps/m68k/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1602         * sysdeps/m68k/jmpbuf-unwind.h: ... here, new file.
1603         * sysdeps/s390/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
1604         * sysdeps/s390/jmpbuf-unwind.h: ... here.
1605         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
1606         Move macro ...
1607         * sysdeps/ia64/jmpbuf-unwind.h: ... here.
1608         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS):
1609         Move macro ...
1610         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: ... here.
1611
1612         * sysdeps/alpha/jmpbuf-unwind.h: New file, moved from nptl/.
1613         * sysdeps/i386/jmpbuf-unwind.h: New file, moved from nptl/.
1614         * sysdeps/ia64/jmpbuf-unwind.h: New file, moved from nptl/.
1615         * sysdeps/mips/jmpbuf-unwind.h: New file, moved from nptl/.
1616         * sysdeps/powerpc/jmpbuf-unwind.h: New file, moved from nptl/.
1617         * sysdeps/s390/jmpbuf-unwind.h: New file, moved from nptl/.
1618         * sysdeps/sh/jmpbuf-unwind.h: New file, moved from nptl/.
1619         * sysdeps/sparc/sparc32/jmpbuf-unwind.h: New file, moved from nptl/.
1620         * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file, moved from nptl/.
1621         * sysdeps/x86_64/jmpbuf-unwind.h: New file, moved from nptl/.
1622
1623         * sysdeps/linkmap.h: File removed.
1624
1625 2006-01-07  Carlos O'Donell  <carlos@systemhalted.org>
1626
1627         * sysdeps/hppa/elf/start.S (_start): Use PLABEL32 relocations
1628         by using LR and RR. Add %sr0 to iitlbp.
1629
1630 2006-01-09  Roland McGrath  <roland@redhat.com>
1631
1632         * timezone/private.h: Update from tzcode2005r.
1633         * timezone/tzfile.h: Likewise.
1634         * timezone/zdump.c: Likewise.
1635         * timezone/zic.c: Likewise.
1636         * timezone/africa: Update from tzdata2005r.
1637         * timezone/antarctica: Likewise.
1638         * timezone/asia: Likewise.
1639         * timezone/australasia: Likewise.
1640         * timezone/backward: Likewise.
1641         * timezone/europe: Likewise.
1642         * timezone/northamerica: Likewise.
1643         * timezone/southamerica: Likewise.
1644         * timezone/systemv: Likewise.
1645
1646         * elf/Makefile ($(objpfx)reldep5.out): Fix dependency typo,
1647         so we depend on $(objpfx)reldepmod6.so as intended.
1648
1649 2006-01-09  Ulrich Drepper  <drepper@redhat.com>
1650
1651         [BZ #2126]
1652         * sysdeps/i386/i686/strtok.S: Store pointer to NUL byte if NULL is
1653         returned.
1654         * sysdeps/i386/strtok.S: Likewise.
1655         * sysdeps/x86_64/strtok.S: Likewise.
1656         * string/Makefile (tests): Add bug-strtok1.
1657         * string/bug-strtok1.c: New file.
1658
1659         * elf/check-textrel.c (AB): Also check for writable and executable
1660         segments.
1661
1662         * sysdeps/ieee754/dbl-64/e_exp2.c: Remove section attribute from
1663         const variables, gas produces garbage.
1664         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
1665         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
1666         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1667
1668 2006-01-09  Jakub Jelinek  <jakub@redhat.com>
1669
1670         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS): Add
1671         stack bias to mc_fp field.
1672
1673         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h
1674         (struct kernel_stat): Rename st_[amc]time fields to st_[amc]time_sec.
1675         (struct kernel_stat64): New type.
1676         (_HAVE___UNUSED1, _HAVE___UNUSED2, _HAVE_STAT___UNUSED1,
1677         _HAVE_STAT___UNUSED2, _HAVE_STAT___UNUSED3, _HAVE_STAT___UNUSED4,
1678         _HAVE_STAT___UNUSED5, _HAVE_STAT___PAD1, _HAVE_STAT___PAD2,
1679         _HAVE_STAT64___UNUSED1, _HAVE_STAT64___UNUSED2,
1680         _HAVE_STAT64___UNUSED3, _HAVE_STAT64___UNUSED4,
1681         _HAVE_STAT64___UNUSED5, _HAVE_STAT64___PAD1, _HAVE_STAT64___PAD2):
1682         Remove.
1683         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Use i386/xstat.c.
1684         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c:
1685         Use i386/fxstatat.c.
1686         * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat.c: Use i386/lxstat.c.
1687         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: New file.
1688         * sysdeps/unix/sysv/linux/sparc/bits/stat.h (struct stat,
1689         struct stat64): Add nsec resolution for 64-bit code like already done
1690         for 32-bit code.
1691         * sysdeps/unix/sysv/linux/kernel-features.h
1692         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_MMAP2_SYSCALL): Don't define
1693         for sparc64.
1694         (__ASSUME_STAT64_SYSCALL): Only define for sparc64 for >= 2.6.12
1695         kernels.
1696
1697         * scripts/data/c++-types-sparc-linux-gnu.data: New file.
1698         * scripts/data/c++-types-sparc64-linux-gnu.data: New file.
1699         * scripts/data/c++-types-alpha-linux-gnu.data: Adjust.
1700
1701 2006-01-08  Roland McGrath  <roland@redhat.com>
1702
1703         [BZ #1535]
1704         * sysdeps/unix/get_child_max.c: New file.
1705         * posix/get_child_max.c: New file.
1706         * posix/Makefile (routines): Add it.
1707         * include/sys/sysinfo.h (__get_child_max): Declare it.
1708         * sysdeps/posix/sysconf.c (__sysconf) [! CHILD_MAX]: Use it.
1709
1710         * sysdeps/unix/sysv/linux/futimes.c [!__NR_fcntl && __NR_fcntl64]: Use
1711         fcntl64 syscall instead.
1712
1713         * stdio-common/tst-fmemopen2.c (do_test): Add a cast.
1714         * stdio-common/printf-parsemb.c (__find_specmb): Likewise.
1715
1716         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use <> instead of "" in
1717         #include for kernel-features.h.
1718         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: Likewise.
1719         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: Likewise.
1720         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1721         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1722         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1723         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
1724         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1725         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
1726         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1727         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1728         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
1729         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1730         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1731         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
1732         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1733         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1734         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
1735         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
1736         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1737         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
1738         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
1739         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1740         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
1741         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
1742         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
1743         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1744         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1745         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1746         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1747         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1748         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
1749         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1750         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
1751         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1752         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1753         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
1754         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1755         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
1756         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
1757         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
1758         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
1759         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
1760         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
1761         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
1762         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
1763         * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
1764         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
1765         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1766         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1767         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
1768         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
1769         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
1770         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1771         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1772         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
1773         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
1774         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1775         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1776         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1777         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1778         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1779         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1780         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
1781         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1782         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
1783         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1784         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
1785         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
1786         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1787         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
1788         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Likewise.
1789         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
1790         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1791         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
1792         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
1793         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1794         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
1795         * sysdeps/unix/sysv/linux/opendir.c: Likewise.
1796         * sysdeps/unix/sysv/linux/poll.c: Likewise.
1797         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
1798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Likewise.
1799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
1801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
1802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
1803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
1804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Likewise.
1806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1814         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1815         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1816         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
1817         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1818         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1819         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
1820         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1821         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
1822         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
1823         * sysdeps/unix/sysv/linux/setegid.c: Likewise.
1824         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
1825         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1826         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1827         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1828         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1829         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1830         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Likewise.
1831         * sysdeps/unix/sysv/linux/statvfs64.c: Likewise.
1832         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
1833         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
1834         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
1835         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
1836         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1837         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
1838
1839 2006-01-07  Roland McGrath  <roland@redhat.com>
1840
1841         * po/libc.pot: Regenerated.
1842
1843         * po/.cvsignore: List libc.pot.files, and not any .pot names.
1844
1845         * manual/maint.texi (Porting): Don't mention Dist files.
1846         * sysdeps/alpha/soft-fp/Dist: File removed.
1847         * sysdeps/alpha/Dist: File removed.
1848         * sysdeps/i386/i686/Dist: File removed.
1849         * sysdeps/i386/soft-fp/Dist: File removed.
1850         * sysdeps/i386/Dist: File removed.
1851         * sysdeps/mips/soft-fp/Dist: File removed.
1852         * sysdeps/mips/mips64/soft-fp/Dist: File removed.
1853         * sysdeps/mips/mips64/Dist: File removed.
1854         * sysdeps/mips/Dist: File removed.
1855         * sysdeps/wordsize-32/Dist: File removed.
1856         * sysdeps/m68k/fpu/switch/Dist: File removed.
1857         * sysdeps/m68k/fpu/Dist: File removed.
1858         * sysdeps/powerpc/powerpc64/Dist: File removed.
1859         * sysdeps/powerpc/soft-fp/Dist: File removed.
1860         * sysdeps/powerpc/powerpc32/fpu/Dist: File removed.
1861         * sysdeps/powerpc/powerpc32/Dist: File removed.
1862         * sysdeps/powerpc/fpu/Dist: File removed.
1863         * sysdeps/powerpc/Dist: File removed.
1864         * sysdeps/unix/common/Dist: File removed.
1865         * sysdeps/unix/bsd/bsd4.4/Dist: File removed.
1866         * sysdeps/unix/bsd/Dist: File removed.
1867         * sysdeps/unix/sysv/linux/alpha/Dist: File removed.
1868         * sysdeps/unix/sysv/linux/i386/Dist: File removed.
1869         * sysdeps/unix/sysv/linux/mips/mips64/Dist: File removed.
1870         * sysdeps/unix/sysv/linux/mips/Dist: File removed.
1871         * sysdeps/unix/sysv/linux/m68k/Dist: File removed.
1872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: File removed.
1873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: File removed.
1874         * sysdeps/unix/sysv/linux/powerpc/aix/Dist: File removed.
1875         * sysdeps/unix/sysv/linux/powerpc/Dist: File removed.
1876         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: File removed.
1877         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: File removed.
1878         * sysdeps/unix/sysv/linux/sparc/Dist: File removed.
1879         * sysdeps/unix/sysv/linux/ia64/Dist: File removed.
1880         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: File removed.
1881         * sysdeps/unix/sysv/linux/s390/Dist: File removed.
1882         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: File removed.
1883         * sysdeps/unix/sysv/linux/sh/Dist: File removed.
1884         * sysdeps/unix/sysv/linux/x86_64/Dist: File removed.
1885         * sysdeps/unix/sysv/linux/hppa/Dist: File removed.
1886         * sysdeps/unix/sysv/linux/Dist: File removed.
1887         * sysdeps/unix/sysv/Dist: File removed.
1888         * sysdeps/unix/Dist: File removed.
1889         * sysdeps/generic/Dist: File removed.
1890         * sysdeps/sparc/sparc32/soft-fp/Dist: File removed.
1891         * sysdeps/sparc/sparc32/sparcv9/Dist: File removed.
1892         * sysdeps/sparc/sparc32/sparcv8/Dist: File removed.
1893         * sysdeps/sparc/sparc32/Dist: File removed.
1894         * sysdeps/sparc/sparc64/soft-fp/Dist: File removed.
1895         * sysdeps/sparc/sparc64/Dist: File removed.
1896         * sysdeps/sparc/Dist: File removed.
1897         * sysdeps/gnu/Dist: File removed.
1898         * sysdeps/ia64/fpu/Dist: File removed.
1899         * sysdeps/ia64/Dist: File removed.
1900         * sysdeps/mach/mips/Dist: File removed.
1901         * sysdeps/mach/hurd/alpha/Dist: File removed.
1902         * sysdeps/mach/hurd/i386/Dist: File removed.
1903         * sysdeps/mach/hurd/mips/Dist: File removed.
1904         * sysdeps/mach/hurd/powerpc/Dist: File removed.
1905         * sysdeps/mach/hurd/Dist: File removed.
1906         * sysdeps/s390/s390-64/Dist: File removed.
1907         * sysdeps/s390/Dist: File removed.
1908         * sysdeps/s390/s390-32/Dist: File removed.
1909         * sysdeps/sh/Dist: File removed.
1910         * sysdeps/posix/Dist: File removed.
1911         * sysdeps/ieee754/dbl-64/Dist: File removed.
1912         * sysdeps/ieee754/ldbl-128/Dist: File removed.
1913         * sysdeps/ieee754/flt-32/Dist: File removed.
1914         * sysdeps/ieee754/Dist: File removed.
1915         * sysdeps/x86_64/soft-fp/Dist: File removed.
1916         * sysdeps/x86_64/Dist: File removed.
1917         * sysdeps/hppa/Dist: File removed.
1918
1919         * Makerules (common-clean): Don't remove distinfo file.
1920         ($(objpfx)distinfo): Target removed.
1921         * manual/Makefile (mostlyclean): Don't remove distinfo file.
1922         (glibc-targets): Remove echo-distinfo.
1923
1924         * scripts/list-sources.sh: New file.
1925         * Makefile (TAGS): New target.
1926         * po/Makefile (libc.pot, libc.pot.files): New targets.
1927         * Makeconfig (XGETTEXT): New variable.
1928         * Makerules ($(..)po/%.pot): Rule removed.
1929         (TAGS): Target removed.
1930         * Rules (subdir_TAGS): Target removed.
1931         * MakeTAGS: File removed.
1932
1933         * Makefile (iconvdata/% localedata/% po/% manual/%): Depend on FORCE.
1934         * Makeconfig ($(all-Depend-files)): New targets with no-op commands.
1935
1936 2004-08-03  Marco Gerards  <marco@gnu.org>
1937
1938         [BZ #2119]
1939         * sysdeps/mach/hurd/bits/ioctls.h (SIOCGIFHWADDR): New macro.
1940
1941 2006-01-07  Ulrich Drepper  <drepper@redhat.com>
1942
1943         * stdio-common/tstdiomisc.c (F): Use NAN to get NaN value.
1944
1945 2006-01-06  Ulrich Drepper  <drepper@redhat.com>
1946
1947         * elf/tst-tls8.c (do_test): Use $ORIGIN in module names.
1948
1949 2006-01-03  Steven Munroe  <sjmunroe@us.ibm.com>
1950
1951         * sysdeps/generic/sysdep.h (cfi_same_value): Define macro.
1952
1953         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve,
1954         _dl_profile_resolve): Add CFI directives for stack and LR save.
1955         Save LR in LRSAVE of previous frame per ABI.
1956         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add CFI directives
1957         for LR save.
1958         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
1959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1960         (__makecontext, __novec_makecontext): Likewise.
1961         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Add CFI directive
1962         for LR save to register.
1963         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1964         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
1965         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1966         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
1967         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
1968         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
1969         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1970         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
1971         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1972         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1973         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Add CFI directive
1974         for stack.
1975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1976         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Add CFI directives for stack
1977         and LR save.
1978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
1979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
1980         Likewise.
1981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1982         Likewise.
1983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1984         Likewise.
1985         * sysdeps/powerpc/powerpc32/fpu/s_lround.S:  Likewise.  Don't use
1986         negative stack addressing.
1987
1988         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1989         _dl_profile_resolve): Add CFI directives for stack and LR save.
1990         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Add CFI directives
1991         for stack.
1992         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Add CFI
1993         directives for stack and LR save.
1994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Add CFI
1995         directives for stack.
1996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Add CFI
1997         directives for stack.
1998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1999         (__getcontext, __novec_getcontext): Add CFI directives for stack
2000         and LR save.
2001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2002         (__makecontext): Add CFI directives for stack and LR save.
2003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2004         (__setcontext, __novec_setcontext): Add CFI directives for stack
2005         and LR save.
2006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2007         (__swapcontext, __novec_swapcontext):  Add CFI directives for stack
2008         and LR save.
2009
2010 2006-01-06  Jakub Jelinek  <jakub@redhat.com>
2011
2012         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include tls.h.
2013         (SYSCALL_ERROR_HANDLER_ENTRY): Use %g4 instead of %g2, to avoid
2014         the need of .register directive for it.
2015         * configure.in (libc_cv_asm_cfi_directives): Use CFI rel offset
2016         2047 instead of 0 in the test on sparc64.
2017
2018 2006-01-06  Ulrich Drepper  <drepper@redhat.com>
2019
2020         * scripts/check-c++-types.sh: Add more pthread types.
2021         * scripts/data//c++-types-i386-linux-gnu.data: Adjust.
2022         * scripts/data//c++-types-ia64-linux-gnu.data: Likewise.
2023         * scripts/data//c++-types-powerpc-linux-gnu.data: Likewise.
2024         * scripts/data//c++-types-powerpc64-linux-gnu.data: Likewise.
2025         * scripts/data//c++-types-s390-linux-gnu.data: Likewise.
2026         * scripts/data//c++-types-s390x-linux-gnu.data: Likewise.
2027         * scripts/data//c++-types-x86_64-linux-gnu.data: Likewise.
2028
2029         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL_NCS):
2030         Adjust for private->__private rename in tcbhead_t.
2031
2032         [BZ #2114]
2033         * ncsd/aicache.c: Don't use sendfile for records on the stack.
2034         * nscd/grpcache.c: Likewise.
2035         * nscd/hstcache.c: Likewise.
2036         * nscd/initgrcache.c: Likewise.
2037         * nscd/pwdcache.c: Likewise.
2038         Patch by dmueller@suse.com.
2039
2040         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define MADV_REMOVE.
2041         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2042         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2043         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2044         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2045         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2046         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2047         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2048
2049 2006-01-06  Roland McGrath  <roland@redhat.com>
2050
2051         * Makeconfig (+gnu-stabs): Remove ancient cruft.
2052
2053         [BZ #2103]
2054         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_HWX25): Corrected macro
2055         name (was typo ARPHDR_HWX25).
2056         (ARPHRD_IEEE80211_PRISM, ARPHRD_IEEE80211_RADIOTAP): New macros.
2057         (ARPHRD_VOID, ARPHRD_NONE): New macros.
2058
2059         * sysdeps/wordsize-32/divdi3.c (__moddi3): Add a cast.
2060
2061         * io/fcntl.h [__USE_ATFILE] (AT_EACCESS): New macro.
2062         * posix/unistd.h [__USE_ATFILE]: Declare faccessat.
2063         * io/faccessat.c: New file.
2064         * sysdeps/unix/sysv/linux/faccessat.c: New file.
2065         * io/Makefile (routines): Add faccessat.
2066         * io/Versions (libc: GLIBC_2.4): Likewise.
2067         * io/tst-faccessat.c: New file.
2068         * io/Makefile (tests): Add it.
2069
2070         * scripts/check-local-headers.sh: Revert last change.
2071
2072         * io/euidaccess.c: Add eaccess as an alias.
2073         * sysdeps/mach/hurd/euidaccess.c: Likewise.
2074         * sysdeps/posix/euidaccess.c: Likewise.
2075         * posix/unistd.h [__USE_GNU]: Declare eaccess.
2076         * io/Versions (libc: GLIBC_2.4): Add eaccess.
2077
2078 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
2079
2080         * soft-fp/Makefile (gcc-single-routines): Add unordsf2,
2081         floatunsisf, floatundisf.
2082         (gcc-double-routines): Add unorddf2, floatunsidf, floatundidf.
2083         (gcc-quad-routines): Add unordtf2, floatunsitf, floatunditf.
2084         * soft-fp/op-common.h (_FP_CMP_UNORD): Define.
2085         * soft-fp/single.h (FP_CMP_UNORD_S): Define.
2086         * soft-fp/double.h (FP_CMP_UNORD_D): Define.
2087         * soft-fp/quad.h (FP_CMP_UNORD_Q): Define.
2088         * soft-fp/extended.h (FP_CMP_UNORD_E): Define.
2089         * soft-fp/unordsf2.c: New file.
2090         * soft-fp/unorddf2.c: New file.
2091         * soft-fp/unordtf2.c: New file.
2092         * soft-fp/floatunsisf.c: New file.
2093         * soft-fp/floatundisf.c: New file.
2094         * soft-fp/floatunsidf.c: New file.
2095         * soft-fp/floatundidf.c: New file.
2096         * soft-fp/floatunsitf.c: New file.
2097         * soft-fp/floatunditf.c: New file.
2098
2099         * soft-fp/op-common.h (__FP_CLZ): Define using __builtin_clz,
2100         __builtin_clzl and __builtin_clzll.
2101
2102 2006-01-05  Mike Frysinger  <vapier@gentoo.org>
2103
2104         * include/alloca.h (extend_alloca): Fix typoed name 'extern_alloca'.
2105
2106 2006-01-05  Jakub Jelinek  <jakub@redhat.com>
2107
2108         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
2109         Only define for 2.6.12+ on s390{,x}.
2110         (__ASSUME_GETDENTS32_D_TYPE): Only define for 2.6.8+ on most arches
2111         and only for 2.6.11+ on s390{,x}.
2112
2113 2006-01-05  Ulrich Drepper  <drepper@redhat.com>
2114
2115         * sysdeps/pthread/aio_misc.h [!DONT_USE_BOOTSTRAP_MAP]
2116         (struct waitlist): Don't add cond.
2117         * sysdeps/pthread/aio_notify.c [!DONT_USE_BOOTSTRAP_MAP]
2118         (__aio_notify): Use AIO_MISC_NOTIFY instead of pthread_cond_signal.
2119         * sysdeps/pthread/aio_suspend.c [!DONT_USE_BOOTSTRAP_MAP]: Don't
2120         use condvar, use AIO_MISC_WAIT.
2121         * sysdeps/pthread/lio_listio.c: Likewise.
2122         * rt/Makefile (tests): Add tst-aio9 and tst-aio10.
2123         * rt/tst-aio9.c: New file.
2124         * rt/tst-aio10.c: New file.
2125
2126         * rt/tst-aio3.c: The thread is now supposed to be created.
2127
2128 2006-01-05  Roland McGrath  <roland@redhat.com>
2129
2130         * include/features.h: Grok _ATFILE_SOURCE and define __USE_ATFILE when
2131         it or _GNU_SOURCE is defined.
2132         * io/fcntl.h: Protect *at and AT_* with [__USE_ATFILE] instead of
2133         [__USE_GNU].
2134         * libio/stdio.h: Likewise.
2135         * posix/unistd.h: Likewise.
2136         * time/sys/time.h: Likewise.
2137         * io/sys/stat.h: Likewise.
2138
2139         * io/sys/stat.h [__USE_GNU]: Declare fchmodat.
2140         * io/fchmodat.c: New file.
2141         * io/Makefile (routines): Add fchmodat.
2142         * io/Versions (libc: GLIBC_2.4): Likewise.
2143         * sysdeps/unix/sysv/linux/fchmodat.c: New file.
2144         * io/tst-fchmodat.c: New file.
2145         * io/Makefile (tests): Add it.
2146
2147 2006-01-03  Steven Munroe  <sjmunroe@us.ibm.com>
2148
2149         * sysdeps/powerpc/powerpc32/sysdep.h (ENTRY, EALIGN): Add cfi_startproc
2150         directive to ENTRY macros.
2151         (END): Add cfi_endproc directive to END macro.
2152         * sysdeps/powerpc/powerpc64/sysdep.h (ENTRY, EALIGN): Add cfi_startproc
2153         directive to ENTRY macros.
2154         (END, END_GEN_TB): Add cfi_endproc directive to END macros.
2155         * sysdeps/powerpc/powerpc32/dl-start.S: Remove ENTRY()s for
2156         _dl_start_user and _dl_main_dispatch.
2157         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Use END macro.
2158         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Use Likewise.
2159         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2160         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2161         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2162         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Remove redundant
2164         cfi_startproc and cfi_endproc.
2165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
2166
2167 2006-01-04  Ulrich Drepper  <drepper@redhat.com>
2168
2169         * sysdeps/pthread/aio_misc.h (struct waitlist): Add result member.
2170         * sysdeps/pthread/aio_notify.c (__aio_notify): For synchronous waiters,
2171         failed I/O, and a result pointer, set value to -1.
2172         * sysdeps/pthread/aio_suspend.c: Initialize result pointer to NULL.
2173         * sysdeps/pthread/lio_listio.c: For LIO_WAIT, point result pointer in
2174         wait list to local variable result.  If nonzero afterwards, set errno
2175         to EIO.  For LIO_NOWAIT set result to NULL.
2176         * rt/Makefile (tests): Add tst-aio8.
2177         * rt/tst-aio8.c: New file.
2178
2179 2005-12-25  Kristian Van Der Vliet  <vanders@liqwyd.com>
2180
2181         * abi-tags (*-.*-syllable.*): New match, with ABI value 5.
2182         * elf/cache.c (print_entry): Match the Syllable ABI tag.
2183
2184 2006-01-04  Ulrich Drepper  <drepper@redhat.com>
2185
2186         * include/stdlib.h: Make even more C++ compliant.
2187
2188 2006-01-04  Joseph S. Myers  <joseph@codesourcery.com>
2189
2190         * sysdeps/unix/sysv/linux/mips/brk.c (__brk): Use
2191         __SYSCALL_CLOBBERS.
2192
2193 2006-01-03  H.J. Lu  <hongjiu.lu@intel.com>
2194
2195         * configure.in (HAVE_LIBAUDIT): Check
2196         audit_log_user_avc_message instead of audit_log_avc.
2197
2198 2006-01-04  Joseph S. Myers  <joseph@codesourcery.com>
2199
2200         * sysdeps/ieee754/bits/nan.h: Fix typo.
2201
2202 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
2203
2204         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Include string.h.
2205
2206         * sysdeps/sparc/sparc32/dl-machine.h (LD_SO_PRELOAD): Remove unused
2207         define.
2208
2209         * sysdeps/sparc/sparc32/bits/atomic.h: Include stdint.h, add
2210         {,u}atomic*_t typedefs.
2211         (__sparc32_atomic_do_lock): Add __volatile and memory clobber.
2212         (__sparc32_atomic_do_unlock): Add memory barrier.
2213         (__sparc32_atomic_do_lock24, __sparc32_atomic_do_unlock24): Define.
2214         [!SHARED] (__v9_compare_and_exchange_val_32_acq): Define.
2215         (__v7_compare_and_exchange_val_acq, __v7_compare_and_exchange_bool_acq,
2216         __v7_exchange_acq, __v7_exchange_and_add, __v7_exchange_24_rel,
2217         __v7_compare_and_exchange_val_24_acq, __atomic_is_v9,
2218         atomic_exchange_acq, atomic_compare_and_exchange_val_24_acq,
2219         atomic_exchange_24_rel): Define.
2220         [SHARED] (atomic_exchange_and_add): Define.
2221         [!SHARED] (__ATOMIC_HWCAP_SPARC_V9): Define.
2222         [!SHARED] (_dl_hwcap): New weak decl.
2223         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_exchange_24_rel,
2224         atomic_compare_and_exchange_val_24_acq): Define.
2225         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_exchange_24_rel,
2226         atomic_compare_and_exchange_val_24_acq): Define.
2227
2228 2006-01-03  Ulrich Drepper  <drepper@redhat.com>
2229
2230         lio_listio should emit an event for each individual request in
2231         addition to the global event.
2232         * sysdeps/pthread/lio_listio.c (lio_listio): Renamed to
2233         lio_listio_internal.  Remove mode parameter check.  Only set sigevent
2234         type to SIGEV_NONE if LIO_NO_INDIVIDUAL_EVENT is set.
2235         (__lio_listio_21): New function.  Compatiblity version which sets
2236         LIO_NO_INDIVIDUAL_EVENT before calling lio_listio_internal.
2237         (__lio_listio_item_notify): New function.
2238         * sysdeps/pthread/lio_listio64.c: Define __lio_listio_21 and
2239         __lio_listio_item_notify macros.
2240         * sysdeps/pthread/Versions: New file.
2241         * rt/tst-aio2.c: Adjust test for new semantics of lio_listio.
2242         * include/aio.h: Define LIO_NO_INDIVIDUAL_EVENT.
2243         * Versions.def: Add GLIBC_2.4 for librt.
2244
2245         * rt/Versions: Whitespace fix.
2246         * sysdeps/pthread/aio_misc.c: Likewise.
2247
2248         * nscd/connections.c (nscd_init): Remove if block which should
2249         have been removed as part of the -S option removal.
2250
2251 2006-01-03  Andreas Jaeger  <aj@suse.de>
2252
2253         * scripts/check-local-headers.sh: Allow $includedir/c++.
2254
2255 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
2256
2257         * posix/unistd.h (ctermid): Remove __nonnull attribute.
2258
2259 2006-01-02  Jakub Jelinek  <jakub@redhat.com>
2260
2261         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PTR_MANGLE,
2262         PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Define.
2263         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PTR_MANGLE,
2264         PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Define.
2265         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h [__WORDSIZE == 64]
2266         (_JMPBUF_UNWINDS): Don't demangle uc_mcontext.mc_fp.
2267         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Mangle %fp, %sp
2268         and %o7.
2269         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Demangle %fp, %sp
2270         and %o7.
2271
2272 2006-01-02  Jakub Jelinek  <jakub@redhat.com>
2273
2274         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PTR_MANGLE2):
2275         Define.
2276         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PTR_MANGLE2):
2277         Likewise.
2278         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Demangle also %r15.
2279         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2280         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Mangle also %r15.
2281         * sysdeps/s390/s390-32/elf/setjmp.S (__sigsetjmp): Likewise.
2282         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp): Likewise.
2283         * sysdeps/s390/s390-64/elf/setjmp.S (__sigsetjmp): Likewise.
2284
2285         * sysdeps/s390/bits/setjmp.h (__jmp_buf): Add __s390_jmp_buf
2286         struct tag to make C++ happy.
2287
2288 2006-01-02  Ulrich Drepper  <drepper@redhat.com>
2289
2290         * posix/Makefile ($(objpfx)annexc.out): Move -I.. to the end of
2291         the include list.
2292
2293 2006-01-01  Ulrich Drepper  <drepper@redhat.com>
2294
2295         * posix/getconf.c: Update copyright year.
2296         * nss/getent.c: Likewise.
2297         * iconv/iconvconfig.c: Likewise.
2298         * iconv/iconv_prog.c: Likewise.
2299         * elf/ldconfig.c: Likewise.
2300         * catgets/gencat.c: Likewise.
2301         * csu/version.c: Likewise.
2302         * elf/ldd.bash.in: Likewise.
2303         * elf/sprof.c (print_version): Likewise.
2304         * locale/programs/locale.c: Likewise.
2305         * locale/programs/localedef.c: Likewise.
2306         * nscd/nscd.c (print_version): Likewise.
2307         * debug/xtrace.sh: Likewise.
2308         * malloc/memusage.sh: Likewise.
2309         * malloc/mtrace.pl: Likewise.
2310         * debug/catchsegv.sh: Likewise.
2311
2312 2005-12-31  Andreas Jaeger  <aj@suse.de>
2313
2314         [BZ #1395]
2315         * manual/filesys.texi (Symbolic Links): Fix description of
2316         canonicalize_file_name based on patch by Oskar Liljeblad
2317         <oskar@osk.mine.nu>.
2318
2319 2005-12-29  Andreas Jaeger  <aj@suse.de>
2320
2321         * resolv/res_debug.c (latlon2ul): Use ISO C function definition.
2322         (precsize_aton): Likewise.
2323         (precsize_ntoa): Likewise.
2324
2325         * resolv/gethnamaddr.c (_gethtbyname): Remove extra prototype.
2326         (gethostbyname2): Likewise.
2327         (gethostbyaddr): Likewise.
2328         (getanswer): Use ISO C function definition.
2329
2330 2005-12-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2331
2332         * sysdeps/sh/sysdep.h: Add cfi instrumentation to asm fragments.
2333         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2334         * sysdeps/sh/_mcount.S: Add cfi instrumentation.
2335         * sysdeps/unix/sh/sysdep.S: Likewise.
2336         * sysdeps/unix/sysv/linux/sh/makecontext.S: Adjust cfi_startproc.
2337         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Remove now duplicate
2338         cfi_startproc and cfi_endproc.
2339         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2340         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2341         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
2342         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
2343         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
2344         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
2345         * sysdeps/unix/sysv/linux/sh/sysdep.S: Add cfi_endproc.
2346
2347 2005-12-30  Ulrich Drepper  <drepper@redhat.com>
2348
2349         * sysdeps/powerpc/powerpc64/setjmp-common.S: Make sure pointer guard
2350         value doesn't survive in a registers when the function returns.
2351         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2352         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2353
2354 2005-12-30  Jakub Jelinek  <jakub@redhat.com>
2355
2356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
2357         PTR_MANGLE2.
2358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
2359         PTR_MANGLE2 and PTR_DEMANGLE2.
2360         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Use PTR_DEMANGLE2.
2361         * sysdeps/powerpc/powerpc64/setjmp-common.S: Use PTR_MANGLE2.
2362         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2363         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
2364
2365 2005-12-30  Ulrich Drepper  <drepper@redhat.com>
2366
2367         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
2368         Don't use _demangle parameter for now.
2369
2370         [BZ #2080]
2371         * libio/iogetwline.c (_IO_getwline_info): Move return to correct
2372         location.
2373
2374         * nscd/connections.c: Remove last remnants of -S option support.
2375         * nscd/nscd.c: Likewise.
2376         * nscd/nscd.h: Likewise.
2377
2378 2005-12-30  Andreas Jaeger  <aj@suse.de>
2379
2380         [BZ #1067]
2381         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Fix struct msghdr
2382         for 64-bit mips kernel.
2383
2384 2005-12-08  Steven Munroe  <sjmunroe@us.ibm.com>
2385             Tom Gall <tom_gall@vnet.ibm.com>
2386
2387         * elf/rtld.c (dl_main): Initialize l_local_scope for sysinfo_map.
2388         * sysdeps/powerpc/elf/libc-start.c: Move this...
2389         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: ...to here.
2390         * sysdeps/powerpc/powerpc32/dl-start.S: Add _dl_main_dispatch label.
2391         * sysdeps/powerpc/powerpc32/hp-timing.h: New file.
2392         * sysdeps/unix/sysv/linux/powerpc/Versions: New file.
2393         * sysdeps/unix/sysv/linux/clock_getres.c: If HAVE_CLOCK_GETRES_VSYSCALL
2394         is not defined, redefine INTERNAL_VSYSCALL and INLINE_VSYSCALL to
2395         INTERNAL_SYSCALL and INLINE_SYSCALL respectively.  Otherwise include
2396         <bits/libc-vdso.h>.  Use INLINE_VSYSCALL and INTERNAL_SYSCALL instead
2397         of the normal versions throughout the code.
2398         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise if
2399         HAVE_CLOCK_GETTIME_VSYSCALL is defined.
2400         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: New file.
2401         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: New file.
2402         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: New file.
2403         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use vDSO.
2404         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: New file.
2405         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add dl-vdso to routines.
2406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
2407         INLINE_VSYSCALL, INTERNAL_VSYSCALL, INTERNAL_SYSCALL_NCS,
2408         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK, HAVE_CLOCK_GETRES_VSYSCALL,
2409         and HAVE_CLOCK_GETTIME_VSYSCALL.
2410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2411
2412 2005-12-29  Ulrich Drepper  <drepper@redhat.com>
2413
2414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h [ASSEMBLER]:
2415         Define PTR_DEMANGLE2.
2416         * sysdeps/powerpc/powerpc32/setjmp-common.S [PTR_MANGLE]: Also
2417         mangle r1.
2418         * sysdeps/powerpc/powerpc32/__longjmp-common.S [PTR_DEMANGLE]: Also
2419         demangle r1.
2420         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [PTR_MANGLE]: Mangle
2421         r0 and r1.
2422         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [PTR_DEMANGLE]:
2423         Demangle r0 and r1.
2424
2425         * sysdeps/powerpc/powerpc64/setjmp-common.S [PTR_MANGLE]: Also
2426         mangle r1.
2427         * sysdeps/powerpc/powerpc64/__longjmp-common.S [PTR_DEMANGLE]: Also
2428         demangle  r1.
2429
2430 2005-12-26  Steven Munroe  <sjmunroe@us.ibm.com>
2431
2432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S:
2433         Move common function to...
2434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
2435         New file.
2436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S:
2437         Move common function to...
2438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2439         New file.
2440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S:
2441         Move common function to...
2442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2443         New file.
2444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.sym
2445         (_FRAME_BACKCHAIN, _FRAME_LR_SAVE, _FRAME_PARM_SAVE1,
2446         _FRAME_PARM_SAVE2, _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4):
2447         Remove unrelated stack frame defines.
2448
2449 2005-12-29  Ulrich Drepper  <drepper@redhat.com>
2450
2451         * stdio-common/tstdiomisc.c [FLT_EVAL_METHOD!=2] (dbl_max):
2452         Defining as macro as before the last change.
2453
2454         * sysdeps/unix/sysv/linux/sigaction.c: If WRAPPER_INCLUDE is defined,
2455         include the named file.
2456         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
2457         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
2458         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2459         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2460         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
2461         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2462
2463 2005-12-29  Roland McGrath  <roland@frob.com>
2464
2465         * sysdeps/mach/hurd/errno.c: New file.
2466
2467         * sysdeps/mach/hurd/ioctl.c (__ioctl): Use a union to avoid a cast.
2468
2469         * sysdeps/posix/libc_fatal.c (__libc_message): Add a const, a cast.
2470
2471         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Fix cast.
2472         * hurd/report-wait.c (_S_msg_report_wait): Likewise.
2473
2474         * include/sys/xattr.h: New file.
2475
2476 2005-12-28  Roland McGrath  <roland@redhat.com>
2477
2478         * hurd/sigunwind.c: Include <stdint.h>.
2479         * sysdeps/mach/hurd/jmp-unwind.c: Likewise.
2480
2481 2005-12-28  Ulrich Drepper  <drepper@redhat.com>
2482
2483         * nscd/selinux.c (log_callback): Use audit_log_user_avc_message.
2484         Don't do anything if audit_fd is invalid.
2485         (audit_init): Don't complain if kernel support is missing.
2486         Patch by Steve Grubb <sgrubb@redhat.com>.
2487
2488         * sysdeps/i386/__longjmp.S [PTR_DEMANGLE]: Also demangle stack
2489         pointer.  Add CFI.
2490         * sysdeps/i386/bsd-_setjmp.S [PTR_MANGLE]: Also mangle stack pointer.
2491         * sysdeps/i386/bsd-setjmp.S: Likewise.
2492         * sysdeps/i386/setjmp.S: Likewise.
2493
2494         * sysdeps/x86_64/__longjmp.S: No need to make sure return value is
2495         != 0, the caller did that.
2496
2497 2005-12-27  Roland McGrath  <roland@redhat.com>
2498
2499         * sysdeps/x86_64/__longjmp.S: Don't confuse unwinder by loading
2500         mangled values in %rbp and %rsp registers and by wrong cfi.
2501
2502         * config.make.in (c++-sysincludes): New substituted variable.
2503         * configure.in (CXX_SYSINCLUDES): New substituted variable.
2504         * configure: Regenerated.
2505         * Makeconfig (CXXFLAGS): Prepend $(c++-sysincludes) here.
2506
2507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2508         (PTR_MANGLE): Fix cast.
2509
2510         * sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Take third argument
2511         DEMANGLE, and pass SP value through it.
2512         * sysdeps/hppa/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2513         * sysdeps/i386/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2514         * sysdeps/m68k/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2515         * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2516         * sysdeps/powerpc/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2517         * sysdeps/s390/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2518         * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2519         * sysdeps/sparc/sparc32/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2520         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
2521         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Likewise.
2522         * sysdeps/x86_64/bits/setjmp.h (_JMPBUF_UNWINDS): Likewise.
2523         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Pass inline
2524         demangler function to _JMPBUF_UNWINDS.
2525         * sysdeps/mach/hurd/jmp-unwind.c (demangle_ptr): New function.
2526         (_longjmp_unwind): Pass it to _JMPBUF_UNWINDS.
2527
2528         * posix/tst-execle1.c (do_test): Add a const.
2529         * posix/tst-execle2.c (do_test): Likewise.
2530
2531         * posix/transbug.c (run_test): Add some casts.
2532         * posix/bug-regex22.c (main): Likewise.
2533         * posix/bug-regex5.c (main): Likewise.
2534         * wcsmbs/tst-mbsrtowcs.c (main): Likewise.
2535         * string/test-strspn.c (do_test, do_random_tests): Likewise.
2536         * string/test-strrchr.c (do_test, do_random_tests): Likewise.
2537         * string/test-strlen.c (do_random_tests): Likewise.
2538         * string/test-strpbrk.c (do_test, do_random_tests): Likewise.
2539         * string/test-strcmp.c (do_random_tests): Likewise.
2540         * string/test-strchr.c (do_test, do_random_tests): Likewise.
2541         * string/test-strcat.c (do_test, do_random_tests): Likewise.
2542         * string/test-strncpy.c (do_random_tests): Likewise.
2543         * string/test-strcpy.c (do_test, do_random_tests): Likewise.
2544         * string/test-memccpy.c (do_test): Likewise.
2545         * string/test-memmove.c (do_test, do_random_tests): Likewise.
2546         * string/test-memcpy.c (do_test, do_random_tests): Likewise.
2547         * string/test-memcmp.c (do_test, do_random_tests): Likewise.
2548         * string/test-memchr.c (do_test, do_random_tests): Likewise.
2549         * dlfcn/bug-atexit1.c (do_test): Fix up prototype in cast.
2550         * stdio-common/tst-fgets.c (do_test): Add a cast.
2551         * iconvdata/bug-iconv4.c (xiconv): Add a cast.
2552
2553         * locale/programs/simple-hash.c (insert_entry_2): Remove useless casts.
2554
2555         * resolv/herror.c (herror): Remove unused extern decl.
2556
2557         * libio/obprintf.c: Include "strfile.h".
2558
2559         * elf/order2mod2.c (init): Cast ignored value to void.
2560
2561 2005-12-27  Ulrich Drepper  <drepper@redhat.com>
2562
2563         * elf/tst-tls13.c (do_test): Avoid using the library path when
2564         looking for tst-tlsmod13a.so.
2565
2566         * stdio-common/tstdiomisc.c: If FLT_EVAL_METHOD is 2, use long
2567         double math to generate NaN results.
2568
2569         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Define EOWNERDEAD
2570         and ENOTRECOVERABLE if not already defined.
2571         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: Likewise.
2572
2573 2005-12-27  Jakub Jelinek  <jakub@redhat.com>
2574
2575         * sysdeps/unix/sysv/linux/alpha/Versions: Add new errlist-compat
2576         entry for up to 138 errnos.
2577
2578 2005-12-27  Jakub Jelinek  <jakub@redhat.com>
2579
2580         * iconv/gconv_trans.c (__gconv_transliterate): Demangle step __fct
2581         before calling it.
2582
2583 2005-12-27  David S. Miller  <davem@sunset.davemloft.net>
2584
2585         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist-compat
2586         entry for up to 134 errnos.
2587
2588 2005-12-26  Ulrich Drepper  <drepper@redhat.com>
2589
2590         * Versions.def: Add GLIBC_2.4 for libpthread.
2591
2592 2005-12-25  Ulrich Drepper  <drepper@redhat.com>
2593
2594         * stdlib/Makefile ($(objpfx)isomac.out): Move -I.. to the end so
2595         that $(..)/bits is not found early.
2596
2597 2005-12-24  Ulrich Drepper  <drepper@redhat.com>
2598
2599         * manual/errno.texi: Add new Linux errno codes.
2600         * sysdeps/unix/sysv/linux/Versions: Add new errlist-compat entry
2601         for up to 132 errnos.
2602         * sysdeps/unix/sysv/linux/bits/errno.h: Define EOWNERDEAD and
2603         ENOTRECOVERABLE if not already defined.
2604
2605 2005-12-23  Ulrich Drepper  <drepper@redhat.com>
2606
2607         [BZ #1566]
2608         * sysdeps/i386/i586/memusage.h: New file.
2609         * sysdeps/i386/memusage.h: Don't define GETTIME.
2610
2611 2005-12-22  Ulrich Drepper  <drepper@redhat.com>
2612
2613         [BZ #1499]
2614         * misc/syslog.c (SyslogAddr): Use sockaddr_un instead of sockaddr.
2615         (openlog_internal): Adjust for this change.
2616
2617         * Makeconfig: Define CXXFLAGS.  Split out warnings from +gccwarn which
2618         are not understood by the C++ compiler.
2619         * Makerules: Add rules to build C++ code for test cases.
2620         * include/stdlib.h: Protect for inclusion in C++ code.
2621         * include/time.h: Likewise.
2622
2623 2005-12-22  Roland McGrath  <roland@redhat.com>
2624
2625         * Makerules [gen-as-const-headers] (tests): Add one test per .sym
2626         file, not just one.
2627         ($(objpfx)test-as-const.c): Target replaced with ...
2628         ($(objpfx)test-as-const-%.c): ... this pattern rule.
2629         (generated): Add those files.
2630
2631 2005-12-22  Ulrich Drepper  <drepper@redhat.com>
2632
2633         * test-skeleton.c (timeout_handler): Rewrite ts initialization for
2634         C++ compatibility.
2635
2636         * sysdeps/x86_64/__longjmp.S: Also protect SP and BP.
2637         * sysdeps/x86_64/setjmp.S: Likewise.
2638
2639 2005-12-21  Roland McGrath  <roland@redhat.com>
2640
2641         * sysdeps/unix/sysv/linux/i386/ucontext_i.h: File removed.
2642         * sysdeps/unix/sysv/linux/i386/ucontext_i.sym: New file.
2643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: File removed.
2644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.sym: New file.
2645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: File removed.
2646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym: New file.
2647         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: File removed.
2648         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: File removed.
2649         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: New file.
2650         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: File removed.
2651         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: New file.
2652         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: File removed.
2653         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: New file.
2654         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: File removed.
2655         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: New file.
2656         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = stdlib]:
2657         (gen-as-const-headers): Add it.
2658         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2659         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
2660         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
2661         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
2662         * stdlib/tst-ucontext-off.c: File removed.
2663         * stdlib/Makefile (tests): Remove it.
2664
2665         * scripts/gen-as-const.awk: Support generating a test program.
2666         * Makerules [gen-as-const-headers] (tests): Add test-as-const.
2667         [gen-as-const-headers] ($(objpfx)test-as-const.c): New target.
2668
2669         * sysdeps/generic/bits: Subdirectory and all files moved to ...
2670         * bits: ... here, new subdirectory.
2671         * Makeconfig (+includes): Reordered includes to put build and sysdeps
2672         dirs first after $(..)include, $(sysincludes) last.
2673
2674         [BZ #2066]
2675         * intl/l10nflist.c (_nl_make_l10nflist): Free ABS_FILENAME when later
2676         malloc fails.
2677
2678 2005-12-21  Jakub Jelinek  <jakub@redhat.com>
2679
2680         * sysdeps/powerpc/fpu/libm-test-ulps: Update for GCC 4.1 prerelease.
2681
2682 2005-12-21  Roland McGrath  <roland@redhat.com>
2683
2684         * sysdeps/mach/hurd/ifreq.c: Add missing #includes.
2685
2686         * elf/cache.c: Use <> rather than "" #includes.
2687         * elf/chroot_canon.c: Likewise.
2688         * elf/dl-lookup.c: Likewise.
2689         * elf/ldconfig.c: Likewise.
2690         * elf/readlib.c: Likewise.
2691         * elf/rtld.c: Likewise.
2692         * gmon/mcount.c: Likewise.
2693         * hurd/hurdfault.c: Likewise.
2694         * hurd/hurdsig.c: Likewise.
2695         * hurd/report-wait.c: Likewise.
2696         * hurd/sigunwind.c: Likewise.
2697         * mach/setup-thread.c: Likewise.
2698         * rt/aio_read64.c: Likewise.
2699         * rt/aio_sigqueue.c: Likewise.
2700         * rt/aio_write64.c: Likewise.
2701         * soft-fp/soft-fp.h: Likewise.
2702         * stdio-common/tmpfile64.c: Likewise.
2703         * sysdeps/mach/hurd/fork.c: Likewise.
2704         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
2705         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2706         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
2707         * sysdeps/mach/hurd/powerpc/trampoline.c: Likewise.
2708         * sysdeps/posix/sprofil.c: Likewise.
2709         * sysdeps/pthread/aio_cancel.c: Likewise.
2710         * sysdeps/pthread/aio_fsync.c: Likewise.
2711         * sysdeps/pthread/aio_read64.c: Likewise.
2712         * sysdeps/pthread/aio_read.c: Likewise.
2713         * sysdeps/pthread/aio_suspend.c: Likewise.
2714         * sysdeps/pthread/aio_write64.c: Likewise.
2715         * sysdeps/pthread/aio_write.c: Likewise.
2716         * sysdeps/pthread/lio_listio64.c: Likewise.
2717         * sysdeps/pthread/lio_listio.c: Likewise.
2718         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
2719         * sysdeps/unix/sysv/tcflow.c: Likewise.
2720
2721         * sysdeps/generic/unwind-dw2.c (extract_cie_info): Add a cast.
2722
2723         * elf/dl-error.c (_dl_signal_error): Use .__jmpbuf in __longjmp call.
2724
2725         * csu/dso_handle.c (__dso_handle): Add const to pointer type too.
2726
2727 2005-12-21  Ulrich Drepper  <drepper@redhat.com>
2728
2729         * iconv/gconv_conf.c: Initialize empty_path_elem.
2730
2731         * sysdeps/ieee754/dbl-64/halfulp.c: Mark tab54 as static and const.
2732         * sysdeps/i386/fpu/e_expl.c: Mark c0 and c1 as const.
2733         * sysdeps/ieee754/flt-32/s_expm1f.c: Make sure huge and tiny end
2734         up in .rodata.
2735         * sysdeps/ieee754/flt-32/e_exp2f.c: Make sure TWO127 and TWOM100
2736         end up in .rodata.
2737         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
2738         * sysdeps/ieee754/dbl-64/e_exp2.c: Make sure TWO1023 and TWOM1000
2739         end up in .rodata.
2740
2741 2005-12-21  Thorsten Kukuk  <kukuk@suse.de>
2742
2743         * elf/readlib.c: Fix include of readelflib.c.
2744
2745 2005-12-21  Ulrich Drepper  <drepper@redhat.com>
2746
2747         [BZ #1962]
2748         * io/fts.c (fts_open): Change type of len to size_t.
2749         (fts_build): Remove cast in call to fts_alloc.
2750         (fts_alloc): Change third parameter's type to size_t.
2751
2752         [BZ #1960]
2753         * io/fts.c (fts_open): Avoid function call in MAX macro use.
2754
2755 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
2756
2757         * locale/xlocale.c (_nl_C_locobj): Mark as const.
2758         * include/locale.h: Define _nl_C_locobj_ptr.
2759         * iconv/gconv_charset.h: Use _nl_C_locobj_ptr instead of using pointer
2760         to _nl_C_locobj because we also need a cast.
2761         * iconv/gconv_conf.c: Likewise.
2762         * iconv/gconv_int.h: Likewise.
2763         * iconv/gconv_open.c: Likewise.
2764         * locale/duplocale.c: Likewise.
2765         * locale/freelocale.c: Likewise.
2766         * locale/newlocale.c: Likewise.
2767         * misc/syslog.c: Likewise.
2768         * stdlib/strtod_l.c: Likewise.
2769         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2770
2771         * csu/dso_handle.c (__dso_handle): Mark as const.
2772
2773         * intl/plural-exp.c (GERMANIC_PLURAL): Mark as const.
2774         * intl/plural-exp.h: Adjust declaration of
2775         __gettext_germanic_plural.
2776
2777         * resolv/herror.c (h_errlist): Mark as const.
2778         (h_nerr): Likewise.
2779
2780 2005-12-15  Thomas Schwinge  <tschwinge@gnu.org>
2781
2782         [BZ #2061]
2783         * sysdeps/mach/hurd/xmknod.c (__xmknod): Handle S_IFREG.
2784
2785 2005-12-20  Roland McGrath  <roland@redhat.com>
2786
2787         * sysdeps/unix/sysv/linux/ifreq.h: File removed.
2788         * sysdeps/unix/sysv/linux/ifreq.c: #include "kernel-features.h" here.
2789
2790         * sysdeps/mach/hurd/ifreq.h: File removed.
2791         (__ifreq): Function moved to ...
2792         * sysdeps/mach/hurd/ifreq.c: ... here, new file.
2793
2794 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
2795
2796         * sunrpc/clnt_unix.c (unix_ops): Mark as const.
2797         * sunrpc/auth_des.c (authdes_ops): Likewise.
2798         * sunrpc/svc_raw.c (server_ops): Likewise.
2799         * sunrpc/clnt_udp.c (udp_ops): Likewise.
2800         * sunrpc/clnt_tcp.c (tcp_ops): Likewise.
2801         * sunrpc/clnt_raw.c (client_ops): Likewise.
2802         * sunrpc/auth_unix.c (auth_unix_ops): Likewise.
2803         * sunrpc/auth_none.c (ops): Likewise.
2804
2805         * nss/nsswitch.c (databases): Mark as const.  Change name field
2806         into array.
2807         * nss/databases.def: Add warning.
2808
2809         * resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
2810         mark const.
2811         (cmd): Mark as const.
2812         (parse_line): Mark c as pointer to const.
2813
2814         * misc/getusershell.c (initshells): Remove unnecessary tests.
2815         (endusershell): Likewise.
2816         (okshells): Mark as const.
2817
2818         * sysdeps/posix/gai_strerror.c: Complete rewrite. Avoid relocations.
2819         * sysdeps/posix/gai_strerror-strs.h: New file.
2820         * sysdeps/posix/Dist: New file.
2821
2822         * sysdeps/posix/getaddrinfo.c (gaih): Mark as const.
2823         * locale/loadlocale.c (_nl_value_types): Likewise.
2824         * iconv/gconv_conf.c (builtin_aliases): Likewise.
2825         * iconv/gconv_open.c (internal_trans_names): Likewise.
2826
2827 2005-12-19  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2828
2829         * sysdeps/unix/sysv/linux/sh/sysdep.h: Include tls.h.
2830         (PTR_MANGLE, PTR_DEMANGLE): Define.
2831         (SYSCALL_ERROR_HANDLER): Fix typo.
2832         * sysdeps/sh/sh4/__longjmp.S: Use PTR_DEMANGLE if defined.
2833         * sysdeps/sh/sh3/__longjmp.S: Likewise.
2834         * sysdeps/sh/sh4/setjmp.S: Use PTR_MANGLE if defined.
2835         * sysdeps/sh/sh3/setjmp.S: Likewise.
2836
2837 2005-12-20  Jakub Jelinek  <jakub@redhat.com>
2838
2839         * sysdeps/ia64/fpu/libm-test-ulps: Update for GCC 4.1 prerelease.
2840
2841         * sysdeps/unix/sysv/linux/time.c: If __NR_time is not defined,
2842         use sysdeps/unix/time.c implementation.
2843
2844 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
2845
2846         [BZ #1955]
2847         * timezone/zic.c (tofile;): Fix typo in symlink creation.
2848         Patch by Phil Estes <pestes@us.ibm.com>.
2849
2850         [BZ #1952]
2851         * sysdeps/unix/sysv/linux/time.c: New file.
2852         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove time entry.
2853
2854 2005-12-15  Thomas Schwinge  <tschwinge@gnu.org>
2855
2856         * io/xmknodat.c: Include <stddef.h>.
2857         * misc/futimesat.c: Remove weak_alias and correct stub_warning.
2858         * stdio-common/renameat.c (renameat): Fix typo.
2859
2860 2005-12-16  Thorsten Kukuk  <kukuk@suse.de>
2861
2862         [BZ #1978]
2863         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2864         Map more filesystem types to a string.
2865         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add SYSFS_MAGIC.
2866
2867 2005-12-19  Jakub Jelinek  <jakub@redhat.com>
2868
2869         * locale/Makefile (programs/%-kw.h): Run $(GPERF) inside of the
2870         programs subdirectory.
2871
2872         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use
2873         PTR_DEMANGLE for PC if defined.
2874         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2875         Likewise.
2876         * sysdeps/unix/sysv/linux/ia64/__longjmp.S (__longjmp): Likewise.
2877         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Xor %r14 with
2878         THREAD_GET_POINTER_GUARD () if PTR_DEMANGLE is defined.
2879         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2880         * sysdeps/powerpc/powerpc32/setjmp-common.S (__sigsetjmp): Use
2881         PTR_MANGLE for PC if defined.
2882         * sysdeps/powerpc/powerpc64/setjmp-common.S (__sigsetjmp): Likewise.
2883         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
2884         Avoid call to __sigjmp_save if IS_IN_rtld.
2885         * sysdeps/s390/s390-32/elf/setjmp.S (__sigsetjmp): Likewise.
2886         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp): Likewise.
2887         * sysdeps/s390/s390-64/elf/setjmp.S (__sigsetjmp): Likewise.
2888         * sysdeps/unix/sysv/linux/ia64/setjmp.S (__sigsetjmp): Likewise.
2889         * sysdeps/unix/sysv/linux/ia64/sysdep.h (PTR_MANGLE, PTR_DEMANGLE):
2890         Define.
2891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Include tls.h.
2892         (PTR_MANGLE, PTR_DEMANGLE): Define.
2893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Include tls.h
2894         (PTR_MANGLE, PTR_DEMANGLE): Define.
2895         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include tls.h.
2896         (PTR_MANGLE, PTR_DEMANGLE): Define.
2897         (SYSCALL_ERROR_HANDLER): Add missing semicolons.
2898         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Include tls.h.
2899         (PTR_MANGLE, PTR_DEMANGLE): Define.
2900         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Add
2901         SYSCALL_ERROR_HANDLER.
2902
2903 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
2904
2905         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Handle NO_WEAK_ALIAS.
2906         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
2907         Patch by Clint Adams.
2908
2909 2005-12-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2910
2911         * sysdeps/unix/sysv/linux/s390/sys/user.h: Copy struct user and
2912         dependent definitions from the kernel header to sys/user.h and
2913         remove the #include of asm/user.h.
2914
2915 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
2916
2917         * sysdeps/gnu/Makefile: Make sure the correct errlist.c file is
2918         used when generating errlist-compat.c.
2919
2920 2005-12-18  Ulrich Drepper  <drepper@redhat.com>
2921
2922         * iconv/gconv.c: Demangle pointers before use if necessary.
2923         * iconv/gconv_cache.c: Likewise.
2924         * iconv/skeleton.c: Likewise.
2925         * libio/iofwide.c: Likewise.
2926         * wcsmbs/btowc.c: Likewise.
2927         * wcsmbs/mbrtowc.c: Likewise.
2928         * wcsmbs/mbsnrtowcs.c: Likewise.
2929         * wcsmbs/mbsrtowcs_l.c: Likewise.
2930         * wcsmbs/wcrtomb.c: Likewise.
2931         * wcsmbs/wcsnrtombs.c: Likewise.
2932         * wcsmbs/wcsrtombs.c: Likewise.
2933         * wcsmbs/wctob.c: Likewise.
2934         * iconv_gconv_db.c: Likewise.  After init functions returns mangle
2935         btowc pointer if necessary.
2936         * iconv/gconv_dl.c: Mangle function pointers retrieved from dlsym.
2937
2938         * iconv/gconv_builtin.c (builtin_map): Change type of size
2939         information fields to int8_t.
2940
2941         * libio/iofwide.c (__libio_codecvt): Mark as const.
2942         (__libio_translit): Likewise.
2943         * libio/libioP.h (__libio_codecvt): Adjust declaraction.
2944
2945         * wcsmbs/wcsmbsload.c (to_wc): Mark as const.
2946         (to_mb): Likewise.
2947
2948 2005-12-18  Richard Henderson  <rth@redhat.com>
2949
2950         * sysdeps/alpha/libc-tls.c: Fix directory on include of base file.
2951
2952 2005-12-18  Ulrich Drepper  <drepper@redhat.com>
2953
2954         * iconv/gconv_builtin.c: Mark map with attribute_relro.
2955
2956         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Define C
2957         version for inside ld.so.
2958
2959         * elf/rtld.c (dl_main): Don't use hp timing code unless it's available.
2960
2961         * sysdeps/powerpc/powerpc32/setjmp-common.S [IS_IN_rtld]: Avoid
2962         call to __sigjmp_save.
2963         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2964
2965         * stdlib/cxa_atexit.c: Use PTR_MANGLE on function pointer.  Fill in
2966         flavor field last and protect with memory barrier.
2967         * stdlib/on_exit.c: Likewise.
2968         * stdlib/cxa_finalize.c: Use PTR_DEMANGLE on function pointer before
2969         using it.
2970         * stdlib/exit.c: Likewise.
2971
2972         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PTR_MANGLE and
2973         PTR_DEMANGLE for C code in libc.
2974         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2975
2976 2005-12-17  Ulrich Drepper  <drepper@redhat.com>
2977
2978         * elf/Versions [GLIBC_PRIVATE]: Export __pointer_chk_guard if defined.
2979         * elf/rtld.c: Define __pointer_chk_guard_local and if necessary
2980         __pointer_chk_guard.
2981         (_rtld_global_ro): Initialize _dl_pointer_guard.
2982         (dl_main): Initialize __pointer_chk_guard_local and either
2983         __pointer_chk_guard or TLS value if necessary.
2984         (process_envvars): Recognize and handle LD_POINTER_GUARD.
2985         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_pointer_guard.
2986         * sysdeps/i386/__longjmp.S: Use PTR_DEMANGLE for PC if defined.
2987         * sysdeps/x86_64/__longjmp.S: Likewise.
2988         * sysdeps/i386/bsd-_setjmp.S: Use PTR_MANGLE for PC if defined.
2989         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2990         * sysdeps/i386/setjmp.S: Likewise.
2991         [IS_IN_rtld]: Avoid call to __sigjmp_save.
2992         * sysdeps/i386/setjmp.S: Likewise.
2993         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PTR_MANGLE and
2994         PTR_DEMANGLE.
2995         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2996
2997         * sysdeps/i386/elf/setjmp.S: Removed.
2998         * sysdeps/i386/elf/bsd-setjmp.S: Removed.
2999
3000         * elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
3001         setjmp.
3002         * elf/dl-error.c (_dl_signal_error): Use __longjmp instead of longjmp.
3003         * elf/dl-minimal.c (longjmp): Remove definition.
3004
3005         * sysdeps/x86_64/bsd-setjmp.S [PIC] (setjmp): Add missing jmp.
3006
3007 2005-12-14  Thorsten Kukuk  <kukuk@suse.de>
3008
3009         * nscd/Makefile: Don't build nscd_nischeck.
3010         * nscd/nscd_nischeck.c: Removed.
3011
3012 2005-12-15  Ulrich Drepper  <drepper@redhat.com>
3013
3014         * sysdeps/unix/sysv/linux/renameat.c: Move errno setting code in
3015         separate function __atfct_seterrno_2.
3016         * include/fcntl.h: Declare __atfct_seterrno_2.
3017         * posix/unistd.h: Declare linkat, symlinkat, readlinkat.
3018         * io/Makefile (routines): Add linkat, symlinkat, readlinkat.
3019         * io/Versions [GLIBC_2.4]: Export linkat, symlinkat, readlinkat.
3020         * io/linkat.c: New file.
3021         * io/readlinkat.c: New file.
3022         * io/symlinkat.c: New file.
3023         * sysdeps/unix/sysv/linux/linkat.c: New file.
3024         * sysdeps/unix/sysv/linux/readlinkat.c: New file.
3025         * sysdeps/unix/sysv/linux/symlinkat.c: New file.
3026
3027 2005-12-15  Roland McGrath  <roland@redhat.com>
3028
3029         [BZ #1997]
3030         * manual/stdio.texi (String Streams): For open_memstream, elaborate a
3031         little on malloc reference.
3032
3033         * sysdeps/alpha/fpu/s_cacosf.c: Don't use sysdeps/generic/.
3034         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
3035         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
3036         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
3037         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
3038         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
3039         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
3040         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
3041         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
3042         * sysdeps/alpha/fpu/s_clog10f.c: Likewise.
3043         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
3044         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
3045         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
3046         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
3047         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
3048         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
3049         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
3050         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
3051         * sysdeps/alpha/libc-tls.c: Likewise.
3052         * sysdeps/gnu/glob64.c: Likewise.
3053         * sysdeps/gnu/updwtmp.c: Likewise.
3054         * sysdeps/gnu/utmp_file.c: Likewise.
3055         * sysdeps/i386/bzero.c: Likewise.
3056         * sysdeps/i386/ffs.c: Likewise.
3057         * sysdeps/i386/i686/ffs.c: Likewise.
3058         * sysdeps/i386/memset.c: Likewise.
3059         * sysdeps/ia64/fpu/printf_fphex.c: Likewise.
3060         * sysdeps/ia64/libc-tls.c: Likewise.
3061         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
3062         * sysdeps/m68k/ffs.c: Likewise.
3063         * sysdeps/mach/hurd/getdents.c: Likewise.
3064         * sysdeps/mach/hurd/init-posix.c: Likewise.
3065         * sysdeps/mach/msync.c: Likewise.
3066         * sysdeps/mips/libc-tls.c: Likewise.
3067         * sysdeps/posix/profil.c: Likewise.
3068         * sysdeps/posix/shm_open.c: Likewise.
3069         * sysdeps/posix/shm_unlink.c: Likewise.
3070         * sysdeps/posix/sprofil.c: Likewise.
3071         * sysdeps/powerpc/ffs.c: Likewise.
3072         * sysdeps/rs6000/ffs.c: Likewise.
3073         * sysdeps/s390/libc-tls.c: Likewise.
3074         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3075         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
3076         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Likewise.
3077         * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
3078         * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
3079         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
3080         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
3081         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
3082         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
3083         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
3084         * sysdeps/unix/sysv/linux/i386/readelflib.c: Likewise.
3085         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
3086         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3087         * sysdeps/unix/sysv/linux/ia64/readelflib.c: Likewise.
3088         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
3089         * sysdeps/unix/sysv/linux/mips/readelflib.c: Likewise.
3090         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
3091         * sysdeps/unix/sysv/linux/mq_close.c: Likewise.
3092         * sysdeps/unix/sysv/linux/mq_getattr.c: Likewise.
3093         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3094         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3095         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3096         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3097         * sysdeps/unix/sysv/linux/mq_unlink.c: Likewise.
3098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
3099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
3100         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: Likewise.
3101         * sysdeps/unix/sysv/linux/s390/readelflib.c: Likewise.
3102         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise.
3103         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
3104         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
3105         * sysdeps/unix/sysv/linux/sigstack.c: Likewise.
3106         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3107         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3108         * sysdeps/unix/sysv/linux/sparc/readelflib.c: Likewise.
3109         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
3110         * sysdeps/unix/sysv/linux/vfork.c: Likewise.
3111         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Likewise.
3112
3113         * sysdeps/unix/sysv/linux/Makefile (inhibit-siglist): Removed.
3114
3115 2005-12-13  Ulrich Drepper  <drepper@redhat.com>
3116
3117         * locale/programs/charmap-kw.h: Regenerated with new gperf.
3118         * locale/programs/locfile-kw.h: Likewise.
3119
3120         * Makeconfig (+includes): Look in current directory late.
3121         * Makerules: Add rules from rules before the rules for the current
3122         directory.
3123         * sysdeps/generic/__longjmp.c: Moved to...
3124         * setjmp/__longjmp.c: ...here.
3125         * sysdeps/generic/_exit.c: Moved to...
3126         * posix/_exit.c: ...here.
3127         * sysdeps/generic/_strerror.c: Moved to...
3128         * string/_strerror.c: ...here.
3129         * sysdeps/generic/abort.c: Moved to...
3130         * stdlib/abort.c: ...here.
3131         * sysdeps/generic/accept.c: Moved to...
3132         * socket/accept.c: ...here.
3133         * sysdeps/generic/access.c: Moved to...
3134         * io/access.c: ...here.
3135         * sysdeps/generic/acct.c: Moved to...
3136         * misc/acct.c: ...here.
3137         * sysdeps/generic/add_n.c: Moved to...
3138         * stdlib/add_n.c: ...here.
3139         * sysdeps/generic/addmul_1.c: Moved to...
3140         * stdlib/addmul_1.c: ...here.
3141         * sysdeps/generic/adjtime.c: Moved to...
3142         * time/adjtime.c: ...here.
3143         * sysdeps/generic/aio_cancel.c: Moved to...
3144         * rt/aio_cancel.c: ...here.
3145         * sysdeps/generic/aio_fsync.c: Moved to...
3146         * rt/aio_fsync.c: ...here.
3147         * sysdeps/generic/aio_misc.c: Moved to...
3148         * rt/aio_misc.c: ...here.
3149         * sysdeps/generic/aio_notify.c: Moved to...
3150         * rt/aio_notify.c: ...here.
3151         * sysdeps/generic/aio_read.c: Moved to...
3152         * rt/aio_read.c: ...here.
3153         * sysdeps/generic/aio_read64.c: Moved to...
3154         * rt/aio_read64.c: ...here.
3155         * sysdeps/generic/aio_sigqueue.c: Moved to...
3156         * rt/aio_sigqueue.c: ...here.
3157         * sysdeps/generic/aio_suspend.c: Moved to...
3158         * rt/aio_suspend.c: ...here.
3159         * sysdeps/generic/aio_write.c: Moved to...
3160         * rt/aio_write.c: ...here.
3161         * sysdeps/generic/aio_write64.c: Moved to...
3162         * rt/aio_write64.c: ...here.
3163         * sysdeps/generic/alarm.c: Moved to...
3164         * posix/alarm.c: ...here.
3165         * sysdeps/generic/allocrtsig.c: Moved to...
3166         * signal/allocrtsig.c: ...here.
3167         * sysdeps/generic/alphasort64.c: Moved to...
3168         * dirent/alphasort64.c: ...here.
3169         * sysdeps/generic/backtrace.c: Moved to...
3170         * debug/backtrace.c: ...here.
3171         * sysdeps/generic/backtracesyms.c: Moved to...
3172         * debug/backtracesyms.c: ...here.
3173         * sysdeps/generic/backtracesymsfd.c: Moved to...
3174         * debug/backtracesymsfd.c: ...here.
3175         * sysdeps/generic/bb_init_func.c: Moved to...
3176         * gmon/bb_init_func.c: ...here.
3177         * sysdeps/generic/bcopy.c: Moved to...
3178         * string/bcopy.c: ...here.
3179         * sysdeps/generic/bind.c: Moved to...
3180         * socket/bind.c: ...here.
3181         * sysdeps/generic/brdinit.c: Moved to...
3182         * bare/brdinit.c: ...here.
3183         * sysdeps/generic/brk.c: Moved to...
3184         * misc/brk.c: ...here.
3185         * sysdeps/generic/bsd-_setjmp.c: Moved to...
3186         * setjmp/bsd-_setjmp.c: ...here.
3187         * sysdeps/generic/bsd-setjmp.c: Moved to...
3188         * setjmp/bsd-setjmp.c: ...here.
3189         * sysdeps/generic/bzero.c: Moved to...
3190         * string/bzero.c: ...here.
3191         * sysdeps/generic/cabsf.c: Moved to...
3192         * math/cabsf.c: ...here.
3193         * sysdeps/generic/cargf.c: Moved to...
3194         * math/cargf.c: ...here.
3195         * sysdeps/generic/chdir.c: Moved to...
3196         * io/chdir.c: ...here.
3197         * sysdeps/generic/check_fds.c: Moved to...
3198         * csu/check_fds.c: ...here.
3199         * sysdeps/generic/check_pf.c: Moved to...
3200         * inet/check_pf.c: ...here.
3201         * sysdeps/generic/chflags.c: Moved to...
3202         * misc/chflags.c: ...here.
3203         * sysdeps/generic/chmod.c: Moved to...
3204         * io/chmod.c: ...here.
3205         * sysdeps/generic/chown.c: Moved to...
3206         * io/chown.c: ...here.
3207         * sysdeps/generic/chroot.c: Moved to...
3208         * misc/chroot.c: ...here.
3209         * sysdeps/generic/cimagf.c: Moved to...
3210         * math/cimagf.c: ...here.
3211         * sysdeps/generic/clock.c: Moved to...
3212         * time/clock.c: ...here.
3213         * sysdeps/generic/clock_getcpuclockid.c: Moved to...
3214         * rt/clock_getcpuclockid.c: ...here.
3215         * sysdeps/generic/clock_getres.c: Moved to...
3216         * rt/clock_getres.c: ...here.
3217         * sysdeps/generic/clock_gettime.c: Moved to...
3218         * rt/clock_gettime.c: ...here.
3219         * sysdeps/generic/clock_nanosleep.c: Moved to...
3220         * rt/clock_nanosleep.c: ...here.
3221         * sysdeps/generic/clock_settime.c: Moved to...
3222         * rt/clock_settime.c: ...here.
3223         * sysdeps/generic/close.c: Moved to...
3224         * io/close.c: ...here.
3225         * sysdeps/generic/closedir.c: Moved to...
3226         * dirent/closedir.c: ...here.
3227         * sysdeps/generic/cmp.c: Moved to...
3228         * stdlib/cmp.c: ...here.
3229         * sysdeps/generic/conjf.c: Moved to...
3230         * math/conjf.c: ...here.
3231         * sysdeps/generic/connect.c: Moved to...
3232         * socket/connect.c: ...here.
3233         * sysdeps/generic/console.c: Moved to...
3234         * bare/console.c: ...here.
3235         * sysdeps/generic/crealf.c: Moved to...
3236         * math/crealf.c: ...here.
3237         * sysdeps/generic/creat.c: Moved to...
3238         * io/creat.c: ...here.
3239         * sysdeps/generic/creat64.c: Moved to...
3240         * io/creat64.c: ...here.
3241         * sysdeps/generic/ctermid.c: Moved to...
3242         * stdio-common/ctermid.c: ...here.
3243         * sysdeps/generic/cuserid.c: Moved to...
3244         * stdio-common/cuserid.c: ...here.
3245         * sysdeps/generic/dbl2mpn.c: Moved to...
3246         * stdlib/dbl2mpn.c: ...here.
3247         * sysdeps/generic/dirfd.c: Moved to...
3248         * dirent/dirfd.c: ...here.
3249         * sysdeps/generic/div.c: Moved to...
3250         * stdlib/div.c: ...here.
3251         * sysdeps/generic/divmod_1.c: Moved to...
3252         * stdlib/divmod_1.c: ...here.
3253         * sysdeps/generic/divrem.c: Moved to...
3254         * stdlib/divrem.c: ...here.
3255         * sysdeps/generic/dl-brk.c: Moved to...
3256         * elf/dl-brk.c: ...here.
3257         * sysdeps/generic/dl-cache.c: Moved to...
3258         * elf/dl-cache.c: ...here.
3259         * sysdeps/generic/dl-environ.c: Moved to...
3260         * elf/dl-environ.c: ...here.
3261         * sysdeps/generic/dl-execstack.c: Moved to...
3262         * elf/dl-execstack.c: ...here.
3263         * sysdeps/generic/dl-fptr.c: Moved to...
3264         * elf/dl-fptr.c: ...here.
3265         * sysdeps/generic/dl-origin.c: Moved to...
3266         * elf/dl-origin.c: ...here.
3267         * sysdeps/generic/dl-sbrk.c: Moved to...
3268         * elf/dl-sbrk.c: ...here.
3269         * sysdeps/generic/dl-symaddr.c: Moved to...
3270         * elf/dl-symaddr.c: ...here.
3271         * sysdeps/generic/dl-sysdep.c: Moved to...
3272         * elf/dl-sysdep.c: ...here.
3273         * sysdeps/generic/dl-tls.c: Moved to...
3274         * elf/dl-tls.c: ...here.
3275         * sysdeps/generic/dl-trampoline.c: Moved to...
3276         * elf/dl-trampoline.c: ...here.
3277         * sysdeps/generic/dup.c: Moved to...
3278         * io/dup.c: ...here.
3279         * sysdeps/generic/dup2.c: Moved to...
3280         * io/dup2.c: ...here.
3281         * sysdeps/generic/e_acoshl.c: Moved to...
3282         * math/e_acoshl.c: ...here.
3283         * sysdeps/generic/e_acosl.c: Moved to...
3284         * math/e_acosl.c: ...here.
3285         * sysdeps/generic/e_asinl.c: Moved to...
3286         * math/e_asinl.c: ...here.
3287         * sysdeps/generic/e_atan2l.c: Moved to...
3288         * math/e_atan2l.c: ...here.
3289         * sysdeps/generic/e_atanhl.c: Moved to...
3290         * math/e_atanhl.c: ...here.
3291         * sysdeps/generic/e_coshl.c: Moved to...
3292         * math/e_coshl.c: ...here.
3293         * sysdeps/generic/e_exp10.c: Moved to...
3294         * math/e_exp10.c: ...here.
3295         * sysdeps/generic/e_exp10f.c: Moved to...
3296         * math/e_exp10f.c: ...here.
3297         * sysdeps/generic/e_exp10l.c: Moved to...
3298         * math/e_exp10l.c: ...here.
3299         * sysdeps/generic/e_exp2l.c: Moved to...
3300         * math/e_exp2l.c: ...here.
3301         * sysdeps/generic/e_expl.c: Moved to...
3302         * math/e_expl.c: ...here.
3303         * sysdeps/generic/e_fmodl.c: Moved to...
3304         * math/e_fmodl.c: ...here.
3305         * sysdeps/generic/e_gammal_r.c: Moved to...
3306         * math/e_gammal_r.c: ...here.
3307         * sysdeps/generic/e_hypotl.c: Moved to...
3308         * math/e_hypotl.c: ...here.
3309         * sysdeps/generic/e_j0l.c: Moved to...
3310         * math/e_j0l.c: ...here.
3311         * sysdeps/generic/e_j1l.c: Moved to...
3312         * math/e_j1l.c: ...here.
3313         * sysdeps/generic/e_jnl.c: Moved to...
3314         * math/e_jnl.c: ...here.
3315         * sysdeps/generic/e_lgammal_r.c: Moved to...
3316         * math/e_lgammal_r.c: ...here.
3317         * sysdeps/generic/e_log10l.c: Moved to...
3318         * math/e_log10l.c: ...here.
3319         * sysdeps/generic/e_log2l.c: Moved to...
3320         * math/e_log2l.c: ...here.
3321         * sysdeps/generic/e_logl.c: Moved to...
3322         * math/e_logl.c: ...here.
3323         * sysdeps/generic/e_powl.c: Moved to...
3324         * math/e_powl.c: ...here.
3325         * sysdeps/generic/e_rem_pio2l.c: Moved to...
3326         * math/e_rem_pio2l.c: ...here.
3327         * sysdeps/generic/e_scalb.c: Moved to...
3328         * math/e_scalb.c: ...here.
3329         * sysdeps/generic/e_scalbf.c: Moved to...
3330         * math/e_scalbf.c: ...here.
3331         * sysdeps/generic/e_scalbl.c: Moved to...
3332         * math/e_scalbl.c: ...here.
3333         * sysdeps/generic/e_sinhl.c: Moved to...
3334         * math/e_sinhl.c: ...here.
3335         * sysdeps/generic/e_sqrtl.c: Moved to...
3336         * math/e_sqrtl.c: ...here.
3337         * sysdeps/generic/enbl-secure.c: Moved to...
3338         * elf/enbl-secure.c: ...here.
3339         * sysdeps/generic/endutxent.c: Moved to...
3340         * login/endutxent.c: ...here.
3341         * sysdeps/generic/environ.c: Moved to...
3342         * posix/environ.c: ...here.
3343         * sysdeps/generic/errlist.c: Moved to...
3344         * stdio-common/errlist.c: ...here.
3345         * sysdeps/generic/errno-loc.c: Moved to...
3346         * csu/errno-loc.c: ...here.
3347         * sysdeps/generic/errno-loc.c: Moved to...
3348         * csu/errno-loc.c: ...here.
3349         * sysdeps/generic/errno.c: Moved to...
3350         * csu/errno.c: ...here.
3351         * sysdeps/generic/euidaccess.c: Moved to...
3352         * io/euidaccess.c: ...here.
3353         * sysdeps/generic/exc2signal.c: Moved to...
3354         * hurd/exc2signal.c: ...here.
3355         * sysdeps/generic/execve.c: Moved to...
3356         * posix/execve.c: ...here.
3357         * sysdeps/generic/fattach.c: Moved to...
3358         * streams/fattach.c: ...here.
3359         * sysdeps/generic/fchdir.c: Moved to...
3360         * io/fchdir.c: ...here.
3361         * sysdeps/generic/fchflags.c: Moved to...
3362         * misc/fchflags.c: ...here.
3363         * sysdeps/generic/fchmod.c: Moved to...
3364         * io/fchmod.c: ...here.
3365         * sysdeps/generic/fchown.c: Moved to...
3366         * io/fchown.c: ...here.
3367         * sysdeps/generic/fchownat.c: Moved to...
3368         * io/fchownat.c: ...here.
3369         * sysdeps/generic/fclrexcpt.c: Moved to...
3370         * math/fclrexcpt.c: ...here.
3371         * sysdeps/generic/fcntl.c: Moved to...
3372         * io/fcntl.c: ...here.
3373         * sysdeps/generic/fdatasync.c: Moved to...
3374         * misc/fdatasync.c: ...here.
3375         * sysdeps/generic/fdetach.c: Moved to...
3376         * streams/fdetach.c: ...here.
3377         * sysdeps/generic/fdopendir.c: Moved to...
3378         * dirent/fdopendir.c: ...here.
3379         * sysdeps/generic/fedisblxcpt.c: Moved to...
3380         * math/fedisblxcpt.c: ...here.
3381         * sysdeps/generic/feenablxcpt.c: Moved to...
3382         * math/feenablxcpt.c: ...here.
3383         * sysdeps/generic/fegetenv.c: Moved to...
3384         * math/fegetenv.c: ...here.
3385         * sysdeps/generic/fegetexcept.c: Moved to...
3386         * math/fegetexcept.c: ...here.
3387         * sysdeps/generic/fegetround.c: Moved to...
3388         * math/fegetround.c: ...here.
3389         * sysdeps/generic/feholdexcpt.c: Moved to...
3390         * math/feholdexcpt.c: ...here.
3391         * sysdeps/generic/fesetenv.c: Moved to...
3392         * math/fesetenv.c: ...here.
3393         * sysdeps/generic/fesetround.c: Moved to...
3394         * math/fesetround.c: ...here.
3395         * sysdeps/generic/feupdateenv.c: Moved to...
3396         * math/feupdateenv.c: ...here.
3397         * sysdeps/generic/fexecve.c: Moved to...
3398         * posix/fexecve.c: ...here.
3399         * sysdeps/generic/ffs.c: Moved to...
3400         * string/ffs.c: ...here.
3401         * sysdeps/generic/ffsll.c: Moved to...
3402         * string/ffsll.c: ...here.
3403         * sysdeps/generic/fgetexcptflg.c: Moved to...
3404         * math/fgetexcptflg.c: ...here.
3405         * sysdeps/generic/fgetxattr.c: Moved to...
3406         * misc/fgetxattr.c: ...here.
3407         * sysdeps/generic/flistxattr.c: Moved to...
3408         * misc/flistxattr.c: ...here.
3409         * sysdeps/generic/flock.c: Moved to...
3410         * io/flock.c: ...here.
3411         * sysdeps/generic/flockfile.c: Moved to...
3412         * stdio-common/flockfile.c: ...here.
3413         * sysdeps/generic/fork.c: Moved to...
3414         * posix/fork.c: ...here.
3415         * sysdeps/generic/fpathconf.c: Moved to...
3416         * posix/fpathconf.c: ...here.
3417         * sysdeps/generic/fpu_control.c: Moved to...
3418         * math/fpu_control.c: ...here.
3419         * sysdeps/generic/fraiseexcpt.c: Moved to...
3420         * math/fraiseexcpt.c: ...here.
3421         * sysdeps/generic/fremovexattr.c: Moved to...
3422         * misc/fremovexattr.c: ...here.
3423         * sysdeps/generic/fsetexcptflg.c: Moved&nbs