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