* iconvme.h: New file, extracted from toutf8.c but improved.
[platform/upstream/glibc.git] / ChangeLog
1 2005-02-12  Simon Josefsson  <jas@extundo.com >
2
3         * iconvme.h: New file, extracted from toutf8.c but improved.
4         * iconvme.c: New file.
5         * toutf8.c: Include stringprep.h first, to make the compiler check
6         that stringprep.h is standalone.  Improve comments.  Replace
7         #include of errno.h and sys/param.h with iconvme.h.  Don't define
8         ICONV_CONST.
9         (stringprep_convert): Rewrite to use iconvme.h.
10
11 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
12
13         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
14         NETDB_INTERNAL if buffer is too small.
15
16         * nscd/hstcache.c (INCR): Remove.
17         (addhstbyX): Double buflen in each iteration rather than add INCR.
18         * nscd/grpcache.c: Likewise.
19         * nscd/pwdcache.c: Likewise.
20
21 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
22
23         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
24         map if requested.
25         * debug/chk_fail.c: Request backtrace and memory map dump.
26
27         * Versions.def: Add GLIBC_2.4 for libc.
28         * debug/fgets_chk.c: New file.
29         * debug/fgets_u_chk.c: New file.
30         * debug/getcwd_chk.c: New file.
31         * debug/getwd_chk.c: New file.
32         * debug/readlink_chk.c: New file.
33         * debug/read_chk.c: New file.
34         * debug/pread_chk.c: New file.
35         * debug/pread64_chk.c: New file.
36         * debug/recv_chk.c: New file.
37         * debug/recvfrom_chk.c: New file.
38         * debug/Versions: Add all new functions with version GLIBC_2.4.
39         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
40         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
41         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
42         * debug/tst-chk1.c: Add more tests.
43         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
44         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
45         * posix/unistd.h: Include <bits/unistd.h> for fortification.
46         * posix/bits/unistd.h: New file.
47         * posix/Makefile (headers): Add bits/unistd.h.
48         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
49         * socket/bits/socket2.h: New file.
50         * socket/Makefile (headers): Add bits/socket2.h.
51
52         * string/bits/string3.h: Extend memset macro to check for zero 3rd
53         parameter and use __memset_zero_constant_len_parameter in that case.
54         * sysdeps/generic/memset_chk.c: Add
55         __memset_zero_constant_len_parameter alias and linker warning.
56         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
57         with version GLIBC_2.4.
58
59         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
60         in __STD_TYPE definition.
61
62 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
63
64         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
65         the error message rather than program name.
66
67 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
68
69         * posix/unistd.h: symlink and readlink are unconditionally
70         available in the 2001 spec.
71
72 2005-02-16  Roland McGrath  <roland@redhat.com>
73
74         * intl/dcigettext.c (_nl_find_msg): Add a cast.
75
76         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
77         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
78         * nis/nis_clone_res.c (nis_clone_result): Likewise.
79
80         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
81         for END_OF_MESSAGE and CP.
82
83         * resolv/res_send.c (send_dg): Add else branch for case impossible
84         unless `poll' is buggy.
85
86         * crypt/crypt_util.c (__setkey_r): Add a cast.
87
88         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
89         NBYTES, and unsigned char * for BYTES.
90
91         * locale/programs/charmap.c (charmap_new_char): Use size_t and
92         unsighed char * for NBYTES, BYTES parameters.
93
94         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
95         and cast it.
96         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
97
98         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
99
100         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
101
102         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
103         (authdes_marshal): Don't use unsigned int for LEN.
104         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
105         (xdr_u_hyper): Likewise.
106         (xdr_u_short): Don't use u_long for L.
107         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
108
109         * inet/rexec.c (rexec_af): Use socklen_t.
110         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
111         * sunrpc/rtime.c (rtime): Likewise.
112         * resolv/res_send.c (send_vc, send_dg): Likewise.
113         * nis/nis_callback.c (__nis_create_callback): Likewise.
114
115         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
116
117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
118
119         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
120
121         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
122         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
123         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
124         * intl/bindtextdom.c (INTUSE): Macro removed.
125         (_nl_default_dirname): Use libc_hidden_proto.
126         (set_binding_values): Don't use INTUSE.
127         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
128         (_libc_intl_domainname): Use libc_hidden_proto.
129         * posix/regex_internal.h (gettext): Remove INTUSE on it.
130         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
131         rather than INTDEF.
132         * include/libintl.h (_): Don't use *_internal name.
133
134         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
135         not uint32_t.
136         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
137
138         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
139
140         [BZ #721]
141         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
142         of [RESOLVE_MAP].
143         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
144         * sysdeps/powerpc/powerpc32/dl-machine.h
145         (elf_machine_rel, elf_machine_rel_relative): Removed.
146         * sysdeps/powerpc/powerpc64/dl-machine.h
147         (elf_machine_rel, elf_machine_rel_relative): Removed.
148
149 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
150
151         [BZ #721]
152         * elf/dynamic-link.h: Don't declare nested auto functions that are
153         not going to be defined.
154
155 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
156
157         [BZ #284]
158         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
159         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
160
161 2005-02-16  Roland McGrath  <roland@redhat.com>
162
163         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
164         inside [! SHARED] where it's used.
165
166 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
167
168         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
169         functions and macros is unsigned.
170
171 2005-02-11  Barry deFrese  <bddebian@comcast.net>
172
173         [BZ #722]
174         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
175         * sysdeps/mach/hurd/setresuid.c: Likewise.
176
177 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
178
179         * misc/sys/syslog.h: Fix typo in comment.
180
181 2005-02-14  Roland McGrath  <roland@redhat.com>
182
183         [BZ #720]
184         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
185         if it wasn't originally.
186
187 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
188
189         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
190         getpeername entry.
191         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
192         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
193
194 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
195
196         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
197         matching line.
198
199 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
200
201         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
202         with auto inline, and attribute always_inline.
203         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
204         (elf_machine_rel, elf_machine_rel_relative): Likewise.
205         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
206         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
207         (elf_machine_rel, elf_machine_rel_relative): Likewise.
208         (elf_machine_tprel): Likewise.
209
210 2005-02-14  Andreas Schwab  <schwab@suse.de>
211
212         * manual/filesys.texi (Random Access Directory): Fix type of file
213         position value for telldir and seekdir.
214         (Attribute Meanings): Fix typo.
215
216 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
217
218         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
219         isn't defined.
220         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
221         if SHARED isn't defined.
222         * elf/Makefile (tests-static): Add tst-array1-static.
223         ($(objpfx)tst-array1-static.out): New target.
224         * elf/tst-array1-static.c: New file.
225
226 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
227
228         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
229         __libc_message to kill GCC warning about noreturn function returning.
230
231         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
232         before relocating ld.so again.
233
234         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
235         for already prelinked ld.so.
236
237 2005-02-11  Roland McGrath  <roland@redhat.com>
238
239         [BZ #715]
240         * Makefile (installed-stubs): New variable.
241         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
242         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
243         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
244         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
245         rule's target.
246         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
247         * include/stubs-biarch.h: New file.
248
249         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
250
251         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
252         Emit defn for variable `biarch'.
253
254         * include/stub-tag.h: Update comment.
255
256         * scripts/soversions.awk: Fix default version set handling.
257
258 2005-02-10  Roland McGrath  <roland@redhat.com>
259
260         [BZ #157]
261         * include/libc-symbols.h (stub_warning): Emit a marker section called
262         .gnu.glibc-stub.NAME.
263         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
264         Use objdump to collect those marker section names.
265         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
266
267         * Rules (subdir_objs, subdir_stubs): New phony targets.
268         * Makefile (+subdir_targets): Add them.
269
270         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
271         soversions.i.
272
273         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
274         Reported by H.J. Lu <hongjiu.lu@intel.com>.
275
276         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
277         doing two.
278
279 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
280
281         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
282         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
283         * sysdeps/powerpc/bits/link.h: ... here.  New file.
284
285 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
286
287         [BZ #710]
288         * stdlib/random_r.c (__initstate_r): Save old state.
289         * stdlib/Makefile (tests): Add tst-random2.
290         * stdlib/tst-random2.c: New test.
291         Reported by Peter Bergner <bergner@vnet.ibm.com>.
292
293 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
294
295         * dlfcn/dlfcn.c (init): Put it in .init_array section.
296
297 2005-02-10  Roland McGrath  <roland@redhat.com>
298
299         [BZ #632]
300         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
301         from command line.
302         Grok shlib-versions lines with WORDSIZE* in second column.
303         Add new leading column to output, DEFAULT for existing output lines.
304         Also emit lines with WORDSIZE* for alternate configurations.
305         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
306         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
307         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
308         of soversions.mk; replace inline shell script with use of ...
309         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
310         emit multiple sets of macros under #if.
311         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
312         (s390x-.*-.*): Likewise for s390.
313         (powerpc64-.*-.*): Likewise for powerpc.
314         (sparc64-.*-.*): Likewise for sparc.
315         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
316         for these mapping back to the above.
317
318 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
319
320         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
321
322 2005-02-08  Andreas Schwab  <schwab@suse.de>
323
324         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
325         RESOLVE.
326
327 2005-02-07  Richard Henderson  <rth@redhat.com>
328
329         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
330
331 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
332
333         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
334         RESOLVE.
335
336 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
337
338         * elf/dl-load.c (_dl_map_object_from_fd): Makre sure registers are
339         set correctly.
340
341 2005-01-07  Richard Henderson  <rth@redhat.com>
342
343         * math/math_private.h (__copysign): Define as builtin for gcc 4.
344         (__copysignf, __copysignl): Likewise.
345         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
346         for gcc 4.0.
347         (copysignf, copysignl, fabsf, fabs): Likewise.
348         (__copysign, __copysignf, __copysignl): Remove.
349         (__fabs, __fabsf): Remove.
350
351 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
352
353         [BZ #738]
354         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
355         avoid writing to it if none of the standard search directories exist.
356
357 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
358
359         [BZ #700]
360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
361         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
362         Load MSR as a doubleword.
363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
364         (__novec_swapcontext, __swapcontext): Likewise.
365
366 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
367
368         * iconv/iconv_prog.c (main): Provide more help in case on an error.
369
370         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
371
372 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
373
374         [BZ #741]
375         * nscd/nscd.c (termination_handler): Avoid segfault if some database
376         is not enabled.
377
378         [BZ #741]
379         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
380         __nss_not_use_nscd_hosts and return -1.
381         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
382         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
383         Avoid leaking sockets.
384
385 2005-01-28  Andreas Schwab  <schwab@suse.de>
386             H.J. Lu  <hongjiu.lu@intel.com>
387
388         [BZ #677]
389         * elf/dl-runtime.c (fixup): Change return type to
390         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
391         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
392         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
393         store and retrieve relocation values.
394         (profile_fixup): Likewise.
395         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
396         l_reloc_result.
397         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
398         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
399         (DL_FIXUP_MAKE_VALUE): Likewise.
400         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
401         (DL_FIXUP_VALUE_ADDR): Likewise.
402         (DL_FIXUP_ADDR_VALUE): Likewise.
403         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
404         (DL_FIXUP_VALUE_TYPE): New.
405         (DL_FIXUP_MAKE_VALUE): Likewise.
406         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
407         (DL_FIXUP_VALUE_ADDR): Likewise.
408         (DL_FIXUP_ADDR_VALUE): Likewise.
409         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
410         (elf_machine_profile_plt): Removed.
411         (elf_machine_fixup_plt): Change return type and type of value
412         parameter to struct fdesc.
413         (elf_machine_plt_value): Likewise.
414         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
415         argument for elf_machine_fixup_plt.
416
417 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
418
419         [BZ #742]
420         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
421         after the status string printed by killproc.
422
423 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
424
425         * manual/.cvsignore: Add dir-add.texi.
426
427 2005-02-06  Richard Henderson  <rth@redhat.com>
428
429         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
430         all the time.
431
432 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
433
434         * configure.in (sysnames): Append sysdeps/generic for each add-on.
435         * configure: Regenerated.
436
437 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
438
439         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
440         (dtv_t): Change pointer type to be a struct which also contains
441         information whether the memory pointed to is static TLS or not.
442
443         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
444
445         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
446         (FALSEP): ... this.  Updated all references.
447
448         * libio/fmemopen.c: Include <stdint.h>.
449
450 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
451
452         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
453         * nscd/connections.c (send_ro_fd): Likewise.
454
455 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
456
457         * elf/tst-auditmod1.c: Add ia64 entries.
458         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
459         (La_ia64_retval): New.
460         (audit_ifaces): Add ia64 entries.
461         * sysdeps/ia64/bits/link.h: New file.
462         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
463         for dl_profile non-null.
464         (ARCH_LA_PLTENTER): New.
465         (ARCH_LA_PLTEXIT): New.
466         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
467         only 2 output registers. Allocate stack to save/restore
468         8 incoming fp registers. Call _dl_fixup instead of fixup.
469         (_dl_runtime_profile): Rewrite.
470
471 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
472
473         * sysdeps/s390/bits/link.h: New file.
474         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
475         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
476         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
477         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
478         relocation code.
479         (elf_machine_runtime_setup): Test for dl_profile non-null.
480         (elf_machine_rela): Remove code using RESOLVE.
481         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
482         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
483         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
484         La_s390_64_regs, La_s390_64_retval): New.
485         * elf/tst-auditmod1.c: Add s390 entries.
486
487         [BZ #743]
488         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
489         strncat, memchr, strcmp): Add missing memory clobber.
490
491 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
492
493         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
494         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
495
496 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
497
498         [BZ #558]
499         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
500         Initialize the node sets in dfa->inveclosures.
501         (analyze): Initialize inveclosures only if it is needed.
502         Check errors from calc_inveclosure.
503         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
504         the inveclosure node set.
505         * posix/regexec.c (re_search_internal): If nmatch includes unused
506         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
507
508         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
509         Do build a SIMPLE_BRACKET token.
510
511         * posix/regexec.c (transit_state_mb): Do not examine nodes
512         where ACCEPT_MB is not set.
513
514 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
515
516         * stdlib/tst-fmtmsg.c: Include stdlib.h.
517         * stdio-common/tst-fmemopen2.c: Include string.h.
518         * posix/execvp.c: Include stdbool.h.
519
520 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
521
522         Separate parsing and creation of the NFA.  Avoided recursion on
523         the (very unbalanced) parse tree.
524         [BZ #611]
525         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
526         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
527         (optimize_subexps, duplicate_tree, calc_first, calc_next,
528         mark_opt_subexp): Rewritten.
529         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
530         create_token_tree, free_tree, free_token): New.
531         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
532         postorder generic visitors.  Do not initialize the fields in the
533         re_dfa_t that represent the transitions.
534         (free_dfa_content): Use free_token.
535         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
536         include optimization of subexpressions.
537         (create_initial_state): Fetch the DFA node index from the first node's
538         bin_tree_t *.
539         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
540         Return on COMPLEX_BRACKET.
541         (duplicate_node_closure): Fix comment.
542         (duplicate_node): Do not initialize the fields in the
543         re_dfa_t that represent the transitions.
544         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
545         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
546         to use create_token_tree.
547         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
548         build_charclass_op): Use create_tree or create_token_tree instead
549         of re_dfa_add_tree_node.
550         (parse_dup_op): Likewise.  Also free the tree using free_tree for
551         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
552         to "a|".  Adjust invocation of mark_opt_subexp.
553         (parse_sub_exp): Create a single SUBEXP node.
554         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
555         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
556         DUPLICATED, and initialize the DFA fields representing the transitions.
557         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
558         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
559         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
560         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
561         NEXT into pointers to trees.  Remove ECLOSURE.
562
563 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
564
565         [BZ #605]
566         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
567         that were already created.
568         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
569         in the token if needed.
570         (create_ci_newstate, create_cd_newstate): Set accept_mb field
571         from the tokens' field.
572         * posix/regex_internal.h (re_token_t): Add accept_mb field.
573         (ACCEPT_MB_NODE): Removed.
574         * posix/regexec.c (proceed_next_node, transit_states_mb,
575         build_sifted_states, check_arrival_add_next_nodes): Use
576         accept_mb instead of ACCEPT_MB_NODE.
577
578 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
579
580         * debug/chk_fail.c (__chk_fail): Print program name in final message.
581
582         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
583         MSG_NOSIGNAL being in 2.2 kernels.
584
585 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
586
587         * sysdeps/unix/sysv/linux/i386/sysdep.h
588         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
589
590         [BZ #693]
591         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
592         (WORD_DELIM_CONSTRAINT): ...this.
593         (NOT_WORD_DELIM_CONSTRAINT): Define.
594         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
595         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
596         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
597         anchor instead of INSIDE_WORD.
598         (parse_expression): Handle NOT_WORD_DELIM constraint.
599         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
600         being inside word instead of not word delim.
601         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
602         characters.
603         * posix/rxspencer/tests: Add some new tests.
604
605 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
606
607         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
608         irrespective of Cflag.
609
610         * manual/memory.texi (sbrk): Fix definition.
611         * manual/string.texi (strcasestr): Fix example typo.
612
613 2005-01-25  Roland McGrath  <roland@redhat.com>
614
615         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
616
617 2005-01-23  Roland McGrath  <roland@redhat.com>
618
619         [BZ #737]
620         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
621         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
622         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
623         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
624         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
625         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
626
627 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
628
629         [BZ #731]
630         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
631         (free_mem): Don't free string.
632         * stdlib/tst-fmtmsg.c: Include string.h.
633         (main): Add some more tests.
634
635 2005-01-25  Andreas Schwab  <schwab@suse.de>
636
637         [BZ #736]
638         * timezone/asia: Update from tzdata2005c.
639         * timezone/backward: Likewise.
640         * timezone/europe: Likewise.
641         * timezone/leapseconds: Likewise.
642         * timezone/northamerica: Likewise.
643         * timezone/southamerica: Likewise.
644
645         [BZ #736]
646         * timezone/private.h: Update from tzcode2005c.
647         * timezone/tzfile.h: Likewise.
648         * timezone/zdump.c: Likewise.
649         * timezone/zic.c: Likewise.
650
651 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
652
653         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
654         RESOLVE.
655         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
656         using RESOLVE.
657         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
658
659 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
660
661         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
662         sym_map, not sym, against zero.
663
664 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
665
666         [BZ #671]
667         * misc/syslog.c: Moved to...
668         * sysdeps/generic/syslog.c: ...here.
669         [NO_SIGIPE]: Don't install SIGPIPE handler.
670         * sysdeps/unix/sysv/linux/syslog.c: New file.
671         * sysdeps/unix/sysv/linux/kernel-features.h: Define
672         __ASSUME_MSG_NOSIGNAL.
673
674 2005-01-22  Richard Henderson  <rth@redhat.com>
675
676         * sysdeps/alpha/dl-trampoline.S: New file.
677         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
678         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
679         (elf_machine_runtime_setup): Test for dl_profile non-null.
680         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
681         * sysdeps/alpha/bits/link.h: New file.
682         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
683         (struct audit_ifaces): Add alpha entries.
684         * elf/tst-auditmod1.c: Add alpha entries.
685
686 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
687
688         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
689         * sysdeps/ia64/dl-trampoline.S: New file.
690
691         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
692         La_x86_64_xmm definition.
693
694         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
695         pointer option.
696         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
697         CFLAGS-system.c for frame pointer option.
698
699 2005-01-21  Roland McGrath  <roland@redhat.com>
700
701         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
702         * sysdeps/i386/dl-machine.h: Update decl.
703
704 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
705
706         [BZ #735]
707         * elf/Makefile: Add rules to build and run tst-align2.
708         * elf/tst-align2.c: New test.
709         * elf/tst-alignmod2.c: New file.
710         * sysdeps/powerpc/tst-stack-align.h: New file.
711         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
712         pointer before calling _dl_init.
713         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
714
715 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
716
717         * posix/execl.c: Do not allocate potentially large buffers on the
718         stack.
719         * posix/execle.c: Likewise.
720         * posix/execlp.c: Likewise.
721         * posix/execlp.c: Likewise.
722         (script_execute): Removed.
723         (allocate_scripts_argv): New function.  Called at most once to
724         allocate memory, not every time a script is run.  Adjust caller.
725
726         * sysdeps/generic/wordexp.c (exec_comm): Add a few
727         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
728         exec_comm_child.
729         (exec_comm_child): Can now be inlined.
730
731         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
732         * stdlib/Makefile: Likewise.
733
734 2005-01-19  Roland McGrath  <roland@redhat.com>
735
736         [BZ #681]
737         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
738         argument to execlp.
739         Reported by Marcus Meissner <meissner@suse.de>.
740
741 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
742
743         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
744         in assert.
745         * iconv/strtab.c (strtabfinalize): Likewise.
746
747         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
748
749 2005-01-17  Roland McGrath  <roland@redhat.com>
750
751         [BZ #745]
752         * nscd/Makefile (LDLIBS-nscd): New variable.
753         ($(objpfx)nscd): Use that instead of selinux-LIBS.
754
755         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
756         (link-extra-libs-static): Define to $(link-extra-libs).
757         (link-extra-libs-bounded): Likewise.
758
759 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
760
761         * include/link.h: Remove stray definition of pltenter.
762
763 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
764
765         [BZ #734]
766         * sysdeps/unix/rewinddir.c: Reset filepos.
767         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
768
769 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
770
771         * elf/tst-auditmod1.c: Reduce duplication.
772
773 2005-01-16  Andreas Schwab  <schwab@suse.de>
774
775         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
776         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
777         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
778         GLRO(dl_profile) != NULL.
779         * sysdeps/m68k/dl-trampoline.S: New file.
780         * sysdeps/m68k/bits/link.h: New file.
781         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
782         variants.
783         * elf/tst-auditmod1.c: Add m68k support.
784
785 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
786
787         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
788         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
789
790         [BZ #731]
791         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
792         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
793
794 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
795
796         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
797         callers from libc anymore.
798
799         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
800         to _dl_map_object_deps.
801         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
802         protections when loading auditing modules.
803
804         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
805
806         * posix/getconf.c: Update copyright year.
807         * nss/getent.c: Likewise.
808         * nscd/nscd_nischeck.c: Likewise.
809         * iconv/iconvconfig.c: Likewise.
810         * iconv/iconv_prog.c: Likewise.
811         * elf/ldconfig.c: Likewise.
812         * catgets/gencat.c: Likewise.
813         * csu/version.c: Likewise.
814         * elf/ldd.bash.in: Likewise.
815         * elf/sprof.c (print_version): Likewise.
816         * locale/programs/locale.c: Likewise.
817         * locale/programs/localedef.c: Likewise.
818         * nscd/nscd.c (print_version): Likewise.
819         * debug/xtrace.sh: Likewise.
820         * malloc/memusage.sh: Likewise.
821         * malloc/mtrace.pl: Likewise.
822         * debug/catchsegv.sh: Likewise.
823
824 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
825
826         [BZ #733]
827         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
828         as backlog.
829         * sunrpc/svc_unix.c (svcunix_create): Likewise.
830
831         * grp/putgrent.c (putgrent): Don't write 0 as group
832         ID if groupname starts with + or -.
833         * pwd/putpwent.c (putpwent): Don't write 0 as user or
834         group ID if user name starts with + or -.
835
836 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
837
838         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
839         * sysdeps/elf/tst-auditmod1.c: Add sh support.
840         * sysdeps/sh/bits/link.h: New.
841         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
842         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
843         (RTLD_START): Define __fpscr_values.
844         * sysdeps/sh/dl-trampoline.S: New file.
845         * sysdeps/sh/sh4/dl-trampoline.S: New file.
846         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
847         * sysdeps/sh/sh4/dl-machine.h: Remove.
848
849 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
850
851         [BZ #732]
852         * time/tst-strptime.c (day_tests): Add 2 new tests.
853         (test_tm, main): Issue an error instead of segfaulting if
854         strptime returns NULL.
855
856 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
857
858         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
859         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
860
861 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
862
863         * malloc/malloc.h: Remove no-glibc support.
864
865 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
866
867         [BZ #650]
868         * malloc/malloc.h: Always include features.h.
869
870 2005-01-10  Roland McGrath  <roland@redhat.com>
871
872         * sysdeps/ia64/fpu/e_logl.c: File removed.
873
874         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
875
876 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
877
878         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
879         recognition of last entry.
880
881 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
882
883         * elf/dl-runtime.c: Include <sys/param.h>.
884
885         * elf/Makefile (headers): Add bits/link.h.
886
887 2005-01-09  Andreas Schwab  <schwab@suse.de>
888
889         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
890
891 2005-01-09  Andreas Jaeger  <aj@suse.de>
892
893         [BZ #732]
894         * time/strptime_l.c (__strptime_internal): Add braces to avoid
895         warning.
896
897         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
898
899         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
900
901 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
902
903         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
904
905 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
906
907         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
908         those of all the regular objects.
909
910         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
911         use it to select the r_debug structure for that namespace.
912         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
913         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
914         * elf/dl-open.c (_dl_open): Likewise.
915         * elf/rtld.c (dl_main): Likewise.
916         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
917         member.
918         (_dl_debug_initialize): Add new parameter in declaration.
919
920         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
921         called for the auditing objects themselves.
922         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
923
924 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
925
926         * sysdeps/powerpc/powerpc64/dl-machine.h
927         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
928         GLRO(dl_profile) != NULL.
929         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
930         padding.
931         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
932         Extend _dl_prof_resolve to add pass extra parameters to
933         _dl_profile_fixup and set up structure with register content.
934
935         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
936         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
937         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
938         Extend _dl_prof_resolve to add pass extra parameters to
939         _dl_profile_fixup and set up structure with register content.
940         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
941         the register and result structures.
942         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
943         in the 32-bit register and result structures.
944
945         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
946
947         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
948         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
949         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
950         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
951         * elf/tst-auditmod1.c: Add ppc32 support.
952         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
953         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
954
955         * malloc/malloc.c (malloc_printerr): Print program name as part of
956         error message.
957
958         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
959         * stdlib/stdlib.h: Make realloc with
960         __attribute_warn_unused_result__ instead of __wur.
961         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
962         markers as in <stdlib.h>.
963
964         * libio/stdio.h: Remove __wur from rename and remove.
965         * posix/unistd.h: Remove __wur from dup2.
966
967 2005-01-03  Andreas Jaeger  <aj@suse.de>
968
969         * elf/Makefile (tests): Revert patch from 2005-01-03.
970
971 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
972
973         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
974         make __libc_init_first hidden.
975
976         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
977         l_relocated of rtld map.
978         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
979         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
980         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
981         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
982         * elf/tst-auditmod1.c: Add ppc64 support.
983         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
984
985 2005-01-06  Roland McGrath  <roland@redhat.com>
986
987         [BZ #633]
988         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
989         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
990
991 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
992
993         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
994         * sysdeps/generic/libc-start.c: Don't register program destructor here.
995
996         * dlfcn/Makefile: Add rules to build dlfcn.c.
997         (LDFLAGS-dl.so): Removed.
998         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
999         table.
1000         * dlfcn/dlmopen.c: Likewise for _dl_open.
1001         * dlfcn/dlopen.c: Likewise.
1002         * dlfcn/dlopenold.c: Likewise.
1003         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
1004         * elf/Makefile (routines): Remove dl-open and dl-close.
1005         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
1006         Add rules to build and run tst-audit1.
1007         * elf/tst-audit1.c: New file.
1008         * elf/tst-auditmod1.c: New file.
1009         * elf/Versions [libc]: Remove _dl_open and _dl_close.
1010         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
1011         * elf/dl-open.c: Likewise.
1012         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
1013         signaled by nonzero parameter.
1014         * elf/dl-init.c: Fix use of r_state.
1015         * elf/dl-load.c: Likewise.
1016
1017         * elf/dl-close.c: Add auditing checkpoints.
1018         * elf/dl-open.c: Likewise.
1019         * elf/dl-fini.c: Likewise.
1020         * elf/dl-load.c: Likewise.
1021         * elf/dl-sym.c: Likewise.
1022         * sysdeps/generic/libc-start.c: Likewise.
1023         * elf/dl-object.c: Allocate memory for auditing information.
1024         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
1025         Correctly initialize slotinfo.
1026         * elf/dynamic-link.h: Adjust after removal of RESOLV.
1027         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
1028         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
1029         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
1030         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
1031         (_dl_profile_fixup): New parameters to point to register struct and
1032         variable for frame size.
1033         Add auditing checkpoints.
1034         (_dl_call_pltexit): New function.
1035         Don't define trampoline code here.
1036         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
1037         Remove all the functions from _rtld_global_ro which only _dl_open
1038         and _dl_close needed.
1039         Add auditing checkpoints.
1040         * elf/link.h: Define symbols for auditing interfaces.
1041         * include/link.h: Likewise.
1042         * include/dlfcn.h: Define __RTLD_AUDIT.
1043         Remove prototypes for _dl_open and _dl_close.
1044         Adjust access to argc and argv in libdl.
1045         * dlfcn/dlfcn.c: New file.
1046         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
1047         is gone.
1048         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
1049         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
1050         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
1051         Adjust for removal of RESOLVE.
1052         * sysdeps/x86_64/dl-machine.h: Likewise.
1053         * sysdeps/generic/dl-trampoline.c: New file.
1054         * sysdeps/i386/dl-trampoline.c: New file.
1055         * sysdeps/x86_64/dl-trampoline.c: New file.
1056
1057         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
1058         Fix updating of DTV.
1059         * sysdeps/generic/libc-tls.c: Likewise.
1060
1061         * sysdeps/arm/bits/link.h: Renamed to ...
1062         * sysdeps/arm/bits/linkmap.h: ...this.
1063         * sysdeps/generic/bits/link.h: Renamed to...
1064         * sysdeps/generic/bits/linkmap.h: ...this.
1065         * sysdeps/hppa/bits/link.h: Renamed to...
1066         * sysdeps/hppa/bits/linkmap.h: ...this.
1067         * sysdeps/i386/bits/link.h: Renamed to...
1068         * sysdeps/i386/bits/linkmap.h: ...this.
1069         * sysdeps/ia64/bits/link.h: Renamed to...
1070         * sysdeps/ia64/bits/linkmap.h: ...this.
1071         * sysdeps/s390/bits/link.h: Renamed to...
1072         * sysdeps/s390/bits/linkmap.h: ...this.
1073         * sysdeps/sh/bits/link.h: Renamed to...
1074         * sysdeps/sh/bits/linkmap.h: ...this.
1075         * sysdeps/x86_64/bits/link.h: Renamed to...
1076         * sysdeps/x86_64/bits/linkmap.h: ...this.
1077
1078         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
1079
1080 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
1081
1082         [BZ #602]
1083         * math/libm-test.inc (rint_test_tonearest): New test.
1084         (rint_test_towardzero): New test.
1085         (rint_test_downward): New test.
1086         (rint_test_upward): New test.
1087         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
1088         Remove redundant const values.
1089         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
1090         Remove redundant const values.  Use float const.
1091         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
1092         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
1093         Use float const.
1094         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
1095         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
1096         Use float const.
1097         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
1098         Remove redundant const values.
1099         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
1100         Remove redundant const values.  Use float const.
1101         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
1102         Remove redundant const values.
1103         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
1104         Remove redundant const values.  Use float const.
1105         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
1106         alignment.  Fix -0.0 case.  Remove redundant const values.
1107         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
1108         alignment.  Fix -0.0 case.  Remove redundant const values.
1109         Use float const.
1110         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
1111         alignment.  Fix -0.0 case.
1112         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
1113         alignment.  Fix -0.0 case.  Use float const.
1114         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
1115         alignment.  Fix -0.0 case.
1116         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
1117         alignment.  Fix -0.0 case.  Use float const.
1118         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
1119         alignment.  Fix -0.0 case.  Remove redundant const values.
1120         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
1121         alignment.  Fix -0.0 case.  Remove redundant const values.
1122         Use float const.
1123         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
1124         alignment.  Fix -0.0 case.
1125         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
1126         alignment.  Fix -0.0 case.  Remove redundant const values.
1127         Use float const.
1128
1129 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
1130
1131         * misc/sys/cdefs.h: Define __wur.
1132         * libio/stdio.h: Use __wur for a number of interfaces.
1133         * posix/unistd.h: Likewise.
1134         * stdlib/stdlib.h: Likewise.
1135
1136 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
1137
1138         [BZ #592]
1139         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
1140         libc_hidden_proto instead of HIDDEN_PROTO.
1141         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
1142         (__libm_error_support): If ASSEMBLER and in libc, define to
1143         HIDDEN_JUMPTARGET(__libm_error_support).
1144
1145 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
1146
1147         [BZ #592]
1148         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
1149         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
1150         with $(duplicated-routines).
1151         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
1152         "m_" prefix.
1153
1154 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
1155
1156         [BZ #592]
1157         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
1158         undefine "ret" macro.  Add __libm_error_support hidden definitions.
1159
1160         [BZ #592]
1161         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
1162         missing portion of copyright statement.
1163         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1164         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1165
1166         [BZ #592]
1167         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
1168         missing portion of copyright statement.
1169         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
1170         (__ieee754_gamma): Likewise.
1171         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1172         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1173
1174 2004-12-09  H. J. Lu <hjl@lucon.org>
1175
1176         [BZ #592]
1177         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
1178         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
1179         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
1180         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
1181         * sysdeps/ia64/fpu/e_expl.S: Likewise.
1182         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
1183
1184 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
1185
1186         [BZ #592]
1187         * sysdeps/ia64/fpu/README: New file.
1188         * sysdeps/ia64/fpu/gen_import_file_list: New file.
1189         * sysdeps/ia64/fpu/import_check: Likewise.
1190         * sysdeps/ia64/fpu/import_diffs: Likewise.
1191         * sysdeps/ia64/fpu/import_file.awk: Likewise.
1192         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
1193         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
1194
1195         [BZ #592]
1196         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
1197         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1198         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1199         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1200         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1201         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1202         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1203         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1204         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1205         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1206         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1207         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1208         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1209         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1210         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1211         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1212         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1213         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1214         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1215         * sysdeps/ia64/fpu/e_log.S: Likewise.
1216         * sysdeps/ia64/fpu/e_log2.S: Likewise.
1217         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
1218         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
1219         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1220         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1221         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1222         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1223         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1224         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1225         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1226         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1227         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1228         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1229         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1230         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1231         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1232         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1233         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1234         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1235         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1236         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
1237         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1238         * sysdeps/ia64/fpu/s_atan.S: Likewise.
1239         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
1240         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1241         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
1242         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
1243         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
1244         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
1245         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
1246         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
1247         * sysdeps/ia64/fpu/s_cos.S: Likewise.
1248         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1249         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1250         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1251         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1252         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
1253         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
1254         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
1255         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
1256         * sysdeps/ia64/fpu/s_floor.S: Likewise.
1257         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
1258         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
1259         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
1260         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
1261         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1262         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1263         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1264         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1265         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1266         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1267         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1268         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1269         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1270         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1271         * sysdeps/ia64/fpu/s_modf.S: Likewise.
1272         * sysdeps/ia64/fpu/s_modff.S: Likewise.
1273         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1274         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1275         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1276         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1277         * sysdeps/ia64/fpu/s_rint.S: Likewise.
1278         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1279         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1280         * sysdeps/ia64/fpu/s_round.S: Likewise.
1281         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1282         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1283         * sysdeps/ia64/fpu/s_significand.S: Likewise.
1284         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1285         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1286         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1287         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1288         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1289         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1290         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1291         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1292
1293         [BZ #592]
1294         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
1295         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
1296         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1297         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1298         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
1299         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
1300         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1301         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1302         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
1303         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1304         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1305         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
1306         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
1307         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
1308         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
1309         * sysdeps/ia64/fpu/e_logl.S: Likewise.
1310         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
1311         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
1312         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
1313         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
1314         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
1315         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
1316         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
1317         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
1318         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
1319         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1320         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1321         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1322         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1323         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1324         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1325         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1326         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
1327         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1328         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
1329         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
1330         * sysdeps/ia64/fpu/s_erf.S: Likewise.
1331         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1332         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1333         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1334         * sysdeps/ia64/fpu/s_erff.S: Likewise.
1335         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
1336         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
1337         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
1338         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
1339         * sysdeps/ia64/fpu/s_fma.S: Likewise.
1340         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
1341         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
1342         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
1343         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
1344         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
1345         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
1346         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
1347         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
1348         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
1349         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
1350         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
1351         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
1352         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
1353         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
1354         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1355         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
1356         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
1357         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
1358         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1359         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1360         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1361         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1362         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1363         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1364
1365         [BZ #592]
1366         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
1367         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
1368         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
1369         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
1370         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
1371         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
1372         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
1373         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
1374         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
1375         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
1376         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
1377         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
1378         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
1379         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
1380         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
1381         * sysdeps/ia64/fpu/w_expl.c: Likewise.
1382         * sysdeps/ia64/fpu/e_expl.S: Likewise.
1383         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
1384         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
1385         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
1386         * sysdeps/ia64/fpu/w_log2.c: Likewise.
1387         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
1388         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
1389         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
1390         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
1391         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
1392
1393         [BZ #592]
1394         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
1395         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1396         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1397         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1398         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1399         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1400         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1401
1402         [BZ #592]
1403         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
1404         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
1405         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
1406
1407         [BZ #592]
1408         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
1409
1410         [BZ #592]
1411         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
1412         alias for use by libm_error.c
1413
1414         [BZ #592]
1415         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
1416         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
1417         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
1418         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
1419         libm_scalbn{,f,l}, libm_scalblnf.
1420         (sysdep_routines): Remove libm_frexp4{,f,l}.
1421         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
1422         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
1423         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
1424         -DSIZE_LONG_LONG_INT_64.
1425
1426 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
1427
1428         [BZ #729]
1429         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
1430         l_text_end are set for a VDSO with a single PT_LOAD entry.
1431
1432 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
1433
1434         [BZ #730]
1435         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
1436         invalid to disable optimizations in fileops which won't work here.
1437         (_IO_cookie_jumps): Use it.
1438         (_IO_old_cookie_jumps): Likewise.
1439         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
1440         not the return value.
1441         * stdio-common/Makefile (tests): Add tst-fmemopen2.
1442         * stdio-common/tst-fmemopen2.c: New file.
1443
1444         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
1445
1446 2005-01-05  Roland McGrath  <roland@redhat.com>
1447
1448         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
1449         * sysdeps/i386/configure.in: ... here.  New file.
1450
1451 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
1452
1453         [BZ #727]
1454         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
1455         initialize __environ again.
1456         * stdlib/Makefile: Add rules to build and run tst-putenv.
1457         * stdlib/tst-putenv.c: New file.
1458         * stdlib/tst-putenvmod.c: New file.
1459
1460         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
1461         define unnecessary wrappers or aliases of static functions.
1462
1463 2005-01-03  Andreas Jaeger  <aj@suse.de>
1464
1465         * csu/Makefile (generated): Add start.os and start.ob.
1466
1467         * elf/Makefile (tests): Change rule for tst-pie1 so that make
1468         clean works.
1469
1470 2004-12-29  Roland McGrath  <roland@redhat.com>
1471
1472         [BZ #626]
1473         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
1474         than always up; when nearest is zero, round up to one.
1475
1476 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
1477
1478         * po/es.po: Update from translation team.
1479
1480         [BZ #726]
1481         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
1482
1483 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
1484
1485         [BZ #744]
1486         * include/signal.h: Define __sigemptyset.
1487
1488 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
1489
1490         * posix/regex_internal.h (struct re_dfastate_t): Make
1491         word_trtable a pointer to the 512-item transition table.
1492         * posix/regexec.c (build_trtable): Fill in either state->trtable
1493         or state->word_trtable.  Return a boolean indicating success.
1494         (transit_state): Expect state->trtable to be a 256-item
1495         transition table.  Reorganize code to have less tests in
1496         the common case, and to save an indentation level.
1497         * posix/regex_internal.c (free_state): Free word_trtable.
1498
1499 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
1500
1501         [BZ #723]
1502         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
1503         calling fn is 16 byte aligned.
1504         * sysdeps/i386/tst-stack-align.h: New file.
1505
1506         [BZ #725]
1507         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1508         (ecvt_r): Special case denormals.
1509         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1510         * misc/tst-efgcvt.c: Include float.h.
1511         (ecvt_tests): Add 2 new tests.
1512
1513 2004-12-20  Roland McGrath  <roland@frob.com>
1514
1515         * version.h (RELEASE, VERSION): development, 2.3.90
1516         * include/features.h (__GLIBC_MINOR__): Now 4.
1517
1518
1519 See ChangeLog.15 for earlier changes.