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