(tests): Revert patch from 2005-01-03.
[glibc.git] / ChangeLog
blob153558b2b64e75c6284c400c5fd7a7adfa2b453c
1 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
3         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
4         l_relocated of rtld map.
5         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
6         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
7         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
8         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
9         * elf/tst-auditmod1.c: Add ppc64 support.
10         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
12 2005-01-06  Roland McGrath  <roland@redhat.com>
14         [BZ #633]
15         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
16         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
18 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
20         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
21         * sysdeps/generic/libc-start.c: Don't register program destructor here.
23         * dlfcn/Makefile: Add rules to build dlfcn.c.
24         (LDFLAGS-dl.so): Removed.
25         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
26         table.
27         * dlfcn/dlmopen.c: Likewise for _dl_open.
28         * dlfcn/dlopen.c: Likewise.
29         * dlfcn/dlopenold.c: Likewise.
30         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
31         * elf/Makefile (routines): Remove dl-open and dl-close.
32         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
33         Add rules to build and run tst-audit1.
34         * elf/tst-audit1.c: New file.
35         * elf/tst-auditmod1.c: New file.
36         * elf/Versions [libc]: Remove _dl_open and _dl_close.
37         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
38         * elf/dl-open.c: Likewise.
39         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
40         signaled by nonzero parameter.
41         * elf/dl-init.c: Fix use of r_state.
42         * elf/dl-load.c: Likewise.
44         * elf/dl-close.c: Add auditing checkpoints.
45         * elf/dl-open.c: Likewise.
46         * elf/dl-fini.c: Likewise.
47         * elf/dl-load.c: Likewise.
48         * elf/dl-sym.c: Likewise.
49         * sysdeps/generic/libc-start.c: Likewise.
50         * elf/dl-object.c: Allocate memory for auditing information.
51         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
52         Correctly initialize slotinfo.
53         * elf/dynamic-link.h: Adjust after removal of RESOLV.
54         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
55         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
56         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
57         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
58         (_dl_profile_fixup): New parameters to point to register struct and
59         variable for frame size.
60         Add auditing checkpoints.
61         (_dl_call_pltexit): New function.
62         Don't define trampoline code here.
63         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
64         Remove all the functions from _rtld_global_ro which only _dl_open
65         and _dl_close needed.
66         Add auditing checkpoints.
67         * elf/link.h: Define symbols for auditing interfaces.
68         * include/link.h: Likewise.
69         * include/dlfcn.h: Define __RTLD_AUDIT.
70         Remove prototypes for _dl_open and _dl_close.
71         Adjust access to argc and argv in libdl.
72         * dlfcn/dlfcn.c: New file.
73         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
74         is gone.
75         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
76         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
77         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
78         Adjust for removal of RESOLVE.
79         * sysdeps/x86_64/dl-machine.h: Likewise.
80         * sysdeps/generic/dl-trampoline.c: New file.
81         * sysdeps/i386/dl-trampoline.c: New file.
82         * sysdeps/x86_64/dl-trampoline.c: New file.
84         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
85         Fix updating of DTV.
86         * sysdeps/generic/libc-tls.c: Likewise.
88         * sysdeps/arm/bits/link.h: Renamed to ...
89         * sysdeps/arm/buts/linkmap.h: ...this.
90         * sysdeps/generic/bits/link.h: Renamed to...
91         * sysdeps/generic/bits/linkmap.h: ...this.
92         * sysdeps/hppa/bits/link.h: Renamed to...
93         * sysdeps/hppa/bits/linkmap.h: ...this.
94         * sysdeps/hppa/i386/link.h: Renamed to...
95         * sysdeps/hppa/i386/linkmap.h: ...this.
96         * sysdeps/hppa/ia64/link.h: Renamed to...
97         * sysdeps/hppa/ia64/linkmap.h: ...this.
98         * sysdeps/hppa/s390/link.h: Renamed to...
99         * sysdeps/hppa/s390/linkmap.h: ...this.
100         * sysdeps/hppa/sh/link.h: Renamed to...
101         * sysdeps/hppa/sh/linkmap.h: ...this.
102         * sysdeps/hppa/x86_64/link.h: Renamed to...
103         * sysdeps/hppa/x86_64/linkmap.h: ...this.
105         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
107 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
109         * math/libm-test.inc (rint_test_tonearest): New test.
110         (rint_test_towardzero): New test.
111         (rint_test_downward): New test.
112         (rint_test_upward): New test.
113         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
114         Remove redundant const values.
115         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
116         Remove redundant const values.  Use float const.
117         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
118         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
119         Use float const.
120         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
121         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
122         Use float const.
123         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
124         Remove redundant const values.
125         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
126         Remove redundant const values.  Use float const.
127         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
128         Remove redundant const values.
129         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
130         Remove redundant const values.  Use float const.
131         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
132         alignment.  Fix -0.0 case.  Remove redundant const values.
133         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
134         alignment.  Fix -0.0 case.  Remove redundant const values.
135         Use float const.
136         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
137         alignment.  Fix -0.0 case.
138         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
139         alignment.  Fix -0.0 case.  Use float const.
140         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
141         alignment.  Fix -0.0 case.
142         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
143         alignment.  Fix -0.0 case.  Use float const.
144         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
145         alignment.  Fix -0.0 case.  Remove redundant const values.
146         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
147         alignment.  Fix -0.0 case.  Remove redundant const values.
148         Use float const.
149         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
150         alignment.  Fix -0.0 case.
151         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
152         alignment.  Fix -0.0 case.  Remove redundant const values.
153         Use float const.
155 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
157         * misc/sys/cdefs.h: Define __wur.
158         * libio/stdio.h: Use __wur for a number of interfaces.
159         * posix/unistd.h: Likewise.
160         * stdlib/stdlib.h: Likewise.
162 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
164         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
165         libc_hidden_proto instead of HIDDEN_PROTO.
166         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
167         (__libm_error_support): If ASSEMBLER and in libc, define to
168         HIDDEN_JUMPTARGET(__libm_error_support).
170 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
172         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
173         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
174         with $(duplicated-routines).
175         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
176         "m_" prefix.
178 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
180         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
181         undefine "ret" macro.  Add __libm_error_support hidden definitions.
183         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
184         missing portion of copyright statement.
185         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
186         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
188         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
189         missing portion of copyright statement.
190         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
191         (__ieee754_gamma): Likewise.
192         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
193         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
195 2004-12-09  H. J. Lu <hjl@lucon.org>
197         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
198         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
199         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
200         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
201         * sysdeps/ia64/fpu/e_expl.S: Likewise.
202         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
204 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
206         * sysdeps/ia64/fpu/README: New file.
207         * sysdeps/ia64/fpu/gen_import_file_list: New file.
208         * sysdeps/ia64/fpu/import_check: Likewise.
209         * sysdeps/ia64/fpu/import_diffs: Likewise.
210         * sysdeps/ia64/fpu/import_file.awk: Likewise.
211         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
212         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
214         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
215         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
216         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
217         * sysdeps/ia64/fpu/e_asin.S: Likewise.
218         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
219         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
220         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
221         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
222         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
223         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
224         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
225         * sysdeps/ia64/fpu/e_exp.S: Likewise.
226         * sysdeps/ia64/fpu/e_expf.S: Likewise.
227         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
228         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
229         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
230         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
231         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
232         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
233         * sysdeps/ia64/fpu/e_log.S: Likewise.
234         * sysdeps/ia64/fpu/e_log2.S: Likewise.
235         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
236         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
237         * sysdeps/ia64/fpu/e_logf.S: Likewise.
238         * sysdeps/ia64/fpu/e_pow.S: Likewise.
239         * sysdeps/ia64/fpu/e_powf.S: Likewise.
240         * sysdeps/ia64/fpu/e_powl.S: Likewise.
241         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
242         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
243         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
244         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
245         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
246         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
247         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
248         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
249         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
250         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
251         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
252         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
253         * sysdeps/ia64/fpu/libm_error.c: Likewise.
254         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
255         * sysdeps/ia64/fpu/libm_support.h: Likewise.
256         * sysdeps/ia64/fpu/s_atan.S: Likewise.
257         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
258         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
259         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
260         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
261         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
262         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
263         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
264         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
265         * sysdeps/ia64/fpu/s_cos.S: Likewise.
266         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
267         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
268         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
269         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
270         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
271         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
272         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
273         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
274         * sysdeps/ia64/fpu/s_floor.S: Likewise.
275         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
276         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
277         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
278         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
279         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
280         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
281         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
282         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
283         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
284         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
285         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
286         * sysdeps/ia64/fpu/s_logb.S: Likewise.
287         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
288         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
289         * sysdeps/ia64/fpu/s_modf.S: Likewise.
290         * sysdeps/ia64/fpu/s_modff.S: Likewise.
291         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
292         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
293         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
294         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
295         * sysdeps/ia64/fpu/s_rint.S: Likewise.
296         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
297         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
298         * sysdeps/ia64/fpu/s_round.S: Likewise.
299         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
300         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
301         * sysdeps/ia64/fpu/s_significand.S: Likewise.
302         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
303         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
304         * sysdeps/ia64/fpu/s_tan.S: Likewise.
305         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
306         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
307         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
308         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
309         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
311         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
312         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
313         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
314         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
315         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
316         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
317         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
318         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
319         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
320         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
321         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
322         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
323         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
324         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
325         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
326         * sysdeps/ia64/fpu/e_logl.S: Likewise.
327         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
328         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
329         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
330         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
331         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
332         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
333         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
334         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
335         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
336         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
337         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
338         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
339         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
340         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
341         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
342         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
343         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
344         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
345         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
346         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
347         * sysdeps/ia64/fpu/s_erf.S: Likewise.
348         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
349         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
350         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
351         * sysdeps/ia64/fpu/s_erff.S: Likewise.
352         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
353         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
354         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
355         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
356         * sysdeps/ia64/fpu/s_fma.S: Likewise.
357         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
358         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
359         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
360         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
361         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
362         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
363         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
364         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
365         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
366         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
367         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
368         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
369         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
370         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
371         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
372         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
373         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
374         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
375         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
376         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
377         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
378         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
379         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
380         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
382         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
383         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
384         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
385         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
386         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
387         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
388         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
389         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
390         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
391         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
392         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
393         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
394         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
395         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
396         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
397         * sysdeps/ia64/fpu/w_expl.c: Likewise.
398         * sysdeps/ia64/fpu/e_expl.S: Likewise.
399         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
400         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
401         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
402         * sysdeps/ia64/fpu/w_log2.c: Likewise.
403         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
404         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
405         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
406         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
407         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
409         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
410         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
411         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
412         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
413         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
414         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
415         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
417         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
418         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
419         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
421         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
423         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
424         alias for use by libm_error.c
426         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
427         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
428         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
429         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
430         libm_scalbn{,f,l}, libm_scalblnf.
431         (sysdep_routines): Remove libm_frexp4{,f,l}.
432         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
433         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
434         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
435         -DSIZE_LONG_LONG_INT_64.
437 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
439         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
440         l_text_end are set for a VDSO with a single PT_LOAD entry.
442 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
444         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
445         invalid to disable optimizations in fileops which won't work here.
446         (_IO_cookie_jumps): Use it.
447         (_IO_old_cookie_jumps): Likewise.
448         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
449         not the return value.
450         * stdio-common/Makefile (tests): Add tst-fmemopen2.
451         * stdio-common/tst-fmemopen2.c: New file.
453         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
455 2005-01-05  Roland McGrath  <roland@redhat.com>
457         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
458         * sysdeps/i386/configure.in: ... here.  New file.
460 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
462         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
463         initialize __environ again.
464         * stdlib/Makefile: Add rules to build and run tst-putenv.
465         * stdlib/tst-putenv.c: New file.
466         * stdlib/tst-putenvmod.c: New file.
468         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
469         define unnecessary wrappers or aliases of static functions.
471 2005-01-03  Andreas Jaeger  <aj@suse.de>
473         * csu/Makefile (generated): Add start.os and start.ob.
475         * elf/Makefile (tests): Change rule for tst-pie1 so that make
476         clean works.
478 2004-12-29  Roland McGrath  <roland@redhat.com>
480         [BZ #626]
481         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
482         than always up; when nearest is zero, round up to one.
484 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
486         * po/es.po: Update from translation team.
488         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
490 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
492         * include/signal.h: Define __sigemptyset.
494 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
496         * posix/regex_internal.h (struct re_dfastate_t): Make
497         word_trtable a pointer to the 512-item transition table.
498         * posix/regexec.c (build_trtable): Fill in either state->trtable
499         or state->word_trtable.  Return a boolean indicating success.
500         (transit_state): Expect state->trtable to be a 256-item
501         transition table.  Reorganize code to have less tests in
502         the common case, and to save an indentation level.
503         * posix/regex_internal.c (free_state): Free word_trtable.
505 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
507         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
508         calling fn is 16 byte aligned.
509         * sysdeps/i386/tst-stack-align.h: New file.
511         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
512         (ecvt_r): Special case denormals.
513         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
514         * misc/tst-efgcvt.c: Include float.h.
515         (ecvt_tests): Add 2 new tests.
517 2004-12-20  Roland McGrath  <roland@frob.com>
519         * version.h (RELEASE, VERSION): development, 2.3.90
520         * include/features.h (__GLIBC_MINOR__): Now 4.
522 2004-12-20  Jakub Jelinek  <jakub@redhat.com>,
523             Jim Gifford  <giffordj@linkline.com>
525         [BZ #562]
526         * sysdeps/mips/Makefile (librt-sysdep_routines): Add.
527         * sysdeps/unix/mips/rt-sysdep.S: New file.
529 2004-12-19  Roland McGrath  <roland@redhat.com>
531         * iconv/Makefile (test-iconvconfig): New target.
532         [$(cross-compiling) != yes] (xtests): Depend on it.
534         * iconv/iconvconfig.c (nostdlib, output_file, output_file_len):
535         New variables.
536         (options, parse_opt, main): Take new options --nostdlib and
537         --output/-o to set them.  Under --nostdlib, skip GCONV_PATH dirs.
538         (write_output): If output_file is set, write the output there.
540 2004-12-19  Andreas Jaeger  <aj@suse.de>
542         [BZ #560]
543         * inet/netinet/in.h: Use __interface_addr instead of __interface.
545         [BZ #573]
546         * sunrpc/xcrypt.c (passwd2des_internal): Make it hidden instead of
547         internal linkage.
549 2004-12-19  Roland McGrath  <roland@frob.com>
551         * version.h (VERSION): 2.3.4.
552         * README.template: Various updates.
553         * README: Regenerated.
554         * NEWS: Mention ports.
555         * README-alpha: File removed.
557         [BZ #416]
558         * locale/langinfo.h: Comment fixes.
560 2004-12-17  Ulrich Drepper  <drepper@redhat.com>
562         * po/ja.po: Update from translation team.
564 2004-12-17  Richard Henderson  <rth@redhat.com>
566         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Add support
567         for NPTL where the PID is stored at userlevel and needs to be
568         reset when CLONE_THREAD is not used.
570 2004-12-17  Jakub Jelinek  <jakub@redhat.com>
572         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
574 2004-12-17  Andreas Jaeger  <aj@suse.de>
576         * math/libm-test.inc (atan2_test): Compute value with 36 digits.
577         * sysdeps/alpha/fpu/libm-test-ulps: Adjust for changed result.
578         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
579         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
580         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
581         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
584 2004-12-16  Ulrich Drepper  <drepper@redhat.com>
586         * stdlib/tst-setcontext.c: Enlarge st1 and st2 arrays.
588 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
590         [BZ #610]
591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
592         (__novec_getcontext): Fix typo in store of fp29.
593         (__getcontext): Fix typo in store of fp29.
594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
595         (__novec_swapcontext): Fix typo in store of fp29.
596         (__swapcontext): Fix typo in store of fp29.
598 2004-12-17  GOTO Masanori  <gotom@debian.or.jp>
600         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Fix
601         vague message.
603 2004-12-16  Roland McGrath  <roland@redhat.com>
605         * nscd/Makefile ($(objpfx)nscd): Don't depend on $(selinux-LIBS),
606         which is usually a -lselinux that make will resolve wrongly.
608 2004-12-16  Andreas Jaeger  <aj@suse.de>
610         * math/math.h: Use #if defined to not receive warnings about
611         undefined symbols.
613 2004-12-16  Jakub Jelinek  <jakub@redhat.com>
615         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Add support
616         for NPTL where the PID is stored at userlevel and needs to be reset
617         when CLONE_THREAD is not used.
619         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
620         (SYSCALL_ERROR_HANDLER): If RTLD_PRIVATE_ERRNO, use rtld_errno
621         instead of errno.
622         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Include
623         sysdep-cancel.h instead of sysdep.h.  Handle cancellation.
624         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerate.
626         * sysdeps/ieee754/ldbl-128/e_expl.c: Include stdlib.h.
628 2004-12-15  Jakub Jelinek  <jakub@redhat.com>
630         * sysdeps/unix/sysv/linux/gethostid.c: Make bi-arch safe.
632 2004-12-15  Steven Munroe  <sjmunroe@us.ibm.com>
634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Correct stack
635         alignment.  Clean up flag bit tests.
636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Correct stack
637         alignment.  Clean up flag bit tests.  Remove redundent SP assignment.
638         Add TOC register save/restore around function call.
640         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Make no_vmx symbol
641         local.
642         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Make no_vmx symbol
643         local.
644         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Make no_vmx symbol
645         local.
646         * sysdeps/powerpc/powerpc64/setjmp-common.S: Make no_vmx and
647         aligned_save_vmx symbol local.
649 2004-12-15  Ulrich Drepper  <drepper@redhat.com>
651         * sysdeps/i386/i486/bits/string.h (__strncat_g): Fix i686
652         implementation.
654 2004-09-08  H.J. Lu  <hongjiu.lu@intel.com>
656         * Makeconfig (libunwind): New.
657         (libgcc_eh): Add $(libunwind).
658         (gnulib): Always set to -lgcc $(libgcc_eh).
659         (static-gnulib): Always set to -lgcc -lgcc_eh $(libunwind).
660         (libc.so-gnulib): New.
661         * Makerules (LDLIBS-c.so): Use $(libc.so-gnulib) instead of
662         $(static-gnulib).
663         * configure.in (libc_cv_cc_with_libunwind): Set to yes if gcc
664         uses -lunwind for static binaries.
666 2004-06-05  Joseph S. Myers  <jsm@polyomino.org.uk>
668         * malloc/Makefile (install-bin): Remove memusage.
669         (install-bin-script): Add memusage.
671 2004-12-15  Jakub Jelinek  <jakub@redhat.com>
673         * nis/nis_domain_of_r.c (nis_domain_of_r): Use libnsl_hidden_def,
674         not libnsl_hidden_proto.
676         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add support
677         for NPTL where the PID is stored at userlevel and needs to be reset
678         when CLONE_THREAD is not used.
679         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save
682         and restore r2 around call to fn.
684 2004-12-15  Andreas Jaeger  <aj@suse.de>
686         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Mark auto instead
687         of static, add always_inline attribute.
688         (elf_machine_rela_relative): Likewise.
689         (elf_machine_lazy_rel): Likewise.
691 2004-12-15  Ulrich Drepper  <drepper@redhat.com>
693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Add support
694         for pid caching in nptl.
696 2004-12-14  Ulrich Drepper  <drepper@redhat.com>
698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Add support
699         for pid caching in nptl.
701 2004-10-18  Maciej W. Rozycki  <macro@mips.com>
703         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Use
704         __NTH instead of __THROW in the inline definition.
705         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
707         * sysdeps/mips/bits/dlfcn.h (RTLD_DEEPBIND): New macro.
709         * sysdeps/unix/sysv/linux/mips/bits/mman.h
710         (PROT_GROWSDOWN, PROT_GROWSUP): New macros.
712 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
714         * sysdeps/powerpc/powerpc64/ppc-mcount.S (PROF): Don't undef.
715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Invoke CALL_MOUNT.
716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
724 2004-10-19  Wolfram Gloger  <wg@malloc.de>
726         * malloc/hooks.c (mem2chunk_check, top_check): Handle
727         non-contiguous arena.  Reported by Michael Dalton
728         <mwdalton@stanford.edu> [BZ #457].  Add further checks for top chunk.
730 2004-12-14  Jakub Jelinek  <jakub@redhat.com>
732         * sysdeps/posix/sysconf.c (__sysconf_check_spec): Remove leading
733         underscore from GETCONF_DIR filenames.
735 2004-12-13  Ulrich Drepper  <drepper@redhat.com>
737         * po/de.po: Update from translation team.
739         * nss/getnssent.c (__nss_getent): Double buffer size each round to
740         avoid problems with delays for some people's huge entries.
741         * nss/getXXbyYY.c (FUNCTION_NAME): Likewise.
743 2004-12-13  Jakub Jelinek  <jakub@redhat.com>
745         * posix/getconf.c (main): Prepend just $GETCONF_DIR/ instead of
746         $GETCONF_DIR/_ to spec.
747         * posix/confstr.c (confstr): Remove leading underscores for
748         _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS.
750 2004-12-12  Ulrich Drepper  <drepper@redhat.com>
752         * elf/dl-load.c (_dl_map_object_from_fd): Fix computation of
753         mapping start.  It must take the actual pagesize into account, not
754         the alignment in the file.
756 2004-12-11  Ulrich Drepper  <drepper@redhat.com>
758         * malloc/malloc.c (_int_realloc): Add checks for corrupted memory.
759         (_int_free): Make clear message are result of free() calls.
761         * malloc/malloc.c (_int_realloc): Remove unnecessary tests for
762         oldmem and size == 0.
764 2004-12-10  Ulrich Drepper  <drepper@redhat.com>
766         * malloc/arena.c (arena_get2): Prevent endless loop if arenas and
767         list lock are taken.
769 2004-12-08  Thorsten Kukuk  <kukuk@suse.de>
771         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
772         Add check if the value is not an empty string.  [BZ #597]
774 2004-11-29  Jakub Jelinek  <jakub@redhat.com>
776         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): If densize > 2
777         and numsize < densize, always shift num up by empty + 1 limbs.
779 2004-12-07  Paolo Bonzini  <bonzini@gnu.org>
781         * posix/regexec.c (proceed_next_node): Simplify treatment of epsilon
782         nodes.  Pass the pushed node to push_fail_stack.
783         (push_fail_stack): Accept a single node rather than an array
784         of two epsilon destinations.
785         (build_sifted_states): Only walk non-epsilon nodes.
786         (check_arrival): Don't pass epsilon nodes to
787         check_arrival_add_next_nodes.
788         (check_arrival_add_next_nodes) [DEBUG]: Abort if an epsilon node is
789         found.
790         (check_node_accept): Do expensive checks later.
791         (add_epsilon_src_nodes): Cache result of merging the inveclosures.
792         * posix/regex_internal.h (re_dfastate_t): Add non_eps_nodes and
793         inveclosure.
794         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at,
795         re_string_context_at, re_string_peek_byte_case,
796         re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
797         Declare as pure.
798         * posix/regex_internal.c (create_newstate_common): Remove.
799         (register_state): Move part of it here.  Initialize non_eps_nodes.
800         (free_state): Free inveclosure and non_eps_nodes.
801         (create_cd_newstate, create_ci_newstate): Allocate the new
802         re_dfastate_t here.
804 2004-12-09  Ulrich Drepper  <drepper@redhat.com>
806         * malloc/malloc.c (public_rEALLOc): Add parameter checks.
807         (_int_free): Provide better error message for invalid pointers.
809 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
811         * posix/tst-regex.c: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
812         conditionals instead of defined _POSIX_CPUTIME.
813         (main): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
814         option is available.
815         * posix/tst-regex.c2: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
816         conditionals instead of defined _POSIX_CPUTIME.
817         (do_test): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
818         option is available.
819         * sysdeps/posix/sysconf.c (__sysconf): If _POSIX_CPUTIME resp.
820         _POSIX_THREAD_CPUTIME is defined to 0, return -1 for the corresponding
821         _SC_ argument.
823 2004-12-08  Jakub Jelinek  <jakub@redhat.com>
825         * elf/ldd.bash.in: When set -o pipefail is available, use that for
826         piping to cat; when not, don't use the pipe at all.
827         Pipe to cat in all cases of running the executable.
828         When direct running exits with code 5, retry running via ${RTLD}.
829         * elf/rtld.c (process_envvars): If __libc_enable_secure and
830         mode != normal, exit with exitcode 5.
832 2004-12-07  Jakub Jelinek  <jakub@redhat.com>
834         * sysdeps/posix/sysconf.c (__sysconf_check_spec): Only define
835         if it will be actually used.
837 2004-12-07  Roland McGrath  <roland@redhat.com>
839         * rt/tst-timer5.c (setup_test): New function.
840         (TEST_CLOCK_MISSING): Use it to punt test if timer_create does not
841         support CLOCK_MONOTONIC.
843 2004-12-07  Jakub Jelinek  <jakub@redhat.com>
845         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Add support for
846         NPTL where the PID is stored at userlevel and needs to be reset when
847         CLONE_THREAD is not used.  Restore gp before calling _exit.
849 2004-12-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
851         * sysdeps/unix/sysv/linux/sh/clone.S: Clear the frame pointer when
852         starting a new thread.  Add support for NPTL where the PID is stored
853         at userlevel and needs to be reset when CLONE_THREAD is not used.
855 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
857         * elf/rtld.c (process_envvars): Don't consider LD_SHOW_AUXV
858         and LD_DYNAMIC_WEAK if __libc_enable_secure.
859         If __libc_enable_secure, /etc/suid-debug doesn't exist and
860         program will be actually run, turn off all debugging.
861         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add LD_DEBUG,
862         LD_DYNAMIC_WEAK and LD_SHOW_AUXV.
864 2004-12-06  Jakub Jelinek  <jakub@redhat.com>
866         * time/tzset.c (tzset_internal): If + or - is seen,
867         but no offset after it, reset offset to 0.  [BZ #601]
869 2004-12-06  Ulrich Drepper  <drepper@redhat.com>
871         * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOFF not
872         _IO_SEEKPOS, saving one indirect jump.
874         * libio/fileops.c (_IO_new_file_seekoff): Fix optimization of in-buffer
875         seek.  Remove dead code.
877 2004-12-02  Jakub Jelinek  <jakub@redhat.com>
879         * libio/Makefile (tests): Add bug-ungetc4.
880         * libio/bug-ungetc4.c: New test.
882 2004-12-06  Roland McGrath  <roland@redhat.com>
884         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Diagnose EINVAL
885         for CLOCK_THREAD_CPUTIME_ID, not ENOTSUP.
886         Use SYSDEP_NANOSLEEP handler before validating CLOCK_ID value.
888         * rt/tst-timer4.c (TEST_CLOCK, TEST_CLOCK_NANOSLEEP): New macros.
889         Use them throughout in place of CLOCK_REALTIME and nanosleep.
890         (do_test) [TEST_CLOCK_MISSING]: Call this macro and if it returns
891         non-null, punt the test with a message using the string returned.
892         * rt/tst-timer5.c: New file.
893         * rt/Makefile (tests): Add it.
895 2004-12-01  Paolo Bonzini  <bonzini@gnu.org>
897         * posix/regcomp.c (free_dfa_content, init_dfa): Remove
898         references to re_dfa_t's subexps field.
899         (parse_sub_exp, parse_expression): Do not use it.  Use
900         completed_bkref_map instead.
901         (create_initial_state, peek_token): Store a backreference \N
902         with opr.idx = N-1.
903         * posix/regexec.c (proceed_next_node, check_dst_limits, get_subexp):
904         Likewise.
905         (check_subexp_limits): Remove useless condition.
906         * posix/regex_internal.h (re_subexp_t): Remove.
907         (re_dfa_t): Remove subexps and subexps_alloc field, add
908         completed_bkref_map.
910 2004-12-05  Roland McGrath  <roland@frob.com>
912         * Makeconfig: Comment typo fix.
914 2004-11-30  Andreas Schwab  <schwab@suse.de>
916         * nis/ypclnt.c (ypprot_err): Remove unused entries.
918 2004-11-30  Paolo Bonzini  <bonzini@gnu.org>
920         * posix/regexec.c (check_dst_limits_calc_pos_1): Check for
921         bkref_idx == -1, and don't recurse in that case.
923 2004-11-30  GOTO Masanori  <gotom@debian.or.jp>
925         * posix/confstr.c: Enclose #error message with double quote
926         for gcc-3.3 and lower.
928 2004-12-04  Ulrich Drepper  <drepper@redhat.com>
930         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for NPTL where
931         the PID is stored at userlevel and needs to be reset when CLONE_THREAD
932         is not used.
933         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
935 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
937         * sysdeps/arm/sysdep.h: Define __USE_BX__ if bx is available.
938         Use it instead of __THUMB_INTERWORK__.  Make RETINSTR take
939         only a condition and a register.
940         * sysdeps/arm/dl-machine.h: Use __USE_BX__ instead of
941         __THUMB_INTERWORK__.
942         (_dl_start_user): Use BX.
943         * sysdeps/arm/strlen.S: Use DO_RET.
944         * sysdeps/unix/arm/brk.S: Likewise.
945         * sysdeps/unix/arm/fork.S: Likewise.
946         * sysdeps/unix/arm/sysdep.S: Likewise.
947         * sysdeps/unix/arm/sysdep.h: Likewise.
948         * sysdeps/unix/sysv/linux/arm/clone.S: Update uses of RETINSTR.
949         * sysdeps/unix/sysv/linux/arm/mmap.S: Likewise.
950         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
951         * sysdeps/unix/sysv/linux/arm/socket.S: Likewise.
952         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
953         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
955 2004-12-02  Roland McGrath  <roland@redhat.com>
957         * extra-lib.mk (object-suffixes-$(lib)): Add .oS when
958         $(lib)-static-only-routines is nonempty.
959         (extra-objs, o-iterator.mk rule): Filter out .oS from generators.
960         Add a special rule for .oS objects -> _nonshared.a library.
962 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
964         * time/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
965         convert T2, not T.
966         * time/Makefile (tests): Add tst-mktime3.
967         * time/tst-mktime3.c: New test.
969 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
971         * stdlib/stdlib.h (realpath): Remove nonnull attribute.
973         * posix/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
974         normal_bracket label.
976         * time/tst-mktime2.c (bigtime_test): Initialize tm.tm_isdst to -1.
978 2004-12-01  Roland McGrath  <roland@redhat.com>
980         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c):
981         Do $(make-target-directory).
983 2004-11-29  Roland McGrath  <roland@redhat.com>
985         * posix/confstr.c: Avoid punctuation in #error text.
987 2004-11-27  Ulrich Drepper  <drepper@redhat.com>
989         * posix/Makefile (tests): Add tst-sysconf.
990         * posix/tst-sysconf.c: New file.
992         * posix/getconf.c (vars): Add support for _SC_IPV6 and
993         _SC_RAW_SOCKETS.
994         * sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6
995         and _SC_RAW_SOCKETS.
996         * sysdeps/generic/bits/confname.h: Define _SC_IPV6 and
997         _SC_RAW_SOCKETS.
999 2004-11-26  Jakub Jelinek  <jakub@redhat.com>
1001         * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR.
1003 2004-11-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1005         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1006         NO_SGIDEFS_H isn't defined.  Don't include sgidefs.h twice.
1007         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1008         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1009         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1011 2004-11-27  Ulrich Drepper  <drepper@redhat.com>
1013         * include/dlfcn.h (__libc_dlopen): Add __RTLD_DLOPEN to the mode
1014         parameter.  Reported by VY Newsum <newsum@fel.tno.nl>.
1016 2004-11-10  Daniel Jacobowitz  <dan@debian.org>
1018         * libio/iolibio.h (_IO_fclose, _IO_new_fclose, _IO_old_fclose,
1019         _IO_fflush, _IO_fgetpos, _IO_fgetpos64, _IO_fgets, _IO_fopen,
1020         _IO_old_fopen, _IO_new_fopen, _IO_fopen64, __fopen_internal,
1021         _IO_fprintf, _IO_fputs, _IO_fsetpos, _IO_fsetpos64, _IO_ftell,
1022         _IO_fread, _IO_fwrite, _IO_gets, _IO_printf, _IO_puts, _IO_scanf,
1023         _IO_fflush_internal, _IO_ftell_internal, _IO_fputs_internal)
1024         _IO_fwrite_internal): Remove incorrect __THROW.
1025         * libio/libioP.h (_IO_default_xsputn, _IO_wdefault_xsputn,
1026         _IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_default_write,
1027         _IO_default_read, _IO_getline, _IO_getline_info, _IO_getwline,
1028         _IO_getwline_info, _IO_file_read_internal, _IO_sgetn_internal,
1029         _IO_wdo_write_internal, _IO_do_write_internal,
1030         _IO_getline_info_internal, _IO_getline_internal,
1031         _IO_vfprintf_internal, _IO_putc_internal, _IO_read, _IO_write,
1032         _IO_close): Likewise.
1034 2004-11-26  Jakub Jelinek  <jakub@redhat.com>
1036         * posix/Makefile (install-others): Add $(inst_libexecdir)/getconf.
1037         (CFLAGS-sysconf.c): Add -D_GETCONF_DIR.
1038         (CFLAGS-getconf.c): New.
1039         ($(inst_libexecdir)/getconf): New.
1040         * posix/confstr.c (confstr): Use __sysconf to query specifications
1041         that don't have _POSIX_V6_* macros defined.  Use __*_{C,LD}FLAGS
1042         macros defined in bits/environments.h.
1043         * sysdeps/posix/sysconf.c: Include stdlib.h, string.h and
1044         sys/stat.h.
1045         (__sysconf_check_spec): New routine.
1046         (__sysconf): Use it.
1047         * posix/getconf.c (specs): Change into structure array.
1048         (main): If -v is not given, try to get default from
1049         $(libexecdir)/getconf/default.  If specification is not
1050         supported by this getconf, try to execute
1051         $(libexecdir)/getconf/$(specification).
1052         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: New file.
1053         * sysdeps/unix/sysv/linux/s390/bits/environments.h: New file.
1054         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: New file.
1055         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: New file.
1056         * sysdeps/unix/sysv/linux/i386/bits/environments.h: New file.
1057         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: New file.
1058         * sysdeps/generic/bits/environments.h (__ILP32_OFFBIG_CFLAGS):
1059         Define.
1061         * stdlib/stdlib.h (setenv): Use nonnull only for second argument.
1062         (unsetenv): Remove.
1064 2004-11-23  Paolo Bonzini  <bonzini@gnu.org>
1066         * posix/regcomp.c (analyze_tree): Always call calc_epsdest.
1067         (calc_inveclosure): Use re_node_set_insert_last.
1068         (parse_dup_op): Lower X{1,5} to (X(X(X(XX?)?)?)?)?
1069         rather than X?X?X?X?X?.
1070         * posix/regex_internal.h (re_node_set_insert_last): New declaration.
1071         * posix/regex_internal.c (re_node_set_insert_last): New function.
1072         * posix/PCRE.tests: Add testcases.
1074 2004-11-25  Ulrich Drepper  <drepper@redhat.com>
1076         * dlfcn/dlfcn.h: Remove nonnull attribute from dlopen.
1078         * posix/confstr.c (confstr): Return appropriate strings for
1079         _CS_LFS_LINTFLAGS, _CS_LFS64_CFLAGS, and _CS_LFS64_LINTFLAGS.
1081 2004-11-05  Maciej W. Rozycki  <macro@mips.com>
1083         * sysdeps/mips/dl-machine.h: Include <sgidefs.h>.  Use _ABIO32,
1084         _ABIN32 and _ABI64 for ABI selection throughout.
1085         * sysdeps/mips/elf/start.S: Likewise.
1086         * sysdeps/mips/mips64/__longjmp.c: Likewise.
1087         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
1088         * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
1089         * sysdeps/mips/mips64/setjmp.S: Likewise.
1090         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
1091         * sysdeps/mips/sys/regdef.h: Likewise.
1092         * sysdeps/mips/sys/ucontext.h: Likewise.
1093         * sysdeps/unix/mips/sysdep.h: Likewise.
1094         * sysdeps/unix/sysv/linux/kernel-features.h: Likewise.
1095         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1096         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1097         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1098         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1099         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1100         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1101         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1102         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1104         * sysdeps/mips/atomicity.h: Use _ABIO32, _ABIN32 and _ABI64 for
1105         ABI selection throughout.
1106         * sysdeps/mips/bits/setjmp.h: Likewise.
1107         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
1108         * sysdeps/mips/machine-gmon.h: Likewise.
1109         * sysdeps/mips/sys/asm.h: Likewise.
1110         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1111         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
1112         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1113         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1114         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1115         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
1116         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1117         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
1119         * sysdeps/mips/sgidefs.h: Prevent <asm/sgidefs.h> from being
1120         included by kernel headers and undo its settings if already
1121         included.  Define _ABIO32, _ABIN32 and _ABI64 if missing and use
1122         them to define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32 and
1123         _MIPS_SIM_ABI64 for compatibility.
1124         * sysdeps/unix/sysv/linux/mips/Makefile: Use _ABIO32, _ABIN32 and
1125         _ABI64 for ABI selection in generated syscall-list.h
1126         * sysdeps/unix/sysv/linux/mips/configure.in: Use _ABIO32, _ABIN32
1127         and _ABI64 for ABI selection in generated asm-unistd.h.
1128         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
1130         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Correct
1131         an inverted _MIPS_SIM conditional.
1133 2004-11-23  Alexandre Oliva  <aoliva@redhat.com>
1135         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free
1136         range even if it doesn't match exactly.
1138 2004-11-23  Jakub Jelinek  <jakub@redhat.com>
1140         * nss/nss_files/files-XXX.c (internal_getent): If parse_line returned
1141         -1, also do H_ERRNO_SET (NETDB_INTERNAL).
1143 2004-11-22  Ulrich Drepper  <drepper@redhat.com>
1145         * sysdeps/i386/fpu_control.h: Add volatile to the asms.
1146         Patch by Alexander Stohr.
1148 2004-11-22  Jakub Jelinek  <jakub@redhat.com>
1150         * nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor
1151         leaks.
1152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free air.
1154 2004-11-15  Maciej W. Rozycki  <macro@mips.com>
1156         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE):
1157         Define appropriately based on __WORDSIZE.
1158         [struct siginfo] (__pad0): Add for explicit padding.
1160         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Formatting fixes
1161         throughout.
1163 2004-11-22  Ulrich Drepper  <drepper@redhat.com>
1165         * dirent/dirent.h: Add nonnull attributes.
1166         * dlfcn/dlfcn.h: Likewise.
1168 2004-11-20  Jakub Jelinek  <jakub@redhat.com>
1170         * sysdeps/ieee754/k_standard.c: Document code 50.
1171         (__kernel_standard) <case 50>: Avoid raising div-by-zero
1172         exception again.
1174 2004-11-19  H.J. Lu  <hongjiu.lu@intel.com>
1176         [BZ #552]
1177         * math/libm-test.inc (tgamma_test): Update tgamma (0) and
1178         tgamma (-0).
1179         * sysdeps/generic/w_tgamma.c (__tgamma): Properly handle |x| == 0.
1180         * sysdeps/generic/w_tgammaf.c (__tgammaf): Likewise.
1181         * sysdeps/generic/w_tgammal.c (__tgammal): Likewise.
1182         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
1183         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1184         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1185         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
1186         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle
1187         tgamma (0) and tgamma (-0).
1189 2004-11-20  Ulrich Drepper  <drepper@redhat.com>
1191         * time/tzfile.c (__tzfile_read): Avoid open for checking whether
1192         the file we already use changed.
1194         * misc/syslog.c: Remove !USE_IN_LIBIO code.
1196 2004-11-20  Jakub Jelinek  <jakub@redhat.com>
1198         * signal/signal.h (__sysv_signal, sysv_signal, signal, bsd_signal,
1199         ssignal): Remove __nonnull attribute.
1201 2004-11-20  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1203         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: New file.
1205 2004-11-20  Ulrich Drepper  <drepper@redhat.com>
1207         * signal/signal.h: Add nonnull attributes.
1209         * signal/signal.h: Add deprecated attributes to sigstack,
1210         sigpause, sigblock, sigsetmask, siggetmask.
1212 2004-11-20  Jakub Jelinek  <jakub@redhat.com>
1214         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_RIGHTS): Avoid
1215         comma at the end of enum if __USE_BSD is not defined.
1217 2004-11-19  Ulrich Drepper  <drepper@redhat.com>
1219         * malloc/malloc.c (_int_malloc): Check for corruption of chunk
1220         which is about to be returned.
1222         * malloc/malloc.c (_int_free): Add a few more cheap tests for
1223         corruption.
1225 2004-11-17  Randolph Chung  <tausq@debian.org>
1227         * sysdeps/hppa/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind
1228         annotations.
1230 2004-11-18  Jakub Jelinek  <jakub@redhat.com>
1232         [BZ #544]
1233         * posix/regex.h (RE_NO_SUB): New define.
1234         * posix/regex_internal.h (OP_DELETED_SUBEXP): New.
1235         (re_dfa_t): Add subexp_map.
1236         * posix/regcomp.c (struct subexp_optimize): New type.
1237         (optimize_subexps): New routine.
1238         (re_compile_internal): Call it.
1239         (re_compile_pattern): Set preg->no_sub to 1 if RE_NO_SUB.
1240         (free_dfa_content): Free subexp_map.
1241         (calc_inveclosure, calc_eclosure): Skip OP_DELETED_SUBEXP nodes.
1242         * posix/regexec.c (re_search_internal): If subexp_map
1243         is not NULL, duplicate registers as needed.
1244         * posix/Makefile: Add rules to build and run tst-regex2.
1245         * posix/tst-regex2.c: New test.
1246         * posix/rxspencer/tests: Fix last two tests (\0 -> \1).
1247         Add some new tests for nested subexpressions.
1249 2004-11-18  Ulrich Drepper  <drepper@redhat.com>
1251         * libio/libio.h (_IO_FLAGS2_FORTIFY): Renamed from
1252         _IO_FLAGS2_CHECK_PERCENT_N.
1253         * debug/fprintf_chk.c: Adjust all users.
1254         * debug/printf_chk.c: Likewise.
1255         * debug/vfprintf_chk.c: Likewise.
1256         * debug/vprintf_chk.c: Likewise.
1257         * debug/vsnprintf_chk.c: Likewise.
1258         * debug/vsprintf_chk.c: Likewise.
1259         * stdio-common/vfprintf.c: Likewise.  Detect missing %N$ formats.
1260         * debug/tst-chk1.c: Test detection of missing %N$ formats.
1262 2004-11-15  Jakub Jelinek  <jakub@redhat.com>
1264         * posix/bug-regex24.c: Include string.h.
1266         * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2
1267         and out2 to out.  Remove out label.  Formatting.
1269 2004-11-15  Ulrich Drepper  <drepper@redhat.com>
1271         * include/stdio.h: Do not mark __libc_message as noreturn.
1272         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to
1273         fool gcc.  Include <stdbool.h>.
1274         * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc.
1275         (__libc_message): Fix typo.
1277 2004-11-13  Ulrich Drepper  <drepper@redhat.com>
1279         * malloc/malloc.c (malloc_state): stat_lock_* elements need only
1280         be defined if THREAD_STATS is defined.  Remove pad0_ since it does
1281         not align with cache line sizes in general anyway.
1283 2004-11-13  Jakub Jelinek  <jakub@redhat.com>
1285         * elf/rtld.c (print_statistics): Avoid segfaults if not all namespaces
1286         are used.  Fix computation of num_relative_relocations on RELA
1287         architectures other than IA-64 and Alpha.
1289 2004-11-13  Ulrich Drepper  <drepper@redhat.com>
1291         * malloc/malloc.c (_int_free): Use munmap_chunk for handling
1292         mmaped memory.
1294 2004-11-12  Ulrich Drepper  <drepper@redhat.com>
1296         * malloc/malloc.c (_int_free): Remove test for NULL parameter.
1297         (_int_realloc): Call _int_free only if memory parameter is not NULL.
1299         * sysdeps/unix/sysv/linux/libc_fatal.c: Add new function __libc_message
1300         which performs the printing and simple format string handling.  The
1301         string is written to tty, stderr, syslog in this order, stopping after
1302         the first successful output.
1303         (__libc_fatal): Call __libc_message.
1304         * include/stdio.h: Declare __libc_message.
1305         * malloc/malloc.c (malloc_printerr): Use __libc_message.
1306         * debug/chk_fail.c: Also print message with __libc_message.
1307         * debug/test-strcpy_chk.c: Ensure that debug messages are not printed
1308         to the terminal or stderr.
1309         * debug/tst-chk1.c: Likewise.
1311         * posix/Makefile: Remove gpl2lgpl variable.
1313 2004-11-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1315         * elf/elf.h: Add 20 bit relocations R_390_*20.
1317 2004-11-12  Jakub Jelinek  <jakub@redhat.com>
1319         * sysdeps/unix/sysv/linux/i386/setuid.c: Include linux/posix_types.h.
1320         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1321         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1322         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1323         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1324         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1326 2004-11-12  Andreas Schwab  <schwab@suse.de>
1328         * nis/ypclnt.c (ypprot_err): Fix "minor optimizations".
1330 2004-11-12  Ulrich Drepper  <drepper@redhat.com>
1332         * posix/Makefile (tests): Add bug-regex24.
1333         * posix/bug-regex24.c: New file.
1335 2004-11-12  Paolo Bonzini  <bonzini@gnu.org>
1337         * posix/regexec.c (check_dst_limits_calc_pos_1): Use the map to
1338         cut recursive paths.  Make exit condition more precise.
1339         (match_ctx_add_entry): Initialize the map.
1340         * posix/regex_internal.h (struct re_backref_cache_entry): Add a map of
1341         reachable subexpression nodes from each backreference cache entry.
1343 2004-11-10  Jakub Jelinek  <jakub@redhat.com>
1345         * sysdeps/unix/sysv/linux/setreuid.c: Remove sys/syscall.h,
1346         sys/types.h, linux/posix_types.h, sysdep.h and pthread-functions.h
1347         includes.  Include setxid.h.  Use INLINE_SETXID_SYSCALL macro
1348         instead of INLINE_SYSCALL, kill the HAVE_PTR__NPTL_SETXID guarded
1349         snippets.
1350         * sysdeps/unix/sysv/linux/setegid.c: Likewise.
1351         * sysdeps/unix/sysv/linux/setuid.c: Likewise.
1352         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
1353         * sysdeps/unix/sysv/linux/setgid.c: Likewise.
1354         * sysdeps/unix/sysv/linux/setresuid.c: Likewise.
1355         * sysdeps/unix/sysv/linux/setresgid.c: Likewise.
1356         * sysdeps/unix/sysv/linux/setregid.c: Likewise.
1357         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1358         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1359         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1360         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1361         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1362         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1363         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1364         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1365         * sysdeps/unix/sysv/linux/alpha/setreuid.c: Likewise.
1366         Formatting.  Change signed int into int.
1367         * sysdeps/unix/sysv/linux/alpha/setresuid.c: Likewise.
1368         * sysdeps/unix/sysv/linux/alpha/setresgid.c: Likewise.
1369         * sysdeps/unix/sysv/linux/alpha/setregid.c: Likewise.
1370         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
1371         Remove.
1372         * sysdeps/unix/setxid.h: New file.
1374         * Rules (binaries-static): Add xtests-static.
1375         * Makeconfig (run-program-prefix): Filter also xtests-static.
1377 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu.
1379         [BZ #535]
1380         * time/difftime.c: Fix a double-rounding bug on hosts with
1381         64-bit time_t and long double being IEEE double.  Also, port
1382         to more valid C99 hosts, even those that have padding bits.
1383         Don't include <values.h> since it is marked as an obsolescent
1384         interface.  Include <limits.h>, <float.h>, and <stdint.h> instead.
1385         (TYPE_BITS, TYPE_FLOATING, TYPE_SIGNED): New macros.
1386         (subtract): New static function, that works correctly without
1387         double-rounding, even on hosts with 64-bit time_t.  Also cater
1388         to hosts with padding bits.
1389         (__difftime): Use it.  Use DBL_MANT_DIG and LDBL_MANT_DIG to
1390         determine whether floating types are wide enough: the old
1391         test (which used sizeof) could in theory report the wrong results
1392         on hosts with padding bits in floating-point values.
1394 2004-11-11  Simon Josefsson  <jas@extundo.com>
1396         [BZ #542]
1397         * sysdeps/generic/strtok_r.c [HAVE_CONFIG_H]: Include config.h.
1398         [!_LIBC]: Include strtok_r.h (in gnulib), map __strtok_r to
1399         strtok_r and __rawmemchr to strch.
1400         (__strtok_r): Use C89 prototype.
1401         [weak_alias]: Move calls to libc_hidden_def and weak_alias into
1402         this #ifdef.
1404 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
1406         [BZ #541]
1407         * time/mktime.c (SHR): New macro, which is a portable
1408         substitute for >> that should work even on Crays.
1409         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
1410         Problem reported by Mark D. Baushke in
1411         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
1413 2004-11-09  Paolo Bonzini  <bonzini@gnu.org>
1415         * posix/regexec.c (match_ctx_free_subtops): Remove, merge into...
1416         (match_ctx_clean): ... this function.
1417         (match_ctx_free): Call match_ctx_clean.
1419         * posix/regexec.c (transit_state): Remove the check for
1420         out-of-bounds buffers.
1421         (check_matching): Check here for out-of-bounds buffers.
1422         (re_search_internal): Store into match_kind a set of bits
1423         indicating which incantation of fastmap scanning must be
1424         used.  Use a switch statement instead of multiple ifs.
1425         Exit the final "for (;;)" with goto free_return unless
1426         the match succeeded, thus simplifying some conditionals.
1428         * posix/regex_internal.c (re_string_reconstruct,
1429         re_string_context_at): Add several branch predictions for
1430         case-sensitive matching and no transition table being used.
1432 2004-11-10  Ulrich Drepper  <drepper@redhat.com>
1434         * posix/tst-waitid.c: Don't use error to print error message, they
1435         won't end up in the .out file.
1437 2004-11-09  Ulrich Drepper  <drepper@redhat.com>
1439         * nscd/nscd-client.h (libc_locked_map_ptr): Add new first
1440         parameter, used as class for definition.
1441         * nscd/nscd_getpw_r.c: Adjust for libc_locked_map_ptr change.
1442         (pw_map_free): Ensure no crash after memory is freed.
1443         * nscd/nscd_getgr_r.c: Likewise.  Make map externally visible.
1444         * nscd/nscd_gethst_r.c: Likewise.
1445         * nscd/nscd_getai.c: Use map from nscd_gethost.c.
1446         * nscd/nscd_initgroups.c: Use map from nscd_getgr.c.
1448         * nscd/nscd_getai.c: Add some checks to detect corrupt databases.
1449         * nscd/nscd_getgr_r.c: Likewise
1450         * nscd/nscd_gethst_r.c: Likewise.
1451         * nscd/nscd_getpw_r.c: Likewise
1453 2004-11-09  Jakub Jelinek  <jakub@redhat.com>
1455         * posix/regcomp.c (calc_eclosure_iter): Don't access
1456         dfa->edests[node].elems[0] if dfa->edests[node].nelem == 0.
1457         * posix/rxspencer/tests: Add 5 new tests.
1459 2004-11-09  Ulrich Drepper  <drepper@redhat.com>
1461         * sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
1462         value correctly.  Patch by Mitsuru Kanda <mk@karaba.org>.
1464 2004-11-04  Jakub Jelinek  <jakub@redhat.com>
1466         * libio/fileops.c (_IO_new_file_seekoff): If mode is 0 and
1467         fp->_offset == _IO_pos_BAD, just call _IO_SYSSEEK (fp, 0, dir)
1468         and if successful set fp->_offset.
1469         * libio/Makefile (tests): Add bug-ungetc3.
1470         * libio/bug-ungetc3.c: New test.
1472 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
1474         * sysdeps/gnu/_G_config.h (_G_HAVE_MREMAP): Define symbol.
1475         * sysdeps/mach/hurd/_G_config.h: New file.
1476         * libio/fileops.c (mmap_remap_check) [__linux__]: Replaced with
1477         [_G_HAVE_MREMAP].
1479 2004-11-08  Ulrich Drepper  <drepper@redhat.com>
1481         * posix/regcomp.c (utf8_sb_map): Define.
1482         (free_dfa_content): Don't free dfa->sb_char if it's a pointer to
1483         utf8_sb_map.
1484         (init_dfa): Use utf8_sb_map instead of initializing memory when the
1485         encoding is UTF-8.
1487 2004-11-03  Paolo Bonzini  <bonzini@gnu.org>
1489         * posix/regcomp.c (init_dfa): Get the codeset name outside glibc as
1490         well.  Check if it is spelled UTF8 as well as UTF-8, and check
1491         case-insensitively.  Set dfa->map_notascii manually when outside
1492         glibc.
1493         * posix/regex_internal.c (build_wcs_upper_buffer) [!_LIBC]: Enable
1494         optimizations based on map_notascii.
1495         * posix/regex_internal.h [HAVE_LANGINFO_H || HAVE_LANGINFO_CODESET
1496         || _LIBC]: Include langinfo.h.
1498         * posix/regex_internal.h (struct re_backref_cache_entry): Add "more"
1499         field.
1500         * posix/regexec.c (check_dst_limits): Hoist computation of the source
1501         and destination bkref_idx out of the loop.  Pass it to
1502         check_dst_limits_calc_pos.
1503         (check_dst_limits_calc_pos_1): New function, containing the recursive
1504         loop of check_dst_limits_calc_pos; uses the "more" field of
1505         struct re_backref_cache to control the loop.
1506         (check_dst_limits_calc_pos): Store into "boundaries" the position
1507         relative to lim's start and end positions.  Do not accept eclosures,
1508         accept bkref_idx instead.  Call check_dst_limits_calc_pos_1 to do the
1509         work.
1510         (sift_states_bkref): Use the "more" field of struct re_backref_cache
1511         to control the loop.  A big "if" was turned into a continue and the
1512         function was reindented.
1513         (get_subexp): Use the "more" field of struct re_backref_cache
1514         to control the loop.
1515         (match_ctx_add_entry): Initialize the bkref_ents' "more" field.
1516         (search_cur_bkref_entry): Return -1 if out of bounds.
1518         * posix/regexec.c (empty_set): Remove.
1519         (sift_states_backward): Remove cur_src variable.  Move inner loop
1520         to build_sifted_states.
1521         (build_sifted_states): Extract from sift_states_backward.  Do not
1522         use empty_set.
1523         (update_cur_sifted_state): Do not use empty_set.  Special case
1524         dest_nodes->nelem == 0.
1526         * posix/regex_internal.h (struct re_backref_cache_entry): Remove flag
1527         field.
1528         (struct re_sift_context_t): Remove cur_bkref, cls_subexp_idx,
1529         check_subexp fields.  Move limits last.
1530         * posix/regexec.c (match_ctx_clear_flag): Remove.
1531         (sift_ctx_init): Remove check_subexp parameter.  Do not set removed
1532         fields.  Callers adjusted.
1533         (expand_bkref_cache): Remove last_str parameter.  Callers adjusted.
1534         (re_search_internal): Remove fast_translate variable.
1535         (update_cur_sifted_state): Pass candidates as the final parameter
1536         to sift_states_bkref.
1537         (sift_states_bkref): Change last unused parameter to be "candidates",
1538         do not fetch candidates into a local variable.
1539         Remove dead test for "node == sctx->bkref", and the cur_bkref_idx
1540         variable.
1541         Remove loops that set/reset the flag field of backref cache entries.
1542         (check_arrival_add_next_nodes): Use a signed int to hold the return
1543         value of re_node_set_insert.
1544         (group_nodes_into_DFAstates): Likewise.
1545         (match_ctx_add_entry): Do not set the flag field of the new entry.
1547 2004-11-05  Roland McGrath  <roland@redhat.com>
1549         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Define
1550         _dl_sysinfo_dso under [NEED_DL_SYSINFO_DSO] as well.
1551         * elf/rtld.c (dl_main): Set up GLRO(dl_sysinfo_dso) under
1552         [NEED_DL_SYSINFO_DSO] as well.
1553         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Always include
1554         AT_SYSINFO and AT_SYSINFO_EHDR in name table.
1555         (_dl_sysdep_start) [NEED_DL_SYSINFO_DSO]: Match AT_SYSINFO_EHDR.
1556         * elf/dl-support.c (_dl_sysinfo_dso): Define also under
1557         [NEED_DL_SYSINFO_DSO].
1558         (_dl_aux_init) [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO]:
1559         Match AT_SYSINFO_EHDR and set GL(dl_sysinfo_dso).
1561 2004-11-05  Roland McGrath  <roland@redhat.com>
1563         * manual/errno.texi (Error Codes): Revert last change for now.
1564         * sysdeps/gnu/errlist.c: Regenerated.
1566 2004-11-04  Roland McGrath  <roland@frob.com>
1568         * Makeconfig (link-libc, rpath-dirs): Remove AIX cruft definitions.
1569         (LDFLAGS-rpath-ORIGIN, LDFLAGS-soname-fname): Likewise.
1570         (LDFLAGS-rdynamic, LDFLAGS-Bsymbolic): Likewise.
1571         ($(common-objpfx)gnu/lib-names.stmp): Likewise.
1573 2004-11-01  Jakub Jelinek  <jakub@redhat.com>
1575         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h [__WORDSIZE == 32]
1576         (elf_fpxregset_t): New type.
1577         (struct elf_prpsinfo): If __WORDSIZE == 32, change pr_[ug]id type
1578         to unsigned short int.
1579         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
1580         (struct user_fpregs_struct): Fix comment.
1581         * sysdeps/i386/fpu/bits/mathdef.h (float_t, double_t): If
1582         __FLOAT_EVAL_METHOD__ is defined and 0, typedef to float resp. double.
1583         * sysdeps/x86_64/fpu/bits/mathdef.h: Include bits/wordsize.h.
1584         (float_t, double_t): If -m32 and not -mfpmath=sse, typedef to
1585         long double.
1586         * sysdeps/x86_64/fpu/bits/fenv.h: Include bits/wordsize.h.
1587         (fenv_t): Remove __mxcsr field for -m32.
1589 2004-11-04  Jakub Jelinek  <jakub@redhat.com>
1591         * libio/ftello.c (ftello): Don't subtract save_end - save_base
1592         if pos is _IO_pos_BAD.
1593         * libio/ftello64.c (ftello64): Likewise.
1594         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1595         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
1596         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
1597         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
1598         * libio/ioftell.c (_IO_ftell): Likewise.
1599         Cast to long int instead of off_t when checking for overflow.
1601 2004-11-04  Richard Henderson  <rth@redhat.com>
1603         * sysdeps/unix/sysv/linux/alpha/register-dump.h (regnames): Align.
1604         (linefeed): Remove.
1605         (register_dump): Rewrite to generate into a flat buffer instead
1606         of into iovecs.
1608 2004-11-02  Jakub Jelinek  <jakub@redhat.com>
1610         * debug/tst-chk1.c (ret): New volatile variable.
1611         (CHK_FAIL_END): Remove redundant ret setting.
1612         (do_test): Remote ret variable.
1614 2004-01-03  Paolo Bonzini  <bonzini@gnu.org>
1616         * posix/regex_internal.h (__regfree) [!_LIBC]: Define to regfree.
1618 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
1620         * sysdeps/generic/utime.c: Include <stddef.h>.
1622         * sysdeps/generic/sysconf.c: Include <grp.h> and <pwd.h>.
1624         * sysdeps/generic/tempname.c (__path_search): Add missing argument
1625         TRY_TMPDIR.
1627 2004-10-31  Mariusz Mazur <mmazur@kernel.pl>
1629         * sysdeps/unix/sysv/linux/alpha/setregid.c: New file.
1630         * sysdeps/unix/sysv/linux/alpha/setresgid.c: New file.
1631         * sysdeps/unix/sysv/linux/alpha/setresuid.c: New file.
1632         * sysdeps/unix/sysv/linux/alpha/setreuid.c: New file.
1634 2004-10-27  Derek R. Price  <derek@ximbiot.com>
1636         [BZ #487] This change is imported from gnulib.
1637         * time/mktime.c (not_equal_tm) [DEBUG]: Remove redundant check.
1639 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1641         [BZ #473]
1642         * time/tst-mktime.c (main): Don't assume that mktime fails
1643         when given time stamps before 1970.  It returns negative
1644         time_t values instead, for compatibility with BSD.
1646         * time/tst-mktime2.c: New file.
1647         * time/Makefile (tests): Add it.
1649         [BZ #473] Import from gnulib.  Revamp to avoid several problems near
1650         time_t extrema, and on hosts with 64-bit time_t and 32-bit int.
1651         This fixes Debian bug 177940.
1652         * time/mktime.c (TIME_T_MIDPOINT): New macro.
1653         (ydhms_diff): Renamed from ydhms_tm_diff, with a new signature,
1654         which avoids overflow problems on hosts with 64-bit time_t and
1655         32-bit int.  All callers changed.  Now an inline function.
1656         Verify at compile-time that long int is wide enough to avoid
1657         these overflow problems.
1658         (guess_time_tm): New function.
1659         (__mktime_internal): Use it.  Avoid overflow when computing yday on
1660         hosts with 64-bit long and 32-bit int.  Remove tests for 69;
1661         no longer needed.  Use if rather than #ifdef for LEAP_SECONDS_POSSIBLE
1662         so that the code is checked by more compilers.
1663         Do not rely on floating point to probe: stick to integer arithmetic,
1664         to avoid potential porting problems.
1665         Repair potential overflow correctly in the Southern Hemisphere.
1666         (localtime_offset): Add a FIXME for the case where time_t is unsigned.
1668 2004-10-30  Andreas Schwab  <schwab@suse.de>
1670         * sysdeps/m68k/dl-machine.h (elf_machine_rela)
1671         (elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
1672         instead of static.
1674 2004-10-30  Andreas Schwab  <schwab@suse.de>
1676         * sysdeps/unix/sysv/linux/waitid.c: Include <stddef.h> for NULL.
1678 2004-10-30  Ulrich Drepper  <drepper@redhat.com>
1680         * malloc/malloc.c (_int_free): Use unique comments for the error
1681         cases.
1683 2004-10-28  Roland McGrath  <roland@frob.com>
1685         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_fork): Use i386_thread_state
1686         instead of machine_thread_state.
1688 2004-10-28  Roland McGrath  <roland@redhat.com>
1690         * sysdeps/unix/sysv/linux/syscalls.list: Remove setaltroot.
1692 2004-10-28  Ulrich Drepper  <drepper@redhat.com>
1694         * elf/dl-open.c (dl_open_worker): Remove reference to glibcbug script.
1696 2004-10-27  Ulrich Drepper  <drepper@redhat.com>
1698         * elf/dl-load.c (_dl_map_object): Use cache_rpath to check for
1699         existing rpath in main executable, not explicit test.
1701 2004-10-27  Jakub Jelinek  <jakub@redhat.com>
1703         * include/resolv.h (_res_opcodes): New extern.
1704         Add libresolv_hidden_proto.
1705         * resolv/res_debug.c (_res_opcodes): Remove.
1706         (__p_class_syms, __p_type_syms): Add libresolv_hidden_proto
1707         and libresolv_hidden_data_def.  Remove attribute_hidden.
1708         * resolv/res_mkquery (_res_opcodes): Remove.
1709         * resolv/res_data.c (_res_opcodes): Remove attribute_hidden.
1710         Add libresolv_hidden_data_def.
1712 2004-10-27  Ulrich Drepper  <drepper@redhat.com>
1714         * elf/dl-open.c (_dl_open): Don't allow explicitly opening a DSO
1715         into an empty namespace.
1717         * elf/dl-fini.c (_dl_fini): Fix search for map in maps array.
1718         Reverse order of namespaces.
1719         * elf/Makefile: Add rules to build and run tst-dlmopen3.
1720         * elf/tst-dlmopen3.c: New file.
1721         * elf/tst-dlmopen1mod.c: Add check whether constructor runs.
1723 2004-10-27  Jakub Jelinek  <jakub@redhat.com>
1725         * sysdeps/generic/glob.c (globfree): Clear gl_pathv after freeing it.
1726         * posix/Makefile: Add rules to build and run bug-glob2 test.
1727         * posix/bug-glob2.c: New test.
1729 2004-10-27  Roland McGrath  <roland@frob.com>
1731         * sysdeps/mach/hurd/i386/tls.h (HURD_TLS_DESC_DECL): New macro.
1732         (_hurd_tls_init): Use it.
1733         (_hurd_tls_fork): New function.
1734         * sysdeps/mach/hurd/fork.c (__fork) [USE_TLS]: Call it.
1736 2004-10-26  Roland McGrath  <roland@frob.com>
1738         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb.
1740 2004-10-26  Jakub Jelinek  <jakub@redhat.com>
1742         * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
1743         type instead of uint16_t.  Formatting.
1745 2004-10-25  Roland McGrath  <roland@redhat.com>
1747         * login/openpty.c (openpty): Add libutil_hidden_def.
1749         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define to
1750         either libc_hidden_def or libnss_files_hidden_def, not hidden_def.
1751         This file is also compiled into libnss_hesiod by #include.
1753 2004-10-25  Roland McGrath  <roland@frob.com>
1755         * sysdeps/unix/bsd/hp: Directory and all files removed.
1756         These are now in the ports repository.
1757         * sysdeps/unix/bsd/osf: Likewise.
1758         * sysdeps/unix/bsd/sequent: Likewise.
1759         * sysdeps/unix/bsd/sony: Likewise.
1760         * sysdeps/unix/bsd/ultrix4: Likewise.
1761         * sysdeps/unix/sysv/aix: Likewise.
1762         * sysdeps/unix/sysv/hpux: Likewise.
1763         * sysdeps/unix/sysv/irix4: Likewise.
1764         * sysdeps/unix/sysv/isc2.2: Likewise.
1765         * sysdeps/unix/sysv/minix: Likewise.
1766         * sysdeps/unix/sysv/sco3.2.4: Likewise.
1767         * sysdeps/unix/sysv/sco3.2: Likewise.
1768         * sysdeps/unix/sysv/sysv4: Likewise.
1770         * configure.in (ASM_LINE_SEP): Move this setting to ...
1771         * sysdeps/hppa/configure.in: ... here, new file.
1772         * sysdeps/hppa/configure: New generated file.
1773         * configure: Regenerated.
1775 2004-10-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1777         * sysdeps/sh/dl-machine.h: Include sysdep.h.
1778         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add CFI directives.
1779         (elf_machine_runtime_setup): Add always_inline attribute.
1780         (_dl_start_user): Pass the correct environ.
1781         (elf_machine_rela): Replace static inline by auto inline, add
1782         always_inline attribute.
1783         (elf_machine_rela_relative): Likewise.
1784         (elf_machine_lazy_rel): Likewise.
1786 2004-10-24  Ulrich Drepper  <drepper@redhat.com>
1788         * nis/nis_call.c: Pretty printing.  Minor cleanups.
1789         * nis/nis_addmember.c (nis_addmember): Add assert to check buffer
1790         bounds.
1792         * resolv/nss_dns/dns-host.c: Avoid using PLTs.
1793         * include/libc-symbols.h: Define hidden attribute macros for
1794         libnss_nisplus and libutil.
1795         * include/utmp.h: Add libutil_hidden_proto for login_tty.
1796         * login/login_tty.c: Add libutil_hidden_def.
1797         * nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers.
1798         * nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def.
1799         * include/pty.h: New file.
1800         * include/rpcsvc/yp.h: New file.
1801         * include/rpcsvc/ypclnt.h: New file.
1802         * include/rpcsvc/ypupd.h: New file.
1803         * include/libc-symbols.h: Define hidden attribute macros for libnsl.
1804         * include/rpcsvc/nislib.h: Use libnsl_hidden_proto for various
1805         functions.
1806         * nis/nis_add.c: Add libnsl_hidden_def.  Minor optimizations.
1807         * nis/nis_call.c: Likewise.
1808         * nis/nis_clone_obj.c: Likewise.
1809         * nis/nis_defaults.c: Likewise.
1810         * nis/nis_domain_of_r.c: Likewise.
1811         * nis/nis_error.c: Likewise.
1812         * nis/nis_file.c: Likewise.
1813         * nis/nis_free.c: Likewise.
1814         * nis/nis_local_names.c: Likewise.
1815         * nis/nis_lookup.c: Likewise.
1816         * nis/nis_modify.c: Likewise.
1817         * nis/nis_print.c: Likewise.
1818         * nis/nis_remove.c: Likewise.
1819         * nis/nis_subr.c: Likewise.
1820         * nis/nis_table.c: Likewise.
1821         * nis/nis_util.c: Likewise.
1822         * nis/yp_xdr.c: Likewise.
1823         * nis/ypclnt.c: Likewise.
1824         * nis/ypupdate_xdr.c: Likewise.
1826         * resolv/res_send.c (send_dg): Cope with failures.
1828         * include/libc-symbols.h: Define hidden attribute macros for
1829         libnss_files.
1830         * include/netdb.h: Use libnss_files_hidden_proto for the parsers
1831         defined in libnss_files, not libc_hidden_proto.
1832         * include/netinet/ether.h: Likewise.
1833         * include/rpc/netdb.h: Likewise.
1834         * nss/nss_files/files-parse.c: Use hidden_def in parser definitions
1835         instead of libc_hidden_def.
1836         * nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to
1837         _nss_netgroup_parseline definition.
1839 2004-10-23  Roland McGrath  <roland@frob.com>
1841         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
1842         after an RPC succeeds.
1844         * sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed.
1845         These are now in the ports repository.
1846         * sysdeps/tahoe, sysdeps/unix/bsd/tahoe: Likewise.
1847         * sysdeps/cris, sysdeps/unix/sysv/linux/cris: Likewise.
1848         * sysdeps/am29k, sysdeps/i860, sysdeps/i960, sysdeps/m88k: Likewise.
1849         * sysdeps/standalone, sysdeps/z8000: Likewise.
1851 2004-10-23  Ulrich Drepper  <drepper@redhat.com>
1853         * resolv/res_send.c (send_dg): Combine write and read to socket
1854         into one loop.
1856 2004-10-22  Roland McGrath  <roland@frob.com>
1858         * Makefile (%.bz2, %.gz): Move these pattern rules ...
1859         * Makerules: ... to here.
1861 2001-10-31  Alexandre Oliva  <aoliva@redhat.com>
1863         * elf/elf.h: Add R_MN10300_* relocation numbers.
1865 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1867         [BZ #471] Fix imported from gnulib.
1868         * time/mktime.c (leapyear, ydms_tm_diff): Year is of type
1869         long int, not int, to avoid problems when tm_year == INT_MAX
1870         and tm_mon > 12.
1871         (__mktime_intenral): Compute year using long int arithmetic,
1872         not int arithmetic, to avoid problems on hosts where time_t
1873         and long are 64 bits but int is 32.
1875         [BZ #468] Import a fix from gnulib.
1876         * time/mktime.c [! DEBUG]: Do not include <string.h>.
1877         It's needed only if DEBUG is nonzero.
1879         [BZ #470] Import fix from gnulib.
1880         * time/mktime.c [!_LIBC] (__mktime_internal): Define to
1881         mktime_internal, to avoid clashes with any __mktime_internal
1882         function defined in the standard library.
1884         [BZ #469] Imported from gnulib.
1885         * time/mktime.c (__isleap): Remove; all uses replaced by:
1886         (leapyear): New function, which avoids overflow by not adding
1887         1900 to year before testing whether it is a leap year.
1889         [BZ #472] Imported from gnulib.
1890         * time/mktime.c (Local Variables): Remove -DHAVE_TIME_R_POSIX;
1891         no longer used.
1893 2004-10-22  Ulrich Drepper  <drepper@redhat.com>
1895         * resolv/res_send.c: Remove compatibility code which is unused in
1896         glibc and probably bitrotten.
1898         * debug/execinfo.h: Remove __THROW from backtrace prototype.
1900 2004-10-22  Jakub Jelinek  <jakub@redhat.com>
1902         * sysdeps/i386/Makefile (CFLAGS-backtrace.c): Add -fexceptions.
1903         * sysdeps/i386/backtrace.c: Include <bits/libc-lock.h>, <dlfcn.h>,
1904         <stdlib.h> and <unwind.h>.  Remove <bp-checks.h> include.
1905         (struct trace_arg): New type.
1906         (unwind_backtrace, unwind_getip, unwind_getcfa, unwind_getgr): New
1907         fn pointers resp. macros.
1908         (init, backtrace_helper): New functions.
1909         (__backtrace): Rewritten to use _Unwind_Backtrace first and fall
1910         back to frame pointer walking.
1912 2004-10-22  Ulrich Drepper  <drepper@redhat.com>
1914         * sysdeps/unix/sysv/linux/Versions: Things are still in flux, it
1915         seems.  Undo last additions.
1917 2004-10-21  Ulrich Drepper  <drepper@redhat.com>
1919         * posix/execvp.c (execvp): Also ignore ENODEV and ETIMEDOUT errno
1920         values.
1922 2004-10-20  Roland McGrath  <roland@redhat.com>
1924         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
1925         $(config-sysdirs) for shlib-versions files.
1927         * Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
1928         use of ...
1929         * scripts/soversions.awk: ... this new file.  Collect lib info and
1930         match any DEFAULT line before emitting anything, so DEFAULT can come
1931         later in the concatenation of shlib-versions files.
1933         * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
1934         EKEYREVOKED, EKEYREJECTED.
1935         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
1936         * sysdeps/gnu/errlist.c: Regenerated
1938         * sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
1939         higher than ERR_MAX reports.  Instead, emit a #define ERR_MAX.
1940         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
1941         (generated): Add errlist-compat.h.
1942         * sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
1943         define ERR_MAX and use that for table size.
1945 2004-10-20  Ulrich Drepper  <drepper@redhat.com>
1947         * sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot,
1948         key_add, key_request, and keyctl syscalls.
1949         * sysdeps/unix/sysv/linux/Versions: Export them.
1951 2004-10-19  Roland McGrath  <roland@frob.com>
1953         * sysdeps/mach/readonly-area.c: New file.
1955 2004-10-19  Ulrich Drepper  <drepper@redhat.com>
1957         * elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state.
1958         * elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def.
1959         * sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as
1960         hidden but use rtld_hidden_proto.
1962 2004-10-19  Alfred M. Szmidt  <ams@gnu.org>
1964         * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
1965         (__readonly_area): ... this.
1967 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
1969         * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
1970         destlen only every 4 bytes.
1972 2004-10-19  Ulrich Drepper  <drepper@redhat.com>
1974         * nss/getent.c (hosts_keys): Let inet_pton decide whether the
1975         string is an address or not.
1977 2004-10-19  Jakub Jelinek  <jakub@redhat.com>
1979         * elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols.
1980         Use DL_SYMBOL_ADDRESS to set dli_saddr.
1982         * debug/Makefile (catchsegv): Prefix $LIB with a backslash.
1984 2004-10-19  Ulrich Drepper  <drepper@redhat.com>
1986         * debug/Makefile ($(objpfx)catchsegv): To support multilib
1987         platforms, use $LIB in path to slibdir.
1989 2004-10-19  Jakub Jelinek  <jakub@redhat.com>
1991         * debug/catchsegv.sh: Update copyright year.
1992         Use mktemp to create segv_output file.
1994 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
1996         * elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook):
1997         New functions.
1998         (__libc_dlopen_mode): Call __libc_register_dl_open_hook and
1999         __libc_register_dlfcn_hook.
2000         * dlfcn/Makefile (routines, elide-routines.os): Set.
2001         Add rules to build and test tststatic2.
2002         * dlfcn/tststatic2.c: New test.
2003         * dlfcn/modstatic2.c: New test module.
2004         * dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL.
2005         Define __ prefixed routine in libc.a and in libdl.a just call it.
2006         * dlfcn/dladdr1.c: Likewise.
2007         * dlfcn/dlclose.c: Likewise.
2008         * dlfcn/dlerror.c: Likewise.
2009         * dlfcn/dlinfo.c: Likewise.
2010         * dlfcn/dlmopen.c: Likewise.
2011         * dlfcn/dlopen.c: Likewise.
2012         * dlfcn/dlopenold.c: Likewise.
2013         * dlfcn/dlsym.c: Likewise.
2014         * dlfcn/dlvsym.c: Likewise.
2015         * dlfcn/sdladdr.c: New file.
2016         * dlfcn/sdladdr1.c: New file.
2017         * dlfcn/sdlclose.c: New file.
2018         * dlfcn/sdlerror.c: New file.
2019         * dlfcn/sdlinfo.c: New file.
2020         * dlfcn/sdlopen.c: New file.
2021         * dlfcn/sdlsym.c: New file.
2022         * dlfcn/sdlvsym.c: New file.
2023         * dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
2024         * include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
2025         (struct dlfcn_hook): New type.
2026         (_dlfcn_hook): New extern decl.
2027         (__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
2028         __dlinfo, __dlmopen, __libc_dlsym_private,
2029         __libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
2030         prototypes.
2031         (__dlvsym): Use DL_CALLER_DECL.
2032         * include/libc-symbols.h: Define libdl_hidden_proto and friends.
2034         * malloc/arena.c (_dl_open_hook): Extern decl.
2035         (ptmalloc_init): Don't call _dl_addr when dlopened from statically
2036         linked programs but don't use brk for them either.
2038 2004-10-18  Roland McGrath  <roland@redhat.com>
2040         * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call.
2042 2004-10-18  Ulrich Drepper  <drepper@redhat.com>
2044         * elf/dl-open.c (dl_open_worker): Avoid dereferencing map in
2045         statically linked code if there might none be found.
2047 2004-10-06  Maciej W. Rozycki  <macro@mips.com>
2049         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2050         (__SYSCALL_CLOBBERS): Add "memory".
2051         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
2052         (__SYSCALL_CLOBBERS): Likewise.
2053         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
2054         (__SYSCALL_CLOBBERS): Likewise.
2056 2004-10-17  Ulrich Drepper  <drepper@redhat.com>
2058         * include/libc-symbols.h: Define libresolv_hidden_proto and friends.
2059         * include/resolv.h: Add libresolv_hidden_proto for symbols defined,
2060         used, and exported in libresolv.
2061         * resolv/base64.c: Add libresolv_hidden_def.
2062         * resolv/gethnamaddr.c: Likewise.
2063         * resolv/ns_name.c: Likewise.
2064         * resolv/ns_netint.c: Likewise.
2065         * resolv/res_comp.c: Likewise.
2066         * resolv/res_data.c: Likewise.
2067         * resolv/res_debug.c: Likewise.
2068         * resolv/res_mkquery.c: Likewise.
2069         * resolv/res_query.c: Likewise.
2070         * resolv/res_send.c: Likewise.
2072 2004-10-15  Jakub Jelinek  <jakub@redhat.com>
2074         * elf/dl-minimal.c (__chk_fail): New.  Add rtld_hidden_def.
2075         * sysdeps/unix/sysv/linux/readonly-area.c: New file.
2076         * sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking
2077         routine.
2078         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise.
2079         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
2080         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
2081         * sysdeps/i386/i686/memmove-chk.S: New file.
2082         * sysdeps/i386/i686/memcpy-chk.S: Likewise.
2083         * sysdeps/i386/i686/mempcpy-chk.S: Likewise.
2084         * sysdeps/i386/i686/memset-chk.S: Likewise.
2085         * sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail
2086         if exactly fitting into buffer.
2087         * sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise.
2088         * sysdeps/generic/readonly-area.c: New file.
2089         * sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test
2090         destlen once.
2091         * sysdeps/x86_64/memset.S (__memset_chk): Add checking routine.
2092         * sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise.
2093         * sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk.
2094         * sysdeps/x86_64/memcpy-chk.S: New file.
2095         * sysdeps/x86_64/mempcpy-chk.S: Likewise.
2096         * sysdeps/x86_64/memset-chk.S: Likewise.
2097         * sysdeps/x86_64/strcpy-chk.S: Likewise.
2098         * sysdeps/x86_64/stpcpy-chk.S: Likewise.
2099         * argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
2100         * argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise.
2101         * debug/tst-chk1.c: New test.
2102         * debug/tst-chk2.c: Likewise.
2103         * debug/tst-chk3.c: Likewise.
2104         * debug/test-strcpy_chk.c: Likewise.
2105         * debug/test-stpcpy_chk.c: Likewise.
2106         * debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request
2107         _IO_FLAGS2_CHECK_PERCENT_N.  Add libc_hidden_def.
2108         * debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk,
2109         vfprintf_chk, gets_chk and readonly-area.
2110         (CFLAGS-*_chk.c): Set.
2111         (tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and
2112         test-stpcpy_chk.
2113         * debug/vprintf_chk.c: New file.
2114         * debug/printf_chk.c: Likewise.
2115         * debug/vfprintf_chk.c: Likewise.
2116         * debug/fprintf_chk.c: Likewise.
2117         * debug/gets_chk.c: Likewise.
2118         * debug/chk_fail.c (__chk_fail): Add libc_hidden_def.
2119         * debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments
2120         passed to __vsnprintf_chk.
2121         * debug/Versions (libc): Export __printf_chk, __fprintf_chk,
2122         __vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4.
2123         * debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call
2124         __vsnprintf, instead create a temporary file with
2125         _IO_strn_jumps jumptable.  If flags > 0, request
2126         _IO_FLAGS2_CHECK_PERCENT_N.  Add libc_hidden_def.
2127         * libio/Makefile (headers): Add bits/stdio2.h.
2128         * libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL.
2129         (sprintf, snprintf, vsprintf, vsnprintf): Remove defines.
2130         * libio/strfile.h (_IO_strnfile): New type.
2131         (_IO_strn_jumps): New extern.
2132         * libio/vsnprintf.c (_IO_strnfile): Remove.
2133         (_IO_strn_jumps): Remove static.
2134         * libio/bits/stdio2.h: New file.
2135         * libio/vswprintf.c (_IO_strnfile): Rename type to...
2136         (_IO_wstrnfile): ...this.  Adjust all uses.
2137         * libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define.
2138         * stdio-common/vfprintf.c (STR_LEN): Define.
2139         (vfprintf): Add readonly_format variable.
2140         Handle _IO_FLAGS2_CHECK_PERCENT_N.
2141         (buffered_vfprintf): Copy _flags2.
2142         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
2143         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
2144         __vfprintf_chk): New prototypes.
2145         (__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto.
2146         * include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk,
2147         __memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk,
2148         __strncat_chk): New prototypes.
2149         * include/bits/string3.h: New file.
2150         * include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto
2151         and rtld_hidden_proto.
2152         * string/Makefile (headers): Add bits/string3.h.
2153         * string/bits/string3.h (bcopy, bzero): New defines.
2154         (memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change
2155         macros so that inlines are used only if unknown destination size
2156         or side-effects in destination argument.
2157         (mempcpy, stpcpy): Likewise.  Protect with #ifdef __USE_GNU.
2159 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
2161         * debug/Makefile (routines): Add *_chk.
2162         * debug/Versions (libc): Export __chk_fail, __memcpy_chk,
2163         __memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk,
2164         __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk,
2165         __sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk
2166         @GLIBC_2.3.4.
2167         * debug/chk_fail.c: New file.
2168         * debug/snprintf_chk.c: Likewise.
2169         * debug/sprintf_chk.c: Likewise.
2170         * debug/vsnprintf_chk.c: Likewise.
2171         * debug/vsprintf_chk.c: Likewise.
2172         * include/features.h (_FORTIFY_SOURCE): Document, handle.
2173         (__USE_FORTIFY_LEVEL): Define.
2174         (__GNUC_PREREQ): Move to earlier location.
2175         * include/sys/cdefs.h (__chk_fail): New prototype.
2176         * libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf):
2177         Define if __USE_FORTIFY_LEVEL.
2178         * misc/sys/cdefs.h (__bos, __bos0): Define.
2179         * string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL.
2180         * bits/string/string3.h: New header.
2181         * sysdeps/generic/memcpy_chk.c: New file.
2182         * sysdeps/generic/memmove_chk.c: Likewise.
2183         * sysdeps/generic/mempcpy_chk.c: Likewise.
2184         * sysdeps/generic/memset_chk.c: Likewise.
2185         * sysdeps/generic/stpcpy_chk.c: Likewise.
2186         * sysdeps/generic/strcat_chk.c: Likewise.
2187         * sysdeps/generic/strcpy_chk.c: Likewise.
2188         * sysdeps/generic/strncat_chk.c: Likewise.
2189         * sysdeps/generic/strncpy_chk.c: Likewise.
2191 2004-10-17  Roland McGrath  <roland@frob.com>
2193         * manual/memory.texi (Page Lock Functions): Typo fix.
2194         Reported by Carlos Maziero <maziero@ppgia.pucpr.br>
2196 2004-10-16  Alfred M. Szmidt  <ams@kemisten.nu>
2198         * sysdeps/mach/hurd/Makefile (link-libc-static): Use
2199         `$(static-gnulib') instead of `$(gnulib)'.
2201 2004-10-17  Ulrich Drepper  <drepper@redhat.com>
2203         * sunrpc/rpc_clntout.c: Avoid including rcsid into binary.
2204         * sunrpc/rpc_cout.c: Likewise.
2205         * sunrpc/rpc_hout.c: Likewise.
2206         * sunrpc/rpc_main.c: Likewise.
2207         * sunrpc/rpc_parse.c: Likewise.
2208         * sunrpc/rpc_sample.c: Likewise.
2209         * sunrpc/rpc_scan.c: Likewise.
2210         * sunrpc/rpc_svcout.c: Likewise.
2211         * sunrpc/rpc_tblout.c: Likewise.
2212         * sunrpc/rpc_util.c: Likewise.
2214 2004-10-15  Jakub Jelinek  <jakub@redhat.com>
2216         * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6,
2217         POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define.
2218         * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument
2219         syscalls.
2221 2004-10-15  Ulrich Drepper  <drepper@redhat.com>
2223         * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db.
2224         (_PATH_NSCD_GROUP_DB): Likewise.
2225         (_PATH_NSCD_HOSTS_DB): Likewise.
2226         (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.
2227         * nscd/connections.c (nscd_init): Non-persistent database files
2228         are created with the _PATH_NSCD_XYZ_DB_TMP path.
2229         * nscd/nscd.init: Create /var/db/nscd if necessary.
2231 2004-10-15  Richard Henderson  <rth@redhat.com>
2233         * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
2234         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
2235         _code argument, pass sigcontext by pointer.
2236         (SIGCONTEXT_EXTRA_ARGS): Likewise.
2237         (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.
2239 2004-10-14  Richard Henderson  <rth@redhat.com>
2241         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
2242         elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
2243         instead of static.
2245         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
2246         style definition.
2247         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
2248         __ASSUME_TIMEVAL64, define __adjtime directly rather than
2249         via strong_alias.
2251 2004-10-14  Ulrich Drepper  <drepper@redhat.com>
2253         * nscd/Makefile: When using compilers without -fpie support, also
2254         link with -lselinux if necessary.
2255         Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
2257         * nscd/connections.c (nscd_init): Remove file if not persistent
2258         and not shared.  Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>.
2260 2004-10-14  Jakub Jelinek  <jakub@redhat.com>
2262         * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle
2263         defined __NR_setresuid32 && !defined __NR_setresuid.
2264         * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle
2265         defined __NR_setresgid32 && !defined __NR_setresgid.
2267         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
2268         __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro.
2270         * sysdeps/generic/errno-loc.c: Don't undef #errno
2271         if RTLD_PRIVATE_ERRNO.
2272         * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO,
2273         add attribute_hidden.
2275         * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded)
2276         chain with iteration over all namespaces' _ns_loaded chains.
2277         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address):
2278         Likewise.
2279         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
2281         * elf/rtld.c (_dl_start): Fix one last dl_loaded.
2282         * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
2283         label when it is not needed.
2284         * elf/dl-close.c (_dl_close): Typo: & -> &&.
2286 2004-10-12  Jakub Jelinek  <jakub@redhat.com>
2288         * sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
2289         Don't include frame.h.
2290         (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
2291         (catch_segfault): Use backtrace function.
2293         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
2294         * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
2295         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
2296         field.
2298 2004-10-13  Ulrich Drepper  <drepper@redhat.com>
2300         Add support for namespaces in the dynamic linker.
2301         * dlfcn/Makefile (libdl-routines): Add dlmopen.
2302         * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
2303         * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
2304         Declare dlmopen.  Document RTLD_DI_LMID.
2305         * dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
2306         * dlfcn/dlmopen.c: New file.
2307         * dlfcn/dlopen.c: Pass new parameter to _dl_open.
2308         * dlfcn/dlopenold.c: Likewise.
2309         * elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
2310         * elf/dl-caller.c: Likewise.
2311         * elf/dl-close.c: Likewise.
2312         * elf/dl-conflict.c: Likewise.
2313         * elf/dl-debug.c: Likewise.
2314         * elf/dl-lookup.c: Likewise.
2315         * elf/dl-sym.c: Likewise.
2316         * elf/dl-version.c: Likewise.
2317         * elf/do-lookup.h: Likewise.
2318         * elf/rtld.c: Likewise.
2319         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2320         * elf/dl-depsc: Likewise.  Add new parameter to _dl_map_object.
2321         * elf/dl-fini.c: Call destructors in all namespaces.
2322         * elf/dl-iteratephdr.c: Compute total nloaded.  Adjust for removal of
2323         GL(dl_loaded).
2324         * elf/dl-libc.c: Pass new parameter to _dl_open.  Adjust for removal
2325         of GL(dl_loaded).
2326         * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
2327         time.  Reuse the one from the main namespace in all others.
2328         Pass new parameter to _dl_new_object.
2329         Adjust for removal of GL(dl_loaded).
2330         * elf/dl-object.c: Take new parameter.  Use it to initialize l_ns.
2331         Adjust for removal of GL(dl_loaded).
2332         * elf/dl-open.c (_dl_open): Take new parameter.
2333         Adjust for removal of GL(dl_loaded).
2334         * elf/dl-support.c: Replace global _dl_loaded etc variables with
2335         _dl_ns variable.
2336         * include/dlfcn.h: Adjust prototype of _dl_open.
2337         Define __LM_ID_CALLER.
2338         * include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
2339         * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS.  Since libc is
2340         using TLS we need memory appropriate to the number of namespaces.
2341         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
2342         _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
2343         _dl_global_scope_alloc with _dl_ns element.  Define DL_NNS.
2344         Adjust prototypes of _dl_map_object and member in rtld_global_ro.
2345         * malloc/malloc.c: Include <dlfcn.h>.
2346         * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
2347         never use brk.
2348         * elf/Makefile: Add rules to build and run tst-dlmopen1 and
2349         tst-dlmopen2.
2350         * elf/tst-dlmopen1.c: New file.
2351         * elf/tst-dlmopen1mod.c: New file.
2352         * elf/tst-dlmopen2.c: New file.
2354         * elf/dl-close.c: Improve reference counting by tracking direct loads.
2355         * elf/dl-lookup.c (add_dependency): Likewise.
2356         * elf/dl-open.c (dl_open_worker): Likewise.
2357         * elf/rtld.c (dl_main): Likewise.
2359 2004-09-09  GOTO Masanori  <gotom@debian.or.jp>
2361         [BZ #77]
2362         * elf/dl-close.c: Count down l_opencount to check not only for
2363         l_reldeps, but also l_initfini.
2365 2004-10-13  Ulrich Drepper  <drepper@redhat.com>
2367         * elf/dl-close.c (_dl_close): Update bug reporting instructions.
2369 2004-10-11  Ulrich Drepper  <drepper@redhat.com>
2371         * timezone/asia: Update from tzdata2004e.
2372         * timezone/southamerica: Likewise.
2373         * timezone/private.h: Update from tzcode2004e.
2374         * timezone/zdump.c: Likewise.
2376         * stdio-common/vfscanf.c: Add support for reading localized
2377         digits.  Patch mainly by Hamed Malek <hamed@bamdad.org>.
2379         * resolv/res_init.c (res_thread_freeres): Reset _res.options.
2380         [BZ #434]
2382         * resolv/res_send.c (send_dg): Use nonblocking sockets.  Add
2383         appropriate poll/select calls and restart operation if necessary.
2384         Also handle EINTR.
2386         * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
2387         for debugging.
2389         * elf/dl-sym.c (do_sym): Avoid using global variable.
2391         * elf/dl-addr.c (_dl_addr): Really use match everywhere.
2393 2004-10-09  Andreas Schwab  <schwab@suse.de>
2395         * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
2396         lvalue.
2398         * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
2399         definitions.
2401 2004-10-07  Andreas Schwab  <schwab@suse.de>
2403         * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
2404         altivec.
2406 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
2408         * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
2409         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
2410         -msoft-float.
2411         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
2412         (CALL_MCOUNT): Replace with a gas macro implementation.
2413         (EALIGN): Delete PROF version.
2414         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
2415         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
2416         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
2417         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2418         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
2419         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
2420         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
2421         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
2422         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
2423         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
2424         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
2425         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2426         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
2427         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
2428         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2429         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
2430         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
2431         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
2432         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2433         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2434         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2435         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2436         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2437         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
2438         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
2439         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
2440         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
2442         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
2443         past _mcount call.
2444         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
2445         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
2447 2004-10-06  Ulrich Drepper  <drepper@redhat.com>
2449         * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
2450         low 16 bits are zero.
2452 2004-10-06  Jakub Jelinek  <jakub@redhat.com>
2454         * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
2455         (do_test): Use %p instead of 0x%08X to print a pointer.
2457         * malloc/malloc.c: Include stdio-common/_itoa.h.
2459 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
2461         * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
2462         for prelink message.
2464 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
2466         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
2467         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2469 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
2471         * grp/initgroups.c: Remove duplicate group IDs.
2472         * grp/compat-initgroups.c: Likewise.
2473         * nscd/initgrcache.c: Likewise.
2475 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
2477         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
2478         for _SC_CPUTIME or _SC_THREAD_CPUTIME.
2480         * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
2481         -fpie if building PIE.
2482         (CFLAGS-*.c): Use it.
2484         * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
2485         ($(objpfx)nscd): Add $(relro-LDFLAGS).
2487         * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
2488         (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
2489         !HP_TIMING_AVAIL.
2491 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
2493         * nscd/Makefile (distribute): Remove TODO.
2494         * nscd/TODO: Removed.
2496 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
2498         * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
2499         defined and __ASSUME_NETLINK_SUPPORT is zero.
2500         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
2501         -DNEED_NETLINK.
2503         * malloc/mtrace.pl: Avoid calling location unless it is needed for
2504         output.  Patch by Edward Bishop <binutils@gmail.com>.
2506         * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
2508 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2510         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
2511         (clock_getcpuclockid): Add missing retval.
2513         * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
2515 2004-10-04  Roland McGrath  <roland@redhat.com>
2517         * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
2518         to rtld_errno.
2519         * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
2520         and don't define any other errno names.
2521         * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
2522         place of errno.
2523         * sysdeps/unix/i386/sysdep.S: Likewise.
2524         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2525         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2526         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2527         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2528         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2529         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2530         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2531         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2532         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2533         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2534         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2536         * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
2537         attribute instead of `section'.
2539 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
2541         * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
2542         * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
2543         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
2544         testing code to...
2545         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here.  New file.
2546         * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
2547         _SC_CPUTIME and _SC_THREAD_CPUTIME.
2549         * nscd/connections.c (start_threads): Use sysconf in case
2550         _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
2552         * nscd/Makefile (nscd-modules): Add gai.
2553         * nscd/gai.c: New file.
2554         * nscd/nscd.c: Remove getaddrinfo stub definition.
2556         * assert/assert.h: Give up on using __builtin_expect.
2558         * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
2559         strings are identical.
2561 2004-03-18  Jakub Jelinek  <jakub@redhat.com>
2563         * malloc/arena.c (aligned_heap_area): New variable.
2564         (new_heap): If aligned_heap_area != NULL, attempt to use that
2565         first.  If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
2566         aligned, remember the second half in aligned_heap_area.
2567         (delete_heap): Clear aligned_heap_area if deleting the area right
2568         before aligned_heap_area.
2570 2004-10-03  Juerg Billeter  <j@bitron.ch>
2572         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
2573         can't be used.  [BZ #424]
2575 2004-10-03  Ulrich Drepper  <drepper@redhat.com>
2577         Dynamically create new threads if necessary.
2578         * nscd/connections.c (fd_ready): If no thread available for processing
2579         the request, create a new one unless the limit is reached.
2580         (start_threads): Check errors from pthread_create.
2581         * nscd/nscd.h: Declare max_nthreads.
2582         * nscd/nscd_conf.c: Parse max-nthreads entry.
2583         * nscd/nscd.conf: Add max-threads entry.
2584         * nscd/nscd_stat.c: Print current and maximum number of threads.
2586         Implement paranoia mode.
2587         * nscd/connections.c (nscd_init): Mark database and socket descriptors
2588         as close on exec.
2589         (restart): New function.
2590         (restart_p): New function.
2591         (nscd_run): Add missing descrement of nready in case readylist is
2592         empty.
2593         (main_loop_poll): Call restart_p and restart.
2594         (main_loop_epoll): Likewise.
2595         (begin_drop_privileges): Save original UID and GID.
2596         * nscd/nscd.c: Define new variables paranoia, restart_time,
2597         restart_interval, oldcwd, old_gid, old_uid.
2598         (main): Disable paranoia mode if we are not forking.
2599         (check_pid): When re-execing, the PID file contains the same PID as
2600         the current process.  Do not fail in this case.
2601         * nscd/nscd.conf: Add paranoia and restart-interval entries.
2602         * nscd/nscd.h: Define RESTART_INTERVAL.  Declare new variables.
2603         * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
2604         * nscd/nscd_stat.c: Print paranoia and restart-internal values.
2606         * nscd/connections.c: Implement alternative loop for main thread
2607         which uses epoll.
2608         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2609         (CFLAGS-connections.c): Add -DHAVE_EPOLL.
2611 2004-10-02  Ulrich Drepper  <drepper@redhat.com>
2613         * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
2614         don't replace old content.
2616         * nscd/connections.c: Rewrite handling of incoming connections.  All
2617         are handled by one thread which then hands off the descriptors for the
2618         real work to the worker threads.
2619         * nscd/Makefile: Link nscd with librt.
2621         * nscd/selinux.c: Pretty printing.
2623         * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
2624         output.  Let syslog do the formatting if debug_level == 0.
2626         * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
2627         nscd_certainly_running is nonzero.
2629 2004-10-02  Simon Josefsson  <jas@extundo.com>
2631         [BZ #420]
2632         * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
2633         make the file usable inside gnulib.
2635 2004-10-01  Ulrich Drepper  <drepper@redhat.com>
2637         * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
2638         (public_pVALLOc): Likewise.
2640         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
2641         group the caller provided unless there is a real problem.
2643         * posix/bug-glob1.c (prepare): Fix creation of symlink.
2645 2004-09-30  Ulrich Drepper  <drepper@redhat.com>
2647         * posix/Makefile: Add rules to build and run bug-glob1.
2648         * posix/bug-glob1.c: New file.
2650         * iconv/iconv_prog.c (main): Print progress information to stderr.
2652         * nscd/nscd.c (termination_handler): Reset timestamp so that
2653         clients immediately stop using the database.
2655         * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
2656         parameter.
2657         (__nscd_drop_map_ref): Change second parameter to be a reference to
2658         a variable.  Update variable when cycle count changed.
2659         * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
2660         * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref.  Reinitialize
2661         all variables and avoid memory leak in case of retries.
2662         * nscd/nscd_getgr_r.c: Likewise.
2663         * nscd/nscd_gethst_r.c: Likewise.
2664         * nscd/nscd_getpw_r.c: Likewise.
2665         * nscd/nscd_initgroups.c: Likewise.
2667         * nscd/nscd.h: Add declaration of addinitgroups and
2668         readdinitgroups.
2670 2004-09-30  Andreas Jaeger  <aj@suse.de>
2672         * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
2673         (CFLAGS-initgrcache.c): Set to -fexceptions.
2675 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
2677         * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
2678         readdir results; for symlinks or files of unknown type check using
2679         stat whether the file exists.
2681         * posix/tst-gnuglob.c (find_file): Handle leading "./".  Fix
2682         recognition of files.
2684 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
2686         * time/tzfile.c (tzfile_mtime): New variable.
2687         (__tzfile_read): Reread the file if mtime is different.
2689 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
2691         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
2692         Handle +inf/+inf.
2693         * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
2694         * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
2696 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
2698         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
2699         testing result of __nscd_get_map_ref.
2701 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
2703         * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
2704         * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
2705         * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
2707 004-09-29  Ulrich Drepper  <drepper@redhat.com>
2709         * grp/initgroups.c: Move compat_call implementation...
2710         * grp/compat-initgroups.c: ...to here.  New file.
2711         * grp/Makefile (distribute): Add compat-initgroups.c.
2712         (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
2713         * mscd/initgrcache.c: New file.
2714         * nscd/nscd_initgroups.c: New file.
2715         * nscd/Makefile (routines): Add nscd_initgroups.
2716         (nscd-modules): Add initgrcache.
2717         * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
2718         * nscd/connections.c: Handle INITGROUPS requests.
2719         * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
2720         Add initgrdata element to struct datahead.  Fix typo in comment.
2721         * nscd/nscd_proto.h: Declare __nscd_getgrouplist.  Fix parameter
2722         type in __nscd_getgrgrid_r.
2723         * nscd/selinux.c (perms): Add INITGROUPS entry.
2725         * nscd/nscd_getai.c: No need to include <sys/mman.h>.
2727         * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
2728         assigned addresses.
2729         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
2730         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
2731         * sunrpc/clnt_udp.c (is_network_up): Likewise.
2733         * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
2734         outside.
2736         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
2737         Renamed from si_flags due to conflict with si_flags from <elf.h>.
2739 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
2741         * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
2742         of failing __nscd_get_map_ref.  Fix a few typos.
2744         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
2745         SIGSETXID is not blocked.
2746         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
2747         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
2748         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
2749         * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
2751         * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
2752         getifaddrs call.
2753         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
2754         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
2755         * sunrpc/Makefile (xtests): Add tst-getmyaddr.
2756         * sunrpc/tst-getmyaddr.c: New file.
2758         * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
2759         disable all checking.
2761         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
2762         support to get this value.
2764 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
2766         * io/utime.h (utime): Allow second argument to be NULL.
2768 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
2770         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
2771         address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
2773 2004-09-27  Andreas Jaeger  <aj@suse.de>
2775         * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
2776         static inline by auto inline, add always_inline attribute.
2777         (elf_machine_rel): Likewise.
2778         (elf_machine_rela): Likewise.
2779         (elf_machine_lazy_rel): Likewise.
2780         (elf_machine_lazy_rela): Likewise.
2781         (elf_machine_rel_relative): Likewise.
2783 2004-09-27  Ulrich Drepper  <drepper@redhat.com>
2785         * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
2786         * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
2787         * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
2788         Otherwise isvectordef will loop infinitely if typedef hyper int64_t
2789         is seen.
2790         (unsigned_dec): Use "u_quad_t" for similar reasons.
2791         * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
2793 2004-09-27  Roland McGrath  <roland@redhat.com>
2795         * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
2796         twiddling in last change.
2798         * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
2800         [BZ #409]
2801         * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
2802         * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
2803         * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
2804         [WCONTINUED] (__WIFCONTINUED): New macro.
2805         (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
2806         branches.
2808         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
2809         all three syscall uses, not just one!
2811 2004-09-26  Richard Henderson  <rth@redhat.com>
2813         * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
2814         * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
2815         to 16 byte boundaries.
2817 2004-09-26  Ulrich Drepper  <drepper@redhat.com>
2819         * elf/readlib.c (process_file): Before complaining about too-short
2820         file, check that it potentially be an ELF file.  Also complain about
2821         empty files.  [BZ #151].
2823         * scripts/test-installation.pl: Fix ld.so recognition for new
2824         LD_TRACE_LOADED_OBJECTS output format.
2825         Patch by <jsberg04+computing.glibc@ftml.net>  [BZ #407].
2827         * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
2828         environment.  [BZ #384]
2830         * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
2831         * sunrpc/get_myaddr.c (get_myaddress): Likewise.
2832         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
2833         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.  Change interface
2834         to avoid buffer overrun and remove now useless parameters.
2835         (clnt_broadcast): Adjust caller.  [BZ #381].
2837         * sysdeps/generic/s_fdim.c: Handle +inf/+inf
2838         * sysdeps/generic/s_fdimf.c: Likewise.
2839         * sysdeps/generic/s_fdiml.c: Likewise.
2840         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
2841         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
2842         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
2843         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
2844         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
2845         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
2846         * math/libm-test.inc (fdim_test): Add test case.  [BZ #376].
2848         * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
2849         for compilers without __GLIBC_HAVE_LONG_LONG.  [BZ #362]
2851         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
2852         requirement on socktype and protocol.
2853         (gaih_inet): If numeric port number is given, return records for all
2854         possible socket types.
2855         * posix/tst-getaddrinfo2.c: New file.
2856         * posix/Makefile (tests): Add tst-getaddrinfo2.  [BZ #358]
2858 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
2860         * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
2861         data where _nl_value_type_LC_CTYPE does not contain the type
2862         information.  Add range checks.
2863         Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
2865         * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
2866         whether to realloc or not.
2867         Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
2869         * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
2870         * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
2871         decided < 0.
2872         * intl/finddomain.c (_nl_find_domain): Likewise.
2873         * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
2874         are done.  First set to -1 to signal initialization is ongoing.
2875         Protect against concurrent callers with recursive lock.
2876         * intl/finddomain.c (_nl_find_domain): Protect calls to
2877         _nl_make_l10nflist.  [BZ #322]
2879         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
2880         source address fails, initialized source_addr_len field so that
2881         duplicate address recognition does not copy junk.
2883 2004-09-25  Jakub Jelinek  <jakub@redhat.com>
2885         * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
2886         result declaration.
2888 2004-09-22  Andreas Schwab  <schwab@suse.de>
2890         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
2892 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
2894         * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
2895         opened.
2897         * nis/ypclnt.c (do_ypcall): Add one missing unlock.  Simplify the
2898         code a bit.
2900         * misc/daemon.c (daemon): Define errno in case /dev/null is not
2901         the correct device.
2903         * nis/ypclnt.c (yp_bind_file): Optimize a bit.  Minimal cleanups.
2905 2004-09-23  Andreas Jaeger  <aj@suse.de>
2907         * locale/weight.h (findidx): Remove static, it's not supported
2908         anymore with GCC 4.0 in a block scope.
2909         * locale/weightwc.h (findidx): Likewise.
2910         * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
2911         (lookup_collation_sequence_value): Likewise.
2912         (build_range_exp): Likewise.
2913         (build_collating_symbol): Likewise.
2914         * iconv/iconvconfig.c (write_output): Likewise.
2915         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
2917         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
2918         static, add always_inline attribute.
2919         (elf_machine_rela): Likewise.
2920         (elf_machine_lazy_rel): Likewise.
2922         * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
2923         on !RESOLVE so that it's not defined in local scope.
2925 2004-09-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2927         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
2929 2004-09-23  Thorsten Kukuk  <kukuk@suse.de>
2931         * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
2932         and BLK* ioctls with linux kernel headers.
2934 2004-09-23  Ulrich Drepper  <drepper@redhat.com>
2936         * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
2937         * elf/dl-object.c (_dl_new_object): Add new parameter mode.  If mode
2938         has RTLD_DEEPBIND set add local searchlist before global scope.
2939         * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
2940         * elf/rtld.c: Adjust callers of _dl_new_object.
2941         * elf/dl-load.c: Likewise.
2942         (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
2943         for DF_SYMBOLIC.
2944         * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
2945         _dl_map_object_deps.
2946         * elf/tst-deep1.c: New file.
2947         * elf/tst-deep1mod1.c: New file.
2948         * elf/tst-deep1mod2.c: New file.
2949         * elf/tst-deep1mod3.c: New file.
2950         * elf/Makefile: Add rules to build and run new tests.
2952         * elf/dl-deps.c: Pretty printing.
2954 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
2956         * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
2957         argument to numbers from syscall names.
2958         (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
2959         (INTERNAL_SYSCALL_NCS): Renamed from...
2960         (INTERNAL_SYSCALL_1): ... this.  Use INTERNAL_SYSCALL_NCS.
2961         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2962         (INTERNAL_SYSCALL_NCS): Define.
2963         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2964         (INTERNAL_SYSCALL_NCS): Likewise.
2965         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
2966         Change name argument to numbers from syscall names.
2967         (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
2968         (INTERNAL_SYSCALL_NCS): Define.
2970 2004-09-22  Ulrich Drepper  <drepper@redhat.com>
2972         * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
2974         * string/string.h: Add __nonnull annotations.
2975         * stdlib/stdlib.h: Likewise.
2977 2004-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2979         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
2980         Renamed to ...
2981         (DO_INLINE_SYSCALL_NCS): This.
2982         (DO_INLINE_SYSCALL): New.
2983         (INLINE_SYSCALL): Updated.
2984         (INTERNAL_SYSCALL_NCS): Updated.
2986 2004-09-21  Ulrich Drepper  <drepper@redhat.com>
2988         * elf/sprof.c (load_shobj): Add support for reading symbol table
2989         from debuginfo file.
2991         * elf/ldd.bash.in: Fix syntax errors.
2993 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
2995         * sysdeps/unix/sysv/linux/dl-execstack.c
2996         (_dl_make_stack_executable): Remove some duplication.
2998         * nscd/nscd.c (options): Mark S option as hidden.
2999         (parse_opt): When S option is used, print warning message.
3000         * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
3001         * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
3002         * nscd/aicache.c (addhstaiX): Don't handle secure mode.
3003         * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
3005 2004-09-20  Roland McGrath  <roland@frob.com>
3007         * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
3008         in initializer #if defined.
3010 2004-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3012         [BZ #391]
3013         * stdlib/getsubopt.c: Merge fixes from gnulib.
3014         (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
3015         (getsubopt): Use prototypes, not K&R style.
3016         Fix bug: memcmp(A,B,N) was being invoked on a memory block B
3017         whose size might be smaller than N.  Use strncmp to avoid the bug.
3019 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
3021         * configure.in: If selinux has not explictly been requested, don't
3022         comment on it missing.
3024         * elf/dl-load.c: Define __stack_prot.
3025         * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
3026         __stack_prot here, just declare it.
3028 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
3030         * configure.in (libc_cv_z_relro): Only set to yes if linker script
3031         contains DATA_SEGMENT_RELRO_END.
3033 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
3035         * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
3036         Reorder code slightly.
3037         * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
3038         is non-null, _dl_setup_hash will do that.
3040 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
3042         * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
3043         callback to set IDs in all other threads as well.
3044         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
3045         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
3046         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
3047         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3048         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3049         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3050         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3051         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3052         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3053         * sysdeps/unix/sysv/linux/setuid.c: New file.
3054         * sysdeps/unix/sysv/linux/setgid.c: New file.
3055         * sysdeps/unix/sysv/linux/setreuid.c: New file.
3056         * sysdeps/unix/sysv/linux/setregid.c: New file.
3057         * sysdeps/unix/sysv/linux/setresuid.c: New file.
3058         * sysdeps/unix/sysv/linux/setresgid.c: New file.
3059         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
3060         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
3062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3063         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3064         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
3065         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
3066         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
3067         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
3068         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
3069         and setresuid.
3070         * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
3071         * nscd/grpcache.c: Likewise.
3072         * nscd/hstcache.c: Likewise.
3073         * nscd/pwdcache.c: Likewise.
3075         * resolv/res_mkquery.c (res_nmkquery): Fix typo.
3077 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
3079         * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
3080         from memory.
3081         * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
3082         __stack_flags.
3084         * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
3085         gethostbyname3_r if we are not looking for the canonical name.
3087         * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
3088         time.
3090 2004-09-18  Roland McGrath  <roland@redhat.com>
3092         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
3093         system call.
3095 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
3097         * include/link.h (struct link_map): Add l_used element.
3098         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
3099         * elf/rtld.c (process_dl_debug): Recognize unused.
3100         (dl_main): When unused debug flag is set check for unused direct
3101         dependencies.
3102         When printing dependencies and SONAME starts with /, omit the SONAME =>
3103         part.
3104         * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
3105         symbol has been found as used.
3106         * elf/ldd.bash.in: Add -u option.
3108 2004-09-18  Jakub Jelinek  <jakub@redhat.com>
3110         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3111         Do nothing if __NR_set_tid_address is not defined.  [BZ #390]
3113 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
3115         * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
3116         in case it is available.
3118 2004-09-17  Jakub Jelinek  <jakub@redhat.com>
3120         * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
3121         key to the socket.
3123 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
3125         * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
3126         for gcc 3.3 and higher.
3127         * io/fcntl.h: Add __nonnull where appropriate.
3128         * io/ftw.h: Likewise.
3129         * io/utime.h: Likewise.
3130         * io/sys/poll.h: Likewise.
3131         * io/sys/sendfile.h: Likewise.
3132         * io/sys/stat.h: Likewise.
3133         * io/sys/statfs.h: Likewise.
3134         * io/sys/statvfs.h: Likewise.
3135         * posix/unistd.h: Likewise.
3136         * catgets/nl_types.h: Likewise.
3137         * crypt/crypt.h: Likewise.
3138         * debug/execinfo.h: Likewise.
3140 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
3142         * posix/glob.h: Remove cruft to make header usable outside glibc.
3143         The maintenance headache is too big.
3145         * configure.in: Add test for required SELinux features.
3146         * config.make.in: Add have-selinux entry.
3147         * config.h.in: Add HAVE_SELINUX entry.
3148         * nscd/Makefile (nscd-modules): Add selinux.
3149         (CFLAGS-selinux.c): Add -fpie.
3150         Define selinux-LIBS and use in link line.
3151         * nscd/connections.c (handle_request): Check access SELinux permissions
3152         before processing request.
3153         * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
3154         * nscd/nscd_stat.c: Transmit and print AVC statistics.
3155         * nscd/selinux.c: New file.
3156         * nscd/selinux.h: New file.
3157         Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
3159 2004-09-16  Jakub Jelinek  <jakub@redhat.com>
3161         * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
3162         instead of munmap.
3164         * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
3166 2004-09-16  Thorsten Kukuk  <kukuk@suse.de>
3168         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
3169         __nss_not_use_nscd_hosts variable if nscd should be used or not.
3171 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
3173         * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
3174         Add __nscd_getai prototype.
3175         * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
3176         * nscd/nscd-client.h: Remove __nscd_getai prototype.
3177         * nscd/nscd_getai.c: Include nscd_proto.h.
3179         * elf/ldd.bash.in: Add support for SELinux environments.
3180         Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
3182 2004-09-16  Roland McGrath  <roland@redhat.com>
3184         * configure.in (--with-headers): Let argument contain a : separated
3185         list of directories to use, not just one.
3186         * configure: Regenerated.
3188 2004-09-15  Richard Henderson  <rth@redhat.com>
3190         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3191         * scripts/data/c++-types-alpha-linux-gnu.data: New file.
3193 2004-09-15  Ulrich Drepper  <drepper@redhat.com>
3195         * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
3196         get ttl and canonical name.  Use these two values.
3197         * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
3198         * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
3199         If nonnull fill with TTL and pointer to canonical name respectively.
3200         (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
3201         (_nss_dns_gethostbyname2_r): Just wrapper around
3202         _nss_dns_gethostbyname3_r.
3203         (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
3204         Take two new parameters which as passed to getanswer_r.
3206         * nscd/Makefile (rountines): Add nscd_getai.
3207         (nscd-modules): Add aicache.
3208         * nscd/aicache.c: New file.
3209         * nscd/nscd_getai.c: New file.
3210         * nscd/cache.c (prune_cache): Handle GETAI request type.
3211         * nscd/connections.c: Add GETAI support in request handling.
3212         * nscd/nscd-client.h (request_type): Add GETAI.
3213         Define ai_response_header and struct nscd_ai_result types.
3214         (struct datahead): Add aidata field.
3215         Declare __nscd_getai.
3216         * nscd/nscd.c: Add getaddrinfo definition to catch problems.
3217         * nscd/nscd.h: Declare addhstai and readdhstai.
3219         * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
3220         * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
3222         * nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
3224 2004-09-14  Ulrich Drepper  <drepper@redhat.com>
3226         * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
3228 2004-09-13  Ulrich Drepper  <drepper@redhat.com>
3230         * misc/sys/cdefs.h: Restore old definition of __P.
3231         * csu/munch.awk: Remove uses of __P and __PMT.
3232         * gmon/gmon.c: Likewise.
3233         * hesiod/hesiod.h: Likewise.
3234         * include/stdio.h: Likewise.
3235         * io/fts.c: Likewise.
3236         * libio/genops.c: Likewise.
3237         * libio/libioP.h: Likewise.
3238         * libio/fileops.c: Likewise.
3239         * libio/iolibio.h: Likewise.
3240         * libio/libio.h: Likewise.
3241         * libio/memstream.c: Likewise.
3242         * libio/oldfileops.c: Likewise.
3243         * libio/oldstdfiles.c: Likewise.
3244         * libio/iopopen.c: Likewise.
3245         * libio/vsnprintf.c: Likewise.
3246         * libio/vswprintf.c: Likewise.
3247         * libio/wgenops.c: Likewise.
3248         * libio/oldiopopen.c: Likewise.
3249         * locale/programs/xmalloc.c: Likewise.
3250         * locale/programs/xstrdup.c: Likewise.
3251         * malloc/mtrace.c: Likewise.
3252         * misc/getttyent.c: Likewise.
3253         * misc/getusershell.c: Likewise.
3254         * nis/rpcsvc/ypupd.h: Likewise.
3255         * posix/fnmatch.h: Likewise.
3256         * posix/glob.h: Likewise.
3257         * resolv/arpa/nameser.h: Likewise.
3258         * resolv/gethnamaddr.c: Likewise.
3259         * resolv/resolv.h: Likewise.
3260         * resolv/inet_net_ntop.c: Likewise.
3261         * resolv/inet_net_pton.c: Likewise.
3262         * resolv/res_init.c: Likewise.
3263         * resolv/nss_dns/dns-network.c: Likewise.
3264         * stdio-common/vfprintf.c: Likewise.
3265         * stdio-common/reg-printf.c: Likewise.
3266         * sysdeps/generic/chflags.c: Likewise.
3267         * sysdeps/generic/fchflags.c: Likewise.
3268         * sysdeps/generic/glob.c: Likewise.
3269         * sysdeps/generic/printf_fphex.c: Likewise.
3270         * sysdeps/generic/memcmp.c: Likewise.
3271         * sysdeps/generic/memcopy.h: Likewise.
3272         * sysdeps/generic/morecore.c: Likewise.
3273         * sysdeps/generic/sstk.c: Likewise.
3274         * sysdeps/posix/sigvec.c: Likewise.
3275         * sysdeps/posix/ttyname_r.c: Likewise.
3276         * sysdeps/standalone/arm/bits/errno.h: Likewise.
3277         * sysdeps/standalone/standalone.h: Likewise.
3278         * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
3279         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
3280         * sysdeps/unix/arm/start.c: Likewise.
3281         * sysdeps/unix/bsd/sigaction.c: Likewise.
3282         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
3283         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
3284         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
3285         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
3286         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
3287         * sysdeps/unix/sparc/start.c: Likewise.
3288         * sysdeps/unix/sysv/getdents.c: Likewise.
3289         * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
3290         * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
3291         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3292         * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
3293         * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
3294         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3295         * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
3296         * sysdeps/unix/sysv/irix4/start.c: Likewise.
3297         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3298         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
3299         * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
3300         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3301         * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
3302         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3303         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
3304         * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
3305         * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
3306         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3307         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
3308         * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
3309         * time/tzset.c: Likewise.
3310         * time/strftime_l.c: Likewise.
3311         * time/strptime_l.c: Likewise.
3312         * crypt/md5.h: Likewise.
3314 2004-09-13  Andreas Jaeger  <aj@suse.de>
3316         * configure.in: Support GCC 4.x.
3317         * configure: Regenerated.
3319 2004-09-13  Thorsten Kukuk  <kukuk@suse.de>
3321         * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
3323         * nscd/nscd.init: Fix path to socket.
3325 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
3327         * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
3328         Avoid file descriptor leak in case of size mismatch.
3330         * nscd/nscd-client.h: Fix database structure layout for biarch.
3331         * nscd/mem.c (gc): Add casts to avoid warnings.
3333         * nss/getent.c: Don't preconstruct help message.  Do it only when
3334         needed.
3336         * locale/programs/locale.c: Simplify help message printing.
3338 2004-09-12  Roland McGrath  <roland@frob.com>
3340         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
3341         missing in last change.
3343 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
3345         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
3346         before writing data into the buffer with negative offset.
3347         * nis/nss_compat/compat-initgroups.c: Likewise.
3348         * nis/nss_compat/compat-pwd.c: Likewise.
3349         * nis/nss_compat/compat-spwd.c Likewise.
3351 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
3353         * misc/syslog.c (vsyslog): Fix copying of PID in case of
3354         out-of-memory situation.  [BZ #365].
3356         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
3357         __THROW in inline function definitions.
3359         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
3360         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
3361         in FLAGS parameter and fail if this is the case.
3362         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
3363         set.
3365         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
3366         * nscd/grpcache.c (cache_addgr): Likewise.
3367         * nscd/hstcache.c (cache_addhst): Likewise.
3369 2004-09-11  Roland McGrath  <roland@frob.com>
3371         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
3372         Set _dl_phdr and _dl_phnum.
3373         (init1): When bootstrap task, bail early and never examine *D.
3375 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
3377         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
3378         Cast THR, SEL and DESC to `void'.
3380 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
3382         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
3383         databases.
3385         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
3387 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
3389         * nscd/nscd.c (pagesize_m1): New variable.
3390         (main): Initialize it.
3391         * nscd/nscd.h: Declare pagesize_m1.
3392         * nscd/hstcache.c: Pass correctly aligned address to msync.
3393         * nscd/grpcache.c: Likewise.
3394         * nscd/pwdcache.c: Likewise.
3396 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3398         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
3399         __nwaiters.  If pthread_cond_destroy has been called and this is
3400         the last waiter, signal pthread_cond_destroy caller and avoid
3401         using the pthread_cond_t structure after unlock.
3402         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
3404 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
3406         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3407         __ASSUME_CLONE_STOPPED.
3409 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
3411         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
3412         __asm__ for C++.  [BZ #377]
3414 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
3416         * nscd/nscd_stat.c: Improve output by also printing .shared and
3417         .persistent.
3419         * nscd/connections.c: Allow cache sharing to be really disabled.
3421 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
3423         * malloc/malloc.c (_int_free): Only do arena boundary check for
3424         contiguous arenas.
3426 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3428         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
3429         instruct operands.
3430         * elf/elf.h: Add R_M32R_* relocs.
3432 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
3434         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
3435         seems not to support the nothrow attribute.  Use it only for gcc
3436         3.3 and higher.
3438         * malloc/hooks.c (top_check): Print top chunk corruption as normal
3439         error message.
3441         * malloc/malloc.c (malloc_printerr): Don't make informational
3442         message look like error message.
3444 2004-09-09  Andreas Jaeger  <aj@suse.de>
3446         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
3448 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
3450         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
3452         * malloc/malloc.c (_int_free): Add inexpensive double free and
3453         memory corruption tests.
3454         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
3455         is no format string anymore.  Don't use stdio.  Adjust all callers.
3456         * malloc/hooks.c: Adjust malloc_printf_nc callers.
3458 2004-09-08  Roland McGrath  <roland@redhat.com>
3460         * malloc/mcheck.c: Don't use __P.
3461         Use prototypes definitions for static functions.
3463 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
3465         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
3467 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
3468             Jakub Jelinek  <jakub@redhat.com>
3470         * nscd/nscd-client.h: Add a few #includes.
3472         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
3473         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
3474         threads.
3475         * nscd/nscd-client.h (struct database_pers_head): Add
3476         nscd_certainly_running field.
3477         * nscd/nscd.h: Declare setup_thread.
3478         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
3479         nscd_certainly_running is nonzero.
3480         * sysdeps/generic/nscd_setup_thread.c: New file.
3481         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
3483 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
3485         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
3486         processes via shared memory.
3487         * nscd/nscd-client.h: Likewise.
3488         * nscd/nscd.h: Likewise.
3489         * nscd/nscd_conf.c: Likewise.
3490         * nscd/nscd_getgr_r.c: Likewise.
3491         * nscd/nscd_getpw_r.c: Likewise.
3492         * nscd/nscd_gethst_r.c: Likewise.
3493         * nscd/nscd.conf: Add new config parameters.
3494         * nscd/Makefile (aux): Add nscd_helper.
3495         * nscd/nscd_helper.c: New file.
3496         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
3498         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
3499         no derived information.
3500         * connections.c (nscd_init): Fix bug in testing size of the persistent.
3502         * nis/Makefile (aux): Add nis_hash.
3503         * nis/nis_hash.c: New file.  Split out from nis_util.c.
3504         * nis/nis_util.c: Move __nis_hash code in separate file.
3506         * csu/tst-atomic.c: Improve atomic_increment_val test which would
3507         not have found a ppc bug.
3509         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
3511         * malloc/arena.c: Remove __MALLOC_P uses.
3512         * malloc/malloc.c: Likewise.
3514         * malloc/mtrace.c: Remove __P uses.
3515         * malloc/mcheck-init.c: Likewise.
3517 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
3519         * sysdeps/powerpc/powerpc64/configure.in: New file.
3520         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
3521         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
3522         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
3523         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
3524         BODY_PREFIX): Define.
3525         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
3526         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
3527         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
3528         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
3529         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
3531 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
3533         * malloc/malloc.h: Don't define __THROW if it is already defined.
3535         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
3536         (atomic_decrement): Define.
3538         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
3539         atomic_decrement_val.
3540         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3541         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
3543         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
3544         and atomic_decrement_val.
3546         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
3547         and atomic_delay is not already defined.
3548         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
3549         * sysdeps/x86_64/bits/atomic.h: Likewise.
3551         * miscd/sys/cdefs.h (__NTH): New macro.
3552         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
3553         (__REDIRECT_NTH): New macro.
3554         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
3555         * ctype/ctype.h: Likewise.
3556         * dirent/dirent.h: Likewise.
3557         * io/fcntl.h: Likewise.
3558         * io/sys/sendfile.h: Likewise.
3559         * io/sys/stat.h: Likewise.
3560         * io/sys/statfs.h: Likewise.
3561         * io/sys/statvfs.h: Likewise.
3562         * libio/bits/stdio.h: Likewise.
3563         * misc/sys/mman.h: Likewise.
3564         * posix/unistd.h: Likewise.
3565         * resource/sys/resource.h: Likewise.
3566         * rt/aio.h: Likewise.
3567         * signal/signal.h: Likewise.
3568         * stdlib/stdlib.h: Likewise.
3569         * string/argz.h: Likewise.
3570         * string/string.h: Likewise.
3571         * sysdeps/generic/inttypes.h: Likewise.
3572         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3573         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3574         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3575         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3576         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3577         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
3578         * wcsmbs/wchar.h: Likewise.
3580         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
3582         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
3583         definition.
3585         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
3586         cancellation point.
3588         * io/fts.c (fts_open): Remove uses of __P.
3590         * include/stdlib.h: No need to use __THROW in this header.
3592 2004-09-06  Roland McGrath  <roland@frob.com>
3594         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
3595         validity, since __assert_fail gets to here anyway.  Just fail.
3597 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
3599         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
3600         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
3601         addresses.
3603 2004-09-05  Richard Henderson  <rth@redhat.com>
3605         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
3606         * sysdeps/unix/sysv/linux/kernel-features.h
3607         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
3608         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
3609         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
3610         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
3611         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3613 2004-09-05  Richard Henderson  <rth@redhat.com>
3615         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
3616         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
3617         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
3618         sysdeps/alpha/remqu.S: Likewise.
3619         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
3621 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
3623         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
3624         GETHOSTBYADDRv6 requests.
3626 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
3628         * nscd/pwdcache.c (cache_addpw): Use correct key length in
3629         cache_add calls.
3630         * nscd/grpcache.c (cache_addgr): Likewise.
3632 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
3634         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
3635         to `dtv_t *'.
3637 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
3639         * nscd/nscd.c (parse_opt): Use writev instead of two write for
3640         invalidate command.
3642 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
3644         * nscd/connections.c (nscd_run): Check early for invalid request types.
3646 2004-09-02  Roland McGrath  <roland@frob.com>
3648         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
3649         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
3650         (THREAD_SELF): New macro.
3652 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
3654         [BZ #357]
3655         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
3656         (main): Call test_stack.
3657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3658         (__getcontext): Push stack frame then save parms in local frame.
3659         Improve instruction scheduling.
3660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3661         (__swapcontext): Likewise.
3663 2004-09-01  Andreas Schwab  <schwab@suse.de>
3665         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
3666         __builtin_offsetof.
3668 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
3670         [BZ #361]
3671         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
3672         to normal_bracket after fetching the next character.
3673         * posix/tst-fnmatch.input: Add 25 new tests.
3674         Reported by Markus Oberhumer <markus@oberhumer.com>.
3676 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
3678         * elf/rtld.c (dl_main): First check existence of ld.so.preload
3679         with access.
3681 2004-09-01  Roland McGrath  <roland@redhat.com>
3683         * sysdeps/unix/sysv/linux/bits/waitflags.h
3684         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
3685         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
3686         New macro.
3687         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
3688         available, or fall back to the waitpid-based generic code.
3690 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
3692         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
3693         clobber the `ebp' register.
3694         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
3695         Reverts change from 2004-05-07 by Jeroen Dekkers.
3697         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
3698         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
3700 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
3702         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
3703         before return type.
3704         * locale/localename.c (__current_locale_name): Likewise.
3706 2004-08-30  Roland McGrath  <roland@frob.com>
3708         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
3709         later sets from output.
3710         * Makerules (check-abi): Pass option to set that with value of
3711         LIB-abi-frozen variable if one is set.
3713         * abilist/libcidn.abilist: New file (empty).
3715 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
3717         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
3718         not __USE_XOPEN2K, use the Unix98 mandated values.
3720 2004-08-27  Roland McGrath  <roland@redhat.com>
3722         * configure.in (usetls): Default to yes.
3723         * configure: Regenerated.
3725 2004-08-26  Roland McGrath  <roland@redhat.com>
3727         * configure.in (add_ons_automatic): New variable, set to yes or no
3728         indicating --enable-add-ons with no explicit list.
3729         (running add-on fragments): Allow a fragment to modify $libc_add_on
3730         and have that affect its place in the list of add-ons to use.
3731         * configure: Regenerated.
3733 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
3735         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
3736         a mmaped memory region which is automatically mirrored on disk.
3737         This implements persistent data storage.  The Memory handled
3738         needed to be completely revamped, it now uses a garbage collection
3739         mechanism instead of malloc.
3740         * nscd/connections.c: Likewise.
3741         * nscd/nscd.c: Likewise.
3742         * nscd/nscd.h: Likewise.
3743         * nscd/nscd_conf.c: Likewise.
3744         * nscd/nscd_stat.c: Likewise.
3745         * nscd/grpcache.c: Likewise.
3746         * nscd/hstcache.c:: Likewise.
3747         * nscd/pwdcache.c:: Likewise.
3748         * nscd/Makefile: Add rules to build mem.c.
3749         * nscd/mem.c: New file.
3750         * nscd/nscd.conf: Describe new configuration options.
3752 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3754         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
3755         NO_SGIDEFS_H isn't defined.
3756         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3757         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3759         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
3760         _MIPS_SIM.
3761         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
3762         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3763         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3765 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
3767         * nscd/connections.c (nscd_run): atomic_increment was not missing.
3769         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
3770         Patch by Greg Schafer.
3772 2004-08-25  Richard Henderson  <rth@redhat.com>
3774         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
3775         instead of $31.  Zero $15.
3776         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
3778 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
3780         * sysdeps/powerpc/powerpc64/bits/atomic.h
3781         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
3782         is negative.
3783         (__arch_compare_and_exchange_bool_32_rel): Likewise.
3785         * nscd/connections.c: Make socket nonblocking so that threads
3786         don't get stuck on accept.  Fix locking.
3788         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
3789         entry with alternative key.
3790         * nscd/pwdcache.c (cache_addpw): Likewise.
3792 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
3794         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
3795         __libc_stack_end.
3797 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
3799         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
3800         __BEGIN_DECLS/__END_DECLS.
3802 2004-08-23  Andreas Jaeger  <aj@suse.de>
3804         [BZ #341]
3805         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
3806         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
3807         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
3808         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
3809         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
3810         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
3811         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
3812         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
3813         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
3814         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
3815         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
3816         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
3817         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
3819 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
3821         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
3822         (check_action): Likewise.
3823         When printing error messages, use malloc_printf_nc now instead of
3824         fiddling with the streams cancellation flag in every place.
3825         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
3826         default to 3.
3827         (check_action): New variable.
3828         (unlink): Print error message and eventually terminate in case list
3829         is corrupted.
3830         (malloc_printf_nc): New function.  Use it in _int_free.
3831         Change proposed by Arjan van de Ven.
3833         * dlfcn/Makefile: Don't build eval.c anymore.
3835 2004-08-20  Roland McGrath  <roland@frob.com>
3837         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
3838         of echo -e for POSIX.2 portability.
3839         Reported by Paul Jarc <prj@po.cwru.edu>.
3841 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
3843         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
3844         list generation.
3846         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
3847         getcanonname_r function if AI_CANONNAME flag is not set in
3848         request.
3850         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
3851         Initialize mysize with limits only if latter is >= 0.  Use mysize
3852         in malloc call.
3854 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
3856         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
3857         to avoid warning.
3859         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
3860         status to NSS_STATUS_UNAVAIL.
3862 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
3864         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
3865         cannoname lookup since it has the FQDN even if the original NAME
3866         value has not.
3868 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
3870         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
3871         pointer in new variable ORIG_NAME and use this pointer when
3872         determination of canonical name failed, not the possibly IDN
3873         translated value of NAME.
3875 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
3877         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
3878         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
3879         Reset RES_NOIP6DOTINT flag in this case..
3881         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
3882         ai_canonname.
3884 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
3886         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
3887         CNAME records, we better follow the chain of CNAME records which
3888         can be accomplished with A/AAAA lookups.
3890 2004-08-15  Roland McGrath  <roland@redhat.com>
3892         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
3893         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
3894         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3895         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
3896         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3898 2004-08-15  Roland McGrath  <roland@frob.com>
3900         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
3901         this, not ...
3902         (static-only-routines): ... this.
3903         * sysdeps/ia64/Makefile: Likewise.
3904         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
3905         * sysdeps/sparc/sparc64/Makefile: Likewise.
3906         * sysdeps/x86_64/Makefile: Likewise.
3907         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
3908         * sysdeps/ia64/hp-timing.c: Likewise.
3909         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
3910         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
3912         * csu/elf-init.c: Update copyright terms including special exception
3913         for these trivial files, which are statically linked into executables
3914         that use dynamic linking for the significant library code.
3915         * io/fstat.c: Likewise.
3916         * io/fstat64.c: Likewise.
3917         * io/lstat.c: Likewise.
3918         * io/lstat64.c: Likewise.
3919         * io/stat.c: Likewise.
3920         * io/stat64.c: Likewise.
3921         * stdlib/atexit.c: Likewise.
3922         * sysdeps/alpha/elf/initfini.c: Likewise.
3923         * sysdeps/alpha/elf/start.S: Likewise.
3924         * sysdeps/arm/elf/start.S: Likewise.
3925         * sysdeps/cris/elf/start.S: Likewise.
3926         * sysdeps/generic/initfini.c: Likewise.
3927         * sysdeps/generic/mknod.c: Likewise.
3928         * sysdeps/hppa/elf/initfini.c: Likewise.
3929         * sysdeps/hppa/elf/start.S: Likewise.
3930         * sysdeps/i386/elf/start.S: Likewise.
3931         * sysdeps/i386/i686/hp-timing.c: Likewise.
3932         * sysdeps/ia64/elf/initfini.c: Likewise.
3933         * sysdeps/ia64/elf/start.S: Likewise.
3934         * sysdeps/ia64/hp-timing.c: Likewise.
3935         * sysdeps/m68k/elf/start.S: Likewise.
3936         * sysdeps/mach/start.c: Likewise.
3937         * sysdeps/mips/elf/start.S: Likewise.
3938         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
3939         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3940         * sysdeps/s390/s390-32/elf/start.S: Likewise.
3941         * sysdeps/s390/s390-32/initfini.c: Likewise.
3942         * sysdeps/s390/s390-64/elf/start.S: Likewise.
3943         * sysdeps/s390/s390-64/initfini.c: Likewise.
3944         * sysdeps/sh/elf/initfini.c: Likewise.
3945         * sysdeps/sh/elf/start.S: Likewise.
3946         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3947         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
3948         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3949         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
3950         * sysdeps/standalone/i386/start.S: Likewise.
3951         * sysdeps/standalone/i960/start.S: Likewise.
3952         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
3953         * sysdeps/unix/arm/start.c: Likewise.
3954         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
3955         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
3956         * sysdeps/unix/sparc/start.c: Likewise.
3957         * sysdeps/unix/start.c: Likewise.
3958         * sysdeps/unix/sysv/aix/start.s: Likewise.
3959         * sysdeps/unix/sysv/irix4/start.c: Likewise.
3960         * sysdeps/x86_64/elf/initfini.c: Likewise.
3961         * sysdeps/x86_64/elf/start.S: Likewise.
3963 2004-08-15  Roland McGrath  <roland@redhat.com>
3965         [BZ #227]
3966         * sysdeps/unix/sysv/linux/kernel-features.h
3967         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
3968         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3969         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
3970         the partial page after the dynamic linker's own data segment.
3972 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
3974         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
3975         v4-mapped addresses a bit.
3976         (gethosts): Move alloca out of macro, so that it is done only once.
3978         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
3979         addr to avoid casts.
3980         (gethosts): Removed.
3981         (gethosts2): Renamed to gethosts.  Make it usable for family !=
3982         AF_UNSPEC.  Fix AI_V4MAPPED.
3983         (gaih_inet): Remove use of old gethosts.  Always use what used to be
3984         gethosts2.  If entry is found, try to use the same NSS module's
3985         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
3986         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
3987         addresses.  Numerous cleanups.
3988         * resolv/nss_dns/dns-canon.c: New file.
3989         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
3990         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
3992         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
3993         * elf/tst-dlopenrpath.c: New file.
3994         * elf/tst-dlopenrpathmod.c: New file.
3996         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
3997         * intl/tst-gettext.c: Likewise.
3999         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
4001         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
4002         AF_INET6.
4004 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
4006         * po/de.po: Update from translation team.
4008 2004-08-14  Roland McGrath  <roland@frob.com>
4010         * sysdeps/mach/configure: Regenerated.
4011         * sysdeps/mach/hurd/configure: Regenerated.
4013 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
4015         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
4016         performed, make sure it is still the first entry after sorting
4017         that has the ai_canonname information.
4019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
4020         only in one entry.
4022 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
4024         * scripts/output-format.sed: Handle default case of three-argument
4025         OUTPUT_FORMAT.
4027         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
4028         __attribute_used__.
4030 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
4032         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
4033         first returned entry.  Print name only if not NULL.
4035         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
4036         __netgrent object passed in instead of global variables.
4037         Optimize.
4038         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
4039         in struct __netgrent object passed in instead of global variables.
4040         * inet/netgroup.h (struct __netgrent): Add service_user field.
4041         Move cursor in anonymous union, add new field location to that
4042         union.
4043         * inet/getnetgrent_r.c: Extensive rewrite to really enable
4044         concurrent uset of set/get/endnetgrent and innetgr.
4045         Reported by Chuck Simmons.
4047         * inet/netgroup.h (struct name_list): Replace name pointer with
4048         zero-sized array.
4049         * inet/getnetgrent_r.c: Adjust code for change in name_list
4050         layout.  Numerous strdup and free calls removed.
4052         * elf/sprof.c (read_symbols): When comparing aliases, prefer
4053         non-hidden over hidden symbols and strong over weak symbols
4054         if both don't start with '_'.
4056         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
4057         possible.
4059 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
4061         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
4062         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
4063         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4064         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4065         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
4066         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
4067         accordingly.
4069 2004-08-11  Andreas Schwab  <schwab@suse.de>
4071         * resolv/res_libc.c: Move definition of __res_initstamp ...
4072         * resolv/res_init.c: ... here.
4074 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
4076         * locale/C-time.c: Change default ERA value from NULL to "".
4077         * locale/tst-C-locale.c: Add test case for ERA keywords.
4079 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
4081         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
4082         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
4083         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4084         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4086 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
4088         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
4089         RLIMIT_MSGQUEUE): Add.
4090         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
4091         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
4092         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
4093         (RLIM_NLIMITS): Adjust.
4094         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
4095         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
4096         (RLIM_NLIMITS): Adjust.
4097         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
4098         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
4099         (RLIM_NLIMITS): Adjust.
4101 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
4103         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
4104         printf with #ifdef DEBUG and RES_DEBUG check.
4106         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
4107         __USE_MISC #endif.
4108         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
4109         declaration.
4110         * sysdeps/gnu/bits/shm.h: Likewise.
4111         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4112         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4113         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4114         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4115         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4117 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
4119         * po/ca.po: Update from translation team.
4121 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
4123         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
4124         __getpagesize declaration.
4126 2004-08-11  Roland McGrath  <roland@redhat.com>
4128         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
4129         commands inside &&.
4130         Reported by Andreas Schwab <schwab@suse.de>.
4131         * configure: Regenerated.
4133         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
4135 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
4137         * time/tzset.c (tzset_internal): Add new parameter which is
4138         nonzero if called through tzset.  Use TZDEFAULT name including
4139         name comparison if the new parameter is zero.  This means implicit
4140         tzset calls will not cause files to be opened and read by tzfile.c
4141         all the time.
4143 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
4145         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
4146         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
4147         return 1 immediately.
4149         * time/tzfile.c (__tzfile_read): Free transitions only if it will
4150         not be reused.
4152         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
4153         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
4155         * stdio-common/tst-popen.c: Include <string.h>.
4157         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
4159         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
4160         attribute.  Return NULL instead of calling pthread_exit at the end.
4162 2004-08-11  Roland McGrath  <roland@redhat.com>
4164         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
4166 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
4168         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
4170 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
4172         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
4173         (fwrite_unlocked): When checking if size * n is <= 8, cast each
4174         argument to size_t individually.  Cast n to (void) instead of
4175         (size_t), surround with (), return (size_t) 0 if one of n or size
4176         is 0.  [BZ #316]
4177         * stdio-common/Makefile (tests): Add tst-unlockedio.
4178         * stdio-common/tst-unlockedio.c: New test.
4180 2004-08-09  Roland McGrath  <roland@frob.com>
4182         * manual/install.texi (Supported Configurations): Replace bug-glibc
4183         mention with web URL.
4184         * INSTALL: Regenerated.
4185         * locale/iso-3166.def: Likewise, in comment.
4186         * locale/iso-4217.def: Likewise.
4187         * locale/iso-639.def: Likewise.
4188         * posix/cpio.h: Remove bug reporting comment.
4190 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
4192         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
4193         casts to handle funny calls with floating point argument values
4194         and signed values correctly and without warning.
4195         (fwrite_unlocked): Likewise.  [BZ #309]
4197         * malloc/memusage.c (me): Use creat64, not creat.
4198         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
4199         Patch by Guy Maor <guymaor@yahoo.com>.
4201         * elf/ldconfig.c (options): Mark parameter option names as
4202         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
4204         * iconv/gconv_charset.h (strip): Also allow comma which is what is
4205         used to separate options.  [BZ #194]
4207 2004-08-09  Roland McGrath  <roland@redhat.com>
4209         * FAQ.in: Refer to web pages instead of bug-glibc.
4210         * FAQ: Regenerated.
4212         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
4214 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
4216         * time/tzset.c (tzset_internal): If TZ is not set do not compare
4217         old and new tz value since it might be /etc/localtime in both
4218         cases although the file changed.  [BZ #154]
4219         Patch by Christian Franke <franke@computer.org>.
4221         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
4222         Compare with values of previously opened file.  Don't do anything
4223         is they match.
4225 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
4227         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
4228         reset loader before the actual loading.
4229         * elf/dl-open.c (dl_open_worker): If file name contains no path
4230         element determine map of caller.  Pass caller map in this case to
4231         _dl_map_object.  Set __RTLD_CALLMAP in mode.
4232         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
4233         Patch by Greg Wolodkin <greg@mathworks.com>.
4235         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
4236         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
4238         * configure.in: Also recognize i786. [BZ #106]
4239         Patch by <pluto@pld-linux.org>.
4241         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
4242         name contains any dots. [BZ #95]
4244         * resolv/res_send.c: Compiling with DEBUG defined works again.
4245         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
4246         callers.
4248         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
4249         available the process is not killed. [BZ #41]
4251         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
4253         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
4254         [BZ #28]
4256         * po/sv.po: Update from translation team.
4258 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
4260         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
4261         getsourcefilter, and setsourcefilter parameter list.
4262         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
4263         * sysdeps/generic/getsourcefilter.c: Likewise.
4264         * sysdeps/generic/setsourcefilter.c: Likewise.
4265         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
4266         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
4267         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
4269         * po/tr.po: Update from translation team.
4271 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
4273         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
4274         Reported by Paolo Bonzini.
4276 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
4278         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
4279         always_inline.
4280         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
4281         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
4283         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
4284         before including linux/atalk.h.
4286         * resolv/res_libc.c: Include atomic.h.
4288         * intl/finddomain.c (free_mem): Rename to...
4289         (_nl_finddomain_subfreeres): ... this.  Add
4290         __libc_freeres_fn_section.
4291         * intl/loadmsgcat.c (_nl_unload_domain): Add
4292         __libc_freeres_fn_section.
4293         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
4294         Add attribute_hidden.
4295         (_nl_findomain_subfreeres): New prototype.
4296         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
4298 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
4300         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
4301         test if the key is numeric or not.
4302         (group_keys): Likewise.
4304 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
4306         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
4307         struct group_filter, and GROUP_FILTER_SIZE.
4308         * include/sys/socket.h: Declare __getsockopt.
4309         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
4310         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
4311         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
4312         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
4314         * po/ko.po: Update from translation team.
4316 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
4318         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
4319         memset.
4320         (__hesiod_res_set): Free nsaddrs.
4322         * include/resolv.h (__res_maybe_init): Add prototype.
4323         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
4324         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
4325         * resolv/res_libc.c (__res_initstamp, lock): New variables.
4326         (res_init): Increase __res_initstamp.
4327         (__res_maybe_init): New function.
4328         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
4329         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
4330         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
4331         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4332         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
4333         _nss_dns_gethostbyaddr_r): Likewise.
4334         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
4335         _nss_dns_getnetbyaddr_r): Likewise.
4336         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
4337         gethostbyaddr): Likewise.
4338         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
4339         res_isourserver, res_sendsigned, res_update, res_search,
4340         res_querydomain): Likewise.
4341         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
4342         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
4343         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
4344         Likewise.
4346 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
4348         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
4349         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
4350         Reported by A. Guru <a.guru@sympatico.ca>.
4352         * po/sv.po: Update from translation team.
4353         * po/sk.po: Likewise.
4354         * po/pl.po: Likewise.
4356 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
4357             Ulrich Drepper  <drepper@redhat.com>
4359         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
4360         characters than necessary.
4362 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
4364         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
4365         * wcsmbs/tst-mbsrtowcs.c: New file.
4367         * po/fr.po: Update from translation team.
4369 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
4371         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
4372         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
4374 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
4376         * po/nl.po: Update from translation team.
4378         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
4379         numeric address formats inet_addr knows.
4380         (getaddrinfo): Allow AI_NUMERICSERV flag.
4381         If neither IPv4 nor IPv6 interface is present we cannot make any
4382         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
4383         string is not just a number.  Remove useless freeaddrinfo call.
4384         * resolv/netdb.h (AI_NUMERICSERV): Define.
4385         Based on a patch by a.guru@sympatico.ca.
4387 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
4389         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
4390         instead of trying to initialize some, but not all, fields one by
4391         one.
4392         * stdio-common/printf_size.c (printf_size): Initialize fb_info
4393         structure with *info instead of trying to initialize some, but not
4394         all, fields from it.
4396         * nscd/connections.c (handle_request): Check if req->type is in
4397         LASTDBREQ .. LASTREQ range instead of req.
4399         * locale/programs/linereader.c (lr_create): Initialize
4400         lr->return_widestr to 0.
4402         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
4403         (free_mem): Call free_slotinfo just once.
4405         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
4406         of NULL.
4408         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
4409         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
4410         (free_mem): Rename to _nl_locale_subfreeres.
4411         * iconv/gconv_db.c: Include locale/localeinfo.h.
4412         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
4413         (free_mem): Call _nl_locale_subfreeres.
4414         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
4416 2004-08-04  Roland McGrath  <roland@frob.com>
4418         * Makeconfig ($(common-objpfx)config.status):
4419         Fix typo: $(add_ons) -> $(add-ons).
4420         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
4421         include, use black magic to get it set to an add-on's name during the
4422         include of the add-on's Makeconfig.
4424         * configure.in: Use variable name `libc_add_on' when sourcing add-on
4425         configure fragments, so they can refer to this.
4426         * configure: Regenerated.
4428 2004-08-04  Roland McGrath  <roland@redhat.com>
4430         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
4431         (do_test): Bump sleep to three seconds.
4432         (sigchld, check_sigchld): New functions.
4433         (do_test): Handle SIGCHLD and check for getting the right details.
4435         * posix/tst-waitid.c (do_test): Kill the child process when bailing
4436         out early on some failure.
4437         [WCONTINUED]: Test WCONTINUED functionality.
4439 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
4441         * nscd/connections.c (handle_request): Print more descriptive
4442         message for invalid request types.
4444 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
4446         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
4447         Always treat high as highest number in range + 1.
4448         * iconvdata/ibm943.c (BODY): Likewise.
4450 2004-07-31  Bruno Haible  <bruno@clisp.org>
4452         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
4453         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
4454         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
4455         __jisx0213_from_ucs_level2): Regenerated.
4456         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
4457         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
4458         JISX0213_1_set.
4459         (JISX0213_1_2004_set): New enum value.
4460         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
4461         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
4462         when possible, ESC $ ( Q when needed.
4463         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
4464         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
4465         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
4466         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
4467         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
4468         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
4470 2004-07-22  Bruno Haible  <bruno@clisp.org>
4472         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
4474 2004-07-29  David S. Miller  <davem@redhat.com>
4476         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
4477         better for smaller than 256 byte copies.  Also, use only one
4478         unrolled loop instead of two for the large copy case.
4480 2004-07-30  Richard Henderson  <rth@redhat.com>
4482         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
4483         * sysdeps/alpha/remq.S: Likewise.
4484         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
4485         new division algorithms in divl.S and divq.S respectively.
4487 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
4489         * timezone/asia: Update from tzdata2004b.
4490         * timezone/backward: Likewise.
4491         * timezone/europe: Likewise.
4492         * timezone/iso3166.tab: Likewise.
4493         * timezone/leapseconds: Likewise.
4494         * timezone/northamerica: Likewise.
4495         * timezone/southamerica: Likewise.
4496         * timezone/zone.tab: Likewise.
4498         * timezone/private.h: Update from tzcode2004b.
4499         * timezone/zic.c: Likewise.
4501 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
4503         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
4504         under the name the user provided.
4505         * nscd/pwdcache.c (cache_addpw): Likewise.
4507 2004-07-26  Roland McGrath  <roland@redhat.com>
4509         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
4510         call to __waitpid.
4512 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
4514         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
4515         memory leaks.
4517         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
4518         new buffer at the right time.
4519         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
4521 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
4523         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
4524         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
4525         * inet/Makefile (routines): Likewise.
4526         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
4527         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
4528         * sysdeps/generic/getipv4sourcefilter.c: New file.
4529         * sysdeps/generic/setipv4sourcefilter.c: New file.
4530         * sysdeps/generic/getsourcefilter.c: New file.
4531         * sysdeps/generic/setsourcefilter.c: New file.
4533 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
4535         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
4536         for POWER4 machines.
4538 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
4540         [BZ #274]
4541         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
4542         BITS_PER_MP_LIMB shifting up.
4543         * stdlib/tst-strtod.c (main): Add new tests.
4545 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
4547         [BZ #282]
4548         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
4549         _IO_no_init.  Remove wd from struct locked_FILE.
4550         (_IO_wproc_jumps): Remove.
4551         Reported by Andrew Josey <a.josey@opengroup.org>.
4552         * stdio-common/Makefile (tests): Add tst-popen.
4553         * stdio-common/tst-popen.c: New test.
4555 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
4557         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
4558         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
4559         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
4560         Reported by Andrew Josey.
4562         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
4564         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
4565         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
4566         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
4567         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
4568         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
4569         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
4570         useconds_t if __USE_XOPEN2K is defined.
4571         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
4572         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
4574 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
4576         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4577         allocate memory for large temporary variables with alloca.
4579 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
4581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
4582         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
4584         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
4585         pointer and zero length.
4587 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
4589         * nscd/cache.c (prune_cache): Print correct list when debugging.
4591 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
4593         * resolv/res_libc.c (res_init): If RES_INIT is set and
4594         _res.nscount > 0, call __res_nclose and free nsaddrs.
4595         * resolv/Makefile: Add rules to build and run tst-leaks2.
4596         * resolv/tst-leaks2.c: New test.
4598 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
4600         * intl/libintl.h: Don't define macros for C++.
4601         Patch by Goto Masanori.
4603 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
4605         [BZ #276]
4606         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
4607         * inet/arpa/inet.h: Likewise.
4608         * resolv/inet_addr.c: Likewise.
4610 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
4612         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
4614 2004-07-20  Roland McGrath  <roland@redhat.com>
4616         * configure.in (add_ons): Substitute this.  Move $add_ons handling
4617         after AC_CANONICAL_HOST and default setting of $machine et al.
4618         Don't set $subdirs from $add_ons.
4619         Instead, source add-on/configure fragments early on.
4620         (base_machine): If it's already set, don't set it based on $machine.
4621         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
4622         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
4623         (sysnames): Try appending add-on names after machine as well.
4624         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
4625         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
4626         files in $(add_ons) dirs.
4628         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
4629         definition, now in netinet/in.h proper.
4631 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
4633         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
4634         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
4635         the build tree before just-installed ones.
4637         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
4638         include sgidefs.h where appropriate.
4639         * sysdeps/mips/dl-machine.h: Likewise.
4640         * sysdeps/mips/machine-gmon.h: Likewise.
4641         * sysdeps/mips/bits/setjmp.h: Likewise.
4642         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
4643         * sysdeps/mips/mips64/__longjmp.c: Likewise.
4644         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
4645         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4646         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4647         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4648         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
4649         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4650         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4651         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
4652         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
4653         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4654         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
4655         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
4656         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
4657         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
4658         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4659         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4660         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
4661         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
4662         Likewise.
4663         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
4664         Likewise.
4666         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
4667         _dl_lookup_symbol_x.
4668         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
4670 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
4672         * inet/netinet/in.h: Define struct ip_mreq and struct
4673         ip_mreq_source.
4674         Define struct group_req and struct group_source_req.
4675         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
4676         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
4677         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
4678         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
4679         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
4680         MCAST_MSFILTER.
4681         Define MCAST_INCLUDE and MCAST_EXCLUDE.
4683         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
4685 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
4687         [BZ #258]
4688         * math/libm-test.inc (max_value, min_value): New variables.
4689         (initialize): Initialize them.
4690         (pow_test): Add a couple of new tests.
4691         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
4692         exception if |y| >= 1U<<31.
4693         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
4694         exception if |y| >= 1L<<63.
4695         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
4696         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
4697         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4699 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
4701         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
4702         lookup a bit.
4703         * nscd/grpcache.c (cache_addgr): Likewise.
4704         * nscd/hstcache.c (cache_addhst): Likewise.
4706 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
4708         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
4709         * sysdeps/s390/s390-64/elf/start.S: Likewise.
4711 2004-04-16  Andreas Schwab  <schwab@suse.de>
4713         * sysdeps/ia64/bits/atomic.h: Cast first argument of
4714         __sync_bool_compare_and_swap_si correct to void*.
4716 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
4718         * iconv/iconv_prog.c (print_known_names): Make machine-readable
4719         output even less cluttered.
4721 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
4723         [BZ #269]
4724         * setjmp/Makefile (tests): Add bug269-setjmp.
4725         * setjmp/bug269-setjmp.c: New file.
4726         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
4727         Store R2 from jmpbuf in callers TOC save area.
4728         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
4729         Store R2 in TOC save area.
4730         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
4731         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
4733 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
4735         * locale/newlocale.c: Include bits/libc-lock.h.
4736         (__libc_setlocale_lock): Extern decl.
4737         (__newlocale): Use it.
4738         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
4740 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
4742         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
4743         static inline __attribute ((always_inline)).  Don't define if
4744         NO_CANCELLATION.
4745         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
4746         __fcntl_nocancel.
4747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
4748         Remove static inline __attribute ((always_inline)).  Don't define
4749         if NO_CANCELLATION.
4750         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
4751         __fcntl_nocancel.
4752         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
4753         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
4754         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
4755         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
4757         [BZ #262]
4758         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
4759         for main.
4760         * elf/Makefile: Add rules to build and run tst-pie1.
4761         * elf/tst-pie1.c: New test.
4762         * elf/tst-piemod1.c: New file.
4764 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
4766         [BZ #266]
4767         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
4768         long.  Rewrite example code so that it takes into account l64a output
4769         shorter than 6 characters.
4770         Reported by Julian Graham <julian.graham@aya.yale.edu>.
4772 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
4774         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
4775         (elf_machine_rela_relative): Remove unused valiable.
4777 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4779         [BZ #263]
4780         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
4781         outside the buffer if the read returns 0.  __strtod_l can't set
4782         endp to NULL, so remove a test for that case.
4784 2004-07-12  Roland McGrath  <roland@redhat.com>
4786         * manual/signal.texi (Interrupted Primitives): Make clear that
4787         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
4788         it to -1 to define "failure".
4790 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
4792         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
4793         ldsodefs.h.
4794         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
4795         already defined.
4796         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
4797         already defined.
4799         * elf/rtld.c (print_statistics): Mark with noinline attribute.
4800         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
4801         attribute.
4802         (elf_machine_rel_relative): Likewise.
4804         * include/string.h: Add libc_hidden_proto for __strtok_r and
4805         __strsep_g.
4806         * sysdeps/generic/strsep.c: Add libc_hidden_def.
4807         * sysdeps/generic/strtok_r.c: Likewise.
4808         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
4809         * sysdeps/i386/i686/strtok_r.S: Likewise.
4810         * sysdeps/x86_64/strtok_r.S: Likewise.
4812 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
4814         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
4815         instead of internal-linkage, such that we can alias to it.
4816         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
4818 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
4820         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
4821         to the front for gcc 3.5+.
4822         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
4824         * include/fcntl.h: Don't declare __fcntl_nocancel here if
4825         NO_CANCELLATION is defined.
4827 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
4829         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
4830         GL(dl_nloaded) into it while still in critical section.
4832 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
4834         * nss/getent.c (print_group, print_passwd): Use %lu format for
4835         `unsigned long int' values.
4837         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
4838         error typos in goto statements.
4840 2004-07-07  Roland McGrath  <roland@frob.com>
4842         * Makefile (dist-separate): New variable.
4843         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
4844         Depend on their configure files.
4845         (dist-do-separate-dirs): New canned sequence to do that.
4846         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
4847         (dist): Depend on add-on tar files based on $(dist-separate).
4848         (dist-version): New variable, default to $(version).
4849         (tag-for-dist, dist): Use that in place of $(version) in deps.
4851 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
4853         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
4854         before the loop running the destructors.
4856 2004-05-18  Andreas Schwab  <schwab@suse.de>
4858         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
4859         the first segment for mprotect, not l_text_end.
4861 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
4863         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
4864         Remove hashfraction variable.  Make kcount and kcountsize local
4865         variables.
4867         * elf/dl-init.c: Don't define and use _dl_starting_up if
4868         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
4869         * elf/dl-support.c: Likewise.
4870         * elf/rtld.c: Likewise.
4871         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
4872         if HAVE_INLINED_SYSCALLS is defined.
4873         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
4874         here.
4875         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
4876         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
4877         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
4879         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
4880         is needed to stop profiling.
4881         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
4882         profile make sure it cannot be unloaded.
4884         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
4886         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
4887         support, make sure the helper function is inlined.
4888         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4889         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4890         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
4893 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
4895         * include/string.h (ffs): Add libc_hidden_builtin_proto.
4896         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
4897         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
4898         * sysdeps/alpha/ffs.S (ffs): Likewise.
4899         * sysdeps/s390/ffs.c (ffs): Likewise.
4900         * sysdeps/powerpc/ffs.c (ffs): Likewise.
4901         * sysdeps/i386/ffs.c (ffs): Likewise.
4902         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
4903         * sysdeps/m68k/ffs.c (ffs): Likewise.
4904         * sysdeps/generic/ffs.c (ffs): Likewise.
4905         * sysdeps/m88k/ffs.c (ffs): Likewise.
4906         * sysdeps/am29k/ffs.c (ffs): Likewise.
4907         * sysdeps/i960/ffs.c (ffs): Likewise.
4908         * sysdeps/x86_64/ffs.c (ffs): Likewise.
4910         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
4912         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
4913         __libc_siglongjmp): Remove symbol_version.
4914         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
4915         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
4916         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
4917         unconditionally.
4918         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
4919         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
4920         strong_alias instead of default_symbol_version, remove
4921         symbol_version.
4922         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
4923         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
4924         into strong_alias to __novmxsetjmp.
4925         (__vmx__setjmp): Similarly with __vmxsetjmp.
4926         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
4927         default_symbol_version and symbol_version.
4928         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
4929         into strong_alias to __novmxsetjmp.
4930         (__vmx__setjmp): Similarly with __vmxsetjmp.
4931         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
4932         default_symbol_version and symbol_version.
4934         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
4936 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
4938         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
4940 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
4942         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
4943         instead of libc_hidden_def.
4945 2004-07-01  Roland McGrath  <roland@redhat.com>
4947         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
4949         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
4950         $(..)shlib-versions file to last in deps list.  This lets add-ons give
4951         more-specific matches that override defaults in the top-level file.
4953         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
4954         already set, don't set it or libc_cv_gcc_unwind_find_fde.
4955         * sysdeps/unix/sysv/linux/configure: Regenerated.
4957 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4959         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
4960         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
4961         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
4962         * sysdeps/s390/fpu/e_sqrt.c: New file.
4963         * sysdeps/s390/fpu/e_sqrtf.c: New file.
4964         * sysdeps/s390/Implies: New file.
4965         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
4966         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
4967         * sysdeps/s390/s390-64/Implies: Likewise.
4969 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
4971         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
4972         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
4974         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
4975         DO_CALL (exit, 1) instead of branching to _exit.
4976         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
4977         Likewise.
4979         * sysdeps/s390/fpu/bits/mathinline.h: New file.
4981         * include/glob.h (glob64): Add libc_hidden_proto.
4982         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
4983         * sysdeps/gnu/glob64.c (glob64): Likewise.
4984         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
4986 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
4988         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
4989         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4991 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
4993         * sysdeps/powerpc/fpu/s_lround.c: Removed.
4994         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
4995         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
4996         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
4997         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
4998         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
4999         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
5000         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
5001         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
5002         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
5003         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
5004         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
5005         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
5006         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
5007         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
5008         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
5010 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
5012         * include/net/if.h: Handle if_nameindex and if_freenameindex with
5013         libc_proto_hidden.
5014         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
5015         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
5016         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
5017         netlink if possible.  Fall back on ioctl method if necessary.
5018         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
5020         * include/unistd.h: Declare __truncate.
5021         * sysdeps/generic/truncate.c: Also define __truncate.
5022         * sysdeps/mach/hurd/truncate.c: Likewise.
5023         * sysdeps/unix/common/syscalls.list: Likewise.
5024         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
5026 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
5028         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
5029         info.extra.  Patch by Marcus Meissner.
5031 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5033         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5034         Fix branch offset for a PLT entry.
5036 2004-06-20  Jim Meyering  <jim@meyering.net>
5038         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
5039         documentation.
5041 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
5043         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
5044         Workaround for [BZ #232].
5046         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
5048 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
5050         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
5051         in ucs2/ucs2reverse when unaligned memory access is attempted.
5052         * iconv/tst-iconv5.c: New file.
5053         * iconv/Makefile (tests): Add tst-iconv5.
5055 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
5057         * inet/bug-if1.c: Include <string.h>.
5059 2004-06-19  Roland McGrath  <roland@redhat.com>
5061         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
5062         under this macro name instead.
5063         [NO_DO_WAITID]: Don't define it at all.
5064         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
5065         defined, then return ENOTSUP for combinations of selection bits other
5066         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
5068         * posix/tst-waitid.c: New file.
5069         * posix/Makefile (tests): Add it.
5071 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
5073         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
5075         [BZ #231]
5076         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
5077         relocation in librt.so.
5079         [BZ #230]
5080         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
5081         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
5083 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
5085         * elf/ldconfig.c (add_dir): Take chroot into account.
5086         Based on changes by HJ Lu and Hideki Iwamoto.
5088         * nscd/connections.c (invalidate_cache): If the host cache has to
5089         be invalidated, re-read resolv.conf.
5091         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
5092         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
5093         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
5094         if RES_NOIP6DOTINT flag is set.
5095         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5097 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
5099         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
5100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
5101         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
5102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
5103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
5105         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
5106         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
5108 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
5110         [BZ #231]
5111         * sysdeps/unix/alpha/Makefile: New file.
5112         * sysdeps/unix/alpha/rt-sysdep.S: New file.
5113         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
5115 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
5117         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
5118         determine the canonical name only for the first returned entry.
5120         * inet/bug-if1.c: New file.
5121         * inet/Makefile (tests): Add bug-if1.
5123 2004-06-18  Roland McGrath  <roland@frob.com>
5125         * Makerules (compile-mkdep-flags): Add -MT $@.
5127         * Makefile (dist, tag-for-dist): New targets.
5128         (files-for-dist, tag-of-stem): New variables.
5129         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
5130         Make tar files using cvs export.
5131         (%.bz2, %.gz, tag-%): New pattern rules.
5132         (distribute): Variable removed.
5133         (+subdir_targets): Remove distinfo targets.
5134         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
5135         (rpm/%): Pattern rule removed.
5136         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
5137         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
5138         Targets removed.
5139         * Makerules (dist, subdir_distinfo): Targets removed.
5140         ($(objpfx)distinfo): Depend on $(distribute).
5141         * Make-dist: File removed.
5143         * NEWS: Fix a typo.  Update bug-reporting instructions.
5145 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
5147         * sysdeps/unix/sysv/linux/sched_setaffinity.c
5148         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
5149         cpuset is wrongly set.
5151 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5153         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
5154         for POWER4 machines.
5156 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
5158         [BZ #218]
5159         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
5160         in a local variable, point rp to that local variable afterwards.
5162 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
5164         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
5165         cases properly.
5167 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
5169         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
5170         error value for unknown interface. [BZ #198]
5172 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
5174         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
5175         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
5176         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
5177         the asm uses as its input, either of size __n where __n is known or
5178         0xfffffff.
5179         (strstr): Add "memory" clobber.
5181 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
5183         [BZ #219]
5184         * nss/nsswitch.c (free_mem): Don't try to close a library handle
5185         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
5187 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
5189         [BZ #217]
5190         * debug/xtrace.sh: Fix typo in error diagnostics.
5192 2004-06-14  Andreas Schwab  <schwab@suse.de>
5194         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
5195         failed.
5197 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
5200         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
5201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
5202         that clobbers r19.
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
5204         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
5205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
5206         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
5207         Fix pasto that overflowed sigcontext.v_reserve.
5208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
5209         Fix pasto that clobbers r19.
5210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
5211         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
5212         overflowed sigcontext.v_reserve.
5214 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5216         [BZ #150]
5217         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
5218         instead of ".gnu.linkonce.ro." as the prefix for linkonce
5219         read-only section name.
5221 2004-06-14  Richard Henderson  <rth@redhat.com>
5223         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
5224         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
5226 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
5228         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
5229         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
5230         (__backtrace): Don't call init #ifndef SHARED.
5231         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
5232         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
5233         (__backtrace): Don't call init #ifndef SHARED.
5234         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
5235         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
5236         (__backtrace): Don't call init #ifndef SHARED.
5238 2004-06-11  Roland McGrath  <roland@redhat.com>
5240         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
5241         From Krzysztof Halasa <khc@pm.waw.pl>.
5243 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
5245         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
5247 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
5249         [BZ #199]
5250         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
5251         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
5253         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
5254         fails.  Avoid memory leak if realloc fails.
5256 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
5258         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
5259         NULL, "" or contains '=' character in it.  Reported by
5260         Michael T Kerrisk <mtk-lists@gmx.net>.
5261         * stdlib/tst-environ.c: Include errno.h.
5262         (main): Add tests for these arguments to setenv/unsetenv.
5264 2004-06-07  Roland McGrath  <roland@frob.com>
5266         * NEWS: Update bug reporting instructions.  Fix some typos.
5268 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
5270         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
5271         * stdio-common/_itoa.c: Add _itoa implementation.
5273         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
5274         to also send request.  Add parameter to allow this.
5275         Change callers.
5276         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
5277         * nscd/nscd_getpw_r.c: Likewise.
5278         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
5280 2004-06-05  Andreas Jaeger  <aj@suse.de>
5282         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5283         Handle more than 6 args correctly.  Based on a patch by Masahide
5284         Washizawa <washi@jp.ibm.com>.
5286 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
5288         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
5289         in all places, not __nss_not_use_nscd_group.
5290         Reported by Philippe Gregoire.
5292 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
5294         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
5296 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
5298         * argp/argp-help.c (__argp_error, __argp_failure): Check result
5299         of __asprintf call and don't use string if it failed.
5300         * stdio-common/psignal.c (psignal): Likewise.
5301         * locale/programs/localedef.c (more_help): Likewise.
5302         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
5303         arg_bool, parse_line): Check result of __asprintf calls and
5304         don't use string if they failed.
5305         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
5306         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
5307         call and exit if it failed.
5309 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
5311         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
5312         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
5313         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
5314         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
5315         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
5316         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
5317         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
5318         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
5319         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
5320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
5321         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
5323 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
5325         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
5326         -momit-leaf-frame-pointer.
5328         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
5329         #ifdef AF_PACKET.
5331         * sysdeps/mach/hurd/getcwd.c
5332         (_hurd_canonicalize_directory_name_intern): Only realloc when
5333         size is <= 0.
5335         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
5336         isn't page aligned.
5338         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
5339         new size.
5341         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
5342         __libc_write and __libc_lseek64.
5344 2004-05-29  Roland McGrath  <roland@redhat.com>
5346         * elf/Makefile (shared-only-routines): Add dl-caller.
5348 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
5350         * sysdeps/powerpc/configure.in: New file.
5352 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
5354         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
5355         "altivec" to enable VMX instructions.
5356         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5357         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
5358         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
5359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
5360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
5361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
5362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
5363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
5364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5366 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
5368         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
5369         __builtin_expm1l for GCC 3.5+.
5370         (__expl): Define using __builtin_expl for GCC 3.4+.
5371         (exp, expf, expl): Don't define for GCC 3.4+.
5372         (tan, tanf, tanl): Don't define for GCC 3.5+.
5373         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
5374         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
5375         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
5376         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
5377         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
5378         for GCC 3.4+.
5379         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
5380         Don't define for GCC 3.5+.
5381         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
5382         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
5383         define for GCC 3.5+.
5384         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
5385         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
5386         define for GCC 3.2+.
5388 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
5390         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
5391         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
5392         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
5393         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
5394         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
5395         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
5396         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
5397         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
5398         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
5399         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
5400         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
5401         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
5402         libc_hidden_builtin_def if MEMPCPY_P.
5403         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
5404         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
5405         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
5406         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
5407         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
5409 2004-05-26  Roland McGrath  <roland@frob.com>
5411         * sysdeps/generic/bits/in.h
5412         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
5413         These are long obsolete in BSD systems where they originated.
5414         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
5416 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
5418         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
5419         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
5420         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
5421         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
5422         constant '\0' and first argument is not constant.
5423         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
5424         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
5425         For GCC 3.2+ use __builtin_strncpy.
5426         (strncat): For GCC 3.2+ use __builtin_strncat.
5427         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
5428         constant.
5429         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
5430         if both arguments are constant.
5432 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
5434         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
5435         mapped addresses in gethostbyaddr.
5437 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
5439         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
5440         flags parameter, convert afp to simple int parameter.  Adjust code.
5441         typep was never != NULL and flags therefore also unused.  *afp is
5442         never modified.
5443         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
5444         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
5445         handling for __nss_hostname_digits_dots calls.
5446         * nss/getXXbyYY_r.c: Likewise.
5448         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
5450 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
5452         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
5453         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
5454         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
5455         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
5456         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
5457         implementation from w_sqrt.c.
5458         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
5459         implementation from w_sqrtf.c.
5460         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
5461         using inline __ieee754_sqrt().
5462         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
5463         using inline __ieee754_sqrtf().
5464         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
5465         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
5466         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
5467         PPC_FEATURE_*  independent of __ASSEMBLER__.
5469 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
5471         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
5472         include.
5473         (aio_start_notify_thread): Define if not defined.
5474         (notify_func_wrapper): Use it.
5475         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
5476         include.
5477         (aio_create_helper_thread): Define if not defined.
5478         (__aio_create_helper_thread): New function.
5479         (__aio_enqueue_request): Use aio_create_helper_thread.
5481         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
5482         (struct ypresp_all_data): New type.
5483         (__xdr_ypresp_all): Change second argument to
5484         struct ypresp_all_data *.  Replace ypall_foreach and
5485         ypall_data with objp->foreach and objp->data.
5486         (yp_all): Remove status variable, add data.  Replace
5487         all uses of status with data.status.  Initialize data.foreach
5488         and data.data instead of ypall_foreach and ypall_data.
5490 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
5492         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
5493         in l_flags_1, not in l_flags.
5495 2004-04-10  Robert Millan  <robertmh@gnu.org>
5497         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
5498         with sysdeps/generic/bits/in.h.
5500 2004-05-25  Roland McGrath  <roland@frob.com>
5502         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
5503         GCC GPL to standard glibc LGPL.
5505 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
5507         * manual/string.texi (Copying and Concatenation): Fixed second
5508         concat example.
5509         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
5511 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
5513         * malloc/obstack.c: Don't allow linking with _obstack.
5515 2004-05-23  Andreas Schwab  <schwab@suse.de>
5517         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
5518         of separate "m" constraints.
5520 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
5522         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
5523         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
5524         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
5526 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5528         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
5529         Add comment explaining why libc still defines it.
5531 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5533         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
5534         obstack_alignment_mask, obstack_alloc, obstack_base,
5535         obstack_blank, obstack_blank_fast, obstack_chunk_size,
5536         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
5537         obstack_grow0, obstack_init, obstack_int_grow,
5538         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
5539         obstack_next_free, obstack_object_size, obstack_ptr_grow,
5540         obstack_ptr_grow_fast, obstack_room): Remove declarations of
5541         nonexistent functions.
5543 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
5545         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
5546         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
5547         [PIC]: Redundent for powerpc64, removed.
5548         (ENTRY): Generate size and alignment for opd entry.
5549         (EALIGN): Generate size and alignment for opd entry.
5550         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
5551         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
5553 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
5555         * misc/regexp.h: Say the functions have been withdrawn.
5557         * wcsmbs/tst-wcpncpy.c: Add more tests.
5559 2004-05-18  Roland McGrath  <roland@frob.com>
5561         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
5562         standard glibc LGPL.
5563         * sysdeps/generic/unwind-dw2.c: Likewise.
5564         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
5565         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
5566         * sysdeps/generic/unwind-pe.h: Likewise.
5568 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
5570         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
5571         MONTENEGRO" which have taken over the code 819.  Patch from
5572         Danilo Segan. [BZ #40]
5574 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
5576         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5577         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
5578         __sparc_get_pic_l7.
5580 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
5582         * catgets/gencat.c: Update bug reporting instructions.
5583         * csu/version.c: Likewise.
5584         * debug/catchsegv.sh: Likewise.
5585         * debug/pcprofiledump.c: Likewise.
5586         * debug/xtrace.sh: Likewise.
5587         * elf/ldd.bash.in: Likewise.
5588         * iconv/iconv_prog.c: Likewise.
5589         * iconv/iconvconfig.c: Likewise.
5590         * locale/programs/locale.c: Likewise.
5591         * locale/programs/localedef.c: Likewise.
5592         * login/programs/pt_chown.c: Likewise.
5593         * malloc/memusage.sh: Likewise.
5594         * malloc/memusagestat.c: Likewise.
5595         * malloc/mtrace.pl: Likewise.
5596         * manual/crypt.texi: Likewise.
5597         * manual/install.texi: Likewise.
5598         * nss/makedb.c: Likewise.
5600 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
5602         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
5603         CHECK_STATIC_TLS if sym != NULL.
5604         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5605         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
5607 2004-05-12  Andreas Schwab  <schwab@suse.de>
5609         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
5610         when translating.
5612 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5614         * Rules (xtests): Depend on tests.
5616 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
5618         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
5619         count is negative, yet write_ptr < write_end.
5620         (_IO_default_xsgetn): Avoid one underflow per char if count is
5621         negative, yet read_ptr < read_end.
5623 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
5625         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
5626         equal to TAB3.
5628 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
5630         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
5631         call.
5633 2004-05-10  Roland McGrath  <roland@frob.com>
5635         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
5636         (__hurd_directory_name_split): Likewise.
5638 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
5640         * po/fr.po: Update from translation team.
5642 2004-05-10  Andreas Jaeger  <aj@suse.de>
5644         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5645         Correctly compute alignment.
5646         Patch by Michael Matz <matz@suse.de>.
5648 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
5650         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
5651         * sysdeps/posix/sigpause.c: Likewise.
5652         * signal/signal.h: Don't define sigpause macro unless needed.
5654 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
5656         * configure.in (libc_cv_libgcc_s_suffix): New check.
5657         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
5658         * config.make.in (libgcc_s_suffix): Set.
5659         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
5661 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
5663         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
5665 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
5667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
5668         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
5669         Load argument values into temporary variables.
5670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
5671         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
5672         Likewise.
5674 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
5676         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
5677         need to be compiled with exceptions.
5679 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
5681         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
5682         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
5684         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
5685         realloc cannot fail.
5687         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
5688         be expanded.
5690         * nis/nis_table.c: Clean up memory handling.
5691         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
5692         * nis/nis_removemember.c (nis_removemember): Add comment
5693         explaining use of realloc.
5695         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
5696         (carg): Likewise.
5697         Patch by Lev S Bishop <lev.bishop@yale.edu>.
5699         * math/bug-tgmath1.c (main): Test fabs and carg as well.
5701 2004-05-06  Richard Henderson  <rth@redhat.com>
5703         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
5704         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
5705         * sysdeps/unix/sysv/linux/alpha/Versions: Export
5706         __libc_alpha_cache_shape as a private symbol.
5707         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
5708         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
5710 2004-05-06  Richard Henderson  <rth@redhat.com>
5712         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
5713         * sysdeps/alpha/divl.S: Use them.
5714         * sysdeps/alpha/divq.S: Likewise.
5715         * sysdeps/alpha/divqu.S: Likewise.
5716         * sysdeps/alpha/reml.S: Likewise.
5717         * sysdeps/alpha/remq.S: Likewise.
5718         * sysdeps/alpha/remqu.S: Likewise.
5720 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
5722         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
5723         (cimag): Use it.
5724         (creal): Likewise.
5725         * math/Makefile (tests): Add bug-tgmath1.
5726         * math/bug-tgmath1.c: New file.
5728 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
5730         * sysdeps/alpha/atomicity.h: Remove.
5731         * sysdeps/generic/atomicity.h: Remove.
5733 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
5735         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
5736         char *.
5738 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
5740         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
5741           rt-sysdep.
5742         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
5744         * sysdeps/ia64/strcat.c: New file.
5745         * sysdeps/ia64/strcat.S: Delete.
5747 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
5749         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
5750         defined.
5752 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
5754         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
5755         libc_hidden_proto.  Define to __GI___libm_error_support for
5756         assembly going into libc.so.
5757         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
5758         libc_hidden_def.
5760         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
5761         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
5763         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
5764         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
5765         if USE___THREAD.
5767 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
5769         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
5770         __USE_BSD or __USE_UNIX98.
5771         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5772         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5773         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
5774         Likewise.
5775         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5776         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5777         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5778         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
5779         Likewise.
5780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
5781         Likewise.
5782         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
5783         Likewise.
5784         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
5785         Likewise.
5786         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
5787         Likewise.
5788         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
5789         Likewise.
5790         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
5791         Likewise.
5792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
5793         Likewise.
5794         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
5795         Likewise.
5796         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
5797         Likewise.
5798         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
5799         Likewise.
5800         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
5801         Likewise.
5802         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
5803         Likewise.
5804         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5805         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
5806         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
5808 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
5810         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
5811         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
5812         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
5813         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
5814         * sysdeps/unix/sysv/linux/Versions (libc): Remove
5815         __libc_sigaction@@GLIBC_PRIVATE.
5816         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
5817         __modify_ldt@@GLIBC_PRIVATE.
5818         * socket/Versions (libc): Remove __libc_accept, __libc_send,
5819         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
5820         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
5821         * stdio-common/Versions (libc): Remove
5822         _itoa_upper_digits@@GLIBC_PRIVATE.
5823         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
5824         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
5825         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
5826         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
5827         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
5828         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
5829         __libc_lseek64 @@GLIBC_PRIVATE.
5831 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
5833         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
5834         check.
5836 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
5838         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
5839         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
5840         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
5841         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
5842         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
5843         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
5844         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
5845         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
5846         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
5847         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
5848         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
5849         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
5850         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
5851         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
5852         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
5853         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
5854         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
5855         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
5857         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
5858         mantissa for AIX long double format.
5859         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
5860         long double format.
5861         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
5862         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
5863         (_fpioconst_pow10): AIX long double format has same exponent range as
5864         double.
5865         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
5866         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
5867         as double.
5869 2004-04-23  Art Haas  <ahaas@airmail.net>
5871         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
5873 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
5875         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
5876         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
5877         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
5878         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
5879         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
5881 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
5883         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
5884         entries.
5886 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
5888         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
5889         prototypes and description [BZ #131].
5891         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
5892         Patch by Ed Catmur <ed@catmur.co.uk>.
5893         * string/tst-inlcall.c (main): Add test for strpbrk.
5895         [BZ #140]
5896         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
5897         include.
5898         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
5899         yet defined, #undef back after including linux/sysctl.h if defined
5900         here.
5901         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
5902         back after including linux/sysctl.h if defined here.
5904         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
5905         for single precision register, add it to __asm clobbers [BZ #139].
5906         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
5907         for single precision register, add it to __asm clobbers.
5908         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
5909         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
5910         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
5911         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
5913 2004-04-23  Andreas Schwab  <schwab@suse.de>
5915         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
5916         __attribute_used__.
5918 2004-04-22  Philip Blundell  <philb@gnu.org>
5920         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
5921         when calling _dl_signal_error.
5922         (elf_machine_rel): Likewise.
5924 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
5926         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
5927         and use it internally instead of __sigsetjmp.
5928         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
5929         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
5930         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
5931         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
5932         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
5933         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
5934         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
5935         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
5936         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
5937         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
5938         HIDDEN_JUMPTARGET for exit call.
5939         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
5940         _exit call.
5941         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
5942         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
5943         strcpy calls.
5945 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
5947         * posix/tst-chmod.c (do_test): Fix a typo.
5949         * elf/lateglobal.c (main): Fix error checks.
5950         Patch by Stephen Clarke <stephen.clarke@st.com>.
5952         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
5953         mention they have been added in ISO C99.
5954         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5956 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5958         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
5960 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
5962         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
5963         EACCES.
5965 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
5967         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
5968         handling change.
5969         * stdio-common/tst-sscanf.c (int_tests): Adjust.
5971         * nis/nss-nis.c: Include stdlib.h.
5973         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
5974         warning.
5975         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
5976         libc_hidden_builtin_def.
5978 2004-04-20  Jim Meyering  <jim@meyering.net>
5980         * misc/error.c (error_tail): Don't leak upon realloc failure.
5982 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5984         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
5985         Use RETURN_ADDRESS instead of __builtin_return_address.
5987 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
5989         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
5990         compact code.
5992 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
5994         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
5995         do input_error () instead of conv_error () and don't look at errno.
5996         Don't eat any whitespace before %% if skip_space == 0.
5997         * stdio-common/tst-sscanf.c (int_tests): New array.
5998         (main): Run int_tests.
6001 See ChangeLog.14 for earlier changes.