1 2002-02-14 Ulrich Drepper <drepper@redhat.com>
3 * elf/Makefile: Add rules to build and run tst-tls8.
4 * elf/tst-tls8.c: New file.
5 * elf/tst-tlsmod4.c: New file.
7 * stdlib/test-a64l.c (tests): Add more test cases.
9 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
10 Reported by Walter Harms <WHarms@bfs.de>.
12 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
14 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
15 definitions for struct sigcontext.
16 Suggested by David Mosberger-Tang.
18 2002-02-13 Ulrich Drepper <drepper@redhat.com>
20 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
21 for removing reference of module in slotinfo list.
22 (_dl_close): Use remove_slotinfo.
23 * sysdeps/generic/dl-tls.c: General pretty printing.
24 (oom): Define only if SHARED.
25 (_dl_next_tls_modid): Correct starting point for the case we assume
26 there is a gap. Add missing instruction grouping (doh!). Correct
27 tests for reaching maximum index.
28 * elf/Makefile: Add rules to build and run tst-tls7.
29 * elf/tst-tls7.c: New file.
30 * elf/tst-tlsmod3.c: New file.
32 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
34 * elf/tst-tlsmod2.c: Likewise.
36 * elf/dl-close.c (_dl_close): When closing an object using TLS
37 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
38 true. Increment dl_tls_generation only if we closed any TLS-using
40 * elf/tst-tls6.c: New file.
41 * elf/Makefile: Add rules to build and run tst-tls6.
43 * po/da.po: Update from translation team.
45 * locale/categories.def: Fix typo [PR libc/2948].
46 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
48 * locale/iso-4217.def: Update from official version [PR libc/2950].
49 * glibcbug.in: Honor TMPDIR [PR libc/2951].
50 * locale/programs/ld-collate.c (collate_finish): Bail out with a
51 message if input is too confusion instead of using assert.
52 (collate_read): Don't crash on unknown symbol [PR libc/2952].
53 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
55 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
56 * elf/tst-tls2.c: Likewise.
57 * elf/tst-tls3.c: Likewise.
59 2002-02-13 Jakub Jelinek <jakub@redhat.com>
61 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
63 2002-02-13 Ulrich Drepper <drepper@redhat.com>
65 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
66 if this is really necessary.
68 * elf/dl-close.c (_dl_close): Implement freeing entries in the
70 (free_mem): Free memory for the slotinfo array if possible.
72 2002-02-12 Andreas Schwab <schwab@suse.de>
74 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
76 2002-02-12 Ulrich Drepper <drepper@redhat.com>
78 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
81 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
82 (_dl_determine_tlsoffset): Likewise.
83 (_dl_allocate_tls): Likewise.
84 (__TLS_GET_ADDR): Define if not already defined.
85 (_dl_tls_symaddr): New function.
86 (allocate_and_init): New function.
87 (__tls_get_addr): Actually implement handling of generation counter
88 and deferred allocation.
89 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
90 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
92 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
93 Declare _dl_tls_symaddr.
94 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
96 * include/link.h (struct link_map): Remove l_tls_nextimage and
98 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
99 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
100 (_dl_vsym): Likewise.
101 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
103 (dl_main): Allow PT_TLS be present for empty segment. Remove
104 nextimage list handling. Instead add all modules using TLS to
105 dl_tls_dtv_slotinfo_list.
106 * elf/dl-open.c (dl_open_worker): After successfully loading all
107 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
108 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
109 empty segment don't do anything. Remove handling of initimage list.
110 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
111 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
112 * elf/dl-minimal.c: Define __libc_memalign.
113 * elf/dl-support.c: Remove _dl_initimage_list. Add
114 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
116 * include/stdlib.h: Declare __libc_memalign.
118 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
119 * elf/tst-tls4.c: New file.
120 * elf/tst-tls5.c: New file.
121 * elf/tst-tlsmod2.c: New file.
123 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
125 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
127 * elf/tst-tls1.c: Use test-skeleton.c.
128 * elf/tst-tls2.c: Likewise.
129 * elf/tst-tls3.c: Likewise.
131 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
133 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
135 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
137 2002-02-10 Ulrich Drepper <drepper@redhat.com>
139 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
141 * elf/tst-tls3.c: New file.
142 * elf/tst-tlsmod1.c: New file.
143 * elf/Makefile: Add rules to build and run tst-tls3.
145 * sysdeps/i386/dl-machine.h: Include <tls.h>.
146 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
149 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
151 * po/fr.po: Update from translation team.
153 * elf/tls-macros.h: Add alternative macros for use in PIC.
155 * elf/dl-lookup.c: Include <tls.h>.
156 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
158 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
159 required by passing pointer to last element of the list.
161 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
162 l_tls_initimage to a place where it actually is performed.
164 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
165 after globfree() calls.
167 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
168 (openaux): Pass open_mode as new last argument to _dl_map_object.
169 (_dl_map_object_deps): Add new argument open_mode. Initialize
170 open_mode element of args variable with it.
171 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
173 * elf/rtld.c (dl_main): Add zero as last parameter to
174 _dl_map_object_deps call.
175 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
176 * elf/nodlopen2.c: New file.
177 * elf/nodlopenmod2.c: New file.
178 * elf/Makefile: Add rules to build and run nodlopen2.
180 * elf/tst-tls1.c: Move TLS helper macros to...
181 * elf/tls-macros.h: ...here. New file.
182 * elf/tst-tls2.c: New file.
183 * elf/Makefile (tests): Add tst-tls2.
184 (distribute): Add tls-macros.h.
186 * po/sv.po: Update from translation team.
188 * elf/tst-tls1.c (main): Add complete set of tests. Split
189 architecture specific definitions from the actual test code.
191 * po/tr.po: Update from translation team.
193 2002-02-09 Ulrich Drepper <drepper@redhat.com>
195 * elf/Makefile (tests): Add tst-tls1.
196 * elf/tst-tls1.c: New file.
198 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
199 alignment of TCB for now.
201 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
202 initialization image for the application itself.
204 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
205 loop to initialize TLS block.
207 2002-02-08 Richard Henderson <rth@redhat.com>
209 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
210 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
212 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
214 2002-02-09 Jakub Jelinek <jakub@redhat.com>
216 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
218 2002-02-08 Ulrich Drepper <drepper@redhat.com>
220 * po/ca.po: Update from translation team.
221 * po/sk.po: Likewise.
223 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
224 (dl_main): Move dtv/static TLS handling before relocation.
225 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
226 TLS_INIT_TP to allocate and install the dtv/static TLS block.
227 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
228 so far uses TLS initialize GL(dl_tls_static_size) and
229 GL(dl_tls_static_align) to account for the TCB.
230 (_dl_allocate_tls): New function.
231 * sysdeps/generic/ldsodefs.h (rtld_global): Add
232 _dl_initial_dtv_malloced.
234 * configure.in: Test for __builtin_memset more realistically.
236 * csu/version.c (banner): If TLS support is available say so.
238 2002-02-04 H.J. Lu <hjl@gnu.org>
240 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
242 (__dl_runtime_resolve): Likewise.
244 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
247 2001-11-15 H.J. Lu <hjl@gnu.org>
249 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
250 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
252 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
254 2002-02-07 H.J. Lu <hjl@gnu.org>
256 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
258 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
261 2002-02-07 Ulrich Drepper <drepper@redhat.com>
263 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
265 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
266 ___tls_get_addr_internal.
267 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
269 * po/ko.po: Update from translation team.
271 2002-02-07 Jakub Jelinek <jakub@redhat.com>
273 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
274 attribute, change __pad{1,2} type to unsigned int.
275 (struct stat64): Remove packed attribute.
277 2002-02-07 Ulrich Drepper <drepper@redhat.com>
279 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
281 2002-02-07 Andreas Schwab <schwab@suse.de>
283 * configure.in: Fix check for -zcombreloc.
285 2002-02-06 H.J. Lu <hjl@gnu.org>
287 * config.h.in (HAVE_BUILTIN_MEMSET): New.
288 * configure.in: Check if __builtin_memset really works.
289 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
290 __GNUC_PREREQ (2, 96) before using __builtin_memset.
292 2002-02-06 Jakub Jelinek <jakub@redhat.com>
294 * io/bug-ftw3.c (main): Don't try the test if root.
296 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
298 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
300 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
301 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
302 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
304 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
305 a weak alias for __clone.
306 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
307 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
308 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
309 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
310 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
311 a weak alias for __mmap64.
313 2002-02-05 H.J. Lu <hjl@gnu.org>
315 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
316 (atomic_add): Likewise.
317 (compare_and_swap): Likewise.
318 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
320 2002-02-07 Ulrich Drepper <drepper@redhat.com>
322 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
324 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
325 alignment of the TCB and store total size and alignment of static
326 TLS block in _dl_tls_static_size and _dl_tls_static_align.
327 tls_index is a typedef.
328 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
329 _dl_tls_static_align.
330 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
331 * elf/dl-support.c: Define _dl_tls_static_size and
332 _dl_tls_static_align.
334 2002-02-06 Ulrich Drepper <drepper@redhat.com>
336 * configure.in: Add --without-tls option.
337 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
338 --without-tls is given.
340 * sysdeps/generic/dl-tls.c: Include <tls.h>.
342 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
344 2002-02-06 Roland McGrath <roland@frob.com>
346 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
347 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
349 * scripts/versions.awk: Improve error message for missing version.
350 Each version inherits from the last one only if they have the same
351 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
352 but not GLIBC_x and FOO_y.
354 * scripts/firstversions.awk: Handle libraries that don't have each
355 particular version named in the third column of shlib-versions.
357 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
359 2002-02-06 Ulrich Drepper <drepper@redhat.com>
361 * Versions.def [ld]: Add GLIBC_2.3.
362 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
363 * elf/Makefile (dl-routines): Add dl-tls.
364 (distribute): Add dl-tls.h.
365 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
366 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
367 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
368 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
369 along with the other info in the link map. Change queueing of init
370 images for double linked list. Use _dl_next_tls_modid to compute
372 * elf/rtld.c (_dl_start_final): Store alignment requirement
373 along with the other info in rtld map and executable map.
374 (dl_main): Add ld.so to the init image list if necessary. Compute
375 final module ID with _dl_next_tls_modid.
376 * include/link.h (struct link_map): Add l_tls_previmage and
378 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
379 * sysdeps/i386/elf/Versions: New file.
380 * sysdeps/generic/dl-tls.c: New file.
381 * sysdeps/generic/dl-tls.h: New file.
382 * sysdeps/i386/dl-tls.h: New file.
384 2002-02-06 Roland McGrath <roland@frob.com>
386 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
387 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
389 2002-01-05 Roland McGrath <roland@frob.com>
391 * sysdeps/mach/configure.in: New file.
392 * sysdeps/mach/configure: New generated file.
394 * mach/Makefile (user-interfaces): Remove default_pager_helper.
395 It has never been used by anything.
397 2002-02-06 H.J. Lu <hjl@gnu.org>
399 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
402 2002-02-06 Ulrich Drepper <drepper@redhat.com>
404 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
405 attribute((packed)) to counter stupid people misusing gcc options.
406 (struct stat64): Likewise.
408 2002-02-05 Ulrich Drepper <drepper@redhat.com>
410 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
411 the variables which are used as booleans.
413 2002-02-06 Andreas Jaeger <aj@suse.de>
415 * include/libc-symbols.h (INTUSE): Renamed from INT.
416 * elf/dl-deps.c: Change users.
417 * sysdeps/generic/dl-sysdep.c: Likewise.
418 * sysdeps/generic/dl-cache.c: Likewise.
419 * elf/dl-reloc.c: Likewise.
420 * elf/rtld.c: Likewise.
421 * elf/dl-version.c: Likewise.
422 * elf/dl-load.c: Likewise.
423 * elf/dl-dst.h: Likewise.
424 * elf/dl-init.c: Likewise.
425 * elf/dl-error.c: Likewise.
426 * elf/dl-fini.c: Likewise.
427 * elf/dl-runtime.c: Likewise.
428 * elf/do-lookup.h: Likewise.
430 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
432 * stdio-common/_itowa.h: Likewise.
434 2002-02-05 Ulrich Drepper <drepper@redhat.com>
436 * elf/dl-minimal.c: Define _itoa_lower_digits.
438 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
441 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
442 loading modules with the DF_STATIC_TLS flag set.
443 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
445 * include/link.h (struct link_map): Add l_flags field.
446 * elf/elf.h (DF_STATIC_TLS): New definition.
448 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
449 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
451 * elf/rtld.c (process_dl_debug): Correct printing help message.
452 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
455 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
456 definition and pass &errno in use of this variable.
457 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
459 2002-02-04 Andreas Schwab <schwab@suse.de>
461 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
462 * locale/programs/charmap-dir.c: Wrap calls that output messages
463 with WITH_CUR_LOCALE. Include "localedef.h" first.
464 * locale/programs/charmap.c: Likewise.
465 * locale/programs/ld-address.c: Likewise.
466 * locale/programs/ld-collate.c: Likewise.
467 * locale/programs/ld-ctype.c: Likewise.
468 * locale/programs/ld-identification.c: Likewise.
469 * locale/programs/ld-measurement.c: Likewise.
470 * locale/programs/ld-messages.c: Likewise.
471 * locale/programs/ld-monetary.c: Likewise.
472 * locale/programs/ld-name.c: Likewise.
473 * locale/programs/ld-numeric.c: Likewise.
474 * locale/programs/ld-paper.c: Likewise.
475 * locale/programs/ld-telephone.c: Likewise.
476 * locale/programs/ld-time.c: Likewise.
477 * locale/programs/linereader.c: Likewise.
478 * locale/programs/linereader.h: Likewise.
479 * locale/programs/localedef.c: Likewise.
480 * locale/programs/locfile.c: Likewise.
481 * locale/programs/repertoire.c: Likewise.
483 2002-02-05 Ulrich Drepper <drepper@redhat.com>
485 * elf/rtld.c (_dl_start_final): Determine load address to locate
486 ehdr with GL(dl_rtld_map).l_map_start.
488 * po/ca.po: Update from translation team.
490 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
491 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
493 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
495 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
497 2002-02-04 Ulrich Drepper <drepper@redhat.com>
499 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
500 * include/link.h (struct link_map): Add various members for TLS
502 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
503 _rtld_tlsoffset, add _dl_initimage_list.
504 * sysdeps/i386/dl-lookupcfg.h: New file.
505 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
506 TLS relocation. When using TLS we now use RESOLVE_MAP.
507 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
510 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
513 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
514 thread-pointer as soon as possible.
515 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
516 elements in rtld_global.
517 * sysdeps/generic/tls.h: New file.
518 * elf/Makefile (distribute): Add tls.h.
519 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
520 relocations. Not complete yet.
522 * resolv/resolv.h: Allow user to define __need_res_state and only
523 define __res_start structure then.
524 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
526 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
527 dl_cpuclock_offset initialization to _dl_start_final.
528 (_dl_show_auxv): Avoid unnecessary sign extension.
529 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
531 2002-02-03 Ulrich Drepper <drepper@redhat.com>
533 * config.h.in: Add HAVE_TLS_SUPPORT.
534 * sysdeps/i386/elf/configure.in: New file.
536 2002-02-03 Andreas Schwab <schwab@suse.de>
538 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
539 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
541 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
543 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
544 alloca if the memory reqirements are too high.
546 2002-02-03 Ulrich Drepper <drepper@redhat.com>
548 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
549 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
550 the former is available anyway and speed isn't important here.
551 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
552 * elf/dl-version.c (match_symbol): Likewise.
553 (_dl_check_map_versions): Likewise.
554 * elf/rtld.c (process_envvars): Likewise.
555 (print_statistics): Likewise.
556 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
557 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
558 bases. Add assert to catch uses of unimplemented features.
559 (__strsep): Add assert to catch uses of unimplemented features.
560 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
561 and avoid inline optimization.
562 * elf/rtld.c (process_envvars): Likewise.
563 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
564 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
565 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
567 2002-02-02 Ulrich Drepper <drepper@redhat.com>
569 * stdio-common/_itoa.h: Minor simplifications of the code.
570 * stdio-common/_itoa.c: Likewise.
572 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
573 instead of _dl_printf for debugging info output.
575 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
576 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
578 2002-02-01 H.J. Lu <hjl@gnu.org>
580 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
581 (atomic_add): Likewise.
582 (compare_and_swap): Return 0 only when failed to compare. Use
585 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
588 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
590 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
592 2002-02-02 Ulrich Drepper <drepper@redhat.com>
594 * elf/dl-minimal.c (__strsep): New minimal implementation.
596 2002-02-02 Paul Eggert <eggert@twinsun.com>
598 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
599 (__mktime_internal): If no tm_isdst is requested, prefer solutions
600 with tm_isdst > 0 when the requested time falls within a
601 spring-forward gap [PR libc/2894].
603 2002-02-03 Andreas Schwab <schwab@suse.de>
605 * stdio-common/tst-rndseek.c: Increase timeout.
607 2002-02-02 Ulrich Drepper <drepper@redhat.com>
609 Change ld.so to not use functions which are exported. One cannot
610 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
612 * include/libc-symbols.h: Define INT and INTDEF.
613 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
614 _dl_signal_error_internal, _dl_map_object_internal,
615 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
616 _dl_lookup_versioned_symbol_internal,
617 _dl_relocate_object_internal, _dl_debug_state_internal,
618 _dl_start_profile_internal, and _dl_unload_cache_internal.
619 * include/dlfcn.h: Declare _dl_catch_error_internal.
620 * elf/rtld.c: Use INT for calls to any of the *_internal functions
621 above. Add INTDEF to function definitions.
622 * elf/dl-debug.c: Likewise.
623 * elf/dl-deps.c: Likewise.
624 * elf/dl-dst.h: Likewise.
625 * elf/dl-error.c: Likewise.
626 * elf/dl-fini.c: Likewise.
627 * elf/dl-init.c: Likewise.
628 * elf/dl-load.c: Likewise.
629 * elf/dl-lookup.c: Likewise.
630 * elf/dl-misc.c: Likewise.
631 * elf/dl-open.c: Likewise.
632 * elf/dl-profile.c: Likewise.
633 * elf/dl-reloc.c: Likewise.
634 * elf/dl-runtime.c: Likewise.
635 * elf/dl-version.c: Likewise.
636 * elf/do-lookup.h: Likewise.
637 * sysdeps/generic/dl-cache.c: Likewise.
638 * sysdeps/generic/dl-sysdep.c: Likewise.
639 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
641 * sysdeps/arm/dl-machine.h: Likewise.
642 * sysdeps/cris/dl-machine.h: Likewise.
643 * sysdeps/hppa/dl-machine.h: Likewise.
644 * sysdeps/i386/dl-machine.h: Likewise.
645 * sysdeps/ia64/dl-machine.h: Likewise.
646 * sysdeps/m68k/dl-machine.h: Likewise.
647 * sysdeps/mips/dl-machine.h: Likewise.
648 * sysdeps/mips/mips64/dl-machine.h: Likewise.
649 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
650 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
651 * sysdeps/sh/dl-machine.h: Likewise.
652 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
653 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
654 * sysdeps/x86_64/dl-machine.h: Likewise.
655 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
657 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
658 and _dl_debug_initialize.
660 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
662 * elf/rtld.c (dl_main): Avoid strrchr.
663 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
664 result of readlink. Search from the back for '/'.
666 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
669 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
671 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
672 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
674 (process_envvars): Don't use strcspn.
676 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
677 (_dl_dst_substitute): Likewise.
679 2002-02-01 Ulrich Drepper <drepper@redhat.com>
681 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
682 code which is never used when relocating ld.so itself.
684 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
685 starting ld.so itself. Move l_addr variable initialization closer
687 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
689 2002-02-01 Jakub Jelinek <jakub@redhat.com>
691 * Versions.def (libc): Add GLIBC_PRIVATE.
692 (libdb, libnss_db, libdb1): Remove.
693 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
694 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
695 (libpthread): Add GLIBC_PRIVATE.
696 (libresolv): Likewise, remove GLIBC_2.1.
697 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
698 GLIBC_2.2.3, GLIBC_2.3.
699 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
700 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
701 _dl_sym, _dl_vsym): Likewise.
702 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
703 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
704 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
705 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
706 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
707 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
708 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
709 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
711 (_dl_object_relocation_scope): Remove.
712 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
713 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
714 __gconv_cache): Move to GLIBC_PRIVATE.
715 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
716 __internal_setnetgrent): Likewise.
717 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
718 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
719 * locale/Versions (__collate_element_hash, __collate_element_strings,
720 __collate_symbol_classes, __collate_symbol_hash,
721 __collate_symbol_strings, _nl_current_LC_COLLATE,
722 _nl_current_LC_CTYPE): Likewise.
723 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
724 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
725 (libnss_nis, libnss_nisplus): Likewise.
726 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
727 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
728 (libnss_files): Move all symbols to GLIBC_PRIVATE.
729 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
730 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
731 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
732 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
733 __ns_get16, __ns_samename): Likewise.
734 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
735 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
737 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
738 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
739 __libc_connect): Likewise.
740 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
742 * stdlib/Versions (__libc_system): Likewise.
743 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
744 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
745 * sysdeps/ia64/fpu/Versions: Likewise.
746 * sysdeps/ia64/Versions: Likewise.
747 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
748 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
750 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
751 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
752 __libc_sigaction): Likewise.
753 * termios/Versions (__libc_tcdrain): Likewise.
755 * misc/sys/cdefs (__attribute_noinline__): Define.
756 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
757 __attribute_noinline__.
759 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
760 * elf/dl-xstat64.c: New file.
761 * elf/dl-fxstat64.c: New file.
762 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
763 don't export __fxstat64 at multiple versions.
764 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
765 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
767 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
769 * locale/program/ld-collate.c (collate_finish): Assign a wide
770 char collation sequence value to multi character collating
771 elements, and avoid over writing by non-character elements.
773 2002-02-01 Ulrich Drepper <drepper@redhat.com>
775 * elf/Makefile (distribute): Add dl-procinfo.c.
776 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
777 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
779 2002-02-01 Jakub Jelinek <jakub@redhat.com>
781 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
783 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
785 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
786 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
787 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
788 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
789 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
790 _dl_fpu_control_set): Remove unused externs.
791 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
792 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
793 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
794 related variables in _rtld_global struct.
795 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
796 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
799 2002-02-01 Ulrich Drepper <drepper@redhat.com>
801 * sysdeps/generic/dl-procinfo.c: New file.
803 2002-02-01 Andreas Schwab <schwab@suse.de>
805 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
807 2002-02-01 Ulrich Drepper <drepper@redhat.com>
809 * elf/rtld.c (_dl_start): Mark as internal_function.
810 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
812 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
813 General pretty printing.
815 2002-01-31 Ulrich Drepper <drepper@redhat.com>
817 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
818 * elf/dl-reloc.c: Pretty printing.
819 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
820 procinfo-related variables in rtld_global struct.
821 * elf/dl-support.c: Likewise.
822 * elf/rtld.c: Likewise.
823 * sysdeps/i386/i686/Makefile: Likewise.
824 * sysdeps/i386/i686/hp-timing.c: Likewise.
825 * sysdeps/i386/i686/hp-timing.h: Likewise.
826 * sysdeps/ia64/Makefile: Likewise.
827 * sysdeps/ia64/hp-timing.c: Likewise.
828 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
829 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
830 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
831 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
832 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
833 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
834 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
835 * sysdeps/x86_64/Makefile: Likewise.
837 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
838 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
839 _dl_debug_fd to rtld_global.
840 * elf/Versions: Likewise.
841 * elf/dl-close.c: Likewise.
842 * elf/dl-iteratephdr.c: Likewise.
843 * elf/dl-lookup.c: Likewise.
844 * elf/dl-misc.c: Likewise.
845 * elf/dl-open.c: Likewise.
846 * elf/dl-support.c: Likewise.
847 * elf/do-lookup.h: Likewise.
848 * elf/rtld.c: Likewise.
849 * sysdeps/generic/dl-cache.c: Likewise.
850 * sysdeps/generic/dl-sysdep.c: Likewise.
851 * sysdeps/ia64/Versions: Likewise.
852 * sysdeps/unix/clock_gettime.c: Likewise.
853 * sysdeps/unix/clock_settime.c: Likewise.
854 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
855 * sysdeps/sparc/Versions: Removed.
856 * sysdeps/i386/i686/Versions : Removed.
857 * sysdeps/x86_64/Versions: Removed.
858 * configure.in: Define HAVE_PROTECTED if .protected is available.
859 * config.h.in: Add entry for HAVE_PROTECTED.
861 2002-01-31 Jakub Jelinek <jakub@redhat.com.
863 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
864 code in struct _rtld_global. Export this struct, remove all
865 exports for the signal variables.
866 * sysdeps/arm/dl-machine: Likewise.
867 * sysdeps/generic/dl-origin: Likewise.
868 * sysdeps/generic/dl-sysdep: Likewise.
869 * sysdeps/generic/dl-cache: Likewise.
870 * sysdeps/hppa/dl-fptr: Likewise.
871 * sysdeps/hppa/dl-machine: Likewise.
872 * sysdeps/cris/dl-machine: Likewise.
873 * sysdeps/i386/dl-machine: Likewise.
874 * sysdeps/ia64/dl-machine: Likewise.
875 * sysdeps/m68k/dl-machine: Likewise.
876 * sysdeps/mach/hurd/dl-sysdep: Likewise.
877 * sysdeps/mips/mips64/dl-machine: Likewise.
878 * sysdeps/mips/dl-machine: Likewise.
879 * sysdeps/powerpc/elf/libc-start: Likewise.
880 * sysdeps/powerpc/dl-machine: Likewise.
881 * sysdeps/powerpc/dl-start: Likewise.
882 * sysdeps/sparc/sparc32/dl-machine: Likewise.
883 * sysdeps/sparc/sparc64/dl-machine: Likewise.
884 * sysdeps/sh/dl-machine: Likewise.
885 * sysdeps/s390/s390-32/dl-machine: Likewise.
886 * sysdeps/s390/s390-64/dl-machine: Likewise.
887 * sysdeps/unix/sysv/aix/libc-start: Likewise.
888 * sysdeps/unix/sysv/aix/start-libc: Likewise.
889 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
890 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
891 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
892 * sysdeps/x86_64/dl-machine: Likewise.
894 2002-01-31 Ulrich Drepper <drepper@redhat.com>
896 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
899 2002-01-31 Andreas Schwab <schwab@suse.de>
901 * sysdeps/posix/readv.c: Check for ssize_t overflow.
903 2002-01-31 Andreas Schwab <schwab@suse.de>
905 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
906 reference to _dl_pagesize.
908 2002-01-30 Ulrich Drepper <drepper@redhat.com>
910 * Versions.def [ld]: Add GLIBC_2.3.
911 * elf/dl-addr.c: Move global variables for SHARED code in struct
912 _rtld_global. Export this struct, remove all exports for the
914 * elf/dl-close.c: Likewise.
915 * elf/dl-conflict.c: Likewise.
916 * elf/dl-debug.c: Likewise.
917 * elf/dl-deps.c: Likewise.
918 * elf/dl-dst.h: Likewise.
919 * elf/dl-error.c: Likewise.
920 * elf/dl-fini.c: Likewise.
921 * elf/dl-init.c: Likewise.
922 * elf/dl-iteratephdr.c: Likewise.
923 * elf/dl-libc.c: Likewise.
924 * elf/dl-load.c: Likewise.
925 * elf/dl-lookup.c: Likewise.
926 * elf/dl-minimal.c: Likewise.
927 * elf/dl-object.c: Likewise.
928 * elf/dl-open.c: Likewise.
929 * elf/dl-profile.c: Likewise.
930 * elf/dl-profstub.c: Likewise.
931 * elf/dl-reloc.c: Likewise.
932 * elf/dl-runtime.c: Likewise.
933 * elf/dl-support.c: Likewise.
934 * elf/dl-sym.c: Likewise.
935 * elf/dl-version.c: Likewise.
936 * elf/do-lookup.h: Likewise.
937 * elf/do-rel.h: Likewise.
938 * elf/dynamic-link.h: Likewise.
939 * elf/rtld.c: Likewise.
940 * sysdeps/generic/dl-cache.c: Likewise.
941 * sysdeps/generic/dl-sysdep.c: Likewise.
942 * sysdeps/generic/ldsodefs.h: Likewise.
943 * sysdeps/generic/libc-start.c: Likewise.
944 * sysdeps/i386/dl-machine.h: Likewise.
945 * sysdeps/ia64/dl-fptr.c: Likewise.
946 * sysdeps/ia64/dl-machine.h: Likewise.
947 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
948 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
949 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
950 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
951 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
952 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
953 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
954 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
956 2002-01-29 Ulrich Drepper <drepper@redhat.com>
958 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
960 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
962 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
964 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
966 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
968 2002-01-29 Ben Collins <bcollins@debian.org>
970 * string/bits/string2.h (__mempcpy): Protect size arg for
971 addition when using __builtin_memcpy.
973 2002-01-29 Ulrich Drepper <drepper@redhat.com>
975 * stdlib/Makefile (tests): Add tst-qsort.
976 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
978 * manual/signal.texi (Process Signal Mask): Document that
979 pthread_sigmask, not sigprocmask, must be used in MT programs.
980 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
982 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
984 * misc/Makefile (tests): Add tst-hsearch.
985 * misc/tst-hsearch.c: New file.
987 2002-01-18 Wolfram Gloger <wg@malloc.de>
989 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
990 * malloc/malloc.h: Likewise.
991 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
992 * malloc/arena.c: New file.
993 * malloc/hooks.c: New file.
994 * malloc/tst-mallocstate.c: New file.
995 * malloc/Makefile: Add new testcase tst-mallocstate.
996 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
998 2002-01-28 Ulrich Drepper <drepper@redhat.com>
1000 * stdlib/msort.c: Remove last patch. The optimization violates the
1001 same rule which qsort.c had problems with.
1003 2002-01-27 Paul Eggert <eggert@twinsun.com>
1005 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
1006 to a pivot element that lies outside the array to be sorted, as
1007 ISO C99 requires that the comparison function be called only with
1008 addresses of array elements [PR libc/2880].
1010 2002-01-28 Ulrich Drepper <drepper@redhat.com>
1012 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
1013 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
1015 * timezone/asia: Update from tzdata2002b.
1016 * timezone/australasia: Likewise.
1017 * timezone/backward: Likewise.
1018 * timezone/europe: Likewise.
1019 * timezone/leapseconds: Likewise.
1020 * timezone/iso3166.tab: Likewise.
1021 * timezone/zone.tab: Likewise.
1023 2002-01-23 Richard Henderson <rth@redhat.com>
1025 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
1027 2002-01-28 Ulrich Drepper <drepper@redhat.com>
1029 * string/strxfrm.c: Allocate one more byte for rulearr and clear
1030 this element [PR libc/2855].
1032 * string/strcoll.c: Handle zero-length arguments specially
1035 2002-01-23 Jakub Jelinek <jakub@redhat.com>
1037 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
1038 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
1039 short lengths and constant src.
1040 (strcpy): Don't optimize for gcc 3.0+.
1041 (__stpcpy): For gcc 3.0+, don't use
1042 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
1043 for short string literal src.
1045 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1047 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1050 2001-01-22 Paul Eggert <eggert@twinsun.com>
1052 * manual/llio.texi (Linked Channels, Cleaning Streams):
1053 Make it clearer that a just-opened input stream might need cleaning.
1055 2002-01-21 H.J. Lu <hjl@gnu.org>
1057 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1058 Don't use label at end of compound statement.
1060 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
1062 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
1063 Remove test for negative integer arg; sin_pi does it correctly.
1065 2002-01-20 Ulrich Drepper <drepper@redhat.com>
1067 * nscd/Makefile (distribute): Filter out xmalloc.c.
1069 2002-01-19 Ulrich Drepper <drepper@redhat.com>
1071 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
1072 Set offset if read end wasn't the buffer end.
1073 (_IO_file_seekoff_mmap): New function.
1074 (_IO_file_xsgetn_mmap): New function.
1075 (_IO_file_jumps_mmap): Use the two new functions.
1076 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
1078 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
1079 _IO_file_underflow_mmap.
1080 * libio/iofopen.c: Don't position file descriptor at end of file.
1081 * libio/tst-widetext.c: Improve error messages.
1082 * stdio-common/tst-rndseek.c: Likewise.
1084 2002-01-18 Ulrich Drepper <drepper@redhat.com>
1086 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
1087 end of enum for !_GNU_SOURCE.
1088 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
1089 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
1090 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
1091 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
1092 values unless _GNU_SOURCE.
1094 * iconvdata/tcvn5712-1.c: Minor cleanups.
1096 2002-01-18 Andreas Schwab <schwab@suse.de>
1098 * sysdeps/unix/sysv/linux/configure.in
1099 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
1101 2002-01-16 Roger Sayle <roger@eyesopen.com>
1103 * stdlib/msort.c (msort_with_tmp): Replace implementation with
1104 more efficient "Towers of Hanoi" mergesort.
1105 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
1106 for generic, sizeof(int) and sizeof(long) variants respectively.
1108 2002-01-17 Ulrich Drepper <drepper@redhat.com>
1110 * manual/syslog.texi (openlog): Describe possible problems with
1112 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1114 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
1115 * nscd/connections.c (begin_drop_privileges): New function.
1116 (finish_drop_privileges): New function.
1117 (nscd_init): Call the new functions which also install all groups
1118 for the server user.
1119 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
1120 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
1122 2002-01-17 H.J. Lu <hjl@gnu.org>
1124 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
1127 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
1129 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
1130 instructions for pointer operations.
1131 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1133 2002-01-17 Andreas Jaeger <aj@suse.de>
1135 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
1136 __uint128_t build-in.
1138 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
1139 PowerPC, sync with 2.2 branch.
1141 2002-01-16 Ulrich Drepper <drepper@redhat.com>
1143 * posix/getconf.c: Update copyright year.
1144 * nss/getent.c: Likewise.
1145 * nscd/nscd_nischeck.c: Likewise.
1146 * iconv/iconvconfig.c: Likewise.
1147 * iconv/iconv_prog.c: Likewise.
1148 * elf/ldconfig.c: Likewise.
1149 * catgets/gencat.c: Likewise.
1150 * csu/version.c: Likewise.
1151 * elf/ldd.bash.in: Likewise.
1152 * elf/sprof.c (print_version): Likewise.
1153 * locale/programs/locale.c: Likewise.
1154 * locale/programs/localedef.c: Likewise.
1155 * nscd/nscd.c (print_version): Likewise.
1156 * debug/xtrace.sh: Likewise.
1157 * malloc/memusage.sh: Likewise.
1158 * malloc/mtrace.pl: Likewise.
1160 2002-01-16 Andreas Schwab <schwab@suse.de>
1162 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
1163 reliably remove "-ia64" from rtld name.
1165 2002-01-16 Ulrich Drepper <drepper@redhat.com>
1167 * iconvdata/gb18030.c: Bug fixes and support for more characters.
1168 Patch by Yu Shao <yshao@redhat.com>.
1170 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
1172 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
1173 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
1174 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
1176 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
1178 * sysdeps/s390/fpu/libm-test-ulps: Update.
1180 2002-01-11 Ulrich Drepper <drepper@redhat.com>
1182 * elf/elf.h: Update x86 relocations.
1184 2002-01-10 Ulrich Drepper <drepper@redhat.com>
1186 * locale/programs/charmap.c (new_width): Check whether byte
1187 sequences for both ends of range have the same length.
1189 2002-01-09 Jakub Jelinek <jakub@redhat.com>
1191 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
1193 2002-01-09 Jakub Jelinek <jakub@redhat.com>
1195 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
1197 (__full_ieee754_sqrt): Add __attribute_used__.
1199 2002-01-10 Ulrich Drepper <drepper@redhat.com>
1201 * sysdeps/generic/group_member.c (__group_member): Also check
1202 groups[0] [PR libc/2781].
1204 2002-01-08 Ulrich Drepper <drepper@redhat.com>
1206 * Makefile (distribute): Add scripts/cpp.
1207 * elf/Makefile (distribute): Add reldep6mod[01234].c,
1208 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
1209 unwind-dw2-fde.h, and dwarf2.h.
1210 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
1211 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
1212 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
1213 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
1215 2002-01-07 Roland McGrath <roland@frob.com>
1217 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
1218 volatile on type of ARGC so the compiler doesn't get clever.
1220 2002-01-07 Andreas Jaeger <aj@suse.de>
1222 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1223 * sysdeps/i386/bits/byteswap.h: Likewise.
1224 * sysdeps/ia64/bits/byteswap.h: Likewise.
1225 * sysdeps/m68k/bits/byteswap.h: Likewise.
1226 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1227 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1229 2002-01-02 Bruno Haible <bruno@clisp.org>
1231 * intl/plural.y: Fix %expect count.
1233 2002-01-03 Jakub Jelinek <jakub@redhat.com>
1235 * elf/Makefile (routines, shared-only-routines): Add
1236 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1237 * elf/elf.h (PT_GNU_EH_FRAME): Define.
1238 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1239 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1240 Optimize if .eh_frame section contains no FDEs.
1241 (__register_frame, __deregister_frame_info_bases,
1242 __deregister_frame): Likewise.
1243 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1244 DW_CFA_restore handling.
1246 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
1248 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1250 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1251 for x < 0.25 and restore original range reduction method.
1252 (__ieee754_lgammal_r): Make sure signgam is set before returning.
1254 2002-01-07 Ulrich Drepper <drepper@redhat.com>
1256 * libio/fileops.c (_IO_file_underflow_mmap): New function.
1257 (_IO_file_close_mmap): New function.
1258 (_IO_file_jumps_mmap): New variable.
1259 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1260 trying to convert rest of byte buffer.
1261 (_IO_wfile_underflow_mmap): New function.
1262 (_IO_wfile_jumps_mmap): New variable.
1263 * libio/iofopen.c (__fopen_maybe_mmap): New function.
1264 (__fopen_internal): New function. Split out from _IO_new_fopen.
1265 (_IO_new_fopen): Call __fopen_internal.
1266 * libio/iofopen64.c: Just call __fopen_internal.
1267 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1269 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1270 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1271 _IO_file_close_mmap.
1273 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1274 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1276 * stdio-common/Makefile (tests): Add tst-rndseek.
1277 * stdio-common/tst-rndseek.c: New file.
1279 2002-01-05 Roland McGrath <roland@frob.com>
1281 * config.h.in (HAVE_MIG_RETCODE): New #undef.
1282 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1283 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1284 * sysdeps/mach/hurd/configure: Regenerated.
1286 2002-01-03 Ulrich Drepper <drepper@redhat.com>
1288 * elf/elf.h: Add more TLS definitions.
1290 2002-01-02 Ulrich Drepper <drepper@redhat.com>
1292 * include/features.h (__GLIBC_MINOR__): Bump to 3.
1294 2002-01-02 Roland McGrath <roland@frob.com>
1296 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1297 __sigisemptyset. Don't use MASK uninitialized.
1299 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1300 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1301 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1302 __sigdelset, __sigaddset, __sigorset.
1304 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1305 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1307 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1308 _hurd_ports is null.
1310 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1311 for old CMU and new OSF Mach interface flavors.
1312 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1313 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1315 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1317 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1318 Pass extra arguments to task_create for OSF variant.
1319 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1321 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1322 conditional on [HAVE_AUX_VECTOR].
1324 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1325 mach_msg_timeout_t as type of final argument.
1327 * hurd/privports.c (__get_privileged_ports):
1328 Change host_priv_t to mach_port_t in argument type.
1329 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1332 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1333 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
1334 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1335 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1336 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1337 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1339 2002-01-01 Roland McGrath <roland@frob.com>
1341 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1343 2002-01-01 Ulrich Drepper <drepper@redhat.com>
1345 * include/stdlib.h: Define inlines for the _l variants of the strto*
1348 2002-01-01 Roland McGrath <roland@frob.com>
1350 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1352 * mach/Machrules (MIG): Set CPP as well as CC.
1354 2001-12-31 Ulrich Drepper <drepper@redhat.com>
1356 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1357 locale to parse /proc/loadavg [PR libc/2760].
1359 2001-12-31 Jakub Jelinek <jakub@redhat.com>
1361 * elf/dl-conflict.c: Include sys/param.h.
1362 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1363 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1365 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1366 literals to avoid warnings.
1368 2001-12-31 Andreas Jaeger <aj@suse.de>
1370 * configure.in: Don't check for gsed since we do not use it anywhere.
1372 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
1374 * io/fts.c: Update from BSD to fix memory leaks.
1376 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
1378 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1379 * elf/chroot_canon.c: Likewise.
1380 * elf/dl-object.c: Likewise.
1381 * iconv/iconv_charmap.c: Likewise.
1382 * iconv/iconv_prog.c: Likewise.
1383 * libio/iogetdelim.c: Likewise.
1384 * locale/lc-time.c: Likewise.
1385 * stdlib/canonicalize.c: Likewise.
1386 * sunrpc/svc.c: Likewise.
1387 * sysdeps/generic/glob.c: Likewise.
1389 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1391 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1392 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1393 remove high order bit from the program counter.
1394 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1396 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1398 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1399 unnecessary code and add missing reloc types.
1400 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1401 case for reloc type R_390_NONE.
1403 2001-12-28 Andreas Jaeger <aj@suse.de>
1405 * io/bug-ftw3.c: Include string.h for prototypes.
1407 * crypt/md5test.c (main): Remove unused variable.
1409 * dlfcn/modstatic.c: Add prototype to avoid warning.
1411 2001-12-26 Roland McGrath <roland@frob.com>
1413 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1414 check only (SS->pending & MASK) for the signal to return.
1415 From Jeroen Dekkers <jeroen@dekkers.cx>.
1417 2001-12-22 Roland McGrath <roland@frob.com>
1419 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1420 Use preprocessor #if conditionals instead of `if' to avoid
1421 warnings about divide by zero in dead code.
1423 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1424 _hurd_port_init, and __hurd_self_sigstate.
1426 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1428 2001-12-21 Andreas Jaeger <aj@suse.de>
1430 * elf/dblloadmod1.c: Add prototype to avoid warning.
1431 * elf/dblloadmod2.c: Likewise.
1432 * elf/dblloadmod3.c: Likewise.
1433 * elf/reldepmod5.c: Likewise.
1434 * elf/reldepmod6.c: Likewise.
1436 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1437 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1438 used on all architectures.
1440 * sunrpc/svc_tcp.c: Add noreturn attribute for
1441 svctcp_rendezvous_abort.
1442 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1444 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1447 2001-12-19 Jakub Jelinek <jakub@redhat.com>
1449 * manual/llio.texi (aio_fsync): Fix a typo.
1450 Patch by Tammy Fox <tfox@redhat.com>.
1452 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1454 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1455 stack bias from child stack pointer before passing it to clone syscall.
1457 2001-12-18 Ulrich Drepper <drepper@redhat.com>
1459 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1461 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1462 Reported by Thorsten Kukuk <kukuk@suse.de>.
1464 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1467 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1469 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
1471 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1472 conforming: return EBADF if file descriptor is invalid and EINVAL
1473 if file descriptor is no valid tty.
1474 * login/tst-grantpt.c: New file.
1475 * login/Makefile (tests): Add tst-grantpt.
1477 2001-12-17 Ulrich Drepper <drepper@redhat.com>
1479 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1480 different than implemented in last patch.
1481 * io/bug-ftw3.c: Adjust test for changed handling of
1482 inaccessibility of toplevel dir.
1484 2001-12-16 Roland McGrath <roland@frob.com>
1486 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1487 * grp/initgroups.c (internal_getgrouplist): Likewise.
1489 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1490 `default:' to silence new GCC warning.
1491 Rewrite cast of lvalue to silence new GCC warning.
1493 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1495 * sysdeps/mach/hurd/spawni.c: New file, by me with a
1496 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1498 2001-12-14 Ulrich Drepper <drepper@redhat.com>
1500 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
1501 Patch by Stephen R. van den Berg.
1503 * crypt/md5.h: Define md5_uintptr.
1505 2001-12-13 Ulrich Drepper <drepper@redhat.com>
1507 * libio/tst_swprintf.c (main): Add test for string argument with
1509 * stdio-common/Makefile (tests): Add tst-sprintf.
1510 * stdio-common/tst-sprintf.c: New file.
1512 2001-12-13 Andreas Schwab <schwab@suse.de>
1514 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1515 zero precision with wide character string format.
1517 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
1519 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1520 but have a user supplied buffer, return the empty buffer, not NULL.
1522 2001-12-13 Ulrich Drepper <drepper@redhat.com>
1524 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1525 Patch by Eric Sharkey <sharkey@netrics.com>.
1527 * crypt/md5test.c (main): Add test for multiple calls to
1528 __md5_process_bytes to itererate over input string.
1530 2001-12-12 Ulrich Drepper <drepper@redhat.com>
1532 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1533 from __nis_findfastest. Take timeout value from parameter.
1534 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1535 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1536 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
1538 2001-12-12 Andreas Jaeger <aj@suse.de>
1540 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1541 combreloc test so that it works in this case.
1543 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1545 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
1547 * sysdeps/sh/Makefile: New file.
1548 * sysdeps/sh/_mcount.S: New file.
1549 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1550 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1552 2001-12-11 Ulrich Drepper <drepper@redhat.com>
1554 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1555 limitation [PR libc/2564].
1557 2001-12-11 Jakub Jelinek <jakub@redhat.com>
1559 * elf/Makefile (dl-routines): Add conflict.
1560 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1561 (ld.so): Add _begin local symbol.
1562 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1564 * elf/dl-deps.c (_dl_build_local_scope): New.
1565 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1567 * elf/do-rel.h (VALIDX): Define.
1568 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1569 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1571 * elf/dl-conflict.c: New file.
1572 * elf/dl-lookup.c (_dl_debug_bindings): New.
1573 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
1575 (_dl_lookup_symbol_skip): Likewise.
1576 (_dl_lookup_versioned_symbol): Likewise.
1577 (_dl_lookup_versioned_symbol_skip): Likewise.
1578 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1579 define to ElfW(Rel).
1580 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1581 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1583 Don't adjust address dynamic tags if l_addr is 0.
1584 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1585 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1586 (VALIDX, ADDRIDX): Define.
1587 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1588 (dl_main): Print library list for LD_TRACE_PRELINKING.
1589 If prelinking information can be used, skip relocating libraries and
1590 call _dl_resolve_conflicts instead.
1591 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1592 * elf/dl-load.c (_dl_map_object): Don't create fake libs
1593 if LD_TRACE_PRELINKING.
1594 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1596 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1597 (DL_DEBUG_PRELINK): Define.
1598 (_dl_resolve_conflicts): Add prototype.
1600 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1601 .plt for prelinked libraries where prelinking info cannot be used.
1602 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1603 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1604 * sysdeps/arm/bits/link.h: New file.
1605 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1607 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1608 (ELF_MACHINE_PLT_REL): Define.
1609 (elf_machine_rela, elf_machine_rela_relative): New.
1610 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1611 of adjusting it if prelinked and prelinking cannot be used.
1612 * sysdeps/i386/bits/link.h: New file.
1613 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1615 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1616 (ELF_MACHINE_PLT_REL): Define.
1617 (elf_machine_rela, elf_machine_rela_relative): New.
1618 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1619 of adjusting it if prelinked and prelinking cannot be used.
1620 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1621 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
1622 to find out map for R_PPC_JMP_SLOT relocs.
1623 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1624 (OPCODE_BA): Define.
1625 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1626 libraries where prelinking info cannot be used.
1627 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1628 (elf_machine_fixup_plt): Call sparc_fixup_plt.
1629 (elf_machine_rela): Set value to 0 if relocating conflicts.
1630 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1631 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1632 (sparc64_fixup_plt): Fix a typo.
1633 (elf_machine_rela): Set value to 0 if relocating conflicts.
1634 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1635 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1636 libraries where prelinking info cannot be used.
1637 * sysdeps/sh/bits/link.h: New file.
1638 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1640 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1641 of adjusting it if prelinked and prelinking cannot be used.
1642 * sysdeps/s390/s390-32/bits/link.h: New file.
1643 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1644 Save original content of .got[1].
1645 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1646 of adjusting it if prelinked and prelinking cannot be used.
1647 * sysdeps/s390/s390-64/bits/link.h: New file.
1648 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1649 Save original content of .got[1].
1650 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1651 of adjusting it if prelinked and prelinking cannot be used.
1652 * sysdeps/x86_64/bits/link.h: New file.
1653 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1654 Save original content of .got[1].
1655 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1656 of adjusting it if prelinked and prelinking cannot be used.
1658 2001-12-11 Ulrich Drepper <drepper@redhat.com>
1660 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1661 where appropriate instead of numbers. Little optimizations.
1663 2001-12-10 Roland McGrath <roland@frob.com>
1665 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1668 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1669 set to GLIBC_2.2.5, not GLIBC_2.2.4.
1671 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1672 Fix conditionals so this is set by default for stdio and not for libio.
1673 * sysdeps/mach/hurd/configure: Regenerated.
1675 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
1677 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1679 2001-12-10 Ulrich Drepper <drepper@redhat.com>
1681 * io/Makefile (tests): Add bug-ftw3.
1682 * io/bug-ftw3.c: New file.
1684 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1685 matches and GLOB_NOCHECK is set.
1686 * posix/globtest.sh: Correct expected result for NOCHECK test.
1688 * po/ca.po: Update from translation team.
1690 2001-12-09 Ulrich Drepper <drepper@redhat.com>
1692 Implement transliteration of characters in strings of the locale
1694 * locale/programs/linereader.c: Adjust for additional parameter to
1696 (get_string): If character <Uxxxx> is not found try to transliterate
1698 * locale/programs/ld-ctype.c: Adjust for additional parameter to
1699 lr_token. Add const to charmap parameter of all functions.
1700 (find_translit, find_translit2): New functions.
1701 * locale/programs/charmap.c: Adjust for additional parameter to
1703 * locale/programs/repertoire.c: Likewise.
1704 * locale/programs/linereader.h: Likewise.
1705 * locale/programs/ld-address.c: Likewise. Add const to charmap
1706 parameter of all functions.
1707 * locale/programs/ld-collate.c: Likewise.
1708 * locale/programs/ld-identification.c: Likewise.
1709 * locale/programs/ld-measurement.c: Likewise.
1710 * locale/programs/ld-messages.c: Likewise.
1711 * locale/programs/ld-monetary.c: Likewise.
1712 * locale/programs/ld-name.c: Likewise.
1713 * locale/programs/ld-numeric.c: Likewise.
1714 * locale/programs/ld-paper.c: Likewise.
1715 * locale/programs/ld-paper.c: Likewise.
1716 * locale/programs/ld-telephone.c: Likewise.
1717 * locale/programs/ld-time.c: Likewise.
1718 * locale/programs/locfile.c: Likewise.
1719 * locale/programs/localedef.c: Likewise.
1720 * locale/programs/localedef.h: Likewise.
1721 * locale/programs/locfile.h: Likewise. Add declaration for
1723 * locale/programs/simple-hash.c: Add const to first parameter of
1724 find_entry, iterate_table, and lookup.
1725 * locale/programs/simple-hash.h: Likewise.
1726 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
1728 * include/locale.h: Define __LC_LAST.
1729 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1731 2001-12-07 Geoff Keating <geoffk@redhat.com>
1733 * sysdeps/powerpc/Dist: Update for recent FP changes.
1734 * sysdeps/powerpc/fpu/Dist: Likewise.
1736 2001-12-07 Andreas Schwab <schwab@suse.de>
1738 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1740 2001-12-06 Geoff Keating <geoffk@redhat.com>
1742 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1743 save/restore functions here.
1744 (libm-support): Don't define these functions here.
1745 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1747 * sysdeps/powerpc/fe_nomask.c: Move to...
1748 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1749 * sysdeps/powerpc/fprrest.S: Move to...
1750 * sysdeps/powerpc/fpu/fprrest.S: ... here.
1751 * sysdeps/powerpc/fprsave.S: Move to...
1752 * sysdeps/powerpc/fpu/fprsave.S: ... here.
1754 2001-12-06 Ulrich Drepper <drepper@redhat.com>
1756 * sysdeps/unix/sysv/linux/opensock.c: New file.
1758 2001-12-06 Geoff Keating <geoffk@redhat.com>
1760 * config.make.in (with-fp): Define from configure.
1761 * configure.in: Substitute with_fp.
1762 * configure: Regenerate.
1763 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1764 specified, and don't change FPU environment.
1766 2001-12-06 Ulrich Drepper <drepper@redhat.com>
1768 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1769 * assert/assert.c: Check result of __asprintf call and don't use
1770 string if it failed.
1771 * assert/assert-perr.c: Likewise.
1772 * inet/rcmd.c: Likewise.
1773 * locale/programs/localedef.c (main): Check result of
1774 construct_output_path and exit if it failed.
1775 (construct_output_path): Check result of asprintf and mkdir calls and
1776 fail if they failed.
1777 * posix/getopt.c: Check result of __asprintf calls and fail if
1779 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1781 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1783 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1785 * sysdeps/generic/strncase.c: Likewise.
1786 * string/tester.c: Add tests for strcasecmp and strncasecmp.
1788 2001-12-05 Geoff Keating <geoffk@redhat.com>
1790 * scripts/cpp: Test the exit status from 'type', not 'awk'.
1792 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1793 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1794 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1795 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1796 * sysdeps/powerpc/fclrexcpt.c: Move to...
1797 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1798 * sysdeps/powerpc/fpu_control.h: Move to...
1799 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1801 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1803 * iconvdata/ibm1129.h: Remove duplicate mappings.
1804 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
1805 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1806 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1808 * timezone/zic.c: Fix handling of turnaround times.
1809 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1811 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
1813 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1816 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1818 * posix/regex.c: For use outside glibc defined bounded pointer
1819 macros here. Patch by Jim Meyering <jim@meyering.net>.
1821 * iconvdata/Makefile (modules): Add TCVN5712-1.
1822 * iconvdata/TESTS: Add TCVN5712-1.
1823 * iconvdata/gconv-modules: Likewise.
1824 * iconvdata/tcvn5712-1.c: New file.
1825 * iconvdata/testdata/TCVN-5712: New file.
1826 * iconvdata/testdata/TCVN-5712..UTF8: New file.
1828 2001-12-04 Ulrich Drepper <drepper@redhat.com>
1830 * iconvdata/cp1258.c: Optimize conversion from UCS4.
1832 2001-12-02 Roland McGrath <roland@frob.com>
1834 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1836 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1837 Reported by Jeff Bailey <jbailey@nisa.net>.
1839 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1840 Reported by Jeff Bailey <jbailey@nisa.net>.
1842 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1843 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1844 Reported by Jeff Bailey <jbailey@nisa.net>.
1846 2001-12-01 Roland McGrath <roland@frob.com>
1848 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1849 missing backslash in test arguments.
1850 * sysdeps/mach/hurd/configure: Regenerated.
1852 2001-11-26 Roland McGrath <roland@frob.com>
1854 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1855 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1857 2001-11-30 Ulrich Drepper <drepper@redhat.com>
1859 * iconvdata/Makefile (modules): Add ARMSCII-8.
1860 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1861 * iconvdata/armscii-8.c: New file.
1863 2001-11-29 Jakub Jelinek <jakub@redhat.com>
1865 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1866 don't match, fix {{a,b},c} globbing, clean up.
1867 Patch by Flavio Veloso <flaviovs@magnux.com>.
1868 * posix/globtest.sh: Add new tests.
1870 2001-11-29 Andreas Jaeger <aj@suse.de>
1872 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1873 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1875 * sysdeps/generic/abort.c: Include libioP.h for
1876 _IO_flush_all_lockp prototype.
1878 2001-11-29 Ulrich Drepper <drepper@redhat.com>
1880 * posix/regex.h: Define __restrict_arr correctly.
1882 2001-11-28 Ulrich Drepper <drepper@redhat.com>
1884 * iconvdata/ibm1163.c: New file.
1885 * iconvdata/ibm1163.h: New file.
1886 * iconvdata/ibm1164.c: New file.
1887 * iconvdata/ibm1164.h: New file.
1888 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1889 * iconvdata/Makefile: Likewise.
1890 * iconvdata/testdata/IBM1163: New file.
1891 * iconvdata/testdata/IBM1163..UTF8: New file.
1892 * iconvdata/testdata/IBM1164: New file.
1893 * iconvdata/testdata/IBM1164..UTF8: New file.
1894 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1896 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
1897 * iconvdata/ibm1124.h: Likewise.
1898 * iconvdata/ibm1132.h: Likewise.
1899 * iconvdata/ibm1133.h: Likewise.
1900 * iconvdata/ibm1160.h: Likewise.
1901 * iconvdata/ibm1161.h: Likewise.
1902 * iconvdata/ibm1162.h: Likewise.
1903 * iconvdata/ibm856.h: Likewise.
1904 * iconvdata/ibm922.h: Likewise.
1905 * iconvdata/ibm930.h: Likewise.
1906 * iconvdata/ibm932.h: Likewise.
1907 * iconvdata/ibm933.h: Likewise.
1908 * iconvdata/ibm935.h: Likewise.
1909 * iconvdata/ibm937.h: Likewise.
1910 * iconvdata/ibm939.h: Likewise.
1911 * iconvdata/ibm943.h: Likewise.
1912 * iconvdata/ibm930.c: Pretty printing.
1913 * iconvdata/ibm937.c: Avoid access accross array boundary.
1915 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1916 the current locale's codeset.
1917 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1919 * iconv/iconv_prog.c: Pass empty strings as default value for to-
1920 and from-charset. Don't determine locale's charset here.
1922 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
1923 as the old _IO_flush_all but lock only if parameter is nonzero.
1924 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1925 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1926 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1927 if libio is used [PR libc/2575].
1929 2001-11-28 Jakub Jelinek <jakub@redhat.com>
1931 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1932 __signbitl): Only define for ISO C99.
1934 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
1936 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1937 herrnop to NETDB_INTERNAL if we run out of buffer space.
1939 2001-11-28 Ulrich Drepper <drepper@redhat.com>
1941 * nss/nss_files/files-XXX.c (internal_getent): Correct input
1942 overflow test for platforms with signed char.
1943 Reported by Andrew Haley <aph@cambridge.redhat.com>.
1945 2001-11-28 Bruno Haible <bruno@clisp.org>
1947 * locale/programs/simple-hash.c (lookup_2): Remove function.
1948 (insert_entry_2): Call lookup instead of lookup_2.
1950 2001-03-04 Bruno Haible <bruno@clisp.org>
1952 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1954 2001-10-31 Bruno Haible <bruno@clisp.org>
1956 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1958 2001-03-21 Bruno Haible <bruno@clisp.org>
1960 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1961 chokes on empty macro arguments.
1962 * intl/plural.y: Add #pragma for alloca on AIX 3.
1964 2001-11-27 Ulrich Drepper <drepper@redhat.com>
1966 * intl/dcigettext.c (guess_category_value): Only implement for
1967 glibc. Otherwise rely on function _nl_locale_name which isn't
1968 present in the glibc sources.
1970 2001-09-24 Bruno Haible <bruno@clisp.org>
1972 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1973 transliteration when building on a glibc system but outside glibc.
1975 2001-09-22 Bruno Haible <bruno@clisp.org>
1977 * intl/plural-eval.c: New file, extracted from dcigettext.c.
1978 * intl/dcigettext.c (plural_eval): Remove function, moved to
1980 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1981 Include plural-eval.c.
1983 2001-09-22 Bruno Haible <bruno@clisp.org>
1985 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1986 don't start with a digit; nplurals must be positive.
1988 2001-09-02 Bruno Haible <bruno@clisp.org>
1990 * intl/plural-exp.h: New file, extracted from gettextP.h.
1991 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1992 * intl/gettextP.h (struct expression, struct parse_args,
1993 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1994 * intl/loadmsgcat.c: Include plural-exp.h.
1995 (PLURAL_PARSE): Move macro to plural-exp.h.
1996 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1998 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
1999 EXTRACT_PLURAL_EXPRESSION.
2000 (_nl_unload_domain): Update.
2001 * intl/dcigettext.c: Include plural-exp.h.
2002 * intl/plural.y: Include plural-exp.h, not gettextP.h.
2003 (FREE_EXPRESSION): Move macro to plural-exp.h.
2004 * intl/Makefile (routines): Add plural-exp.
2005 (distribute): Add plural-exp.h.
2007 2001-07-28 Bruno Haible <bruno@clisp.org>
2009 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
2010 isdigit, tolower argument to 'unsigned char'.
2011 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
2013 * intl/localealias.c (read_alias_file): Cast isspace argument to
2016 2001-10-20 Bruno Haible <bruno@clisp.org>
2018 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
2020 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
2021 with the variable 'index' in plural_lookup.
2022 * intl/l10nflist.c (strchr): Likewise.
2023 * intl/localealias.c (strchr): Likewise.
2025 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
2026 * intl/bindtextdom.c: Likewise.
2027 * intl/dcigettext.c: Likewise.
2028 * intl/dgettext.c: Likewise.
2029 * intl/dngettext.c: Likewise.
2030 * intl/explodename.c: Likewise.
2031 * intl/finddomain.c: Likewise.
2032 * intl/gettext.c: Likewise.
2033 * intl/l10nflist.c: Likewise.
2034 * intl/loadmsgcat.c: Likewise.
2035 * intl/localealias.c: Likewise.
2036 * intl/ngettext.c: Likewise.
2037 * intl/textdomain.c: Likewise.
2038 * intl/gettext.h: Assume <limits.h> exists.
2040 2001-11-27 Ulrich Drepper <drepper@redhat.com>
2042 * stdio-common/Makefile (tests): Add scanf11.
2043 * stdio-common/scanf11.c: New file.
2045 2001-11-26 Ulrich Drepper <drepper@redhat.com>
2047 * version.h (RELEASE): Define as development.
2048 (VERSION): Set to 2.2.90.
2050 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
2052 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
2053 * nis/nss_nis/nis-grp.c: Likewise.
2054 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2056 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
2057 * nis/nss_nis/nis-pwd.c: Likewise.
2058 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
2060 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
2061 * nis/nss_nisplus/nisplus-parser.c: Likewise.
2062 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2064 * nscd/grpcache.c: Use strtoul instead of atol.
2065 * nscd/pwdcache.c: Likewise.
2066 * nss/getent.c: Likewise.
2068 2001-11-27 Paul Eggert <eggert@twinsun.com>
2070 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
2071 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
2073 2001-11-19 Bruno Haible <bruno@clisp.org>
2075 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
2077 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
2078 improves the quality of the hash function, especially for short
2081 2001-11-26 Ulrich Drepper <drepper@redhat.com>
2083 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
2084 are found call conv_error and not input_error [PR libc/2669].
2086 * math/bits/mathcalls.h: Mark ceil and floor as const.
2087 Reported by David Mosberger.
2089 2001-11-21 Jim Meyering <meyering@lucent.com>
2091 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
2092 Define to be __-prefixed.
2093 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
2095 2001-11-26 Andreas Jaeger <aj@suse.de>
2097 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
2100 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
2102 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
2105 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
2106 unused variables. Fix threshold for returning 1.0.
2108 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
2111 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
2112 remove unused variables.
2114 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
2116 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
2117 include local math header files.
2119 2001-11-22 Andreas Jaeger <aj@suse.de>
2121 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
2124 2001-11-21 Andreas Jaeger <aj@suse.de>
2126 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
2128 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
2131 2001-11-15 Andreas Jaeger <aj@suse.de>
2133 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
2134 compilers that support it.
2136 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
2137 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
2138 * stdlib/stdlib.h: Likewise.
2140 2001-11-17 Ulrich Drepper <drepper@redhat.com>
2142 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
2143 statement with gotos.
2144 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
2146 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
2148 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
2150 2001-11-15 Ulrich Drepper <drepper@redhat.com>
2152 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
2154 2001-10-02 Jakub Jelinek <jakub@redhat.com>
2155 H.J. Lu <hjl@gnu.org>
2157 * Versions.def (libc): Add GCC_3.0.
2158 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
2159 if gcc supports this flag.
2160 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
2161 (gcc3): Allow glibc to be compiled with gcc 3.x.
2162 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
2163 * config.make.in (static-libgcc, unwind-find-fde): Add.
2164 * Makerules (build-shlib-helper, build-module-helper): Use it.
2165 * scripts/versions.awk: Make sure GLIBC_ versions come first.
2166 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
2168 (_fini): Call __deregister_frame_info_bases if
2169 __register_frame_info_bases was used to register.
2170 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
2172 (__register_frame_info_bases, __register_frame_info_table_bases,
2173 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
2174 * elf/Makefile (routines): Add unwind-dw2-fde.
2175 (shared-only-routines): Add unwind-dw2-fde.
2176 * sysdeps/alpha/gccframe.h: New file.
2177 * sysdeps/arm/gccframe.h: New file.
2178 * sysdeps/generic/framestate.c: New file.
2179 * sysdeps/generic/dwarf2.h: New file.
2180 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
2181 * sysdeps/generic/unwind-dw2-fde.c: New file.
2182 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
2183 * sysdeps/generic/unwind-dw2-fde.h: New file.
2184 * sysdeps/generic/unwind-dw2.c: New file.
2185 * sysdeps/generic/unwind-pe.h: New file.
2186 * sysdeps/generic/unwind.h: New file.
2187 * sysdeps/hppa/gccframe.h: New file.
2188 * sysdeps/i386/gccframe.h: New file.
2189 * sysdeps/m68k/gccframe.h: New file.
2190 * sysdeps/mips/gccframe.h: New file.
2191 * sysdeps/powerpc/gccframe.h: New file.
2192 * sysdeps/s390/gccframe.h: New file.
2193 * sysdeps/sh/gccframe.h: New file.
2194 * sysdeps/sparc/gccframe.h: New file.
2195 * sysdeps/vax/gccframe.h: New file.
2196 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2197 Set on all architectures except ia64.
2198 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
2200 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
2201 __deregister_frame_info): Move to elf/Versions.
2202 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
2203 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2204 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2205 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
2206 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2207 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2208 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2209 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2210 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2211 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
2212 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2213 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2214 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2215 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2216 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2217 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2218 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2219 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2221 2001-11-15 Jeff Law <law@redhat.com>
2223 * posix/regex.c (uintptr_t): Do not provide a definition if the
2224 system provided one.
2226 2001-11-13 Roland McGrath <roland@frob.com>
2228 * stdio-common/tmpfile.c: Moved to ...
2229 * sysdeps/generic/tmpfile.c: ... here.
2230 * sysdeps/mach/hurd/tmpfile.c: New file.
2232 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2233 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2234 (fopenport): Define as weak alias.
2236 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2237 * libio/libioP.h: ... to here.
2239 2001-11-12 Ulrich Drepper <drepper@redhat.com>
2241 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2242 program header twice. Construct list with the needed information.
2244 2001-11-10 Ulrich Drepper <drepper@redhat.com>
2246 * po/ca.po: Update from translation team.
2248 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2249 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
2250 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2251 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2253 2001-11-10 Andreas Jaeger <aj@suse.de>
2255 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2256 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2257 Contributed by Stephen L Moshier <moshier@mediaone.net>.
2259 2001-11-09 Ulrich Drepper <drepper@redhat.com>
2261 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2263 * elf/dl-load.c (is_dst): New function.
2264 (_dl_dst_count): Use is_dst to check for DST variable.
2265 (_dl_dst_substitute): Likewise.
2267 2001-11-09 Roland McGrath <roland@frob.com>
2269 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2270 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2271 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2272 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2273 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2274 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2275 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2276 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2277 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2278 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2279 * sysdeps/mach/hurd/powerpc/Dist: New file.
2281 * hurd/privports.c (__get_privileged_ports):
2282 Only contact the proc server if necessary for this call.
2283 Suggested by Neal H Walfield <neal@cs.uml.edu>.
2284 Check error return for mach_port_mod_refs.
2286 2001-11-09 Andreas Schwab <schwab@suse.de>
2288 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2290 2001-11-09 Ulrich Drepper <drepper@redhat.com>
2292 * elf/dl-load.c (lose): Remove some unnecessary code. The new
2293 object is always the last in the list.
2294 (_dl_map_object_from_fd): Delete code to remove from object list
2295 when DF_1_NOOPEN is seen. This is done in lose.
2297 2001-11-08 Ulrich Drepper <drepper@redhat.com>
2299 * elf/dl-object.c (_dl_new_object): Various small optimizations.
2301 2001-11-07 Ulrich Drepper <drepper@redhat.com>
2303 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2304 HWCAP_CHECK macro code.
2306 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2307 Now returns MAP_FAILED on error.
2308 * elf/rtld.c: Adjust caller.
2309 * sysdeps/generic/dl-cache.c: Likewise.
2310 * sysdeps/generic/ldsodefs.h: Adjust description.
2312 * elf/dl-version.c (match_symbol): Optimize error handling for size.
2313 (_dl_check_map_versions): Likewise.
2315 2001-11-06 Ulrich Drepper <drepper@redhat.com>
2317 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2318 _dl_signal_error directly, always use lose. Set fd to -1 after
2320 (lose): Don't call close if fd == -1.
2322 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
2324 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
2325 Also fix typo @code {mbsinit} to @code{mbsinit}.
2327 2001-11-06 Ulrich Drepper <drepper@redhat.com>
2329 * elf/dl-profile.c: Replace state variable with simple flag named
2330 running. Remove commented-out code.
2332 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2333 (_dl_init_paths): Likewise.
2334 (_dl_map_object_from_fd): Likewise.
2335 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2337 2001-11-06 Roland McGrath <roland@frob.com>
2339 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2340 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2342 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2343 sysdeps/powerpc/elf/sysdep.h.
2344 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2346 2001-11-05 Ulrich Drepper <drepper@redhat.com>
2348 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
2350 (process_envvars): Some more optimizations.
2351 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2353 * elf/elf.h: Add dynamic tag definitions for prelinking.
2355 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2356 Rewrite code to remove environment varables for SUID binaries.
2357 Small optimization in LD_PROFILE handling.
2358 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2360 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2362 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2364 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2365 strings. Change type of second parameter.
2366 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2369 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2371 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
2373 * manual/string.texi: Fix typos.
2374 * manual/examples/argp-ex2.c: Likewise.
2376 2001-11-05 Roland McGrath <roland@frob.com>
2378 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2379 the more-specific unix/sysv/linux/powerpc file and breaks everything.
2380 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2381 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2382 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2383 here, put under [__ELF__].
2385 2001-11-05 Ulrich Drepper <drepper@redhat.com>
2387 * manual/charset.texi: Extensive editing work.
2388 * manual/nss.texi: Likewise.
2389 Changes by Dennis Grace <dgrace@us.ibm.com>.
2391 2001-11-04 Roland McGrath <roland@frob.com>
2393 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2394 parameter to dir_mkfile.
2396 2001-11-02 Jakub Jelinek <jakub@redhat.com>
2398 * string/bits/string2.h (__strndup): If n is smaller than len, set
2400 * string/tester.c (test_strndup): New function.
2403 2001-11-01 Ulrich Drepper <drepper@redhat.com>
2405 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2407 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2408 * scripts/cpp: New file.
2410 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2411 for rtld_search_dirs content. Minor optimizations.
2413 2001-10-31 Ulrich Drepper <drepper@redhat.com>
2415 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2416 avoiding unnecessary duplication.
2418 2001-10-31 Jakub Jelinek <jakub@redhat.com>
2420 * elf/dl-load.c (_dl_map_object): If library was found using
2421 LD_LIBRARY_PATH, don't try RUNPATH list.
2423 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
2425 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2426 Correct second argument of register_dump call.
2427 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2430 2001-10-31 Ulrich Drepper <drepper@redhat.com>
2432 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2434 * iconvdata/TESTS: Likewise.
2435 * iconvdata/gconv-modules: Likewise.
2436 * iconvdata/ibm1132.c: New file.
2437 * iconvdata/ibm1132.h: New file.
2438 * iconvdata/ibm1133.c: New file.
2439 * iconvdata/ibm1133.h: New file.
2440 * iconvdata/ibm1162.c: New file.
2441 * iconvdata/ibm1162.h: New file.
2442 * iconvdata/testdata/IBM1132: New file.
2443 * iconvdata/testdata/IBM1132..UTF8: New file.
2444 * iconvdata/testdata/IBM1133: New file.
2445 * iconvdata/testdata/IBM1133..UTF8: New file.
2446 * iconvdata/testdata/IBM1162: New file.
2447 * iconvdata/testdata/IBM1162..UTF8: New file.
2448 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2450 * string/string.h: Fix typo in comment.
2451 * wcsmbs/wchar.h: Likewise.
2453 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
2455 * manual/getopt.texi (getopt_long, getopt_long_only): Include
2456 const in type of longopts parameter.
2458 2001-10-29 Andreas Jaeger <aj@suse.de>
2460 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2462 2001-10-29 Kevin Ryde <user42@zip.com.au>
2464 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2465 output, clarify `#' behaviour on 0.
2466 (Floating-Point Conversions): Clarify that %g only uses %e when
2467 the exponent would be greater than 1.
2469 2001-10-28 Roland McGrath <roland@frob.com>
2471 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2472 * sysdeps/mach/powerpc/machine-sp.h: New file.
2473 * sysdeps/mach/powerpc/sysdep.h: New file.
2474 * sysdeps/mach/powerpc/thread_state.h: New file.
2476 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2477 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
2478 expect to need the same thing on every platform.
2480 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2481 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2483 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2484 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2485 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2486 Move all these assembly-related definitions to ...
2487 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2489 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2490 by Peter Bruin <pjbruin@dds.nl>.
2492 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2493 packing results for a `poll' call.
2495 2001-10-26 Ulrich Drepper <drepper@redhat.com>
2497 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2499 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2502 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2504 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2506 2001-10-24 H.J. Lu <hjl@gnu.org>
2508 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2509 Use __BEGIN_DECLS/__END_DECLS around prototypes.
2510 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2512 2001-10-21 Jim Meyering <meyering@lucent.com>
2514 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
2515 this code would end up calling gettext even in packages built
2517 * posix/getopt.c (_): Likewise.
2518 * posix/regex.c (_): Likewise.
2520 2001-10-26 Ulrich Drepper <drepper@redhat.com>
2522 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2524 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2525 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2527 2001-10-19 Jakub Jelinek <jakub@redhat.com>
2529 * misc/sys/cdefs.h (__attribute_used__): Define.
2530 * elf/rtld.c (_dl_start): Add __attribute_used__.
2531 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2533 2001-10-25 Andreas Schwab <schwab@suse.de>
2535 * stdlib/a64l.c: Expect least significant digit first.
2536 * stdlib/l64a.c: Produce least significant digit first.
2537 * stdlib/Makefile (tests): Add test-a64l.
2538 * stdlib/test-a64l.c: New file.
2539 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2541 2001-10-21 Ulrich Drepper <drepper@redhat.com>
2543 * po/sk.po: Update from translation team.
2545 2001-10-18 Ulrich Drepper <drepper@redhat.com>
2547 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2549 2001-10-18 Andreas Schwab <schwab@suse.de>
2551 * math/libm-test.inc (print_ulps): Print ulp values rounded to
2553 (print_function_ulps): Likewise.
2554 (print_complex_function_ulps): Likewise.
2555 (print_max_error): Likewise.
2556 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
2558 2001-10-16 Andreas Schwab <schwab@suse.de>
2560 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2563 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2564 BSD_SETJMP or BSD__SETJMP is defined, resp.
2565 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2566 a tail call to __sigsetjmp that would require extending the
2568 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2569 * sysdeps/m68k/bsd-setjmp.S: Deleted.
2570 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2571 Reported by Jes Sorensen <jes@trained-monkey.org>.
2573 2001-10-16 Andreas Jaeger <aj@suse.de>
2575 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2576 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
2579 2001-10-15 Ulrich Drepper <drepper@redhat.com>
2581 * po/ca.po: New file. Contributed by the translation team.
2583 2001-10-15 Ralf Baechle <ralf@gnu.org>
2585 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2586 a varargs prototype. Remove dependency from kernel header files.
2588 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2589 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2591 2001-10-14 Ulrich Drepper <drepper@redhat.com>
2593 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2594 to generate hexadecimal identifier.
2595 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2597 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
2599 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2601 2001-10-14 Ulrich Drepper <drepper@redhat.com>
2603 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2604 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2605 Contributed by Stephen L Moshier <moshier@mediaone.net>.
2607 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2608 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2609 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2610 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2611 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2612 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2614 * timezone/africa: Update from tzdata2001d.
2615 * timezone/asia: Likewise.
2616 * timezone/australasia: Likewise.
2617 * timezone/backward: Likewise.
2618 * timezone/europe: Likewise.
2619 * timezone/leapseconds: Likewise.
2620 * timezone/northamerica: Likewise.
2621 * timezone/southamerica: Likewise.
2622 * timezone/zone.tab: Likewise.
2624 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2626 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2627 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2629 2001-10-12 Ulrich Drepper <drepper@redhat.com>
2631 * elf/elf.h (PT_TLS): New definition.
2633 2001-10-10 Jeff Bailey <jbailey@nisa.net>
2635 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2638 2001-10-07 Roland McGrath <roland@frob.com>
2640 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2642 2001-10-10 Ulrich Drepper <drepper@redhat.com>
2644 * elf/elf.h: Add more ELFOSABI_* constants.
2646 2001-10-04 Ben Collins <bcollins@debian.org>
2648 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2649 decleration of __need_wchar_t.
2651 2001-10-03 Jakub Jelinek <jakub@redhat.com>
2653 * string/bits/string2.h (__strsep_g): Add prototype.
2655 * string/Versions (__strsep): Remove.
2656 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2658 2001-10-07 Ulrich Drepper <drepper@redhat.com>
2660 * manua/llio.texi: Clarify file references added by mmap.
2661 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2663 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
2665 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2666 Add sc_loadrs and sc_rbs_bas to match current kernel.
2668 2001-09-27 Jakub Jelinek <jakub@redhat.com>
2670 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2672 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2674 2001-09-27 Jakub Jelinek <jakub@redhat.com>
2676 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2677 object has been bumped because of relocation dependency, avoid
2678 duplicates in l_scope.
2679 (show_scope): Fix typos.
2680 * elf/Makefile: Add rules to build and run reldep6.
2681 * elf/reldep6.c: New file.
2682 * elf/reldep6mod0.c: New file.
2683 * elf/reldep6mod1.c: New file.
2684 * elf/reldep6mod2.c: New file.
2685 * elf/reldep6mod3.c: New file.
2686 * elf/reldep6mod4.c: New file.
2688 2001-09-26 Jakub Jelinek <jakub@redhat.com>
2690 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2692 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
2693 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2694 for non-lazy binding. Fix .plt[32768+] handling.
2695 (elf_machine_plt_value): Don't add addend.
2696 (elf_machine_rela): Call sparc64_fixup_plt instead of
2697 elf_machine_fixup_plt.
2698 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2699 dynamic linker at 0xfffff800XXXXXXXX.
2701 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2703 2001-09-28 Ulrich Drepper <drepper@redhat.com>
2705 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2707 2001-09-25 Jakub Jelinek <jakub@redhat.com>
2709 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2710 declare __cmsg_data field if its size would be bigger than 0.
2711 (CMSG_DATA): Adjust accordingly.
2712 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2713 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2714 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2715 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2716 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2717 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2718 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2720 2001-09-25 Ulrich Drepper <drepper@redhat.com>
2722 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2723 * iconvdata/testdata/IBM1160: New file.
2724 * iconvdata/testdata/IBM1160..UTF8: New file.
2725 * iconvdata/testdata/IBM1161: New file.
2726 * iconvdata/testdata/IBM1161..UTF8: New file.
2727 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2729 2001-09-24 Ulrich Drepper <drepper@redhat.com>
2731 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2732 UL_SETFSIZE computations better.
2734 * rt/Makefile: Remove use of filter for librt again.
2736 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2737 UL_SETFSIZE computations better.
2739 * string/Versions: Export __strsep for GLIBC_2.2.5.
2740 * string/bits/string2.h: Define all __STRING_INLINE functions if
2741 _FORCE_INLINES is defined.
2742 Use int instead of char of parameter types.
2743 (__strsep): Don't use __strsep_g. Don't define it.
2744 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2745 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2747 (__stpcpy_a_small): Renamed from __stpcpy_small.
2748 (__strcspn_c1): Don't define if _FORCE_INLINES.
2749 (__strspn_c1): Likewise.
2751 2001-09-22 Ben Collins <bcollins@debian.org>
2753 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2754 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
2755 * sysdeps/ia64/bits/sigaction.h: Likewise.
2756 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2758 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
2760 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2762 2001-09-24 Jakub Jelinek <jakub@redhat.com>
2764 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2766 2001-09-24 Ulrich Drepper <drepper@redhat.com>
2768 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2770 2001-09-20 H.J. Lu <hjl@gnu.org>
2772 * include/dlfcn.h (__RTLD_SPROF): New definiton.
2773 * elf/dl-open.c (dl_open_worker): Return immediately after loading
2775 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2776 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2778 2001-09-20 H.J. Lu <hjl@gnu.org>
2780 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2783 2001-09-22 Ulrich Drepper <drepper@redhat.com>
2785 * nss/getent.c: Accept -s parameter to overwrite rules in
2786 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
2788 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2789 with as many ".0" as necessary to form a complete address
2790 inet_network understands.
2792 * nss/getent.c: Various cleanups. Use simpler and fewer function
2795 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2797 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2799 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2801 2001-09-22 Ulrich Drepper <drepper@redhat.com>
2803 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2805 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2806 * iconvdata/ibm1160.c: New file.
2807 * iconvdata/ibm1160.h: New file.
2808 * iconvdata/ibm1161.c: New file.
2809 * iconvdata/ibm1161.h: New file.
2810 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2812 2001-09-19 Jakub Jelinek <jakub@redhat.com>
2814 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2815 difference between base address and first PT_LOAD's virtual address,
2816 not the base address.
2818 2001-09-11 Tom Rix <trix@redhat.com>
2820 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
2821 ifdef for __getopt_clean_environment.
2822 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2824 2001-09-22 Andreas Jaeger <aj@suse.de>
2826 * elf/reldep4.c (main): Add proper prototype to fix warning.
2828 * elf/reldep5.c (main): Remove unused variable.
2830 * math/math_private.h: Add prototypes.
2832 2001-09-21 Andreas Jaeger <aj@suse.de>
2834 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2835 * sysdeps/x86_64/Dist: New file.
2836 * sysdeps/x86_64/soft-fp/Dist: New file.
2838 * sysdeps/gnu/Dist: Remove eval.c.
2840 2001-09-20 Ulrich Drepper <drepper@redhat.com>
2842 * malloc/memusage.c (realloc): Don't count already allocated
2844 (me): Always use dlsym() to find the real implementations.
2846 * malloc/memusage.sh: Make -n option actually do something.
2848 2001-09-20 Andreas Jaeger <aj@suse.de>
2850 * elf/elf.h (R_390_NUM): Correct value.
2852 * Versions.def: Add missing versions 2.2.3 for libthread_db and
2855 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2856 for x86-64, install x86-64 into */lib64.
2858 * shlib-versions: Add x86-64.
2860 * elf/elf.h: Add x86-64 relocations.
2862 2001-09-19 Ulrich Drepper <drepper@redhat.com>
2864 * po/fr.po: Update from translation team.
2866 2001-09-19 Andreas Jaeger <aj@suse.de>
2868 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2869 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2870 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2871 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2872 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2873 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2874 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2875 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2876 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2877 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2878 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2879 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2880 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2881 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2882 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2883 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2884 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2885 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2886 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2887 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2888 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2889 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2890 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2891 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2892 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2893 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2894 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2895 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2896 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2897 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2898 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2899 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2900 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2901 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2902 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2903 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2904 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2905 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2906 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2907 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2908 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2909 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2910 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2911 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2912 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2913 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2914 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2915 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2916 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2917 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2918 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2919 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2920 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2921 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2922 * sysdeps/unix/x86_64/sysdep.S: New file.
2923 * sysdeps/unix/x86_64/sysdep.h: New file.
2924 * sysdeps/x86_64/Implies: New file.
2925 * sysdeps/x86_64/Makefile: New file.
2926 * sysdeps/x86_64/Versions: New file.
2927 * sysdeps/x86_64/__longjmp.S: New file.
2928 * sysdeps/x86_64/abort-instr.h: New file.
2929 * sysdeps/x86_64/atomicity.h: New file.
2930 * sysdeps/x86_64/bits/endian.h: New file.
2931 * sysdeps/x86_64/bits/setjmp.h: New file.
2932 * sysdeps/x86_64/bits/string.h: New file.
2933 * sysdeps/x86_64/bp-asm.h: New file.
2934 * sysdeps/x86_64/bsd-_setjmp.S: New file.
2935 * sysdeps/x86_64/bsd-setjmp.S: New file.
2936 * sysdeps/x86_64/dl-machine.h: New file.
2937 * sysdeps/x86_64/elf/initfini.c: New file.
2938 * sysdeps/x86_64/elf/start.S: New file.
2939 * sysdeps/x86_64/ffs.c: New file.
2940 * sysdeps/x86_64/ffsll.c: New file.
2941 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2942 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2943 * sysdeps/x86_64/fpu/e_acosl.c: New file.
2944 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2945 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2946 * sysdeps/x86_64/fpu/e_expl.c: New file.
2947 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2948 * sysdeps/x86_64/fpu/e_log10l.S: New file.
2949 * sysdeps/x86_64/fpu/e_log2l.S: New file.
2950 * sysdeps/x86_64/fpu/e_logl.S: New file.
2951 * sysdeps/x86_64/fpu/e_powl.S: New file.
2952 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2953 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2954 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2955 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2956 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2957 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2958 * sysdeps/x86_64/fpu/fegetenv.c: New file.
2959 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2960 * sysdeps/x86_64/fpu/fegetround.c: New file.
2961 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2962 * sysdeps/x86_64/fpu/fesetenv.c: New file.
2963 * sysdeps/x86_64/fpu/fesetround.c: New file.
2964 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2965 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2966 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2967 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2968 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2969 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2970 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2971 * sysdeps/x86_64/fpu/s_atanl.c: New file.
2972 * sysdeps/x86_64/fpu/s_cosl.S: New file.
2973 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2974 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2975 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2976 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2977 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2978 * sysdeps/x86_64/fpu/s_logbl.c: New file.
2979 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2980 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2981 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2982 * sysdeps/x86_64/fpu/s_rintl.c: New file.
2983 * sysdeps/x86_64/fpu/s_significandl.c: New file.
2984 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2985 * sysdeps/x86_64/fpu/s_sinl.S: New file.
2986 * sysdeps/x86_64/fpu/s_tanl.S: New file.
2987 * sysdeps/x86_64/gmp-mparam.h: New file.
2988 * sysdeps/x86_64/hp-timing.c: New file.
2989 * sysdeps/x86_64/hp-timing.h: New file.
2990 * sysdeps/x86_64/htonl.S: New file.
2991 * sysdeps/x86_64/memusage.h: New file.
2992 * sysdeps/x86_64/setjmp.S: New file.
2993 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2994 * sysdeps/x86_64/stackinfo.h: New file.
2995 * sysdeps/x86_64/sysdep.h: New file.
2996 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2998 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
3001 2001-09-18 Ulrich Drepper <drepper@redhat.com>
3003 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
3004 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
3006 2001-09-18 Andreas Schwab <schwab@suse.de>
3008 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
3009 list, now that l_scope is a pointer.
3011 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
3014 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
3016 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
3017 (elf_machine_rela_relative): Add a missing declaration.
3019 2001-09-18 Jakub Jelinek <jakub@redhat.com>
3021 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
3022 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
3023 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
3024 ldd-rewrite scripts.
3026 2001-09-18 Ulrich Drepper <drepper@redhat.com>
3028 * elf/ldd.bash.in: Update copyright message.
3030 2001-09-17 H.J. Lu <hjl@gnu.org>
3032 * hurd/hurdmalloc.c (bcopy): Removed.
3033 (realloc): Replace bcopy with memcpy.
3034 * hurd/path-lookup.c (file_name_path_scan): Likewise.
3035 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
3036 * sunrpc/rpcinfo.c (pmapdump): Likewise.
3038 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
3039 (gethostbyaddr): Likewise.
3040 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
3042 2001-09-18 Ulrich Drepper <drepper@redhat.com>
3044 * sysdeps/gnu/eval.c: Removed.
3046 2001-09-18 Andreas Jaeger <aj@suse.de>
3048 * sysdeps/i386/fpu/s_logbl.S: Move to ...
3049 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
3051 * sysdeps/i386/fpu/s_rintl.S: Move to ...
3052 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
3054 * sysdeps/i386/fpu/s_significandl.S: Move to ...
3055 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
3057 2001-09-16 Ulrich Drepper <drepper@redhat.com>
3059 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
3062 2001-09-14 H.J. Lu <hjl@gnu.org>
3064 * sysdeps/mips/fpu/libm-test-ulps: Updated.
3066 2001-09-14 Ulrich Drepper <drepper@redhat.com>
3068 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
3069 Patch by Florian La Roche <laroche@redhat.com>.
3071 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
3073 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
3076 2001-09-14 Andreas Schwab <schwab@suse.de>
3078 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
3079 Sumner <bls@sgi.com>.
3080 * posix/execlp.c: Likewise.
3082 2001-09-13 Jakub Jelinek <jakub@redhat.com>
3084 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
3085 is already found earlier in the search scope.
3087 2001-09-12 Jakub Jelinek <jakub@redhat.com>
3089 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
3092 2001-09-13 Ulrich Drepper <drepper@redhat.com>
3094 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
3096 2001-09-12 Ulrich Drepper <drepper@redhat.com>
3098 * config.h.in: Enforce optimization to be used.
3099 * Makeconfig (preprocess-versions): Define ASSEMBLER.
3100 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
3101 * posix/Makefile (annexc-CFLAGS): Define to -O.
3102 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
3104 2001-09-11 Ulrich Drepper <drepper@redhat.com>
3106 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
3107 Patch by Stephan Kulow.
3109 2001-09-08 Ben Collins <bcollins@debian.org>
3111 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
3112 usage of RESOLVE() (r_type, not reloc->r_type).
3114 2001-09-08 Ulrich Drepper <drepper@redhat.com>
3116 * elf/dl-object.c: Avoid allocating extra memory block for name.
3117 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
3118 allocated separately.
3119 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3121 2001-09-08 H.J. Lu <hjl@gnu.org>
3123 * po/zh_TW.po: Fix a typo.
3125 2001-09-07 Tom Rix <trix@redhat.com>
3127 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
3129 2001-08-26 Tom Rix <trix@redhat.com>
3131 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
3132 command line options.
3133 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
3134 * sysdeps/unix/sysv/aix/start.c: Removed.
3135 * sysdeps/unix/sysv/aix/start-libc.c: New file.
3136 * sysdeps/unix/sysv/aix/init-first.c: New file.
3137 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
3139 2001-09-08 Ben Collins <bcollins@debian.org>
3141 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
3142 * sysdeps/generic/dl-machine.h: Likewise.
3143 * sysdeps/hppa/dl-fptr.c: Likewise.
3144 * sysdeps/ia64/dl-fptr.c: Likewise.
3145 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3146 * sysdeps/mips/dl-machine.h: Likewise.
3147 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3148 * sysdeps/powerpc/dl-machine.c: Likewise.
3150 2001-09-07 Ben Collins <bcollins@debian.org>
3152 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
3154 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
3156 2001-09-08 Ulrich Drepper <drepper@redhat.com>
3158 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
3159 dependencies if necessary.
3161 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
3162 loaded directly) determine length if l_initfini list by iterating
3163 over its elements. Minor optimizations.
3164 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
3165 for dependency objects.
3166 If object was already loaded check whether any of the dependencies
3167 is already on the relocation dependency list. If yes, remove the
3168 latter. Minor optimizations.
3169 * elf/dl-lookup.c (add_dependency): Add check for self reference of
3170 maps here. Search l_initfini list only if the object was loaded
3171 directly and not only as a dependency.
3172 (_dl_lookup_symbol): Add relocation dependency also if object
3173 is not in global scope. Remove test for self-reference here.
3174 (_dl_lookup_versioned_symbol): Likewise.
3175 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
3176 element of first name record.
3177 * elf/loadtest.c: Add some more test to recognize early if an object
3179 * elf/Makefile: Add rules to build and run reldep5.
3180 * elf/reldep5.c: New file.
3181 * elf/reldepmod5.c: New file.
3182 * elf/reldepmod6.c: New file.
3184 * elf/reldep2.c: Fix typo.
3186 2001-09-07 Ulrich Drepper <drepper@redhat.com>
3188 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
3189 elements. Change l_scope to be a pointer only.
3190 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
3191 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
3192 here add searchlist of newly open file to the dependency's scope.
3193 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
3194 only searchlist from its scope. Free own scope array if necessary.
3195 * elf/Makefile (tests): Add dblload and dblunload now.
3197 2001-09-06 Andreas Jaeger <aj@suse.de>
3199 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
3202 2001-09-05 Ulrich Drepper <drepper@redhat.com>
3204 * elf/Makefile: Add rules to build new tests. Don't run them yet since
3206 * elf/dblload.c: New file.
3207 * elf/dblloadmod1.c: New file.
3208 * elf/dblloadmod2.c: New file.
3209 * elf/dblloadmod3.c: New file.
3210 * elf/dblunload.c: New file.
3212 2001-09-04 Richard Henderson <rth@redhat.com>
3214 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
3215 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
3217 2001-09-04 Ulrich Drepper <drepper@redhat.com>
3219 Correct very misleading message for error in failed runtime relocation.
3220 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3222 (_dl_signal_cerror): Likewise.
3223 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3224 * elf/dl-close.c: Likewise.
3225 * elf/dl-deps.c: Likewise.
3226 * elf/dl-load.c: Likewise.
3227 * elf/dl-lookup.c: Likewise.
3228 * elf/dl-open.c: Likewise.
3229 * elf/dl-reloc.c: Likewise.
3230 * elf/dl-sym.c: Likewise.
3231 * elf/dl-version.c: Likewise.
3232 * sysdeps/generic/dl-sysdep.c: Likewise.
3234 2001-09-04 Jakub Jelinek <jakub@redhat.com>
3236 * iconv/strtab.c (strtabinit): Initialize null Strent.
3237 (newstring): Move len == 0 handling...
3238 (strtabadd): ...here.
3239 If len == 1, return null Strent.
3240 When inserting a suffix of an existing string, check if
3241 it is not equal to some suffix already recorded.
3242 Copy left and right members over if adding longer string.
3244 2001-09-04 Jakub Jelinek <jakub@redhat.com>
3246 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3248 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3249 (__syscall_gethostname): Add prototype.
3251 2001-09-04 Ulrich Drepper <drepper@redhat.com>
3253 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3255 2001-09-02 Ulrich Drepper <drepper@redhat.com>
3257 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3259 2001-08-27 Roland McGrath <roland@frob.com>
3261 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3262 short, copy that much into NAME anyway before returning error.
3264 2001-09-01 Richard Henderson <rth@redhat.com>
3266 * sysdeps/alpha/elf/Dist: Remove file.
3267 * sysdeps/alpha/elf/Makefile: Remove file.
3268 * sysdeps/alpha/elf/crtbegin.S: Remove file.
3269 * sysdeps/alpha/elf/crtend.S: Remove file.
3270 * sysdeps/alpha/elf/initfini.c: New file.
3272 2001-09-01 Mark Kettenis <kettenis@gnu.org>
3274 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3275 * iconv/tst-iconv3.c: Likewise.
3277 2001-09-01 Jakub Jelinek <jakub@redhat.com>
3279 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3281 2001-09-01 Ulrich Drepper <drepper@redhat.com>
3283 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3285 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3286 * iconv/iconv_prog.c (insert_cache): New function.
3287 (print_known_names): If cache is used call insert_cache to use the
3288 information from the cache [PR libc/2509].
3290 2001-08-31 Ulrich Drepper <drepper@redhat.com>
3292 * time/strptime.c (strptime_internal): Recognize 'l' format and
3293 handle it like 'I' for symmetry with strftime.
3295 2001-08-31 Richard Henderson <rth@redhat.com>
3297 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3298 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3299 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3300 (print_statistics): Make scalar unsigned long long.
3301 * sysdeps/alpha/hp-timing.h: New file.
3303 2001-08-31 Jakub Jelinek <jakub@redhat.com>
3305 * stdio-common/perror.c (perror): Save errno early, pass it
3306 down to perror_internal.
3307 (perror_internal): Add errnum argument.
3309 2001-08-31 Jakub Jelinek <jakub@redhat.com>
3311 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3312 Don't add old memory content for R_ALPHA_REFQUAD.
3314 2001-08-30 Ulrich Drepper <drepper@redhat.com>
3316 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3319 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3320 instead of open, __close instead of close, __getpagesize instead
3323 * string/argz-stringify.c (__argz_stringify): Use __strnlen
3325 * include/string.h (strndupa): Redefine here to use __strnlen
3327 * string/strndup.c (__strndup): Use __strnlen not strnlen.
3329 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3332 2001-08-30 Jakub Jelinek <jakub@redhat.com>
3334 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3335 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
3336 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3337 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3338 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3339 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3340 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3342 2001-08-30 Ulrich Drepper <drepper@redhat.com>
3344 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3346 2001-08-30 Andreas Jaeger <aj@suse.de>
3348 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3349 contributed Stephen L Moshier.
3351 2001-08-30 Jakub Jelinek <jakub@redhat.com>
3353 * sunrpc/etc.rpc (sgi_fam): Add.
3355 2001-08-30 Ulrich Drepper <drepper@redhat.com>
3357 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3359 2001-08-29 Ulrich Drepper <drepper@redhat.com>
3361 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3362 first is from a previous call.
3363 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3365 2001-08-29 Andreas Schwab <schwab@suse.de>
3367 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3369 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3371 * config.make.in (INSTALL_SCRIPT): Define.
3372 * Makeconfig (INSTALL_SCRIPT): Define.
3373 * Makerules (do-install-script): New macro to install scripts using
3375 (install-bin-script): New rule to install scripts with
3377 (install-bin-script-nosubdir): New rule.
3378 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3379 (distinfo-vars): Add $(install-bin-script).
3380 * Rules (others): Likewise.
3381 * Makefile (glibcbug): Install with install-bin-script.
3382 * debug/Makefile (xtrace): Likewise.
3383 (catchsegv): Likewise.
3384 * elf/Makefile (ldd): Likewise.
3385 * malloc/Makefile (mtrace): Likewise.
3386 * timezone/Makefile (tzselect): Likewise.
3388 2001-08-29 H.J. Lu <hjl@gnu.org>
3390 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3391 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3392 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3394 2001-08-29 Andreas Schwab <schwab@suse.de>
3396 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3398 2001-08-28 H.J. Lu <hjl@gnu.org>
3400 * Makeconfig (combreloc-LDFLAGS): New variable.
3401 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3402 * config.make.in (have-z-combreloc): New variable.
3403 * configure.in: Substitute libc_cv_z_combreloc.
3405 2001-08-29 Ulrich Drepper <drepper@redhat.com>
3407 * po/sv.po: Update from translation team.
3408 * po/fr.po: Likewise.
3409 * po/da.po: Likewise.
3411 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3413 * Makerules: Fix a typo: MD% -> MD5.
3415 2001-08-28 Ulrich Drepper <drepper@redhat.com>
3417 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3418 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3420 2001-08-28 Andreas Jaeger <aj@suse.de>
3422 * manual/libc-texinfo.sh: Add entry about free manuals.
3424 * manual/contrib.texi (Contributors): Fix cross reference.
3426 * manual/libc.texinfo (Copying): Include freemanuals.
3428 * manual/Makefile (appendices): Add freemanuals.
3430 * manual/freemanuals.texi: New file.
3431 Patch by Brian Youmans <3diff@gnu.org>.
3433 * manual/libm-err-tab.pl: Pretty print more platforms, print a
3436 * manual/math.texi (Errors in Math Functions): Fix grammar, start
3437 table on separate page.
3438 Patch by Brian Youmans <3diff@gnu.org>.
3440 2001-08-27 Ulrich Drepper <drepper@redhat.com>
3442 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
3443 the connection went down after we first used it try to connect
3444 again and resend the message before printing to the console.
3445 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3447 2001-08-27 Jakub Jelinek <jakub@redhat.com>
3449 * string/tst-strlen.c (main): Test strnlen (, -1) too.
3450 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3453 2001-08-27 Ulrich Drepper <drepper@redhat.com>
3455 * iconv/strtab.c (searchstring): Use correct length for comparison.
3456 (strtabadd): Account total size correct if new string has old string as
3459 2001-08-27 Jakub Jelinek <jakub@redhat.com>
3461 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3463 2001-08-27 Andreas Jaeger <aj@suse.de>
3465 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3467 * math/libm-test.inc (j0_test): Add extra tests.
3468 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3469 not x, in Hankel approximation.
3470 Patches by Stephen L Moshier.
3472 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3474 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3477 * configure.in: Fix test for .rela.dyn section.
3479 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3481 2001-08-26 Jakub Jelinek <jakub@redhat.com>
3483 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3484 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3485 Pass type_class to _dl_lookup_*.
3486 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3487 Pass around just type_class instead of noexec, noplt pair.
3488 (_dl_lookup_versioned_symbol): Likewise.
3489 (_dl_lookup_symbol_skip): Pass around just type_class instead of
3491 (_dl_lookup_versioned_symbol_skip): Likewise.
3492 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3493 * elf/do-lookup.h (do_lookup): Likewise.
3494 * include/link.h (struct link_map): Replace noexec and noplt fields
3495 in l_lookup_cache with type_class field.
3496 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3497 ELF_RTYPE_CLASS_COPY): Define.
3498 Adjust prototypes for _dl_lookup_symbol and
3499 _dl_lookup_versioned_symbol.
3500 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3501 elf_machine_lookup_noexec_p): Remove.
3502 (elf_machine_type_class): Define.
3503 * sysdeps/arm/dl-machine.h: Likewise.
3504 * sysdeps/hppa/dl-machine.h: Likewise.
3505 * sysdeps/cris/dl-machine.h: Likewise.
3506 * sysdeps/i386/dl-machine.h: Likewise.
3507 * sysdeps/ia64/dl-machine.h: Likewise.
3508 * sysdeps/m68k/dl-machine.h: Likewise.
3509 * sysdeps/mips/mips64/dl-machine.h: Likewise.
3510 * sysdeps/mips/dl-machine.h: Likewise.
3511 * sysdeps/powerpc/dl-machine.h: Likewise.
3512 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3513 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3514 * sysdeps/sh/dl-machine.h: Likewise.
3515 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3516 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3518 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3520 * manual/message.texi (Advanced gettext functions): Change
3521 description of plural forms for Slovak.
3522 Reported by Marcel Telka <marcel@telka.sk>.
3524 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3525 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3527 2001-08-26 Jakub Jelinek <jakub@redhat.com>
3529 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3530 typo. Patch by Florian La Roche <laroche@redhat.com>.
3532 2001-08-26 Ulrich Drepper <drepper@redhat.com>
3534 * include/link.h (struct link_map): Add l_lookup_cache element.
3535 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3536 (RESOLVE_MAP): Likewise.
3537 (_dl_relocate_object): Remove cache initialization.
3538 * elf/dl-lookup.c: Rip out cache handling code.
3539 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3542 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3543 remove some __builtin_expect.
3544 (_dl_lookup_versioned_symbol): Likewise.
3546 * config.h.in: Add HAVE_Z_COMBRELOC.
3547 * configure.in: Add test for -z combreloc.
3549 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3550 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
3551 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
3552 case to almost no code.
3554 2001-08-25 Ulrich Drepper <drepper@redhat.com>
3556 * po/tr.po: Update from translation team.
3558 2001-08-24 Andreas Jaeger <aj@suse.de>
3560 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3563 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3565 * elf/rtld.c (print_statistics): Printf % after percent values.
3566 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3568 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3569 don't have to compute the hash value and initialize current_value.
3570 Move reference_name variable to where it is needed.
3571 (_dl_lookup_versioned_symbol): Likewise.
3573 2001-08-24 Roland McGrath <roland@frob.com>
3575 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3576 Just test that strerror returns non-null for a few errno codes.
3578 2001-08-23 Roland McGrath <roland@frob.com>
3580 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3581 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3583 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3585 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3588 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3590 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3593 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3594 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3596 * elf/rtld.c: Include <sys/param.h>.
3597 * elf/dl-reloc.c: Likewise.
3599 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3601 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3602 empty to prevent junk from being generated.
3603 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3605 2001-08-24 Jakub Jelinek <jakub@redhat.com>
3607 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3608 records. Rename endrel to relative, initialize it to r, and use it
3609 in elf_machine_rel_relative calls. Point r after relative relocs.
3611 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3613 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3616 2001-08-24 Jakub Jelinek <jakub@redhat.com>
3618 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3619 necessary. Undefine newly defined macros at the end.
3620 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3621 Rename from elf_machine_rel_relative.
3622 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3623 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3624 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3625 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3627 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3629 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3631 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3633 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3634 Likewise. Fix argument types.
3635 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3636 Likewise. Fix argument types.
3637 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3639 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3640 ElfW(Rel) in argument.
3641 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3644 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
3646 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3648 2001-08-24 Andreas Jaeger <aj@suse.de>
3650 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3651 Stephen L Moshier <moshier@mediaone.net>.
3653 2001-08-24 Ulrich Drepper <drepper@redhat.com>
3655 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3656 first if RELCOUNT is set.
3658 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3659 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3660 elf_machine_rel_relative.
3661 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3662 Minor optimizations.
3663 * sysdeps/arm/dl-machine.h: Likewise.
3664 * sysdeps/cris/dl-machine.h: Likewise.
3665 * sysdeps/hppa/dl-machine.h: Likewise.
3666 * sysdeps/i386/dl-machine.h: Likewise.
3667 * sysdeps/ia64/dl-machine.h: Likewise.
3668 * sysdeps/m68k/dl-machine.h: Likewise.
3669 * sysdeps/mips/dl-machine.h: Likewise.
3670 * sysdeps/powerpc/dl-machine.h: Likewise.
3671 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3672 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3673 * sysdeps/sh/dl-machine.h: Likewise.
3674 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3675 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3677 2001-08-23 Roland McGrath <roland@frob.com>
3679 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3681 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3682 sysdeps/mach version. Implement counting ("recursive") mutexes
3683 on top of cthreads mutexes.
3684 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3686 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3687 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3688 (__libc_cleanup_region_start, __libc_cleanup_region_end,
3689 __libc_clean_end): Define these to call the cleanup function after
3690 normal exit when they're supposed to.
3692 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3693 Take new first arg DOIT, a boolean saying whether to really install
3694 any cleanup handler.
3695 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3696 (__libc_cleanup_end): Likewise.
3697 * sysdeps/generic/bits/libc-lock.h: Same changes.
3698 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3699 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3700 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3702 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3703 * sysdeps/generic/bits/stdio-lock.h
3704 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3706 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3708 * elf/ldconfig.c (search_dir): Remove stale symlinks.
3710 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3712 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3713 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3715 (_dl_lookup_versioned_symbol): Likewise.
3716 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3718 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3719 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3720 (lookup_cache, lookup_cache_versioned): Add declarations.
3722 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3724 * stdlib/tst-random.c (main): Swap parameters in fail call.
3725 Patch by Pete Bevin <pete@petebevin.com>.
3727 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3729 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3731 2001-08-23 Ulrich Drepper <drepper@redhat.com>
3733 * malloc/obstack.c: Indent preprocessor directives.
3734 Patch by Jim Meyering <meyering@ascend.com>.
3736 * po/ja.po: Update from translation team.
3738 2001-08-23 Roland McGrath <roland@frob.com>
3740 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3742 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3743 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3745 2001-08-22 Roland McGrath <roland@frob.com>
3747 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3748 __libc_lock_define_recursive.
3749 * elf/dl-open.c: Don't declare it here any more.
3750 * elf/dl-close.c: Likewise.
3751 * elf/dl-lookup.c: Likewise.
3752 * elf/dl-iteratephdr.c: Likewise.
3753 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3754 __libc_lock_unlock_recursive.
3755 * elf/dl-close.c (_dl_close): Likewise
3756 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3757 * elf/dl-open.c (_dl_open): Likewise
3759 * sysdeps/generic/bits/libc-lock.h
3760 (__libc_lock_define_recursive): New macro.
3761 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3762 (_IO_lock_lock): Use __libc_lock_lock_recursive.
3763 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3765 * conform/conformtest.pl (checknamespace): Sort the output list.
3767 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3768 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3769 definitions conditional on [__USE_XOPEN].
3771 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3772 these unconditionally, not only use [__USE_BSD], so as to match
3773 the sysdeps/unix/sysv/linux files.
3775 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3777 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3780 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3783 2001-08-22 Roland McGrath <roland@frob.com>
3785 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3786 conditionalization of sa_handler/sa_sigaction member types to
3787 match the sysdeps/unix/sysv/linux file.
3789 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3791 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3792 symbol sizes a bit better.
3794 * sysdeps/ia64/strncpy.S: Complete rewrite.
3795 Contributed by Jakub Jelinek <jakub@redhat.com>.
3797 * string/stratcliff.c (main): Add strncpy test.
3799 2001-08-22 Roland McGrath <roland@frob.com>
3801 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3802 and don't declare unsetenv or _environ directly.
3803 (unsetenv): Return int, not void. Use __environ instead of _environ.
3805 2001-08-01 Mark Kettenis <kettenis@gnu.org>
3807 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3808 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3809 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3810 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3811 test for cmsg struct size.
3813 2001-04-23 Paul Eggert <eggert@twinsun.com>
3815 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3816 Rename __argc to ___argc in prototypes to avoid compatibility
3817 problems with systems that reserve the identifier "__argc".
3818 Similarly for __argv.
3820 2001-08-21 Roland McGrath <roland@frob.com>
3822 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3824 * mach/Makefile (tests): Removed.
3825 * mach/hello.c: File removed.
3827 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3829 * po/sv.po: Update from translation team.
3831 * stdio-common/vfscanf.c: Fix handling of %l[].
3832 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3834 * libio/Makefile (tests): Add tst-sscanf.
3835 * libio/tst-sscanf.c: New file.
3837 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3838 * malloc/mtrace.c (tr_where): dli_sname always points to a
3839 non-empty string if != NULL.
3840 Reported by Tim Janik <timj@gtk.org>.
3842 2001-08-22 Jakub Jelinek <jakub@redhat.com>
3844 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3845 buf. Free resources on failure.
3846 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3847 (makefd_xprt): Likewise.
3848 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3849 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3850 * sunrpc/auth_unix.c (authunix_create): Likewise.
3852 2001-08-21 Jakub Jelinek <jakub@redhat.com>
3854 * string/strnlen.c: Remove.
3855 * sysdeps/generic/strnlen.c: New file.
3856 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3858 2001-08-21 Roland McGrath <roland@frob.com>
3860 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3861 as a macro, not an extern inline function.
3863 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3864 * Versions.def (libc): Add GLIBC_2.2.5 set.
3865 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3866 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3868 2001-08-20 Roland McGrath <roland@frob.com>
3870 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3871 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3873 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3875 * string/bits/string2.h: Remove strnlen optimization here.
3876 * sysdeps/i386/i486/bits/string.h: Add it here.
3878 2001-08-21 Wolfram Gloger <wg@malloc.de>
3880 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3882 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3884 * po/gl.po: Update from translation team.
3886 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3888 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3889 * misc/err.c (convert_and_print): Likewise.
3891 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3894 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3896 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3897 change of the gregset_t type.
3898 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3900 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
3902 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3904 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3906 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3908 * string/strnlen.c: Fix the implementation. We cannot use memchr.
3910 2001-08-18 Mark Kettenis <kettenis@gnu.org>
3912 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3913 before calling the cthreads initialization code.
3915 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3917 * argp/argp-help.c: Fix two problems introduced in last change.
3919 * include/dirent.h: Include <dirstream.h> first.
3921 2001-08-19 Ulrich Drepper <drepper@redhat.com>
3923 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3925 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3926 * sunrpc/xdr_rec.c: Likewise.
3927 * sunrpc/xdr_mem.c: Likewise.
3928 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3929 * sunrpc/rpc_cmsg.c: Likewise.
3930 * sunrpc/getrpcport.c (getrpcport): Likewise.
3931 * sunrpc/clnt_simp.c (callrpc): Likewise.
3932 * sunrpc/clnt_gen.c (clnt_create): Likewise.
3933 * string/envz.c: Likewise.
3935 * po/ko.po: Update from translation team.
3937 * argp/argp-help.c: Handle wide oriented stderr stream.
3939 2001-08-18 Ulrich Drepper <drepper@redhat.com>
3941 * sysdeps/generic/strtol.c: Little optimizations. Add some
3944 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3946 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3947 * wcsmbs/wcwidth.c (wcwdith): Likewise.
3948 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3950 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3952 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3954 * time/time.h (struct timespec): Use __time_t for tv_sec element.
3956 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
3957 wchar_t for function declarations and defintions.
3959 * misc/sys/select.h: Define __need_time_t before including <time.h>.
3960 Define suseconds_t if it hasn't happened yet.
3962 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3964 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3966 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3969 * conform/data/stddef.h-data: Remove wint_t.
3971 * conform/conformtest.pl: Change namespace test to take #undef
3974 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3976 * conform/data/sys/socket.h-data: Add sockatmark.
3978 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3980 * io/fts.c: Update from recent BSD source.
3982 2001-08-17 Roland McGrath <roland@frob.com>
3984 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3985 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3988 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3990 * locale/duplocale.c (__duplocale): Also initialize the special
3993 * conform/data/netdb.h-data: Adjust gai_strerror return type.
3995 2001-08-17 Andreas Jaeger <aj@suse.de>
3997 * misc/getpass.c: Include wchar.h for prototypes.
3998 * malloc/obstack.c: Likewise.
4000 2001-08-17 Ulrich Drepper <drepper@redhat.com>
4002 * sunrpc/svc_simple.c (universal): Use __write instead of write.
4004 * wcsmbs/wcscoll.c: Also define __wcscoll.
4005 * include/wchar.h: Declare __wcscoll.
4007 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
4008 * libio/vwprintf.c: Likewise.
4009 * libio/wprintf.c: Likewise.
4011 * iconv/gconv_cache.c: Use __munmap instead of munmap.
4013 2001-08-16 Ulrich Drepper <drepper@redhat.com>
4015 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
4017 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
4018 wcslen, and __wcscoll instead of wcscoll.
4020 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
4022 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
4023 __getuid instead of getuid.
4025 * stdio-common/perror.c (perror): Use __close instead of close.
4026 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
4027 * libio/freopen.c (freopen): Likewise.
4028 * libio/freopen64.c (freopen64): Likewise.
4030 * libio/tst-ungetwc2.c (main): Define str const.
4032 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
4033 * libio/fwprintf.c: Also define __fwprintf.
4034 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
4035 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
4036 * assert/assert-perr.c: Likewise.
4037 * assert/assert.c: Likewise.
4038 * gmon/gmon.c: Likewise.
4039 * inet/rcmd.c: Likewise.
4040 * malloc/obstack.c: Likewise.
4041 * misc/err.c: Likewise.
4042 * misc/error.c: Likewise.
4043 * misc/getpass.c: Likewise.
4044 * posix/getopt.c: Likewise.
4045 * resolv/res_hconf.c: Likewise.
4046 * stdio-common/perror.c: Likewise.
4047 * stdio-common/psignal.c: Likewise.
4048 * stdlib/fmtmsg.c: Likewise.
4049 * sunrpc/auth_unix.c: Likewise.
4050 * sunrpc/clnt_perr.c: Likewise.
4051 * sunrpc/clnt_tcp.c: Likewise.
4052 * sunrpc/clnt_udp.c: Likewise.
4053 * sunrpc/clnt_unix.c: Likewise.
4054 * sunrpc/svc_simple.c: Likewise.
4055 * sunrpc/svc_tcp.c: Likewise.
4056 * sunrpc/svc_udp.c: Likewise.
4057 * sunrpc/svc_unix.c: Likewise.
4058 * sunrpc/xdr.c: Likewise.
4059 * sunrpc/xdr_array.c: Likewise.
4060 * sunrpc/xdr_rec.c: Likewise.
4061 * sunrpc/xdr_ref.c: Likewise.
4062 * sysdeps/generic/wordexp.c: Likewise.
4064 * po/it.po: Update from translation team.
4066 * misc/err.c: Handle wide oriented stderr stream.
4068 2001-08-14 Tom Rix <trix@redhat.com>
4070 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
4071 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
4073 2001-08-13 Tom Rix <trix@redhat.com>
4075 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
4076 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
4079 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
4081 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
4082 Store the access registers to the ucontext structure.
4083 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
4086 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
4087 Load the access registers from the ucontext structure.
4088 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
4091 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
4092 offsets to the new ucontext layout.
4093 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
4095 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
4096 of the ucontext structure.
4097 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
4099 2001-08-15 Ulrich Drepper <drepper@redhat.com>
4101 * misc/error.c (error): Handle wide oriented stderr stream correctly.
4102 (error_at_line): Likewise.
4104 * stdio-common/perror.c (perror): Implement according to standard.
4105 The stream orientation must not be changed if the stream was not
4106 oriented before the call.
4107 * stdio-common/Makefile (tests): Add tst-perror.
4108 * stdio-common/tst-perror.c: New file.
4111 See ChangeLog.12 for earlier changes.