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