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