* iconv/gconv_int.h: Include <ctype.h> and <string.h>.
[platform/upstream/glibc.git] / ChangeLog
1 2005-04-05  Roland McGrath  <roland@redhat.com>
2
3         * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
4
5 2005-04-05  H.J. Lu  <hongjiu.lu@intel.com>
6
7         * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
8         (comment changes only).
9         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
10         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
11         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
12         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
13         * sysdeps/ia64/fpu/e_exp.S: Likewise.
14         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
15         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
16         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
17         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
18         * sysdeps/ia64/fpu/e_expf.S: Likewise.
19         * sysdeps/ia64/fpu/e_log.S: Likewise.
20         * sysdeps/ia64/fpu/e_logf.S: Likewise.
21         * sysdeps/ia64/fpu/e_pow.S: Likewise.
22         * sysdeps/ia64/fpu/e_powf.S: Likewise.
23         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
24         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
25         * sysdeps/ia64/fpu/libm_error.c: Likewise.
26         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
27         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
28         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
29         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
30         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
31         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
32         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
33         * sysdeps/ia64/fpu/s_cos.S: Likewise.
34         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
35         * sysdeps/ia64/fpu/s_erf.S: Likewise.
36         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
37         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
38         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
39         * sysdeps/ia64/fpu/s_erff.S: Likewise.
40         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
41         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
42         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
43         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
44         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
45         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
46         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
47         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
48         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
49
50 2005-04-05  Roland McGrath  <roland@redhat.com>
51
52         * scripts/config.guess: Update from master, timestamp='2005-03-24'.
53         * scripts/config.sub: Update from master, timestamp='2005-02-10'.
54
55 2005-04-04  David S. Miller  <davem@davemloft.net>
56
57         * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
58         * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
59         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
60         (elf_machine_runtime_setup): Test for dl_profile non-null.
61         * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
62         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
63         * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
64         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
65         (elf_machine_runtime_setup): Test for dl_profile non-null.
66         * sysdeps/sparc/bits/link.h: New file.
67         * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
68         La_sparc64_regs, La_sparc64_retval): New.
69         (struct audit_ifaces): Add sparc entries.
70         * elf/tst-auditmod1.c: Add sparc entries.
71
72 2005-03-27  Bruno Haible  <bruno@clisp.org>
73
74         * intl/tst-gettext3.c: New file.
75         * intl/tst-gettext3.sh: New file.
76         * intl/Makefile (distribute): Add tst-gettext3.sh.
77         (test-srcs): Add tst-gettext3.
78         (tests): Depend on tst-gettext3.out.
79         (tst-gettext3.out): New rule.
80         (CFLAGS-tst-gettext3.c): New variable.
81
82         Fix bug exposed by tst-gettext3.
83         * intl/gettextP.h (struct converted_domain): New type.
84         (struct loaded_domain): Remove the conv, conv_tab fields. Add
85         conversions, nconversions fields.
86         (_nl_init_domain_conv): Remove declaration.
87         (_nl_free_domain_conv): Remove declaration.
88         (_nl_find_msg): Add convert argument.
89         * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
90         (_nl_find_msg): Add convert argument. When a conversion to a different
91         charset is needed, create a new converted_domain element, instead of
92         throwing away the old converted translations.
93         (get_output_charset): New function.
94         * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
95         (_nl_free_domain_conv): Remove function.
96         (_nl_load_domain): Initialize the conversions array to empty. Use
97         _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
98         entry.
99         (_nl_unload_domain): Free the conversions array and its contents.
100
101         * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
102         (struct binding): Likewise.
103         * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
104         modifications.
105
106 2005-04-04  Jakub Jelinek  <jakub@redhat.com>
107
108         * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
109         of trying to encode uninitialized arglen.
110
111 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
112
113         * timezone/scheck.c: Update from tzcode2005h.
114         * timezone/tzfile.h: Likewise.
115         * timezone/zdump.c: Likewise.
116         * timezone/zic.c: Likewise.
117
118         * timezone/antarctica: Update from tzdata2005h.
119         * timezone/asia: Likewise.
120         * timezone/australasia: Likewise.
121         * timezone/etcetera: Likewise.
122         * timezone/europe: Likewise.
123         * timezone/northamerica: Likewise.
124         * timezone/southamerica: Likewise.
125         * timezone/leapseconds: Likewise.
126         * timezone/iso3166.tab: Likewise.
127
128 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
129
130         * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
131
132 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
133
134         * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
135         * wcsmbs/wctob.c (wctob): Likewise.
136         * wcsmbs/wchar.h (btowc): Add optimized inline function.
137         (wctob): Likewise.
138
139 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
140
141         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
142         equivalent, but shorter instructions.
143         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
144         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
145         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
146         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
147         * sysdeps/unix/x86_64/sysdep.S: Likewise.
148         * sysdeps/x86_64/strchr.S: Likewise.
149         * sysdeps/x86_64/memset.S: Likewise.
150         * sysdeps/x86_64/strcspn.S: Likewise.
151         * sysdeps/x86_64/strcmp.S: Likewise.
152         * sysdeps/x86_64/elf/start.S: Likewise.
153         * sysdeps/x86_64/strspn.S: Likewise.
154         * sysdeps/x86_64/dl-machine.h: Likewise.
155         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
156         * sysdeps/x86_64/bsd-setjmp.S: Likewise.
157         * sysdeps/x86_64/strtok.S: Likewise.
158
159 2005-03-30  H.J. Lu  <hongjiu.lu@intel.com>
160
161         * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
162         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
163         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
164         * sysdeps/ia64/fpu/e_acosh.S: Likewise.
165         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
166         * sysdeps/ia64/fpu/e_acos.S: Likewise.
167         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
168         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
169         * sysdeps/ia64/fpu/e_asin.S: Likewise.
170         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
171         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
172         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
173         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
174         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
175         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
176         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
177         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
178         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
179         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
180         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
181         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
182         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
183         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
184         * sysdeps/ia64/fpu/e_expf.S: Likewise.
185         * sysdeps/ia64/fpu/e_exp.S: Likewise.
186         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
187         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
188         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
189         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
190         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
191         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
192         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
193         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
194         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
195         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
196         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
197         * sysdeps/ia64/fpu/e_log2.S: Likewise.
198         * sysdeps/ia64/fpu/e_logf.S: Likewise.
199         * sysdeps/ia64/fpu/e_logl.S: Likewise.
200         * sysdeps/ia64/fpu/e_log.S: Likewise.
201         * sysdeps/ia64/fpu/e_powf.S: Likewise.
202         * sysdeps/ia64/fpu/e_powl.S: Likewise.
203         * sysdeps/ia64/fpu/e_pow.S: Likewise.
204         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
205         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
206         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
207         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
208         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
209         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
210         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
211         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
212         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
213         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
214         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
215         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
216         * sysdeps/ia64/fpu/libm_error.c: Likewise.
217         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
218         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
219         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
220         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
221         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
222         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
223         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
224         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
225         * sysdeps/ia64/fpu/libm_support.h: Likewise.
226         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
227         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
228         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
229         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
230         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
231         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
232         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
233         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
234         * sysdeps/ia64/fpu/s_cos.S: Likewise.
235         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
236         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
237         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
238         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
239         * sysdeps/ia64/fpu/s_erf.S: Likewise.
240         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
241         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
242         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
243         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
244         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
245         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
246         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
247         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
248         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
249         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
250         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
251         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
252         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
253         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
254         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
255         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
256         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
257         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
258         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
259         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
260         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
261         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
262         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
263         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
264         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
265         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
266         * sysdeps/ia64/fpu/s_logb.S: Likewise.
267         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
268         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
269         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
270         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
271         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
272         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
273         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
274         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
275         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
276         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
277         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
278         * sysdeps/ia64/fpu/s_round.S: Likewise.
279         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
280         * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
281         * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
282         * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
283         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
284         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
285         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
286         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
287         * sysdeps/ia64/fpu/s_tan.S: Likewise.
288         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
289         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
290         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
291         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
292         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
293         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
294
295         * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
296         * sysdeps/ia64/fpu/libm_error_codes.h: New file.
297
298         * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
299         2005-03-21.
300         * sysdeps/ia64/fpu/import_file.awk: Likewise.
301         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
302         * sysdeps/ia64/fpu/Makefile: Likewise.
303
304 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
305
306         * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
307         avoid calling mbsrtowcs twice.
308
309 2005-03-29  Roland McGrath  <roland@redhat.com>
310
311         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
312         function, inline broken out of ...
313         (DL_SYSDEP_OSCHECK): ... here.  Use that.
314         Do the discovery and set GLRO(dl_osversion) if successful,
315         if __LINUX_KERNEL_VERSION <= 0.
316         * elf/dl-load.c: Don't include dl-osinfo.h here.
317
318 2005-03-29  Alfred M. Szmidt  <ams@gnu.org>
319
320         * manual/install.texi (Tools for Compilation): GNU binutils 2.15
321         is now needed.
322
323 2005-03-19  Bruno Haible  <bruno@clisp.org>
324
325         * intl/dcigettext.c (struct known_translation_t): Change type of
326         domainname field to 'const char *'.
327         (DCIGETTEXT): Remove const-cast.
328
329 2005-03-29  Thorsten Kukuk  <kukuk@suse.de>
330
331         [BZ #661]
332         * grp/initgroups.c (internal_getgrouplist): Check if we have
333         enough space before adding the primary group to the list.
334
335         * posix/tst-execle1.c (do_test): Fix execle arguments.
336         * posix/tst-execle2.c (do_test): Likewise.
337
338 2005-03-28  Roland McGrath  <roland@redhat.com>
339
340         * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
341         Reported by Mark Mitchell <mark@codesourcery.com>.
342         * Versions.def (libm): Define GLIBC_2.4 set.
343         * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
344         * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
345         * sysdeps/ia64/Versions: Likewise.
346         * sysdeps/m68k/Versions: Likewise.
347         * sysdeps/sparc/sparc64/Versions: Likewise.
348         * sysdeps/x86_64/Versions: New file.
349         * sysdeps/mips/mips64/Versions: New file.
350
351         * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
352         [__USE_GNU] (NL_LOCALE_NAME): New macro.
353         * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
354         return locale name string for the category.
355
356 2005-03-25  Jakub Jelinek  <jakub@redhat.com>
357
358         * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
359         <wcstol_l.c>.
360
361 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
362
363         * sysdeps/mips/atomicity.h: Remove unused file.
364         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
365         * sysdeps/mips/dl-tls.h: New file.
366         * sysdeps/mips/libc-tls.c: New file.
367         * sysdeps/mips/tls-macros.h: New file.
368         * sysdeps/mips/bits/atomic.h: New file.
369         * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
370         * sysdeps/mips/elf/configure.in: New file.
371         * sysdeps/mips/elf/configure: Generated.
372         * sysdeps/mips/sys/asm.h: New file.
373         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
374         * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
375         clone support.
376         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
377         (INTERNAL_SYSCALL_NCS): New.
378         (INTERNAL_SYSCALL): Update for non-constant support.
379         (internal_syscall0): Likewise.
380         (internal_syscall1): Likewise.
381         (internal_syscall2): Likewise.
382         (internal_syscall3): Likewise.
383         (internal_syscall4): Likewise.
384         (internal_syscall5): Likewise.
385         (internal_syscall6): Likewise.
386         (internal_syscall7): Likewise.
387         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
388         Update to match the kernel.
389         (SIGEV_CALLBACK): Likewise.
390         (SIGEV_THREAD_ID): Likewise.
391
392 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
393
394         [BZ #783]
395         * elf/tst-auditmod1.c: Add MIPS support.
396         * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
397         (La_mips_32_retval): New.
398         (La_mips_64_regs): New.
399         (La_mips_64_retval): New.
400         (struct audit_ifaces): Add MIPS entries.
401         * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
402         (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
403         ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
404         ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
405         (RTLD_START): Align the stack before calling _dl_init_internal.
406         Use .ent for _dl_start_user.
407         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
408         (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
409         (elf_machine_runtime_setup): Use "auto inline".
410         (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
411         (elf_machine_got_rel): Likewise.  Use RESOLVE_MAP.
412         * sysdeps/mips/dl-trampoline.c: New file.
413         * sysdeps/mips/bits/link.h: New file.
414         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
415         (internal_syscall5): Use register operands instead of non-lvalue
416         memory operands.
417         (internal_syscall6): Likewise.
418         (internal_syscall7): Likewise.
419
420 2005-03-27  Andreas Jaeger  <aj@suse.de>
421
422         * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
423         avoid warnings with older compiler.
424         (__builtin___memcpy_chk): Likewise.
425         (__builtin___memmove_chk: Likewise.
426         (__builtin___mempcpy_chk): Likewise.
427         (__builtin___memset_chk): Likewise.
428         (__builtin___stpcpy_chk): Likewise.
429         (__builtin___strcat_chk): Likewise.
430         (__builtin___strcpy_chk): Likewise.
431         (__builtin___strncat_chk): Likewise.
432         (__builtin___strncpy_chk): Likewise.
433         (__builtin_object_size): Likewise.
434
435 2005-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
436
437         * elf/tls-macros.h: Correct typo.
438
439 2005-03-23  Jakub Jelinek  <jakub@redhat.com>
440
441         * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
442         (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
443
444 2005-03-22  Roland McGrath  <roland@redhat.com>
445
446         * locale/setlocale.c: Comment typo.
447
448         * scripts/versions.awk: No errors for GLIBC_PRIVATE.
449
450         * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
451
452         * scripts/versions.awk: Print all errors and die at the end.
453         Use library name in versions array keys.
454
455 2005-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
456
457         * elf/elf.h (PT_ARM_EXIDX): New macro.
458
459 2005-03-21  Thorsten Kukuk  <kukuk@suse.de>
460
461         * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
462         Convert correctly between long/int on 64bit big-endian.
463
464 2005-03-21  David Mosberger  <davidm@hpl.hp.com>
465
466         * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
467         with more than 8 output registers.  Fix this by passing original
468         ar.pfs to _mcount_ret_helper via r3.
469
470 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
471
472         [BZ #786]
473         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
474         GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
475         * elf/Makefile: Add rules to build and run tst-tls15.
476         * elf/tst-tls15.c: New test.
477         * elf/tst-tlsmod15a.c: New file.
478         * elf/tst-tlsmod15b.c: New file.
479
480 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
481
482         * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
483
484 2005-03-20  Alfred M. Szmidt  <ams@gnu.org>
485
486         * elf/dl-open.c (dl_open_worker): Fix typo.
487
488 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
489
490         * malloc/malloc.c (public_cALLOc): We cannot skip the memory
491         clearing if perturb_byte != 0.
492
493 2005-03-20  Jakub Jelinek  <jakub@redhat.com>
494
495         * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
496         instead of __off_t for last argument.
497         * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
498         * debug/tst-lfschk1.c: New test.
499         * debug/tst-lfschk2.c: New test.
500         * debug/tst-lfschk3.c: New test.
501
502 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
503
504         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
505         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
506         and __USE_XOPEN guards to match linux/bits/termios.h.
507         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
508         (CMSPAR): Define.
509         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
510
511 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
512
513         * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
514
515 2005-02-27  Denis Barbier  <barbier@debian.org>
516
517         [BZ #38]
518         * locale/iso-4217.def: Add CSD currency.
519
520 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
521
522         * inet/test-ifaddrs.c: Use test-skeleton.
523         * inet/test_ifindex.c: Likewise.
524
525         * elf/dl-lookup.c (add_dependency): Always search l_initfini if
526         the list exists.
527
528         * elf/Makefile: Add rules to build and run order2.
529         * elf/order2.c: New file.
530         * elf/order2mod1.c: New file.
531         * elf/order2mod2.c: New file.
532         * elf/order2mod3.c: New file.
533         * elf/order2mod4.c: New file.
534
535 2005-03-19  Jakub Jelinek  <jakub@redhat.com>
536
537         * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
538         it has been incremented before.
539
540 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
541
542         * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
543         function _dl_sort_fini.
544         (_dl_sort_fini): New function.
545         * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
546         * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
547         destructors to call them in the right order.
548
549 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
550
551         * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
552         (La_ppc64_retval): Correct size of lrc_fp.
553         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
554         Fix up ABI problems and complete function.
555
556 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
557
558         * math/test-misc.c (main): Add some more tests.
559
560 2005-03-17  Jakub Jelinek  <jakub@redhat.com>
561
562         * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
563         __wcrtomb.  Check return values of other __wcrtomb calls.
564         * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
565         Change mbclen type to size_t.
566         (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
567         Handle mb chars whose upper case doesn't have multibyte representation
568         in locale's charset.
569
570 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
571
572         * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
573         public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
574         #ifndef _LIBC.
575
576         [BZ #779]
577         * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
578         initialized.
579
580 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
581
582         * misc/sys/cdefs.h (__always_inline): Define.
583         * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
584         Use __always_inline instead of __inline.
585         * socket/bits/socket2.h (recv, recvfrom): Likewise.
586         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
587         * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
588         __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
589         __strcat_ichk, __strncat_ichk): Use __always_inline instead of
590         __inline__ __attribute__ ((__always_inline__)).
591
592 2005-03-09  Jakub Jelinek  <jakub@redhat.com>
593
594         * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
595         (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
596         readlink.  Add some more tests for read, pread, pread64, fgets and
597         fgets_unlocked.
598
599         * posix/bits/unistd.h (read, pread, pread64, readlink,
600         getcwd, getwd): Change macros into extern inline functions.
601         (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
602         __getcwd_alias, __getwd_alias): New prototypes.
603         * socket/bits/socket2.h (recv, recvfrom): Change macros into
604         extern inline functions.
605         (__recv_alias, __recvfrom_alias): New prototypes.
606         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
607         into extern inline functions.
608         (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
609
610         * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
611         to __pread.
612         * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
613         to __pread64.
614
615 2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
616
617         * configure.in: Use %function instead of @function.
618
619 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
620
621         * include/link.h (struct link_map): Remove l_opencount.  Add l_removed.
622         Change type of l_idx to int.
623         * elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
624         determine whether a DSO has to be unloaded.  Instead compute this
625         in this function.
626         * elf/dl-deps.c: No need to manipulate l_opencount anymore.
627         * elf/dl-lookup.c: Likewise.
628         * elf/rtld.c: Likewise
629         * elf/dl-open.c: Likewise.  Use l_init_called to determine whether
630         object was just loaded.
631         * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
632         * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
633         is about to be unloaded as a match.
634         (_dl_map_object): Likewise.
635         * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
636         to be unloaded.
637         * elf/circleload1.c: Don't use l_opencount anymore.
638         * elf/neededtest.c: Likewise.
639         * elf/neededtest2.c: Likewise.
640         * elf/neededtest3.c: Likewise.
641         * elf/neededtest4.c: Likewise.
642         * elf/unload.c: Likewise.
643         * elf/unload2.c: Likewise.
644         * elf/loadtest.c: Likewise.
645
646         * elf/rtld.c: Preloading errors are now never fatal.
647
648 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
649
650         * elf/Makefile: Add rules to build and run unload5 test.
651         * elf/unload5.c: New file.
652
653 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
654
655         * elf/Makefile: Add rules to build and run unload4 test.
656         * elf/unload4.c: New file.
657         * elf/unload4mod1.c: New file.
658         * elf/unload4mod2.c: New file.
659         * elf/unload4mod3.c: New file.
660         * elf/unload4mod4.c: New file.
661
662 2005-03-17  Roland McGrath  <roland@redhat.com>
663
664         * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
665
666 2005-03-16  Richard Henderson  <rth@redhat.com>
667
668         * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
669         of internal.
670         (__hidden_def1, __hidden_dot_def1): Remove.
671         (__hidden_def2, __hidden_def3): Remove.
672         (__hidden_ver1): New.
673         (hidden_ver, hidden_def, hidden_weak): Use it.
674         (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
675         version of the macro.
676
677         * include/wchar.h (__wcscoll): Remove.
678         * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
679         * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
680
681 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
682
683         * elf/elf.h: Define MIPS TLS relocations.
684
685 2005-03-16  Ulrich Drepper  <drepper@redhat.com>
686
687         * elf/circleload1.c (main): Pretty printing.
688
689 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
690
691         * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
692         Patch by Dan Kegel <dank@kegel.com>.
693
694         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
695         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
696         Add inline keyword.
697         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
698         elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
699         attribute.
700         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
701         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
702         static inline into auto inline.
703         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
704         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
705         * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
706         Likewise.
707         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
708         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
709         Likewise.
710
711 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
712
713         [BZ #789]
714         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
715         Remove memory clobber.
716
717         * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
718         thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.
719
720 2005-03-14  Jakub Jelinek  <jakub@redhat.com>
721
722         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
723         asm/types.h.
724
725 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
726
727         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
728         MAP_NONBLOCK.
729         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
730         Correct MAP_GROWSDOWN value.
731
732 2005-03-13  Roland McGrath  <roland@redhat.com>
733
734         * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
735         version if there is one.  Only #error if macros are then undefined.
736         * sysdeps/generic/tls-macros.h: New file.
737
738 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
739
740         * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
741         * sysdeps/hppa/configure: Regenerated.
742
743 2005-03-08  Roland McGrath  <roland@redhat.com>
744
745         * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
746         array types match exactly in C alias decls.
747
748 2005-03-07  Ulrich Drepper  <drepper@redhat.com>
749
750         * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
751         mallopt appropriately.
752         * malloc/malloc.h: Define M_PERTURB.
753         * malloc/malloc.c (perturb_byte): New variable.
754         (alloc_perturb, free_perturb): New macros.
755         (_int_malloc): Before returning, overwrite the memory if this is
756         requested.
757         (_int_free): Overwrite freed memory if requested.
758         (mALLOPt): Handle M_PERTURB.
759         * test-skeleton.c: Add call to mallopt with M_PERTURB command.
760
761         * elf/dl-close.c (_dl_close): Decrement l_opencount before
762         printing debug message.
763         * elf/dl-open.c (dl_open_worker): Always print the new opencount
764         in debug messages.
765
766 2005-03-06  Ulrich Drepper  <drepper@redhat.com>
767
768         * elf/dl-close.c (_dl_close): Unify debug message format.
769
770         * elf/dl-close.c (_dl_close): Print debug message just before
771         destroying a link map.
772
773         * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
774         * elf/dl-version.c (match_symbol): Likewise.
775
776         * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
777
778         * debug/recv_chk.c (__recv_chk): Always fail if request could
779         overflow the buffer.
780         * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
781         * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
782         we know the call succeeds.
783         (recvfrom): Likewise.
784
785 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
786
787         * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
788         warning.
789         * posix/regex_internal.c (re_string_reconstruct): Add cast to
790         avoid warning.
791         (build_wcs_upper_buffer): Change type of bug to plain char.
792         * locale/weightwc.h (findidx): Add casts to avoid warnings.
793         * time/mktime.c (ranged_convert): Initialize tm to make the
794         compiler happy.
795         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
796         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
797         * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
798         * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
799         * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
800         * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
801         * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
802         * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
803         * libio/iofwide.c: Add casts to avoid warnings.
804         * stdio-common/printf-prs.c (parse_printf_format): Introduce new
805         variable f to avoid warnings.
806         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
807         Fix a few casts to avoid warnings.
808         * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
809         to avoid warning.
810
811         * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
812         dynamically sized array.
813         (build_wcs_upper_buffer): Likewise.
814
815 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
816
817         * include/bits/unistd.h: New file.
818         * include/bits/socket2.h: New file.
819
820 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
821
822         * sunrpc/key_call.c: Remove doors support.
823         * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
824         * configure.in: Remove test for doors support which never existed.
825         * config.make.in: Remove have_doors entry.
826
827         * configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
828         * config.make.in: Undo last change.
829
830         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
831         -mtune.
832
833 2005-03-05  Roland McGrath  <roland@redhat.com>
834
835         * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
836         (_dl_out_of_memory): Use rtld_hidden_proto.
837         * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
838         (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
839         * elf/dl-open.c (_dl_open): Likewise.
840         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
841
842         * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
843
844         * elf/dl-addr.c (_dl_addr): Add a cast.
845
846         * elf/unload3mod4.c: Declare foo.
847         * elf/testobj2.c: Include <stdio.h>.
848
849         * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
850         value constant, and use it in the defn.
851         * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
852         Use actual size for compat array decls.
853
854         * config.make.in (cc-mtune): New substituted variable.
855         * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
856         done only if libc_mtune_example is defined.
857         * sysdeps/i386/configure.in (libc_mtune_example): Set it.
858         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
859
860 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
861
862         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
863         unconditionally to (defined RTLD_BOOTSTRAP).
864         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
865
866 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
867
868         * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
869         $(inst_slibdir) in AS_NEEDED directive.
870
871 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
872
873         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
874
875 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
876
877         [BZ #776]
878         * iconv/iconvconfig.c: Fix comment for the output file.
879         (write_output): Clear padding in header.
880
881 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
882
883         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
884         loader is closed.  Fixes unload3.
885         * elf/tst-global1.c: New file.
886         * elf/Makefile (tests): Add tst-global1.
887         * elf/testobj2.c (p): New function.
888
889 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
890
891         * elf/Makefile: Add rules to build and run unload3 test.
892         * elf/unload3.c: New test.
893         * elf/unload3mod1.c: New file.
894         * elf/unload3mod2.c: New file.
895         * elf/unload3mod3.c: New file.
896         * elf/unload3mod4.c: New file.
897
898 2005-02-21  Alan Modra <amodra@bigpond.net.au>
899
900         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
901         use __uint128_t.
902
903 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
904
905         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
906         of __bos.
907         * socket/bits/socket2.h (recv, recvfrom): Likewise.
908
909 2005-03-01  Roland McGrath  <roland@redhat.com>
910
911         [BZ #721]
912         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
913         of [RESOLVE_MAP].
914
915 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
916
917         [BZ #777]
918         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
919         Add missing initializer.
920
921         [BZ #777]
922         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
923         USE_TLS && !USE___THREAD].
924
925 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
926
927         * csu/Makefile: Use printf instead of echo for some shells.
928
929 2005-02-28  Roland McGrath  <roland@redhat.com>
930
931         * debug/warning-nop.c (__nop): Rename to nop, make it static.
932         (__warndecl): Use alias attribute directly, instead of strong_alias
933         macro.  Add attribute_hidden.
934
935 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
936
937         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
938         determine the call will never trigger a failure.
939         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
940         small.
941         * debug/readlink_chk.c (__readlink_chk): Likewise.
942         * debug/pread64_chk.c (__pread64_chk): Likewise.
943         * debug/pread_chk.c (__pread_chk): Likewise.
944
945         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
946         * sysdeps/x86_64/memset_chk.S: Likewise.
947
948 2005-02-24  Roland McGrath  <roland@redhat.com>
949
950         * debug/Versions (libc: GLIBC_2.4): Remove
951         __memset_zero_constant_len_parameter.
952         * sysdeps/generic/memset_chk.c: Remove alias and warning.
953         * misc/sys/cdefs.h (__warndecl): New macro.
954         * debug/warning-nop.c: New file.
955         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
956         arguments, instead of calling __memset_zero_constant_len_parameter.
957         Use __warndecl for __warn_memset_zero_len.
958         * debug/Makefile (routines): Add $(static-only-routines).
959         (static-only-routines): New variable.
960
961 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
962
963         * po/tr.po: Update from translation team.
964
965 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
966
967         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
968
969         * dlfcn/dlerror.c (check_free): New function.  Extract common code
970         from fini and free_key_mem.  Check whether this is libdl in the
971         base namespace.
972
973 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
974
975         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
976         to debug output.
977
978 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
979
980         [BZ #758]
981         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
982         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
983         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
984         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
985         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
986         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
987         standard __NR prefix.
988         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
989         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
990         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
991         Extract separate syscall lists for each ABI.
992
993 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
994
995         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
996
997         [BZ #719]
998         * elf/Makefile: Run tst-tls9-static again.
999
1000 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
1001
1002         [BZ #719]
1003         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
1004         slotinfo array.
1005         (__libc_setup_tls): Initialize length of DTV based on array length.
1006         * elf/dl-load.c: Revert last change.
1007         * sysdeps/generic/dl-tls.c: Revert last change.
1008
1009         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
1010         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
1011         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
1012         * posix/tst-execl1.c: New file.
1013         * posix/tst-execl2.c: New file.
1014         * posix/tst-execle1.c: New file.
1015         * posix/tst-execle2.c: New file.
1016         * posix/tst-execlp1.c: New file.
1017         * posix/tst-execlp2.c: New file.
1018         * posix/tst-execv1.c: New file.
1019         * posix/tst-execv2.c: New file.
1020         * posix/tst-execve1.c: New file.
1021         * posix/tst-execve2.c: New file.
1022         * posix/tst-execvp1.c: New file.
1023         * posix/tst-execvp2.c: New file.
1024
1025 2005-02-22  Roland McGrath  <roland@redhat.com>
1026
1027         * include/signal.h: Revert last change.
1028         (__sigemptyset): Use __builtin_memset instead of memset.
1029
1030 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
1031
1032         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
1033         non-cancelable I/O functions.
1034
1035 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
1036
1037         [BZ #769]
1038         * nscd/nscd-client.h: Include sys/uio.h.
1039         (__readall, __readvall, writeall): New prototypes.
1040         * nscd/connections.c (writeall): New function.
1041         (handle_request): Use it.
1042         * nscd/aicache.c (addhstaiX): Likewise.
1043         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1044         * nscd/hstcache.c (cache_addhst): Likewise.
1045         * nscd/grpcache.c (cache_addgr): Likewise.
1046         * nscd/pwdcache.c (cache_addpw): Likewise.
1047         * nscd/nscd_helper.c (__readall, __readvall): New functions.
1048         * nscd/nscd_getai.c (__nscd_getai): Use them.
1049         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
1050         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
1051         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
1052         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1053
1054 2005-02-22  Roland McGrath  <roland@redhat.com>
1055
1056         * include/sys/socket.h: Declare __recv.
1057         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
1058         * sysdeps/mach/hurd/recv.c: Likewise.
1059
1060         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
1061         __backtrace_* decls.
1062
1063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1064         (INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
1065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1066
1067         * include/signal.h: Include <string.h> for memset decl.
1068
1069 2005-02-22  Andreas Schwab  <schwab@suse.de>
1070
1071         * posix/execvp.c (execvp): Fix invalid free.
1072
1073 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
1074
1075         * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
1076         * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
1077         librpcsvc.a objects.
1078
1079 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1080
1081         * iconvdata/ibm930.h: Correct Yen mapping.
1082         * iconvdata/ibm939.h: Likewise.
1083         * iconvdata/testdata/IBM930..UTF8: Adjust test data.
1084         * iconvdata/testdata/IBM939..UTF8: Likewise.
1085         Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
1086
1087         * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
1088         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
1089         (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
1090         ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
1091         ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
1092         ibm1158.c, and ibm1158.h.
1093         * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
1094         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
1095         * iconvdata/gconv-modules: Likewise.
1096         * iconvdata/ibm1025.c: New file.
1097         * iconvdata/ibm1025.h: New file.
1098         * iconvdata/ibm1122.c: New file.
1099         * iconvdata/ibm1122.h: New file.
1100         * iconvdata/ibm1137.c: New file.
1101         * iconvdata/ibm1137.h: New file.
1102         * iconvdata/ibm1153.c: New file.
1103         * iconvdata/ibm1153.h: New file.
1104         * iconvdata/ibm1154.c: New file.
1105         * iconvdata/ibm1154.h: New file.
1106         * iconvdata/ibm1155.c: New file.
1107         * iconvdata/ibm1155.h: New file.
1108         * iconvdata/ibm1156.c: New file.
1109         * iconvdata/ibm1156.h: New file.
1110         * iconvdata/ibm1157.c: New file.
1111         * iconvdata/ibm1157.h: New file.
1112         * iconvdata/ibm1158.c: New file.
1113         * iconvdata/ibm1158.h: New file.
1114         * iconvdata/testdata/IBM1025: New file.
1115         * iconvdata/testdata/IBM1025..UTF8: New file.
1116         * iconvdata/testdata/IBM1122: New file.
1117         * iconvdata/testdata/IBM1122..UTF8: New file.
1118         * iconvdata/testdata/IBM1137: New file.
1119         * iconvdata/testdata/IBM1137..UTF8: New file.
1120         * iconvdata/testdata/IBM1153: New file.
1121         * iconvdata/testdata/IBM1153..UTF8: New file.
1122         * iconvdata/testdata/IBM1154: New file.
1123         * iconvdata/testdata/IBM1154..UTF8: New file.
1124         * iconvdata/testdata/IBM1155: New file.
1125         * iconvdata/testdata/IBM1155..UTF8: New file.
1126         * iconvdata/testdata/IBM1156: New file.
1127         * iconvdata/testdata/IBM1156..UTF8: New file.
1128         * iconvdata/testdata/IBM1157: New file.
1129         * iconvdata/testdata/IBM1157..UTF8: New file.
1130         * iconvdata/testdata/IBM1158: New file.
1131         * iconvdata/testdata/IBM1158..UTF8: New file.
1132         Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
1133
1134 2005-02-10  Paolo Bonzini  <bonzini@gnu.org>
1135
1136         * posix/regcomp.c (lower_subexp): Do not optimize empty
1137         subexpressions even with REG_NOSUB.
1138         * posix/rxspencer/tests: Add a previously failing testcase.
1139
1140 2005-02-21  Alan Modra <amodra@bigpond.net.au>
1141
1142         [BZ #719]
1143         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
1144         array index is within bounds.
1145
1146 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1147
1148         [BZ #719]
1149         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
1150         linked code.
1151         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
1152         * elf/Makefile: Remove rules to build and run tst-tls9-static.
1153
1154         [BZ #719]
1155         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
1156         THREAD_DTV multiple times, this minimally reduces code size on
1157         some archs.
1158
1159 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
1160
1161         [BZ #768]
1162         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
1163         NETDB_INTERNAL if buffer is too small.
1164
1165         [BZ #768]
1166         * nscd/hstcache.c (INCR): Remove.
1167         (addhstbyX): Double buflen in each iteration rather than add INCR.
1168         * nscd/grpcache.c: Likewise.
1169         * nscd/pwdcache.c: Likewise.
1170
1171 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
1174         map if requested.
1175         * debug/chk_fail.c: Request backtrace and memory map dump.
1176
1177         * Versions.def: Add GLIBC_2.4 for libc.
1178         * debug/fgets_chk.c: New file.
1179         * debug/fgets_u_chk.c: New file.
1180         * debug/getcwd_chk.c: New file.
1181         * debug/getwd_chk.c: New file.
1182         * debug/readlink_chk.c: New file.
1183         * debug/read_chk.c: New file.
1184         * debug/pread_chk.c: New file.
1185         * debug/pread64_chk.c: New file.
1186         * debug/recv_chk.c: New file.
1187         * debug/recvfrom_chk.c: New file.
1188         * debug/Versions: Add all new functions with version GLIBC_2.4.
1189         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
1190         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
1191         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
1192         * debug/tst-chk1.c: Add more tests.
1193         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
1194         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
1195         * posix/unistd.h: Include <bits/unistd.h> for fortification.
1196         * posix/bits/unistd.h: New file.
1197         * posix/Makefile (headers): Add bits/unistd.h.
1198         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
1199         * socket/bits/socket2.h: New file.
1200         * socket/Makefile (headers): Add bits/socket2.h.
1201
1202         * string/bits/string3.h: Extend memset macro to check for zero 3rd
1203         parameter and use __memset_zero_constant_len_parameter in that case.
1204         * sysdeps/generic/memset_chk.c: Add
1205         __memset_zero_constant_len_parameter alias and linker warning.
1206         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
1207         with version GLIBC_2.4.
1208
1209         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
1210         in __STD_TYPE definition.
1211
1212 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
1213
1214         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
1215         the error message rather than program name.
1216
1217 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
1218
1219         [BZ #767]
1220         * posix/unistd.h: symlink and readlink are unconditionally
1221         available in the 2001 spec.
1222
1223 2005-02-16  Roland McGrath  <roland@redhat.com>
1224
1225         * intl/dcigettext.c (_nl_find_msg): Add a cast.
1226
1227         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
1228         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
1229         * nis/nis_clone_res.c (nis_clone_result): Likewise.
1230
1231         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
1232         for END_OF_MESSAGE and CP.
1233
1234         * resolv/res_send.c (send_dg): Add else branch for case impossible
1235         unless `poll' is buggy.
1236
1237         * crypt/crypt_util.c (__setkey_r): Add a cast.
1238
1239         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
1240         NBYTES, and unsigned char * for BYTES.
1241
1242         * locale/programs/charmap.c (charmap_new_char): Use size_t and
1243         unsighed char * for NBYTES, BYTES parameters.
1244
1245         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
1246         and cast it.
1247         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
1248
1249         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
1250
1251         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
1252
1253         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
1254         (authdes_marshal): Don't use unsigned int for LEN.
1255         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
1256         (xdr_u_hyper): Likewise.
1257         (xdr_u_short): Don't use u_long for L.
1258         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
1259
1260         * inet/rexec.c (rexec_af): Use socklen_t.
1261         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
1262         * sunrpc/rtime.c (rtime): Likewise.
1263         * resolv/res_send.c (send_vc, send_dg): Likewise.
1264         * nis/nis_callback.c (__nis_create_callback): Likewise.
1265
1266         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
1267
1268         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
1269
1270         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
1271
1272         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
1273         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
1274         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
1275         * intl/bindtextdom.c (INTUSE): Macro removed.
1276         (_nl_default_dirname): Use libc_hidden_proto.
1277         (set_binding_values): Don't use INTUSE.
1278         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
1279         (_libc_intl_domainname): Use libc_hidden_proto.
1280         * posix/regex_internal.h (gettext): Remove INTUSE on it.
1281         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
1282         rather than INTDEF.
1283         * include/libintl.h (_): Don't use *_internal name.
1284
1285         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
1286         not uint32_t.
1287         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
1288
1289         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
1290
1291         [BZ #721]
1292         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
1293         of [RESOLVE_MAP].
1294         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
1295         * sysdeps/powerpc/powerpc32/dl-machine.h
1296         (elf_machine_rel, elf_machine_rel_relative): Removed.
1297         * sysdeps/powerpc/powerpc64/dl-machine.h
1298         (elf_machine_rel, elf_machine_rel_relative): Removed.
1299
1300 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
1301
1302         [BZ #721]
1303         * elf/dynamic-link.h: Don't declare nested auto functions that are
1304         not going to be defined.
1305
1306 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1307
1308         [BZ #284]
1309         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
1310         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
1311
1312 2005-02-16  Roland McGrath  <roland@redhat.com>
1313
1314         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
1315         inside [! SHARED] where it's used.
1316
1317 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
1318
1319         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
1320         functions and macros is unsigned.
1321
1322 2005-02-11  Barry deFrese  <bddebian@comcast.net>
1323
1324         [BZ #722]
1325         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
1326         * sysdeps/mach/hurd/setresuid.c: Likewise.
1327
1328 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
1329
1330         * misc/sys/syslog.h: Fix typo in comment.
1331
1332 2005-02-14  Roland McGrath  <roland@redhat.com>
1333
1334         [BZ #720]
1335         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
1336         if it wasn't originally.
1337
1338 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
1339
1340         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
1341         getpeername entry.
1342         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1343         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1344
1345 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
1346
1347         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
1348         matching line.
1349
1350 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
1351
1352         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
1353         with auto inline, and attribute always_inline.
1354         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
1355         (elf_machine_rel, elf_machine_rel_relative): Likewise.
1356         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1357         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
1358         (elf_machine_rel, elf_machine_rel_relative): Likewise.
1359         (elf_machine_tprel): Likewise.
1360
1361 2005-02-14  Andreas Schwab  <schwab@suse.de>
1362
1363         * manual/filesys.texi (Random Access Directory): Fix type of file
1364         position value for telldir and seekdir.
1365         (Attribute Meanings): Fix typo.
1366
1367 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1368
1369         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
1370         isn't defined.
1371         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
1372         if SHARED isn't defined.
1373         * elf/Makefile (tests-static): Add tst-array1-static.
1374         ($(objpfx)tst-array1-static.out): New target.
1375         * elf/tst-array1-static.c: New file.
1376
1377 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
1378
1379         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
1380         __libc_message to kill GCC warning about noreturn function returning.
1381
1382         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
1383         before relocating ld.so again.
1384
1385         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
1386         for already prelinked ld.so.
1387
1388 2005-02-11  Roland McGrath  <roland@redhat.com>
1389
1390         [BZ #715]
1391         * Makefile (installed-stubs): New variable.
1392         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
1393         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
1394         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
1395         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
1396         rule's target.
1397         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
1398         * include/stubs-biarch.h: New file.
1399
1400         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
1401
1402         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
1403         Emit defn for variable `biarch'.
1404
1405         * include/stub-tag.h: Update comment.
1406
1407         * scripts/soversions.awk: Fix default version set handling.
1408
1409 2005-02-10  Roland McGrath  <roland@redhat.com>
1410
1411         [BZ #157]
1412         * include/libc-symbols.h (stub_warning): Emit a marker section called
1413         .gnu.glibc-stub.NAME.
1414         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
1415         Use objdump to collect those marker section names.
1416         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
1417
1418         * Rules (subdir_objs, subdir_stubs): New phony targets.
1419         * Makefile (+subdir_targets): Add them.
1420
1421         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
1422         soversions.i.
1423
1424         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
1425         Reported by H.J. Lu <hongjiu.lu@intel.com>.
1426
1427         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
1428         doing two.
1429
1430 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1431
1432         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
1433         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
1434         * sysdeps/powerpc/bits/link.h: ... here.  New file.
1435
1436 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
1437
1438         [BZ #710]
1439         * stdlib/random_r.c (__initstate_r): Save old state.
1440         * stdlib/Makefile (tests): Add tst-random2.
1441         * stdlib/tst-random2.c: New test.
1442         Reported by Peter Bergner <bergner@vnet.ibm.com>.
1443
1444 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
1445
1446         * dlfcn/dlfcn.c (init): Put it in .init_array section.
1447
1448 2005-02-10  Roland McGrath  <roland@redhat.com>
1449
1450         [BZ #632]
1451         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
1452         from command line.
1453         Grok shlib-versions lines with WORDSIZE* in second column.
1454         Add new leading column to output, DEFAULT for existing output lines.
1455         Also emit lines with WORDSIZE* for alternate configurations.
1456         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
1457         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
1458         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
1459         of soversions.mk; replace inline shell script with use of ...
1460         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
1461         emit multiple sets of macros under #if.
1462         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
1463         (s390x-.*-.*): Likewise for s390.
1464         (powerpc64-.*-.*): Likewise for powerpc.
1465         (sparc64-.*-.*): Likewise for sparc.
1466         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
1467         for these mapping back to the above.
1468
1469 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
1470
1471         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
1472
1473 2005-02-08  Andreas Schwab  <schwab@suse.de>
1474
1475         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
1476         RESOLVE.
1477
1478 2005-02-07  Richard Henderson  <rth@redhat.com>
1479
1480         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
1481
1482 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1483
1484         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
1485         RESOLVE.
1486
1487 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
1488
1489         * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
1490         set correctly.
1491
1492 2005-01-07  Richard Henderson  <rth@redhat.com>
1493
1494         * math/math_private.h (__copysign): Define as builtin for gcc 4.
1495         (__copysignf, __copysignl): Likewise.
1496         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
1497         for gcc 4.0.
1498         (copysignf, copysignl, fabsf, fabs): Likewise.
1499         (__copysign, __copysignf, __copysignl): Remove.
1500         (__fabs, __fabsf): Remove.
1501
1502 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
1503
1504         [BZ #738]
1505         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
1506         avoid writing to it if none of the standard search directories exist.
1507
1508 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
1509
1510         [BZ #700]
1511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1512         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
1513         Load MSR as a doubleword.
1514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1515         (__novec_swapcontext, __swapcontext): Likewise.
1516
1517 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
1518
1519         * iconv/iconv_prog.c (main): Provide more help in case on an error.
1520
1521         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
1522
1523 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
1524
1525         [BZ #741]
1526         * nscd/nscd.c (termination_handler): Avoid segfault if some database
1527         is not enabled.
1528
1529         [BZ #741]
1530         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
1531         __nss_not_use_nscd_hosts and return -1.
1532         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
1533         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
1534         Avoid leaking sockets.
1535
1536 2005-01-28  Andreas Schwab  <schwab@suse.de>
1537             H.J. Lu  <hongjiu.lu@intel.com>
1538
1539         [BZ #677]
1540         * elf/dl-runtime.c (fixup): Change return type to
1541         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
1542         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
1543         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
1544         store and retrieve relocation values.
1545         (profile_fixup): Likewise.
1546         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
1547         l_reloc_result.
1548         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
1549         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
1550         (DL_FIXUP_MAKE_VALUE): Likewise.
1551         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
1552         (DL_FIXUP_VALUE_ADDR): Likewise.
1553         (DL_FIXUP_ADDR_VALUE): Likewise.
1554         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
1555         (DL_FIXUP_VALUE_TYPE): New.
1556         (DL_FIXUP_MAKE_VALUE): Likewise.
1557         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
1558         (DL_FIXUP_VALUE_ADDR): Likewise.
1559         (DL_FIXUP_ADDR_VALUE): Likewise.
1560         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
1561         (elf_machine_profile_plt): Removed.
1562         (elf_machine_fixup_plt): Change return type and type of value
1563         parameter to struct fdesc.
1564         (elf_machine_plt_value): Likewise.
1565         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
1566         argument for elf_machine_fixup_plt.
1567
1568 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
1569
1570         [BZ #742]
1571         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
1572         after the status string printed by killproc.
1573
1574 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
1575
1576         * manual/.cvsignore: Add dir-add.texi.
1577
1578 2005-02-06  Richard Henderson  <rth@redhat.com>
1579
1580         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
1581         all the time.
1582
1583 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
1584
1585         * configure.in (sysnames): Append sysdeps/generic for each add-on.
1586         * configure: Regenerated.
1587
1588 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
1589
1590         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
1591         (dtv_t): Change pointer type to be a struct which also contains
1592         information whether the memory pointed to is static TLS or not.
1593
1594         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
1595
1596         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
1597         (FALSEP): ... this.  Updated all references.
1598
1599         [BZ #765]
1600         * libio/fmemopen.c: Include <stdint.h>.
1601
1602 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
1603
1604         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
1605         * nscd/connections.c (send_ro_fd): Likewise.
1606
1607 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1608
1609         * elf/tst-auditmod1.c: Add ia64 entries.
1610         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
1611         (La_ia64_retval): New.
1612         (audit_ifaces): Add ia64 entries.
1613         * sysdeps/ia64/bits/link.h: New file.
1614         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
1615         for dl_profile non-null.
1616         (ARCH_LA_PLTENTER): New.
1617         (ARCH_LA_PLTEXIT): New.
1618         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
1619         only 2 output registers. Allocate stack to save/restore
1620         8 incoming fp registers. Call _dl_fixup instead of fixup.
1621         (_dl_runtime_profile): Rewrite.
1622
1623 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1624
1625         * sysdeps/s390/bits/link.h: New file.
1626         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
1627         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
1628         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
1629         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
1630         relocation code.
1631         (elf_machine_runtime_setup): Test for dl_profile non-null.
1632         (elf_machine_rela): Remove code using RESOLVE.
1633         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
1634         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1635         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
1636         La_s390_64_regs, La_s390_64_retval): New.
1637         * elf/tst-auditmod1.c: Add s390 entries.
1638
1639         [BZ #743]
1640         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
1641         strncat, memchr, strcmp): Add missing memory clobber.
1642
1643 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
1644
1645         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
1646         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
1647
1648 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
1649
1650         [BZ #558]
1651         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
1652         Initialize the node sets in dfa->inveclosures.
1653         (analyze): Initialize inveclosures only if it is needed.
1654         Check errors from calc_inveclosure.
1655         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
1656         the inveclosure node set.
1657         * posix/regexec.c (re_search_internal): If nmatch includes unused
1658         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
1659
1660         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
1661         Do build a SIMPLE_BRACKET token.
1662
1663         * posix/regexec.c (transit_state_mb): Do not examine nodes
1664         where ACCEPT_MB is not set.
1665
1666 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
1667
1668         * stdlib/tst-fmtmsg.c: Include stdlib.h.
1669         * stdio-common/tst-fmemopen2.c: Include string.h.
1670         * posix/execvp.c: Include stdbool.h.
1671
1672 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
1673
1674         Separate parsing and creation of the NFA.  Avoided recursion on
1675         the (very unbalanced) parse tree.
1676         [BZ #611]
1677         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
1678         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
1679         (optimize_subexps, duplicate_tree, calc_first, calc_next,
1680         mark_opt_subexp): Rewritten.
1681         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
1682         create_token_tree, free_tree, free_token): New.
1683         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
1684         postorder generic visitors.  Do not initialize the fields in the
1685         re_dfa_t that represent the transitions.
1686         (free_dfa_content): Use free_token.
1687         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
1688         include optimization of subexpressions.
1689         (create_initial_state): Fetch the DFA node index from the first node's
1690         bin_tree_t *.
1691         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
1692         Return on COMPLEX_BRACKET.
1693         (duplicate_node_closure): Fix comment.
1694         (duplicate_node): Do not initialize the fields in the
1695         re_dfa_t that represent the transitions.
1696         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
1697         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
1698         to use create_token_tree.
1699         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
1700         build_charclass_op): Use create_tree or create_token_tree instead
1701         of re_dfa_add_tree_node.
1702         (parse_dup_op): Likewise.  Also free the tree using free_tree for
1703         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
1704         to "a|".  Adjust invocation of mark_opt_subexp.
1705         (parse_sub_exp): Create a single SUBEXP node.
1706         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
1707         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
1708         DUPLICATED, and initialize the DFA fields representing the transitions.
1709         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
1710         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
1711         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
1712         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
1713         NEXT into pointers to trees.  Remove ECLOSURE.
1714
1715 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
1716
1717         [BZ #605]
1718         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
1719         that were already created.
1720         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
1721         in the token if needed.
1722         (create_ci_newstate, create_cd_newstate): Set accept_mb field
1723         from the tokens' field.
1724         * posix/regex_internal.h (re_token_t): Add accept_mb field.
1725         (ACCEPT_MB_NODE): Removed.
1726         * posix/regexec.c (proceed_next_node, transit_states_mb,
1727         build_sifted_states, check_arrival_add_next_nodes): Use
1728         accept_mb instead of ACCEPT_MB_NODE.
1729
1730 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
1731
1732         * debug/chk_fail.c (__chk_fail): Print program name in final message.
1733
1734         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
1735         MSG_NOSIGNAL being in 2.2 kernels.
1736
1737 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
1738
1739         * sysdeps/unix/sysv/linux/i386/sysdep.h
1740         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
1741
1742         [BZ #693]
1743         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
1744         (WORD_DELIM_CONSTRAINT): ...this.
1745         (NOT_WORD_DELIM_CONSTRAINT): Define.
1746         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
1747         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
1748         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
1749         anchor instead of INSIDE_WORD.
1750         (parse_expression): Handle NOT_WORD_DELIM constraint.
1751         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
1752         being inside word instead of not word delim.
1753         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
1754         characters.
1755         * posix/rxspencer/tests: Add some new tests.
1756
1757 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
1758
1759         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
1760         irrespective of Cflag.
1761
1762         * manual/memory.texi (sbrk): Fix definition.
1763         * manual/string.texi (strcasestr): Fix example typo.
1764
1765 2005-01-25  Roland McGrath  <roland@redhat.com>
1766
1767         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
1768
1769 2005-01-23  Roland McGrath  <roland@redhat.com>
1770
1771         [BZ #737]
1772         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
1773         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
1774         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
1775         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
1776         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
1777         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
1778
1779 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
1780
1781         [BZ #731]
1782         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
1783         (free_mem): Don't free string.
1784         * stdlib/tst-fmtmsg.c: Include string.h.
1785         (main): Add some more tests.
1786
1787 2005-01-25  Andreas Schwab  <schwab@suse.de>
1788
1789         [BZ #736]
1790         * timezone/asia: Update from tzdata2005c.
1791         * timezone/backward: Likewise.
1792         * timezone/europe: Likewise.
1793         * timezone/leapseconds: Likewise.
1794         * timezone/northamerica: Likewise.
1795         * timezone/southamerica: Likewise.
1796
1797         [BZ #736]
1798         * timezone/private.h: Update from tzcode2005c.
1799         * timezone/tzfile.h: Likewise.
1800         * timezone/zdump.c: Likewise.
1801         * timezone/zic.c: Likewise.
1802
1803 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
1804
1805         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
1806         RESOLVE.
1807         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
1808         using RESOLVE.
1809         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
1810
1811 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
1812
1813         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
1814         sym_map, not sym, against zero.
1815
1816 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
1817
1818         [BZ #671]
1819         * misc/syslog.c: Moved to...
1820         * sysdeps/generic/syslog.c: ...here.
1821         [NO_SIGIPE]: Don't install SIGPIPE handler.
1822         * sysdeps/unix/sysv/linux/syslog.c: New file.
1823         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1824         __ASSUME_MSG_NOSIGNAL.
1825
1826 2005-01-22  Richard Henderson  <rth@redhat.com>
1827
1828         * sysdeps/alpha/dl-trampoline.S: New file.
1829         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
1830         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
1831         (elf_machine_runtime_setup): Test for dl_profile non-null.
1832         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
1833         * sysdeps/alpha/bits/link.h: New file.
1834         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
1835         (struct audit_ifaces): Add alpha entries.
1836         * elf/tst-auditmod1.c: Add alpha entries.
1837
1838 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
1839
1840         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
1841         * sysdeps/ia64/dl-trampoline.S: New file.
1842
1843         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
1844         La_x86_64_xmm definition.
1845
1846         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
1847         pointer option.
1848         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
1849         CFLAGS-system.c for frame pointer option.
1850
1851 2005-01-21  Roland McGrath  <roland@redhat.com>
1852
1853         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
1854         * sysdeps/i386/dl-machine.h: Update decl.
1855
1856 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
1857
1858         [BZ #735]
1859         * elf/Makefile: Add rules to build and run tst-align2.
1860         * elf/tst-align2.c: New test.
1861         * elf/tst-alignmod2.c: New file.
1862         * sysdeps/powerpc/tst-stack-align.h: New file.
1863         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
1864         pointer before calling _dl_init.
1865         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
1866
1867 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
1868
1869         * posix/execl.c: Do not allocate potentially large buffers on the
1870         stack.
1871         * posix/execle.c: Likewise.
1872         * posix/execlp.c: Likewise.
1873         * posix/execvp.c: Likewise.
1874         (script_execute): Removed.
1875         (allocate_scripts_argv): New function.  Called at most once to
1876         allocate memory, not every time a script is run.  Adjust caller.
1877
1878         * sysdeps/generic/wordexp.c (exec_comm): Add a few
1879         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
1880         exec_comm_child.
1881         (exec_comm_child): Can now be inlined.
1882
1883         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
1884         * stdlib/Makefile: Likewise.
1885
1886 2005-01-19  Roland McGrath  <roland@redhat.com>
1887
1888         [BZ #681]
1889         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
1890         argument to execlp.
1891         Reported by Marcus Meissner <meissner@suse.de>.
1892
1893 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
1894
1895         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
1896         in assert.
1897         * iconv/strtab.c (strtabfinalize): Likewise.
1898
1899         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
1900
1901 2005-01-17  Roland McGrath  <roland@redhat.com>
1902
1903         [BZ #745]
1904         * nscd/Makefile (LDLIBS-nscd): New variable.
1905         ($(objpfx)nscd): Use that instead of selinux-LIBS.
1906
1907         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
1908         (link-extra-libs-static): Define to $(link-extra-libs).
1909         (link-extra-libs-bounded): Likewise.
1910
1911 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
1912
1913         * include/link.h: Remove stray definition of pltenter.
1914
1915 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
1916
1917         [BZ #734]
1918         * sysdeps/unix/rewinddir.c: Reset filepos.
1919         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
1920
1921 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
1922
1923         * elf/tst-auditmod1.c: Reduce duplication.
1924
1925 2005-01-16  Andreas Schwab  <schwab@suse.de>
1926
1927         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
1928         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1929         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1930         GLRO(dl_profile) != NULL.
1931         * sysdeps/m68k/dl-trampoline.S: New file.
1932         * sysdeps/m68k/bits/link.h: New file.
1933         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
1934         variants.
1935         * elf/tst-auditmod1.c: Add m68k support.
1936
1937 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
1938
1939         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
1940         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
1941
1942         [BZ #731]
1943         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
1944         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
1945
1946 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
1947
1948         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
1949         callers from libc anymore.
1950
1951         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
1952         to _dl_map_object_deps.
1953         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
1954         protections when loading auditing modules.
1955
1956         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
1957
1958         * posix/getconf.c: Update copyright year.
1959         * nss/getent.c: Likewise.
1960         * nscd/nscd_nischeck.c: Likewise.
1961         * iconv/iconvconfig.c: Likewise.
1962         * iconv/iconv_prog.c: Likewise.
1963         * elf/ldconfig.c: Likewise.
1964         * catgets/gencat.c: Likewise.
1965         * csu/version.c: Likewise.
1966         * elf/ldd.bash.in: Likewise.
1967         * elf/sprof.c (print_version): Likewise.
1968         * locale/programs/locale.c: Likewise.
1969         * locale/programs/localedef.c: Likewise.
1970         * nscd/nscd.c (print_version): Likewise.
1971         * debug/xtrace.sh: Likewise.
1972         * malloc/memusage.sh: Likewise.
1973         * malloc/mtrace.pl: Likewise.
1974         * debug/catchsegv.sh: Likewise.
1975
1976 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
1977
1978         [BZ #733]
1979         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
1980         as backlog.
1981         * sunrpc/svc_unix.c (svcunix_create): Likewise.
1982
1983         * grp/putgrent.c (putgrent): Don't write 0 as group
1984         ID if groupname starts with + or -.
1985         * pwd/putpwent.c (putpwent): Don't write 0 as user or
1986         group ID if user name starts with + or -.
1987
1988 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1989
1990         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
1991         * sysdeps/elf/tst-auditmod1.c: Add sh support.
1992         * sysdeps/sh/bits/link.h: New.
1993         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
1994         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
1995         (RTLD_START): Define __fpscr_values.
1996         * sysdeps/sh/dl-trampoline.S: New file.
1997         * sysdeps/sh/sh4/dl-trampoline.S: New file.
1998         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
1999         * sysdeps/sh/sh4/dl-machine.h: Remove.
2000
2001 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
2002
2003         [BZ #732]
2004         * time/tst-strptime.c (day_tests): Add 2 new tests.
2005         (test_tm, main): Issue an error instead of segfaulting if
2006         strptime returns NULL.
2007
2008 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2009
2010         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
2011         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
2012
2013 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
2014
2015         * malloc/malloc.h: Remove no-glibc support.
2016
2017 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
2018
2019         [BZ #650]
2020         * malloc/malloc.h: Always include features.h.
2021
2022 2005-01-10  Roland McGrath  <roland@redhat.com>
2023
2024         * sysdeps/ia64/fpu/e_logl.c: File removed.
2025
2026         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
2027
2028 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
2029
2030         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
2031         recognition of last entry.
2032
2033 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * elf/dl-runtime.c: Include <sys/param.h>.
2036
2037         * elf/Makefile (headers): Add bits/link.h.
2038
2039 2005-01-09  Andreas Schwab  <schwab@suse.de>
2040
2041         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
2042
2043 2005-01-09  Andreas Jaeger  <aj@suse.de>
2044
2045         [BZ #732]
2046         * time/strptime_l.c (__strptime_internal): Add braces to avoid
2047         warning.
2048
2049         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
2050
2051         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
2052
2053 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
2054
2055         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
2056
2057 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
2058
2059         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
2060         those of all the regular objects.
2061
2062         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
2063         use it to select the r_debug structure for that namespace.
2064         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
2065         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2066         * elf/dl-open.c (_dl_open): Likewise.
2067         * elf/rtld.c (dl_main): Likewise.
2068         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
2069         member.
2070         (_dl_debug_initialize): Add new parameter in declaration.
2071
2072         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
2073         called for the auditing objects themselves.
2074         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2075
2076 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
2077
2078         * sysdeps/powerpc/powerpc64/dl-machine.h
2079         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
2080         GLRO(dl_profile) != NULL.
2081         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
2082         padding.
2083         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
2084         Extend _dl_prof_resolve to add pass extra parameters to
2085         _dl_profile_fixup and set up structure with register content.
2086
2087         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
2088         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
2089         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
2090         Extend _dl_prof_resolve to add pass extra parameters to
2091         _dl_profile_fixup and set up structure with register content.
2092         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
2093         the register and result structures.
2094         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
2095         in the 32-bit register and result structures.
2096
2097         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
2098
2099         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
2100         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
2101         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
2102         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
2103         * elf/tst-auditmod1.c: Add ppc32 support.
2104         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
2105         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
2106
2107         * malloc/malloc.c (malloc_printerr): Print program name as part of
2108         error message.
2109
2110         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
2111         * stdlib/stdlib.h: Make realloc with
2112         __attribute_warn_unused_result__ instead of __wur.
2113         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
2114         markers as in <stdlib.h>.
2115
2116         * libio/stdio.h: Remove __wur from rename and remove.
2117         * posix/unistd.h: Remove __wur from dup2.
2118
2119 2005-01-03  Andreas Jaeger  <aj@suse.de>
2120
2121         * elf/Makefile (tests): Revert patch from 2005-01-03.
2122
2123 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
2124
2125         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
2126         make __libc_init_first hidden.
2127
2128         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
2129         l_relocated of rtld map.
2130         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
2131         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
2132         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
2133         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
2134         * elf/tst-auditmod1.c: Add ppc64 support.
2135         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
2136
2137 2005-01-06  Roland McGrath  <roland@redhat.com>
2138
2139         [BZ #633]
2140         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
2141         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
2142
2143 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
2144
2145         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
2146         * sysdeps/generic/libc-start.c: Don't register program destructor here.
2147
2148         * dlfcn/Makefile: Add rules to build dlfcn.c.
2149         (LDFLAGS-dl.so): Removed.
2150         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
2151         table.
2152         * dlfcn/dlmopen.c: Likewise for _dl_open.
2153         * dlfcn/dlopen.c: Likewise.
2154         * dlfcn/dlopenold.c: Likewise.
2155         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
2156         * elf/Makefile (routines): Remove dl-open and dl-close.
2157         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
2158         Add rules to build and run tst-audit1.
2159         * elf/tst-audit1.c: New file.
2160         * elf/tst-auditmod1.c: New file.
2161         * elf/Versions [libc]: Remove _dl_open and _dl_close.
2162         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
2163         * elf/dl-open.c: Likewise.
2164         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
2165         signaled by nonzero parameter.
2166         * elf/dl-init.c: Fix use of r_state.
2167         * elf/dl-load.c: Likewise.
2168
2169         * elf/dl-close.c: Add auditing checkpoints.
2170         * elf/dl-open.c: Likewise.
2171         * elf/dl-fini.c: Likewise.
2172         * elf/dl-load.c: Likewise.
2173         * elf/dl-sym.c: Likewise.
2174         * sysdeps/generic/libc-start.c: Likewise.
2175         * elf/dl-object.c: Allocate memory for auditing information.
2176         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
2177         Correctly initialize slotinfo.
2178         * elf/dynamic-link.h: Adjust after removal of RESOLV.
2179         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
2180         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
2181         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
2182         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
2183         (_dl_profile_fixup): New parameters to point to register struct and
2184         variable for frame size.
2185         Add auditing checkpoints.
2186         (_dl_call_pltexit): New function.
2187         Don't define trampoline code here.
2188         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
2189         Remove all the functions from _rtld_global_ro which only _dl_open
2190         and _dl_close needed.
2191         Add auditing checkpoints.
2192         * elf/link.h: Define symbols for auditing interfaces.
2193         * include/link.h: Likewise.
2194         * include/dlfcn.h: Define __RTLD_AUDIT.
2195         Remove prototypes for _dl_open and _dl_close.
2196         Adjust access to argc and argv in libdl.
2197         * dlfcn/dlfcn.c: New file.
2198         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
2199         is gone.
2200         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
2201         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
2202         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
2203         Adjust for removal of RESOLVE.
2204         * sysdeps/x86_64/dl-machine.h: Likewise.
2205         * sysdeps/generic/dl-trampoline.c: New file.
2206         * sysdeps/i386/dl-trampoline.c: New file.
2207         * sysdeps/x86_64/dl-trampoline.c: New file.
2208
2209         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
2210         Fix updating of DTV.
2211         * sysdeps/generic/libc-tls.c: Likewise.
2212
2213         * sysdeps/arm/bits/link.h: Renamed to ...
2214         * sysdeps/arm/bits/linkmap.h: ...this.
2215         * sysdeps/generic/bits/link.h: Renamed to...
2216         * sysdeps/generic/bits/linkmap.h: ...this.
2217         * sysdeps/hppa/bits/link.h: Renamed to...
2218         * sysdeps/hppa/bits/linkmap.h: ...this.
2219         * sysdeps/i386/bits/link.h: Renamed to...
2220         * sysdeps/i386/bits/linkmap.h: ...this.
2221         * sysdeps/ia64/bits/link.h: Renamed to...
2222         * sysdeps/ia64/bits/linkmap.h: ...this.
2223         * sysdeps/s390/bits/link.h: Renamed to...
2224         * sysdeps/s390/bits/linkmap.h: ...this.
2225         * sysdeps/sh/bits/link.h: Renamed to...
2226         * sysdeps/sh/bits/linkmap.h: ...this.
2227         * sysdeps/x86_64/bits/link.h: Renamed to...
2228         * sysdeps/x86_64/bits/linkmap.h: ...this.
2229
2230         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
2231
2232 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
2233
2234         [BZ #602]
2235         * math/libm-test.inc (rint_test_tonearest): New test.
2236         (rint_test_towardzero): New test.
2237         (rint_test_downward): New test.
2238         (rint_test_upward): New test.
2239         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
2240         Remove redundant const values.
2241         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
2242         Remove redundant const values.  Use float const.
2243         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
2244         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
2245         Use float const.
2246         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
2247         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
2248         Use float const.
2249         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
2250         Remove redundant const values.
2251         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
2252         Remove redundant const values.  Use float const.
2253         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
2254         Remove redundant const values.
2255         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
2256         Remove redundant const values.  Use float const.
2257         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
2258         alignment.  Fix -0.0 case.  Remove redundant const values.
2259         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
2260         alignment.  Fix -0.0 case.  Remove redundant const values.
2261         Use float const.
2262         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
2263         alignment.  Fix -0.0 case.
2264         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
2265         alignment.  Fix -0.0 case.  Use float const.
2266         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
2267         alignment.  Fix -0.0 case.
2268         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
2269         alignment.  Fix -0.0 case.  Use float const.
2270         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
2271         alignment.  Fix -0.0 case.  Remove redundant const values.
2272         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
2273         alignment.  Fix -0.0 case.  Remove redundant const values.
2274         Use float const.
2275         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
2276         alignment.  Fix -0.0 case.
2277         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
2278         alignment.  Fix -0.0 case.  Remove redundant const values.
2279         Use float const.
2280
2281 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
2282
2283         * misc/sys/cdefs.h: Define __wur.
2284         * libio/stdio.h: Use __wur for a number of interfaces.
2285         * posix/unistd.h: Likewise.
2286         * stdlib/stdlib.h: Likewise.
2287
2288 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
2289
2290         [BZ #592]
2291         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
2292         libc_hidden_proto instead of HIDDEN_PROTO.
2293         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
2294         (__libm_error_support): If ASSEMBLER and in libc, define to
2295         HIDDEN_JUMPTARGET(__libm_error_support).
2296
2297 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
2298
2299         [BZ #592]
2300         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
2301         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
2302         with $(duplicated-routines).
2303         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
2304         "m_" prefix.
2305
2306 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
2307
2308         [BZ #592]
2309         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
2310         undefine "ret" macro.  Add __libm_error_support hidden definitions.
2311
2312         [BZ #592]
2313         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
2314         missing portion of copyright statement.
2315         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
2316         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
2317
2318         [BZ #592]
2319         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
2320         missing portion of copyright statement.
2321         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
2322         (__ieee754_gamma): Likewise.
2323         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2324         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2325
2326 2004-12-09  H. J. Lu <hjl@lucon.org>
2327
2328         [BZ #592]
2329         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
2330         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
2331         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
2332         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
2333         * sysdeps/ia64/fpu/e_expl.S: Likewise.
2334         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
2335
2336 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
2337
2338         [BZ #592]
2339         * sysdeps/ia64/fpu/README: New file.
2340         * sysdeps/ia64/fpu/gen_import_file_list: New file.
2341         * sysdeps/ia64/fpu/import_check: Likewise.
2342         * sysdeps/ia64/fpu/import_diffs: Likewise.
2343         * sysdeps/ia64/fpu/import_file.awk: Likewise.
2344         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
2345         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
2346
2347         [BZ #592]
2348         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
2349         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2350         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2351         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2352         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2353         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2354         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2355         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2356         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2357         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2358         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2359         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2360         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2361         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2362         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2363         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2364         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2365         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2366         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2367         * sysdeps/ia64/fpu/e_log.S: Likewise.
2368         * sysdeps/ia64/fpu/e_log2.S: Likewise.
2369         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
2370         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
2371         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2372         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2373         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2374         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2375         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2376         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2377         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2378         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2379         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2380         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2381         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2382         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2383         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2384         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2385         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2386         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2387         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2388         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
2389         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2390         * sysdeps/ia64/fpu/s_atan.S: Likewise.
2391         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
2392         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
2393         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
2394         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
2395         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
2396         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
2397         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
2398         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
2399         * sysdeps/ia64/fpu/s_cos.S: Likewise.
2400         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
2401         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2402         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
2403         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
2404         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
2405         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
2406         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
2407         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
2408         * sysdeps/ia64/fpu/s_floor.S: Likewise.
2409         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
2410         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
2411         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
2412         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
2413         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2414         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2415         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2416         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2417         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2418         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2419         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2420         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2421         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2422         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2423         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2424         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2425         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2426         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2427         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2428         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2429         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2430         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2431         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2432         * sysdeps/ia64/fpu/s_round.S: Likewise.
2433         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2434         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2435         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2436         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2437         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2438         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2439         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2440         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2441         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2442         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2443         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2444
2445         [BZ #592]
2446         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
2447         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
2448         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
2449         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
2450         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
2451         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
2452         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
2453         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
2454         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
2455         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
2456         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
2457         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
2458         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
2459         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
2460         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
2461         * sysdeps/ia64/fpu/e_logl.S: Likewise.
2462         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
2463         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
2464         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
2465         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
2466         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
2467         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
2468         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
2469         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
2470         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
2471         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
2472         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
2473         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
2474         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
2475         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2476         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
2477         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2478         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
2479         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
2480         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
2481         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
2482         * sysdeps/ia64/fpu/s_erf.S: Likewise.
2483         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
2484         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
2485         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
2486         * sysdeps/ia64/fpu/s_erff.S: Likewise.
2487         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
2488         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
2489         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
2490         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
2491         * sysdeps/ia64/fpu/s_fma.S: Likewise.
2492         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
2493         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
2494         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
2495         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
2496         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
2497         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
2498         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
2499         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
2500         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
2501         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
2502         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
2503         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
2504         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
2505         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
2506         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
2507         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
2508         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
2509         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
2510         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
2511         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
2512         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
2513         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
2514         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
2515         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
2516
2517         [BZ #592]
2518         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
2519         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
2520         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
2521         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
2522         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
2523         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
2524         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
2525         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
2526         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
2527         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
2528         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
2529         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
2530         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
2531         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
2532         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
2533         * sysdeps/ia64/fpu/w_expl.c: Likewise.
2534         * sysdeps/ia64/fpu/e_expl.S: Likewise.
2535         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
2536         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
2537         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
2538         * sysdeps/ia64/fpu/w_log2.c: Likewise.
2539         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
2540         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
2541         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
2542         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
2543         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
2544
2545         [BZ #592]
2546         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
2547         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2548         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2549         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2550         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2551         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2552         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2553
2554         [BZ #592]
2555         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
2556         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
2557         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
2558
2559         [BZ #592]
2560         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
2561
2562         [BZ #592]
2563         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
2564         alias for use by libm_error.c
2565
2566         [BZ #592]
2567         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
2568         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
2569         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
2570         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
2571         libm_scalbn{,f,l}, libm_scalblnf.
2572         (sysdep_routines): Remove libm_frexp4{,f,l}.
2573         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
2574         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
2575         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
2576         -DSIZE_LONG_LONG_INT_64.
2577
2578 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
2579
2580         [BZ #729]
2581         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
2582         l_text_end are set for a VDSO with a single PT_LOAD entry.
2583
2584 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
2585
2586         [BZ #730]
2587         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
2588         invalid to disable optimizations in fileops which won't work here.
2589         (_IO_cookie_jumps): Use it.
2590         (_IO_old_cookie_jumps): Likewise.
2591         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
2592         not the return value.
2593         * stdio-common/Makefile (tests): Add tst-fmemopen2.
2594         * stdio-common/tst-fmemopen2.c: New file.
2595
2596         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
2597
2598 2005-01-05  Roland McGrath  <roland@redhat.com>
2599
2600         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
2601         * sysdeps/i386/configure.in: ... here.  New file.
2602
2603 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
2604
2605         [BZ #727]
2606         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
2607         initialize __environ again.
2608         * stdlib/Makefile: Add rules to build and run tst-putenv.
2609         * stdlib/tst-putenv.c: New file.
2610         * stdlib/tst-putenvmod.c: New file.
2611
2612         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
2613         define unnecessary wrappers or aliases of static functions.
2614
2615 2005-01-03  Andreas Jaeger  <aj@suse.de>
2616
2617         * csu/Makefile (generated): Add start.os and start.ob.
2618
2619         * elf/Makefile (tests): Change rule for tst-pie1 so that make
2620         clean works.
2621
2622 2004-12-29  Roland McGrath  <roland@redhat.com>
2623
2624         [BZ #626]
2625         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
2626         than always up; when nearest is zero, round up to one.
2627
2628 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
2629
2630         * po/es.po: Update from translation team.
2631
2632         [BZ #726]
2633         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
2634
2635 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
2636
2637         [BZ #744]
2638         * include/signal.h: Define __sigemptyset.
2639
2640 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
2641
2642         * posix/regex_internal.h (struct re_dfastate_t): Make
2643         word_trtable a pointer to the 512-item transition table.
2644         * posix/regexec.c (build_trtable): Fill in either state->trtable
2645         or state->word_trtable.  Return a boolean indicating success.
2646         (transit_state): Expect state->trtable to be a 256-item
2647         transition table.  Reorganize code to have less tests in
2648         the common case, and to save an indentation level.
2649         * posix/regex_internal.c (free_state): Free word_trtable.
2650
2651 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
2652
2653         [BZ #723]
2654         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
2655         calling fn is 16 byte aligned.
2656         * sysdeps/i386/tst-stack-align.h: New file.
2657
2658         [BZ #725]
2659         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
2660         (ecvt_r): Special case denormals.
2661         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
2662         * misc/tst-efgcvt.c: Include float.h.
2663         (ecvt_tests): Add 2 new tests.
2664
2665 2004-12-20  Roland McGrath  <roland@frob.com>
2666
2667         * version.h (RELEASE, VERSION): development, 2.3.90
2668         * include/features.h (__GLIBC_MINOR__): Now 4.
2669
2670
2671 See ChangeLog.15 for earlier changes.