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