1 2002-01-01 Ulrich Drepper <drepper@redhat.com>
3 * include/stdlib.h: Define inlines for the _l variants of the strto*
6 2002-01-01 Roland McGrath <roland@frob.com>
8 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
10 * mach/Machrules (MIG): Set CPP as well as CC.
12 2001-12-31 Ulrich Drepper <drepper@redhat.com>
14 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
15 locale to parse /proc/loadavg [PR libc/2760].
17 2001-12-31 Jakub Jelinek <jakub@redhat.com>
19 * elf/dl-conflict.c: Include sys/param.h.
20 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
21 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
23 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
24 literals to avoid warnings.
26 2001-12-31 Andreas Jaeger <aj@suse.de>
28 * configure.in: Don't check for gsed since we do not use it anywhere.
30 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
32 * io/fts.c: Update from BSD to fix memory leaks.
34 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
36 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
37 * elf/chroot_canon.c: Likewise.
38 * elf/dl-object.c: Likewise.
39 * iconv/iconv_charmap.c: Likewise.
40 * iconv/iconv_prog.c: Likewise.
41 * libio/iogetdelim.c: Likewise.
42 * locale/lc-time.c: Likewise.
43 * stdlib/canonicalize.c: Likewise.
44 * sunrpc/svc.c: Likewise.
45 * sysdeps/generic/glob.c: Likewise.
47 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
49 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
50 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
51 remove high order bit from the program counter.
52 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
54 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
56 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
57 unnecessary code and add missing reloc types.
58 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
59 case for reloc type R_390_NONE.
61 2001-12-28 Andreas Jaeger <aj@suse.de>
63 * io/bug-ftw3.c: Include string.h for prototypes.
65 * crypt/md5test.c (main): Remove unused variable.
67 * dlfcn/modstatic.c: Add prototype to avoid warning.
69 2001-12-26 Roland McGrath <roland@frob.com>
71 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
72 check only (SS->pending & MASK) for the signal to return.
73 From Jeroen Dekkers <jeroen@dekkers.cx>.
75 2001-12-22 Roland McGrath <roland@frob.com>
77 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
78 Use preprocessor #if conditionals instead of `if' to avoid
79 warnings about divide by zero in dead code.
81 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
82 _hurd_port_init, and __hurd_self_sigstate.
84 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
86 2001-12-21 Andreas Jaeger <aj@suse.de>
88 * elf/dblloadmod1.c: Add prototype to avoid warning.
89 * elf/dblloadmod2.c: Likewise.
90 * elf/dblloadmod3.c: Likewise.
91 * elf/reldepmod5.c: Likewise.
92 * elf/reldepmod6.c: Likewise.
94 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
95 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
96 used on all architectures.
98 * sunrpc/svc_tcp.c: Add noreturn attribute for
99 svctcp_rendezvous_abort.
100 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
102 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
105 2001-12-19 Jakub Jelinek <jakub@redhat.com>
107 * manual/llio.texi (aio_fsync): Fix a typo.
108 Patch by Tammy Fox <tfox@redhat.com>.
110 2001-12-18 Jakub Jelinek <jakub@redhat.com>
112 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
113 stack bias from child stack pointer before passing it to clone syscall.
115 2001-12-18 Ulrich Drepper <drepper@redhat.com>
117 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
119 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
120 Reported by Thorsten Kukuk <kukuk@suse.de>.
122 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
125 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
127 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
129 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
130 conforming: return EBADF if file descriptor is invalid and EINVAL
131 if file descriptor is no valid tty.
132 * login/tst-grantpt.c: New file.
133 * login/Makefile (tests): Add tst-grantpt.
135 2001-12-17 Ulrich Drepper <drepper@redhat.com>
137 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
138 different than implemented in last patch.
139 * io/bug-ftw3.c: Adjust test for changed handling of
140 inaccessibility of toplevel dir.
142 2001-12-16 Roland McGrath <roland@frob.com>
144 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
145 * grp/initgroups.c (internal_getgrouplist): Likewise.
147 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
148 `default:' to silence new GCC warning.
149 Rewrite cast of lvalue to silence new GCC warning.
151 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
153 * sysdeps/mach/hurd/spawni.c: New file, by me with a
154 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
156 2001-12-14 Ulrich Drepper <drepper@redhat.com>
158 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
159 Patch by Stephen R. van den Berg.
161 * crypt/md5.h: Define md5_uintptr.
163 2001-12-13 Ulrich Drepper <drepper@redhat.com>
165 * libio/tst_swprintf.c (main): Add test for string argument with
167 * stdio-common/Makefile (tests): Add tst-sprintf.
168 * stdio-common/tst-sprintf.c: New file.
170 2001-12-13 Andreas Schwab <schwab@suse.de>
172 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
173 zero precision with wide character string format.
175 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
177 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
178 but have a user supplied buffer, return the empty buffer, not NULL.
180 2001-12-13 Ulrich Drepper <drepper@redhat.com>
182 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
183 Patch by Eric Sharkey <sharkey@netrics.com>.
185 * crypt/md5test.c (main): Add test for multiple calls to
186 __md5_process_bytes to itererate over input string.
188 2001-12-12 Ulrich Drepper <drepper@redhat.com>
190 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
191 from __nis_findfastest. Take timeout value from parameter.
192 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
193 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
194 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
196 2001-12-12 Andreas Jaeger <aj@suse.de>
198 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
199 combreloc test so that it works in this case.
201 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
203 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
205 * sysdeps/sh/Makefile: New file.
206 * sysdeps/sh/_mcount.S: New file.
207 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
208 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
210 2001-12-11 Ulrich Drepper <drepper@redhat.com>
212 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
213 limitation [PR libc/2564].
215 2001-12-11 Jakub Jelinek <jakub@redhat.com>
217 * elf/Makefile (dl-routines): Add conflict.
218 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
219 (ld.so): Add _begin local symbol.
220 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
222 * elf/dl-deps.c (_dl_build_local_scope): New.
223 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
225 * elf/do-rel.h (VALIDX): Define.
226 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
227 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
229 * elf/dl-conflict.c: New file.
230 * elf/dl-lookup.c (_dl_debug_bindings): New.
231 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
233 (_dl_lookup_symbol_skip): Likewise.
234 (_dl_lookup_versioned_symbol): Likewise.
235 (_dl_lookup_versioned_symbol_skip): Likewise.
236 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
238 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
239 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
241 Don't adjust address dynamic tags if l_addr is 0.
242 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
243 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
244 (VALIDX, ADDRIDX): Define.
245 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
246 (dl_main): Print library list for LD_TRACE_PRELINKING.
247 If prelinking information can be used, skip relocating libraries and
248 call _dl_resolve_conflicts instead.
249 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
250 * elf/dl-load.c (_dl_map_object): Don't create fake libs
251 if LD_TRACE_PRELINKING.
252 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
254 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
255 (DL_DEBUG_PRELINK): Define.
256 (_dl_resolve_conflicts): Add prototype.
258 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
259 .plt for prelinked libraries where prelinking info cannot be used.
260 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
261 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
262 * sysdeps/arm/bits/link.h: New file.
263 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
265 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
266 (ELF_MACHINE_PLT_REL): Define.
267 (elf_machine_rela, elf_machine_rela_relative): New.
268 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
269 of adjusting it if prelinked and prelinking cannot be used.
270 * sysdeps/i386/bits/link.h: New file.
271 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
273 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
274 (ELF_MACHINE_PLT_REL): Define.
275 (elf_machine_rela, elf_machine_rela_relative): New.
276 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
277 of adjusting it if prelinked and prelinking cannot be used.
278 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
279 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
280 to find out map for R_PPC_JMP_SLOT relocs.
281 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
283 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
284 libraries where prelinking info cannot be used.
285 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
286 (elf_machine_fixup_plt): Call sparc_fixup_plt.
287 (elf_machine_rela): Set value to 0 if relocating conflicts.
288 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
289 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
290 (sparc64_fixup_plt): Fix a typo.
291 (elf_machine_rela): Set value to 0 if relocating conflicts.
292 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
293 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
294 libraries where prelinking info cannot be used.
295 * sysdeps/sh/bits/link.h: New file.
296 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
298 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
299 of adjusting it if prelinked and prelinking cannot be used.
300 * sysdeps/s390/s390-32/bits/link.h: New file.
301 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
302 Save original content of .got[1].
303 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
304 of adjusting it if prelinked and prelinking cannot be used.
305 * sysdeps/s390/s390-64/bits/link.h: New file.
306 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
307 Save original content of .got[1].
308 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
309 of adjusting it if prelinked and prelinking cannot be used.
310 * sysdeps/x86_64/bits/link.h: New file.
311 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
312 Save original content of .got[1].
313 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
314 of adjusting it if prelinked and prelinking cannot be used.
316 2001-12-11 Ulrich Drepper <drepper@redhat.com>
318 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
319 where appropriate instead of numbers. Little optimizations.
321 2001-12-10 Roland McGrath <roland@frob.com>
323 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
326 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
327 set to GLIBC_2.2.5, not GLIBC_2.2.4.
329 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
330 Fix conditionals so this is set by default for stdio and not for libio.
331 * sysdeps/mach/hurd/configure: Regenerated.
333 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
335 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
337 2001-12-10 Ulrich Drepper <drepper@redhat.com>
339 * io/Makefile (tests): Add bug-ftw3.
340 * io/bug-ftw3.c: New file.
342 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
343 matches and GLOB_NOCHECK is set.
344 * posix/globtest.sh: Correct expected result for NOCHECK test.
346 * po/ca.po: Update from translation team.
348 2001-12-09 Ulrich Drepper <drepper@redhat.com>
350 Implement transliteration of characters in strings of the locale
352 * locale/programs/linereader.c: Adjust for additional parameter to
354 (get_string): If character <Uxxxx> is not found try to transliterate
356 * locale/programs/ld-ctype.c: Adjust for additional parameter to
357 lr_token. Add const to charmap parameter of all functions.
358 (find_translit, find_translit2): New functions.
359 * locale/programs/charmap.c: Adjust for additional parameter to
361 * locale/programs/repertoire.c: Likewise.
362 * locale/programs/linereader.h: Likewise.
363 * locale/programs/ld-address.c: Likewise. Add const to charmap
364 parameter of all functions.
365 * locale/programs/ld-collate.c: Likewise.
366 * locale/programs/ld-identification.c: Likewise.
367 * locale/programs/ld-measurement.c: Likewise.
368 * locale/programs/ld-messages.c: Likewise.
369 * locale/programs/ld-monetary.c: Likewise.
370 * locale/programs/ld-name.c: Likewise.
371 * locale/programs/ld-numeric.c: Likewise.
372 * locale/programs/ld-paper.c: Likewise.
373 * locale/programs/ld-paper.c: Likewise.
374 * locale/programs/ld-telephone.c: Likewise.
375 * locale/programs/ld-time.c: Likewise.
376 * locale/programs/locfile.c: Likewise.
377 * locale/programs/localedef.c: Likewise.
378 * locale/programs/localedef.h: Likewise.
379 * locale/programs/locfile.h: Likewise. Add declaration for
381 * locale/programs/simple-hash.c: Add const to first parameter of
382 find_entry, iterate_table, and lookup.
383 * locale/programs/simple-hash.h: Likewise.
384 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
386 * include/locale.h: Define __LC_LAST.
387 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
389 2001-12-07 Geoff Keating <geoffk@redhat.com>
391 * sysdeps/powerpc/Dist: Update for recent FP changes.
392 * sysdeps/powerpc/fpu/Dist: Likewise.
394 2001-12-07 Andreas Schwab <schwab@suse.de>
396 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
398 2001-12-06 Geoff Keating <geoffk@redhat.com>
400 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
401 save/restore functions here.
402 (libm-support): Don't define these functions here.
403 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
405 * sysdeps/powerpc/fe_nomask.c: Move to...
406 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
407 * sysdeps/powerpc/fprrest.S: Move to...
408 * sysdeps/powerpc/fpu/fprrest.S: ... here.
409 * sysdeps/powerpc/fprsave.S: Move to...
410 * sysdeps/powerpc/fpu/fprsave.S: ... here.
412 2001-12-06 Ulrich Drepper <drepper@redhat.com>
414 * sysdeps/unix/sysv/linux/opensock.c: New file.
416 2001-12-06 Geoff Keating <geoffk@redhat.com>
418 * config.make.in (with-fp): Define from configure.
419 * configure.in: Substitute with_fp.
420 * configure: Regenerate.
421 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
422 specified, and don't change FPU environment.
424 2001-12-06 Ulrich Drepper <drepper@redhat.com>
426 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
427 * assert/assert.c: Check result of __asprintf call and don't use
429 * assert/assert-perr.c: Likewise.
430 * inet/rcmd.c: Likewise.
431 * locale/programs/localedef.c (main): Check result of
432 construct_output_path and exit if it failed.
433 (construct_output_path): Check result of asprintf and mkdir calls and
435 * posix/getopt.c: Check result of __asprintf calls and fail if
437 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
439 2001-12-05 Ulrich Drepper <drepper@redhat.com>
441 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
443 * sysdeps/generic/strncase.c: Likewise.
444 * string/tester.c: Add tests for strcasecmp and strncasecmp.
446 2001-12-05 Geoff Keating <geoffk@redhat.com>
448 * scripts/cpp: Test the exit status from 'type', not 'awk'.
450 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
451 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
452 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
453 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
454 * sysdeps/powerpc/fclrexcpt.c: Move to...
455 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
456 * sysdeps/powerpc/fpu_control.h: Move to...
457 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
459 2001-12-05 Ulrich Drepper <drepper@redhat.com>
461 * iconvdata/ibm1129.h: Remove duplicate mappings.
462 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
463 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
464 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
466 * timezone/zic.c: Fix handling of turnaround times.
467 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
469 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
471 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
474 2001-12-05 Ulrich Drepper <drepper@redhat.com>
476 * posix/regex.c: For use outside glibc defined bounded pointer
477 macros here. Patch by Jim Meyering <jim@meyering.net>.
479 * iconvdata/Makefile (modules): Add TCVN5712-1.
480 * iconvdata/TESTS: Add TCVN5712-1.
481 * iconvdata/gconv-modules: Likewise.
482 * iconvdata/tcvn5712-1.c: New file.
483 * iconvdata/testdata/TCVN-5712: New file.
484 * iconvdata/testdata/TCVN-5712..UTF8: New file.
486 2001-12-04 Ulrich Drepper <drepper@redhat.com>
488 * iconvdata/cp1258.c: Optimize conversion from UCS4.
490 2001-12-02 Roland McGrath <roland@frob.com>
492 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
494 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
495 Reported by Jeff Bailey <jbailey@nisa.net>.
497 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
498 Reported by Jeff Bailey <jbailey@nisa.net>.
500 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
501 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
502 Reported by Jeff Bailey <jbailey@nisa.net>.
504 2001-12-01 Roland McGrath <roland@frob.com>
506 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
507 missing backslash in test arguments.
508 * sysdeps/mach/hurd/configure: Regenerated.
510 2001-11-26 Roland McGrath <roland@frob.com>
512 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
513 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
515 2001-11-30 Ulrich Drepper <drepper@redhat.com>
517 * iconvdata/Makefile (modules): Add ARMSCII-8.
518 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
519 * iconvdata/armscii-8.c: New file.
521 2001-11-29 Jakub Jelinek <jakub@redhat.com>
523 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
524 don't match, fix {{a,b},c} globbing, clean up.
525 Patch by Flavio Veloso <flaviovs@magnux.com>.
526 * posix/globtest.sh: Add new tests.
528 2001-11-29 Andreas Jaeger <aj@suse.de>
530 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
531 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
533 * sysdeps/generic/abort.c: Include libioP.h for
534 _IO_flush_all_lockp prototype.
536 2001-11-29 Ulrich Drepper <drepper@redhat.com>
538 * posix/regex.h: Define __restrict_arr correctly.
540 2001-11-28 Ulrich Drepper <drepper@redhat.com>
542 * iconvdata/ibm1163.c: New file.
543 * iconvdata/ibm1163.h: New file.
544 * iconvdata/ibm1164.c: New file.
545 * iconvdata/ibm1164.h: New file.
546 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
547 * iconvdata/Makefile: Likewise.
548 * iconvdata/testdata/IBM1163: New file.
549 * iconvdata/testdata/IBM1163..UTF8: New file.
550 * iconvdata/testdata/IBM1164: New file.
551 * iconvdata/testdata/IBM1164..UTF8: New file.
552 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
554 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
555 * iconvdata/ibm1124.h: Likewise.
556 * iconvdata/ibm1132.h: Likewise.
557 * iconvdata/ibm1133.h: Likewise.
558 * iconvdata/ibm1160.h: Likewise.
559 * iconvdata/ibm1161.h: Likewise.
560 * iconvdata/ibm1162.h: Likewise.
561 * iconvdata/ibm856.h: Likewise.
562 * iconvdata/ibm922.h: Likewise.
563 * iconvdata/ibm930.h: Likewise.
564 * iconvdata/ibm932.h: Likewise.
565 * iconvdata/ibm933.h: Likewise.
566 * iconvdata/ibm935.h: Likewise.
567 * iconvdata/ibm937.h: Likewise.
568 * iconvdata/ibm939.h: Likewise.
569 * iconvdata/ibm943.h: Likewise.
570 * iconvdata/ibm930.c: Pretty printing.
571 * iconvdata/ibm937.c: Avoid access accross array boundary.
573 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
574 the current locale's codeset.
575 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
577 * iconv/iconv_prog.c: Pass empty strings as default value for to-
578 and from-charset. Don't determine locale's charset here.
580 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
581 as the old _IO_flush_all but lock only if parameter is nonzero.
582 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
583 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
584 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
585 if libio is used [PR libc/2575].
587 2001-11-28 Jakub Jelinek <jakub@redhat.com>
589 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
590 __signbitl): Only define for ISO C99.
592 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
594 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
595 herrnop to NETDB_INTERNAL if we run out of buffer space.
597 2001-11-28 Ulrich Drepper <drepper@redhat.com>
599 * nss/nss_files/files-XXX.c (internal_getent): Correct input
600 overflow test for platforms with signed char.
601 Reported by Andrew Haley <aph@cambridge.redhat.com>.
603 2001-11-28 Bruno Haible <bruno@clisp.org>
605 * locale/programs/simple-hash.c (lookup_2): Remove function.
606 (insert_entry_2): Call lookup instead of lookup_2.
608 2001-03-04 Bruno Haible <bruno@clisp.org>
610 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
612 2001-10-31 Bruno Haible <bruno@clisp.org>
614 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
616 2001-03-21 Bruno Haible <bruno@clisp.org>
618 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
619 chokes on empty macro arguments.
620 * intl/plural.y: Add #pragma for alloca on AIX 3.
622 2001-11-27 Ulrich Drepper <drepper@redhat.com>
624 * intl/dcigettext.c (guess_category_value): Only implement for
625 glibc. Otherwise rely on function _nl_locale_name which isn't
626 present in the glibc sources.
628 2001-09-24 Bruno Haible <bruno@clisp.org>
630 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
631 transliteration when building on a glibc system but outside glibc.
633 2001-09-22 Bruno Haible <bruno@clisp.org>
635 * intl/plural-eval.c: New file, extracted from dcigettext.c.
636 * intl/dcigettext.c (plural_eval): Remove function, moved to
638 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
639 Include plural-eval.c.
641 2001-09-22 Bruno Haible <bruno@clisp.org>
643 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
644 don't start with a digit; nplurals must be positive.
646 2001-09-02 Bruno Haible <bruno@clisp.org>
648 * intl/plural-exp.h: New file, extracted from gettextP.h.
649 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
650 * intl/gettextP.h (struct expression, struct parse_args,
651 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
652 * intl/loadmsgcat.c: Include plural-exp.h.
653 (PLURAL_PARSE): Move macro to plural-exp.h.
654 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
656 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
657 EXTRACT_PLURAL_EXPRESSION.
658 (_nl_unload_domain): Update.
659 * intl/dcigettext.c: Include plural-exp.h.
660 * intl/plural.y: Include plural-exp.h, not gettextP.h.
661 (FREE_EXPRESSION): Move macro to plural-exp.h.
662 * intl/Makefile (routines): Add plural-exp.
663 (distribute): Add plural-exp.h.
665 2001-07-28 Bruno Haible <bruno@clisp.org>
667 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
668 isdigit, tolower argument to 'unsigned char'.
669 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
671 * intl/localealias.c (read_alias_file): Cast isspace argument to
674 2001-10-20 Bruno Haible <bruno@clisp.org>
676 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
678 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
679 with the variable 'index' in plural_lookup.
680 * intl/l10nflist.c (strchr): Likewise.
681 * intl/localealias.c (strchr): Likewise.
683 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
684 * intl/bindtextdom.c: Likewise.
685 * intl/dcigettext.c: Likewise.
686 * intl/dgettext.c: Likewise.
687 * intl/dngettext.c: Likewise.
688 * intl/explodename.c: Likewise.
689 * intl/finddomain.c: Likewise.
690 * intl/gettext.c: Likewise.
691 * intl/l10nflist.c: Likewise.
692 * intl/loadmsgcat.c: Likewise.
693 * intl/localealias.c: Likewise.
694 * intl/ngettext.c: Likewise.
695 * intl/textdomain.c: Likewise.
696 * intl/gettext.h: Assume <limits.h> exists.
698 2001-11-27 Ulrich Drepper <drepper@redhat.com>
700 * stdio-common/Makefile (tests): Add scanf11.
701 * stdio-common/scanf11.c: New file.
703 2001-11-26 Ulrich Drepper <drepper@redhat.com>
705 * version.h (RELEASE): Define as development.
706 (VERSION): Set to 2.2.90.
708 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
710 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
711 * nis/nss_nis/nis-grp.c: Likewise.
712 * nis/nss_nisplus/nisplus-grp.c: Likewise.
714 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
715 * nis/nss_nis/nis-pwd.c: Likewise.
716 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
718 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
719 * nis/nss_nisplus/nisplus-parser.c: Likewise.
720 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
722 * nscd/grpcache.c: Use strtoul instead of atol.
723 * nscd/pwdcache.c: Likewise.
724 * nss/getent.c: Likewise.
726 2001-11-27 Paul Eggert <eggert@twinsun.com>
728 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
729 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
731 2001-11-19 Bruno Haible <bruno@clisp.org>
733 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
735 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
736 improves the quality of the hash function, especially for short
739 2001-11-26 Ulrich Drepper <drepper@redhat.com>
741 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
742 are found call conv_error and not input_error [PR libc/2669].
744 * math/bits/mathcalls.h: Mark ceil and floor as const.
745 Reported by David Mosberger.
747 2001-11-21 Jim Meyering <meyering@lucent.com>
749 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
750 Define to be __-prefixed.
751 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
753 2001-11-26 Andreas Jaeger <aj@suse.de>
755 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
758 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
760 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
763 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
764 unused variables. Fix threshold for returning 1.0.
766 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
769 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
770 remove unused variables.
772 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
774 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
775 include local math header files.
777 2001-11-22 Andreas Jaeger <aj@suse.de>
779 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
782 2001-11-21 Andreas Jaeger <aj@suse.de>
784 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
786 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
789 2001-11-15 Andreas Jaeger <aj@suse.de>
791 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
792 compilers that support it.
794 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
795 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
796 * stdlib/stdlib.h: Likewise.
798 2001-11-17 Ulrich Drepper <drepper@redhat.com>
800 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
801 statement with gotos.
802 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
804 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
806 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
808 2001-11-15 Ulrich Drepper <drepper@redhat.com>
810 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
812 2001-10-02 Jakub Jelinek <jakub@redhat.com>
813 H.J. Lu <hjl@gnu.org>
815 * Versions.def (libc): Add GCC_3.0.
816 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
817 if gcc supports this flag.
818 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
819 (gcc3): Allow glibc to be compiled with gcc 3.x.
820 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
821 * config.make.in (static-libgcc, unwind-find-fde): Add.
822 * Makerules (build-shlib-helper, build-module-helper): Use it.
823 * scripts/versions.awk: Make sure GLIBC_ versions come first.
824 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
826 (_fini): Call __deregister_frame_info_bases if
827 __register_frame_info_bases was used to register.
828 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
830 (__register_frame_info_bases, __register_frame_info_table_bases,
831 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
832 * elf/Makefile (routines): Add unwind-dw2-fde.
833 (shared-only-routines): Add unwind-dw2-fde.
834 * sysdeps/alpha/gccframe.h: New file.
835 * sysdeps/arm/gccframe.h: New file.
836 * sysdeps/generic/framestate.c: New file.
837 * sysdeps/generic/dwarf2.h: New file.
838 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
839 * sysdeps/generic/unwind-dw2-fde.c: New file.
840 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
841 * sysdeps/generic/unwind-dw2-fde.h: New file.
842 * sysdeps/generic/unwind-dw2.c: New file.
843 * sysdeps/generic/unwind-pe.h: New file.
844 * sysdeps/generic/unwind.h: New file.
845 * sysdeps/hppa/gccframe.h: New file.
846 * sysdeps/i386/gccframe.h: New file.
847 * sysdeps/m68k/gccframe.h: New file.
848 * sysdeps/mips/gccframe.h: New file.
849 * sysdeps/powerpc/gccframe.h: New file.
850 * sysdeps/s390/gccframe.h: New file.
851 * sysdeps/sh/gccframe.h: New file.
852 * sysdeps/sparc/gccframe.h: New file.
853 * sysdeps/vax/gccframe.h: New file.
854 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
855 Set on all architectures except ia64.
856 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
858 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
859 __deregister_frame_info): Move to elf/Versions.
860 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
861 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
862 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
863 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
864 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
865 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
866 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
867 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
868 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
869 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
870 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
871 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
872 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
873 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
874 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
875 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
876 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
877 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
879 2001-11-15 Jeff Law <law@redhat.com>
881 * posix/regex.c (uintptr_t): Do not provide a definition if the
884 2001-11-13 Roland McGrath <roland@frob.com>
886 * stdio-common/tmpfile.c: Moved to ...
887 * sysdeps/generic/tmpfile.c: ... here.
888 * sysdeps/mach/hurd/tmpfile.c: New file.
890 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
891 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
892 (fopenport): Define as weak alias.
894 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
895 * libio/libioP.h: ... to here.
897 2001-11-12 Ulrich Drepper <drepper@redhat.com>
899 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
900 program header twice. Construct list with the needed information.
902 2001-11-10 Ulrich Drepper <drepper@redhat.com>
904 * po/ca.po: Update from translation team.
906 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
907 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
908 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
909 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
911 2001-11-10 Andreas Jaeger <aj@suse.de>
913 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
914 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
915 Contributed by Stephen L Moshier <moshier@mediaone.net>.
917 2001-11-09 Ulrich Drepper <drepper@redhat.com>
919 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
921 * elf/dl-load.c (is_dst): New function.
922 (_dl_dst_count): Use is_dst to check for DST variable.
923 (_dl_dst_substitute): Likewise.
925 2001-11-09 Roland McGrath <roland@frob.com>
927 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
928 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
929 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
930 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
931 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
932 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
933 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
934 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
935 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
936 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
937 * sysdeps/mach/hurd/powerpc/Dist: New file.
939 * hurd/privports.c (__get_privileged_ports):
940 Only contact the proc server if necessary for this call.
941 Suggested by Neal H Walfield <neal@cs.uml.edu>.
942 Check error return for mach_port_mod_refs.
944 2001-11-09 Andreas Schwab <schwab@suse.de>
946 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
948 2001-11-09 Ulrich Drepper <drepper@redhat.com>
950 * elf/dl-load.c (lose): Remove some unnecessary code. The new
951 object is always the last in the list.
952 (_dl_map_object_from_fd): Delete code to remove from object list
953 when DF_1_NOOPEN is seen. This is done in lose.
955 2001-11-08 Ulrich Drepper <drepper@redhat.com>
957 * elf/dl-object.c (_dl_new_object): Various small optimizations.
959 2001-11-07 Ulrich Drepper <drepper@redhat.com>
961 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
962 HWCAP_CHECK macro code.
964 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
965 Now returns MAP_FAILED on error.
966 * elf/rtld.c: Adjust caller.
967 * sysdeps/generic/dl-cache.c: Likewise.
968 * sysdeps/generic/ldsodefs.h: Adjust description.
970 * elf/dl-version.c (match_symbol): Optimize error handling for size.
971 (_dl_check_map_versions): Likewise.
973 2001-11-06 Ulrich Drepper <drepper@redhat.com>
975 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
976 _dl_signal_error directly, always use lose. Set fd to -1 after
978 (lose): Don't call close if fd == -1.
980 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
982 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
983 Also fix typo @code {mbsinit} to @code{mbsinit}.
985 2001-11-06 Ulrich Drepper <drepper@redhat.com>
987 * elf/dl-profile.c: Replace state variable with simple flag named
988 running. Remove commented-out code.
990 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
991 (_dl_init_paths): Likewise.
992 (_dl_map_object_from_fd): Likewise.
993 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
995 2001-11-06 Roland McGrath <roland@frob.com>
997 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
998 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1000 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1001 sysdeps/powerpc/elf/sysdep.h.
1002 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1004 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1006 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
1008 (process_envvars): Some more optimizations.
1009 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1011 * elf/elf.h: Add dynamic tag definitions for prelinking.
1013 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1014 Rewrite code to remove environment varables for SUID binaries.
1015 Small optimization in LD_PROFILE handling.
1016 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1018 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1020 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1022 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1023 strings. Change type of second parameter.
1024 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1027 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1029 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
1031 * manual/string.texi: Fix typos.
1032 * manual/examples/argp-ex2.c: Likewise.
1034 2001-11-05 Roland McGrath <roland@frob.com>
1036 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1037 the more-specific unix/sysv/linux/powerpc file and breaks everything.
1038 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1039 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1040 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1041 here, put under [__ELF__].
1043 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1045 * manual/charset.texi: Extensive editing work.
1046 * manual/nss.texi: Likewise.
1047 Changes by Dennis Grace <dgrace@us.ibm.com>.
1049 2001-11-04 Roland McGrath <roland@frob.com>
1051 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1052 parameter to dir_mkfile.
1054 2001-11-02 Jakub Jelinek <jakub@redhat.com>
1056 * string/bits/string2.h (__strndup): If n is smaller than len, set
1058 * string/tester.c (test_strndup): New function.
1061 2001-11-01 Ulrich Drepper <drepper@redhat.com>
1063 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1065 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1066 * scripts/cpp: New file.
1068 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1069 for rtld_search_dirs content. Minor optimizations.
1071 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1073 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1074 avoiding unnecessary duplication.
1076 2001-10-31 Jakub Jelinek <jakub@redhat.com>
1078 * elf/dl-load.c (_dl_map_object): If library was found using
1079 LD_LIBRARY_PATH, don't try RUNPATH list.
1081 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
1083 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
1084 Correct second argument of register_dump call.
1085 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
1088 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1090 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
1092 * iconvdata/TESTS: Likewise.
1093 * iconvdata/gconv-modules: Likewise.
1094 * iconvdata/ibm1132.c: New file.
1095 * iconvdata/ibm1132.h: New file.
1096 * iconvdata/ibm1133.c: New file.
1097 * iconvdata/ibm1133.h: New file.
1098 * iconvdata/ibm1162.c: New file.
1099 * iconvdata/ibm1162.h: New file.
1100 * iconvdata/testdata/IBM1132: New file.
1101 * iconvdata/testdata/IBM1132..UTF8: New file.
1102 * iconvdata/testdata/IBM1133: New file.
1103 * iconvdata/testdata/IBM1133..UTF8: New file.
1104 * iconvdata/testdata/IBM1162: New file.
1105 * iconvdata/testdata/IBM1162..UTF8: New file.
1106 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
1108 * string/string.h: Fix typo in comment.
1109 * wcsmbs/wchar.h: Likewise.
1111 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
1113 * manual/getopt.texi (getopt_long, getopt_long_only): Include
1114 const in type of longopts parameter.
1116 2001-10-29 Andreas Jaeger <aj@suse.de>
1118 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1120 2001-10-29 Kevin Ryde <user42@zip.com.au>
1122 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
1123 output, clarify `#' behaviour on 0.
1124 (Floating-Point Conversions): Clarify that %g only uses %e when
1125 the exponent would be greater than 1.
1127 2001-10-28 Roland McGrath <roland@frob.com>
1129 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
1130 * sysdeps/mach/powerpc/machine-sp.h: New file.
1131 * sysdeps/mach/powerpc/sysdep.h: New file.
1132 * sysdeps/mach/powerpc/thread_state.h: New file.
1134 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
1135 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
1136 expect to need the same thing on every platform.
1138 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1139 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
1141 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
1142 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
1143 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
1144 Move all these assembly-related definitions to ...
1145 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
1147 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1148 by Peter Bruin <pjbruin@dds.nl>.
1150 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1151 packing results for a `poll' call.
1153 2001-10-26 Ulrich Drepper <drepper@redhat.com>
1155 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1157 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1160 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1162 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1164 2001-10-24 H.J. Lu <hjl@gnu.org>
1166 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
1167 Use __BEGIN_DECLS/__END_DECLS around prototypes.
1168 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
1170 2001-10-21 Jim Meyering <meyering@lucent.com>
1172 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1173 this code would end up calling gettext even in packages built
1175 * posix/getopt.c (_): Likewise.
1176 * posix/regex.c (_): Likewise.
1178 2001-10-26 Ulrich Drepper <drepper@redhat.com>
1180 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1182 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1183 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1185 2001-10-19 Jakub Jelinek <jakub@redhat.com>
1187 * misc/sys/cdefs.h (__attribute_used__): Define.
1188 * elf/rtld.c (_dl_start): Add __attribute_used__.
1189 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
1191 2001-10-25 Andreas Schwab <schwab@suse.de>
1193 * stdlib/a64l.c: Expect least significant digit first.
1194 * stdlib/l64a.c: Produce least significant digit first.
1195 * stdlib/Makefile (tests): Add test-a64l.
1196 * stdlib/test-a64l.c: New file.
1197 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
1199 2001-10-21 Ulrich Drepper <drepper@redhat.com>
1201 * po/sk.po: Update from translation team.
1203 2001-10-18 Ulrich Drepper <drepper@redhat.com>
1205 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1207 2001-10-18 Andreas Schwab <schwab@suse.de>
1209 * math/libm-test.inc (print_ulps): Print ulp values rounded to
1211 (print_function_ulps): Likewise.
1212 (print_complex_function_ulps): Likewise.
1213 (print_max_error): Likewise.
1214 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
1216 2001-10-16 Andreas Schwab <schwab@suse.de>
1218 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
1221 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
1222 BSD_SETJMP or BSD__SETJMP is defined, resp.
1223 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
1224 a tail call to __sigsetjmp that would require extending the
1226 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
1227 * sysdeps/m68k/bsd-setjmp.S: Deleted.
1228 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
1229 Reported by Jes Sorensen <jes@trained-monkey.org>.
1231 2001-10-16 Andreas Jaeger <aj@suse.de>
1233 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1234 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
1237 2001-10-15 Ulrich Drepper <drepper@redhat.com>
1239 * po/ca.po: New file. Contributed by the translation team.
1241 2001-10-15 Ralf Baechle <ralf@gnu.org>
1243 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1244 a varargs prototype. Remove dependency from kernel header files.
1246 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1247 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1249 2001-10-14 Ulrich Drepper <drepper@redhat.com>
1251 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
1252 to generate hexadecimal identifier.
1253 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
1255 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
1257 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1259 2001-10-14 Ulrich Drepper <drepper@redhat.com>
1261 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
1262 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
1263 Contributed by Stephen L Moshier <moshier@mediaone.net>.
1265 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
1266 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1267 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
1268 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
1269 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
1270 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
1272 * timezone/africa: Update from tzdata2001d.
1273 * timezone/asia: Likewise.
1274 * timezone/australasia: Likewise.
1275 * timezone/backward: Likewise.
1276 * timezone/europe: Likewise.
1277 * timezone/leapseconds: Likewise.
1278 * timezone/northamerica: Likewise.
1279 * timezone/southamerica: Likewise.
1280 * timezone/zone.tab: Likewise.
1282 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1284 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1285 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1287 2001-10-12 Ulrich Drepper <drepper@redhat.com>
1289 * elf/elf.h (PT_TLS): New definition.
1291 2001-10-10 Jeff Bailey <jbailey@nisa.net>
1293 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1296 2001-10-07 Roland McGrath <roland@frob.com>
1298 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1300 2001-10-10 Ulrich Drepper <drepper@redhat.com>
1302 * elf/elf.h: Add more ELFOSABI_* constants.
1304 2001-10-04 Ben Collins <bcollins@debian.org>
1306 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1307 decleration of __need_wchar_t.
1309 2001-10-03 Jakub Jelinek <jakub@redhat.com>
1311 * string/bits/string2.h (__strsep_g): Add prototype.
1313 * string/Versions (__strsep): Remove.
1314 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1316 2001-10-07 Ulrich Drepper <drepper@redhat.com>
1318 * manua/llio.texi: Clarify file references added by mmap.
1319 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1321 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
1323 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1324 Add sc_loadrs and sc_rbs_bas to match current kernel.
1326 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1328 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1330 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1332 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1334 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
1335 object has been bumped because of relocation dependency, avoid
1336 duplicates in l_scope.
1337 (show_scope): Fix typos.
1338 * elf/Makefile: Add rules to build and run reldep6.
1339 * elf/reldep6.c: New file.
1340 * elf/reldep6mod0.c: New file.
1341 * elf/reldep6mod1.c: New file.
1342 * elf/reldep6mod2.c: New file.
1343 * elf/reldep6mod3.c: New file.
1344 * elf/reldep6mod4.c: New file.
1346 2001-09-26 Jakub Jelinek <jakub@redhat.com>
1348 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
1350 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
1351 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
1352 for non-lazy binding. Fix .plt[32768+] handling.
1353 (elf_machine_plt_value): Don't add addend.
1354 (elf_machine_rela): Call sparc64_fixup_plt instead of
1355 elf_machine_fixup_plt.
1356 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
1357 dynamic linker at 0xfffff800XXXXXXXX.
1359 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1361 2001-09-28 Ulrich Drepper <drepper@redhat.com>
1363 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1365 2001-09-25 Jakub Jelinek <jakub@redhat.com>
1367 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
1368 declare __cmsg_data field if its size would be bigger than 0.
1369 (CMSG_DATA): Adjust accordingly.
1370 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
1371 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
1372 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
1373 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
1374 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1375 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
1376 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1378 2001-09-25 Ulrich Drepper <drepper@redhat.com>
1380 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
1381 * iconvdata/testdata/IBM1160: New file.
1382 * iconvdata/testdata/IBM1160..UTF8: New file.
1383 * iconvdata/testdata/IBM1161: New file.
1384 * iconvdata/testdata/IBM1161..UTF8: New file.
1385 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1387 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1389 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1390 UL_SETFSIZE computations better.
1392 * rt/Makefile: Remove use of filter for librt again.
1394 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1395 UL_SETFSIZE computations better.
1397 * string/Versions: Export __strsep for GLIBC_2.2.5.
1398 * string/bits/string2.h: Define all __STRING_INLINE functions if
1399 _FORCE_INLINES is defined.
1400 Use int instead of char of parameter types.
1401 (__strsep): Don't use __strsep_g. Don't define it.
1402 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
1403 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
1405 (__stpcpy_a_small): Renamed from __stpcpy_small.
1406 (__strcspn_c1): Don't define if _FORCE_INLINES.
1407 (__strspn_c1): Likewise.
1409 2001-09-22 Ben Collins <bcollins@debian.org>
1411 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
1412 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
1413 * sysdeps/ia64/bits/sigaction.h: Likewise.
1414 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
1416 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
1418 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1420 2001-09-24 Jakub Jelinek <jakub@redhat.com>
1422 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1424 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1426 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1428 2001-09-20 H.J. Lu <hjl@gnu.org>
1430 * include/dlfcn.h (__RTLD_SPROF): New definiton.
1431 * elf/dl-open.c (dl_open_worker): Return immediately after loading
1433 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1434 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1436 2001-09-20 H.J. Lu <hjl@gnu.org>
1438 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1441 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1443 * nss/getent.c: Accept -s parameter to overwrite rules in
1444 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
1446 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
1447 with as many ".0" as necessary to form a complete address
1448 inet_network understands.
1450 * nss/getent.c: Various cleanups. Use simpler and fewer function
1453 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1455 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1457 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1459 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1461 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
1463 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
1464 * iconvdata/ibm1160.c: New file.
1465 * iconvdata/ibm1160.h: New file.
1466 * iconvdata/ibm1161.c: New file.
1467 * iconvdata/ibm1161.h: New file.
1468 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1470 2001-09-19 Jakub Jelinek <jakub@redhat.com>
1472 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
1473 difference between base address and first PT_LOAD's virtual address,
1474 not the base address.
1476 2001-09-11 Tom Rix <trix@redhat.com>
1478 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
1479 ifdef for __getopt_clean_environment.
1480 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
1482 2001-09-22 Andreas Jaeger <aj@suse.de>
1484 * elf/reldep4.c (main): Add proper prototype to fix warning.
1486 * elf/reldep5.c (main): Remove unused variable.
1488 * math/math_private.h: Add prototypes.
1490 2001-09-21 Andreas Jaeger <aj@suse.de>
1492 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
1493 * sysdeps/x86_64/Dist: New file.
1494 * sysdeps/x86_64/soft-fp/Dist: New file.
1496 * sysdeps/gnu/Dist: Remove eval.c.
1498 2001-09-20 Ulrich Drepper <drepper@redhat.com>
1500 * malloc/memusage.c (realloc): Don't count already allocated
1502 (me): Always use dlsym() to find the real implementations.
1504 * malloc/memusage.sh: Make -n option actually do something.
1506 2001-09-20 Andreas Jaeger <aj@suse.de>
1508 * elf/elf.h (R_390_NUM): Correct value.
1510 * Versions.def: Add missing versions 2.2.3 for libthread_db and
1513 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
1514 for x86-64, install x86-64 into */lib64.
1516 * shlib-versions: Add x86-64.
1518 * elf/elf.h: Add x86-64 relocations.
1520 2001-09-19 Ulrich Drepper <drepper@redhat.com>
1522 * po/fr.po: Update from translation team.
1524 2001-09-19 Andreas Jaeger <aj@suse.de>
1526 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
1527 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
1528 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
1529 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
1530 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
1531 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
1532 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
1533 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
1534 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
1535 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
1536 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
1537 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
1538 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
1539 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
1540 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
1541 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
1542 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
1543 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1544 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
1545 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
1546 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
1547 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
1548 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
1549 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
1550 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
1551 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
1552 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
1553 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
1554 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
1555 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
1556 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
1557 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
1558 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
1559 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
1560 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
1561 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
1562 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
1563 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
1564 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
1565 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
1566 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
1567 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
1568 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
1569 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
1570 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
1571 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
1572 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
1573 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
1574 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1575 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
1576 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
1577 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
1578 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
1579 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
1580 * sysdeps/unix/x86_64/sysdep.S: New file.
1581 * sysdeps/unix/x86_64/sysdep.h: New file.
1582 * sysdeps/x86_64/Implies: New file.
1583 * sysdeps/x86_64/Makefile: New file.
1584 * sysdeps/x86_64/Versions: New file.
1585 * sysdeps/x86_64/__longjmp.S: New file.
1586 * sysdeps/x86_64/abort-instr.h: New file.
1587 * sysdeps/x86_64/atomicity.h: New file.
1588 * sysdeps/x86_64/bits/endian.h: New file.
1589 * sysdeps/x86_64/bits/setjmp.h: New file.
1590 * sysdeps/x86_64/bits/string.h: New file.
1591 * sysdeps/x86_64/bp-asm.h: New file.
1592 * sysdeps/x86_64/bsd-_setjmp.S: New file.
1593 * sysdeps/x86_64/bsd-setjmp.S: New file.
1594 * sysdeps/x86_64/dl-machine.h: New file.
1595 * sysdeps/x86_64/elf/initfini.c: New file.
1596 * sysdeps/x86_64/elf/start.S: New file.
1597 * sysdeps/x86_64/ffs.c: New file.
1598 * sysdeps/x86_64/ffsll.c: New file.
1599 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
1600 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
1601 * sysdeps/x86_64/fpu/e_acosl.c: New file.
1602 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
1603 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
1604 * sysdeps/x86_64/fpu/e_expl.c: New file.
1605 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
1606 * sysdeps/x86_64/fpu/e_log10l.S: New file.
1607 * sysdeps/x86_64/fpu/e_log2l.S: New file.
1608 * sysdeps/x86_64/fpu/e_logl.S: New file.
1609 * sysdeps/x86_64/fpu/e_powl.S: New file.
1610 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
1611 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
1612 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
1613 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
1614 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
1615 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
1616 * sysdeps/x86_64/fpu/fegetenv.c: New file.
1617 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
1618 * sysdeps/x86_64/fpu/fegetround.c: New file.
1619 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
1620 * sysdeps/x86_64/fpu/fesetenv.c: New file.
1621 * sysdeps/x86_64/fpu/fesetround.c: New file.
1622 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
1623 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
1624 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
1625 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
1626 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
1627 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
1628 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
1629 * sysdeps/x86_64/fpu/s_atanl.c: New file.
1630 * sysdeps/x86_64/fpu/s_cosl.S: New file.
1631 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
1632 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
1633 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
1634 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
1635 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
1636 * sysdeps/x86_64/fpu/s_logbl.c: New file.
1637 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
1638 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
1639 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
1640 * sysdeps/x86_64/fpu/s_rintl.c: New file.
1641 * sysdeps/x86_64/fpu/s_significandl.c: New file.
1642 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
1643 * sysdeps/x86_64/fpu/s_sinl.S: New file.
1644 * sysdeps/x86_64/fpu/s_tanl.S: New file.
1645 * sysdeps/x86_64/gmp-mparam.h: New file.
1646 * sysdeps/x86_64/hp-timing.c: New file.
1647 * sysdeps/x86_64/hp-timing.h: New file.
1648 * sysdeps/x86_64/htonl.S: New file.
1649 * sysdeps/x86_64/memusage.h: New file.
1650 * sysdeps/x86_64/setjmp.S: New file.
1651 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
1652 * sysdeps/x86_64/stackinfo.h: New file.
1653 * sysdeps/x86_64/sysdep.h: New file.
1654 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
1656 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
1659 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1661 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
1662 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
1664 2001-09-18 Andreas Schwab <schwab@suse.de>
1666 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
1667 list, now that l_scope is a pointer.
1669 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
1672 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
1674 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
1675 (elf_machine_rela_relative): Add a missing declaration.
1677 2001-09-18 Jakub Jelinek <jakub@redhat.com>
1679 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
1680 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
1681 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
1682 ldd-rewrite scripts.
1684 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1686 * elf/ldd.bash.in: Update copyright message.
1688 2001-09-17 H.J. Lu <hjl@gnu.org>
1690 * hurd/hurdmalloc.c (bcopy): Removed.
1691 (realloc): Replace bcopy with memcpy.
1692 * hurd/path-lookup.c (file_name_path_scan): Likewise.
1693 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
1694 * sunrpc/rpcinfo.c (pmapdump): Likewise.
1696 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
1697 (gethostbyaddr): Likewise.
1698 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
1700 2001-09-18 Ulrich Drepper <drepper@redhat.com>
1702 * sysdeps/gnu/eval.c: Removed.
1704 2001-09-18 Andreas Jaeger <aj@suse.de>
1706 * sysdeps/i386/fpu/s_logbl.S: Move to ...
1707 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
1709 * sysdeps/i386/fpu/s_rintl.S: Move to ...
1710 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
1712 * sysdeps/i386/fpu/s_significandl.S: Move to ...
1713 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
1715 2001-09-16 Ulrich Drepper <drepper@redhat.com>
1717 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1720 2001-09-14 H.J. Lu <hjl@gnu.org>
1722 * sysdeps/mips/fpu/libm-test-ulps: Updated.
1724 2001-09-14 Ulrich Drepper <drepper@redhat.com>
1726 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
1727 Patch by Florian La Roche <laroche@redhat.com>.
1729 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
1731 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
1734 2001-09-14 Andreas Schwab <schwab@suse.de>
1736 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
1737 Sumner <bls@sgi.com>.
1738 * posix/execlp.c: Likewise.
1740 2001-09-13 Jakub Jelinek <jakub@redhat.com>
1742 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
1743 is already found earlier in the search scope.
1745 2001-09-12 Jakub Jelinek <jakub@redhat.com>
1747 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
1750 2001-09-13 Ulrich Drepper <drepper@redhat.com>
1752 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
1754 2001-09-12 Ulrich Drepper <drepper@redhat.com>
1756 * config.h.in: Enforce optimization to be used.
1757 * Makeconfig (preprocess-versions): Define ASSEMBLER.
1758 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
1759 * posix/Makefile (annexc-CFLAGS): Define to -O.
1760 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
1762 2001-09-11 Ulrich Drepper <drepper@redhat.com>
1764 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
1765 Patch by Stephan Kulow.
1767 2001-09-08 Ben Collins <bcollins@debian.org>
1769 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
1770 usage of RESOLVE() (r_type, not reloc->r_type).
1772 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1774 * elf/dl-object.c: Avoid allocating extra memory block for name.
1775 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
1776 allocated separately.
1777 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1779 2001-09-08 H.J. Lu <hjl@gnu.org>
1781 * po/zh_TW.po: Fix a typo.
1783 2001-09-07 Tom Rix <trix@redhat.com>
1785 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
1787 2001-08-26 Tom Rix <trix@redhat.com>
1789 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
1790 command line options.
1791 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
1792 * sysdeps/unix/sysv/aix/start.c: Removed.
1793 * sysdeps/unix/sysv/aix/start-libc.c: New file.
1794 * sysdeps/unix/sysv/aix/init-first.c: New file.
1795 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
1797 2001-09-08 Ben Collins <bcollins@debian.org>
1799 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
1800 * sysdeps/generic/dl-machine.h: Likewise.
1801 * sysdeps/hppa/dl-fptr.c: Likewise.
1802 * sysdeps/ia64/dl-fptr.c: Likewise.
1803 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1804 * sysdeps/mips/dl-machine.h: Likewise.
1805 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1806 * sysdeps/powerpc/dl-machine.c: Likewise.
1808 2001-09-07 Ben Collins <bcollins@debian.org>
1810 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
1812 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
1814 2001-09-08 Ulrich Drepper <drepper@redhat.com>
1816 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
1817 dependencies if necessary.
1819 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
1820 loaded directly) determine length if l_initfini list by iterating
1821 over its elements. Minor optimizations.
1822 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
1823 for dependency objects.
1824 If object was already loaded check whether any of the dependencies
1825 is already on the relocation dependency list. If yes, remove the
1826 latter. Minor optimizations.
1827 * elf/dl-lookup.c (add_dependency): Add check for self reference of
1828 maps here. Search l_initfini list only if the object was loaded
1829 directly and not only as a dependency.
1830 (_dl_lookup_symbol): Add relocation dependency also if object
1831 is not in global scope. Remove test for self-reference here.
1832 (_dl_lookup_versioned_symbol): Likewise.
1833 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
1834 element of first name record.
1835 * elf/loadtest.c: Add some more test to recognize early if an object
1837 * elf/Makefile: Add rules to build and run reldep5.
1838 * elf/reldep5.c: New file.
1839 * elf/reldepmod5.c: New file.
1840 * elf/reldepmod6.c: New file.
1842 * elf/reldep2.c: Fix typo.
1844 2001-09-07 Ulrich Drepper <drepper@redhat.com>
1846 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
1847 elements. Change l_scope to be a pointer only.
1848 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
1849 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
1850 here add searchlist of newly open file to the dependency's scope.
1851 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
1852 only searchlist from its scope. Free own scope array if necessary.
1853 * elf/Makefile (tests): Add dblload and dblunload now.
1855 2001-09-06 Andreas Jaeger <aj@suse.de>
1857 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
1860 2001-09-05 Ulrich Drepper <drepper@redhat.com>
1862 * elf/Makefile: Add rules to build new tests. Don't run them yet since
1864 * elf/dblload.c: New file.
1865 * elf/dblloadmod1.c: New file.
1866 * elf/dblloadmod2.c: New file.
1867 * elf/dblloadmod3.c: New file.
1868 * elf/dblunload.c: New file.
1870 2001-09-04 Richard Henderson <rth@redhat.com>
1872 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
1873 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
1875 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1877 Correct very misleading message for error in failed runtime relocation.
1878 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
1880 (_dl_signal_cerror): Likewise.
1881 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
1882 * elf/dl-close.c: Likewise.
1883 * elf/dl-deps.c: Likewise.
1884 * elf/dl-load.c: Likewise.
1885 * elf/dl-lookup.c: Likewise.
1886 * elf/dl-open.c: Likewise.
1887 * elf/dl-reloc.c: Likewise.
1888 * elf/dl-sym.c: Likewise.
1889 * elf/dl-version.c: Likewise.
1890 * sysdeps/generic/dl-sysdep.c: Likewise.
1892 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1894 * iconv/strtab.c (strtabinit): Initialize null Strent.
1895 (newstring): Move len == 0 handling...
1896 (strtabadd): ...here.
1897 If len == 1, return null Strent.
1898 When inserting a suffix of an existing string, check if
1899 it is not equal to some suffix already recorded.
1900 Copy left and right members over if adding longer string.
1902 2001-09-04 Jakub Jelinek <jakub@redhat.com>
1904 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
1906 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
1907 (__syscall_gethostname): Add prototype.
1909 2001-09-04 Ulrich Drepper <drepper@redhat.com>
1911 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
1913 2001-09-02 Ulrich Drepper <drepper@redhat.com>
1915 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
1917 2001-08-27 Roland McGrath <roland@frob.com>
1919 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
1920 short, copy that much into NAME anyway before returning error.
1922 2001-09-01 Richard Henderson <rth@redhat.com>
1924 * sysdeps/alpha/elf/Dist: Remove file.
1925 * sysdeps/alpha/elf/Makefile: Remove file.
1926 * sysdeps/alpha/elf/crtbegin.S: Remove file.
1927 * sysdeps/alpha/elf/crtend.S: Remove file.
1928 * sysdeps/alpha/elf/initfini.c: New file.
1930 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1932 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
1933 * iconv/tst-iconv3.c: Likewise.
1935 2001-09-01 Jakub Jelinek <jakub@redhat.com>
1937 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
1939 2001-09-01 Ulrich Drepper <drepper@redhat.com>
1941 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
1943 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
1944 * iconv/iconv_prog.c (insert_cache): New function.
1945 (print_known_names): If cache is used call insert_cache to use the
1946 information from the cache [PR libc/2509].
1948 2001-08-31 Ulrich Drepper <drepper@redhat.com>
1950 * time/strptime.c (strptime_internal): Recognize 'l' format and
1951 handle it like 'I' for symmetry with strftime.
1953 2001-08-31 Richard Henderson <rth@redhat.com>
1955 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
1956 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
1957 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
1958 (print_statistics): Make scalar unsigned long long.
1959 * sysdeps/alpha/hp-timing.h: New file.
1961 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1963 * stdio-common/perror.c (perror): Save errno early, pass it
1964 down to perror_internal.
1965 (perror_internal): Add errnum argument.
1967 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1969 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
1970 Don't add old memory content for R_ALPHA_REFQUAD.
1972 2001-08-30 Ulrich Drepper <drepper@redhat.com>
1974 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
1977 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
1978 instead of open, __close instead of close, __getpagesize instead
1981 * string/argz-stringify.c (__argz_stringify): Use __strnlen
1983 * include/string.h (strndupa): Redefine here to use __strnlen
1985 * string/strndup.c (__strndup): Use __strnlen not strnlen.
1987 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
1990 2001-08-30 Jakub Jelinek <jakub@redhat.com>
1992 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
1993 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
1994 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1995 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
1996 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
1997 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
1998 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2000 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2002 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2004 2001-08-30 Andreas Jaeger <aj@suse.de>
2006 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2007 contributed Stephen L Moshier.
2009 2001-08-30 Jakub Jelinek <jakub@redhat.com>
2011 * sunrpc/etc.rpc (sgi_fam): Add.
2013 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2015 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2017 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2019 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2020 first is from a previous call.
2021 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2023 2001-08-29 Andreas Schwab <schwab@suse.de>
2025 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2027 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2029 * config.make.in (INSTALL_SCRIPT): Define.
2030 * Makeconfig (INSTALL_SCRIPT): Define.
2031 * Makerules (do-install-script): New macro to install scripts using
2033 (install-bin-script): New rule to install scripts with
2035 (install-bin-script-nosubdir): New rule.
2036 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2037 (distinfo-vars): Add $(install-bin-script).
2038 * Rules (others): Likewise.
2039 * Makefile (glibcbug): Install with install-bin-script.
2040 * debug/Makefile (xtrace): Likewise.
2041 (catchsegv): Likewise.
2042 * elf/Makefile (ldd): Likewise.
2043 * malloc/Makefile (mtrace): Likewise.
2044 * timezone/Makefile (tzselect): Likewise.
2046 2001-08-29 H.J. Lu <hjl@gnu.org>
2048 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2049 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2050 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2052 2001-08-29 Andreas Schwab <schwab@suse.de>
2054 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2056 2001-08-28 H.J. Lu <hjl@gnu.org>
2058 * Makeconfig (combreloc-LDFLAGS): New variable.
2059 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
2060 * config.make.in (have-z-combreloc): New variable.
2061 * configure.in: Substitute libc_cv_z_combreloc.
2063 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2065 * po/sv.po: Update from translation team.
2066 * po/fr.po: Likewise.
2067 * po/da.po: Likewise.
2069 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2071 * Makerules: Fix a typo: MD% -> MD5.
2073 2001-08-28 Ulrich Drepper <drepper@redhat.com>
2075 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2076 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2078 2001-08-28 Andreas Jaeger <aj@suse.de>
2080 * manual/libc-texinfo.sh: Add entry about free manuals.
2082 * manual/contrib.texi (Contributors): Fix cross reference.
2084 * manual/libc.texinfo (Copying): Include freemanuals.
2086 * manual/Makefile (appendices): Add freemanuals.
2088 * manual/freemanuals.texi: New file.
2089 Patch by Brian Youmans <3diff@gnu.org>.
2091 * manual/libm-err-tab.pl: Pretty print more platforms, print a
2094 * manual/math.texi (Errors in Math Functions): Fix grammar, start
2095 table on separate page.
2096 Patch by Brian Youmans <3diff@gnu.org>.
2098 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2100 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
2101 the connection went down after we first used it try to connect
2102 again and resend the message before printing to the console.
2103 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
2105 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2107 * string/tst-strlen.c (main): Test strnlen (, -1) too.
2108 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2111 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2113 * iconv/strtab.c (searchstring): Use correct length for comparison.
2114 (strtabadd): Account total size correct if new string has old string as
2117 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2119 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2121 2001-08-27 Andreas Jaeger <aj@suse.de>
2123 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
2125 * math/libm-test.inc (j0_test): Add extra tests.
2126 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
2127 not x, in Hankel approximation.
2128 Patches by Stephen L Moshier.
2130 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2132 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2135 * configure.in: Fix test for .rela.dyn section.
2137 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2139 2001-08-26 Jakub Jelinek <jakub@redhat.com>
2141 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
2142 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
2143 Pass type_class to _dl_lookup_*.
2144 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
2145 Pass around just type_class instead of noexec, noplt pair.
2146 (_dl_lookup_versioned_symbol): Likewise.
2147 (_dl_lookup_symbol_skip): Pass around just type_class instead of
2149 (_dl_lookup_versioned_symbol_skip): Likewise.
2150 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
2151 * elf/do-lookup.h (do_lookup): Likewise.
2152 * include/link.h (struct link_map): Replace noexec and noplt fields
2153 in l_lookup_cache with type_class field.
2154 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
2155 ELF_RTYPE_CLASS_COPY): Define.
2156 Adjust prototypes for _dl_lookup_symbol and
2157 _dl_lookup_versioned_symbol.
2158 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
2159 elf_machine_lookup_noexec_p): Remove.
2160 (elf_machine_type_class): Define.
2161 * sysdeps/arm/dl-machine.h: Likewise.
2162 * sysdeps/hppa/dl-machine.h: Likewise.
2163 * sysdeps/cris/dl-machine.h: Likewise.
2164 * sysdeps/i386/dl-machine.h: Likewise.
2165 * sysdeps/ia64/dl-machine.h: Likewise.
2166 * sysdeps/m68k/dl-machine.h: Likewise.
2167 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2168 * sysdeps/mips/dl-machine.h: Likewise.
2169 * sysdeps/powerpc/dl-machine.h: Likewise.
2170 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2171 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2172 * sysdeps/sh/dl-machine.h: Likewise.
2173 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2174 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2176 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2178 * manual/message.texi (Advanced gettext functions): Change
2179 description of plural forms for Slovak.
2180 Reported by Marcel Telka <marcel@telka.sk>.
2182 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
2183 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
2185 2001-08-26 Jakub Jelinek <jakub@redhat.com>
2187 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2188 typo. Patch by Florian La Roche <laroche@redhat.com>.
2190 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2192 * include/link.h (struct link_map): Add l_lookup_cache element.
2193 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
2194 (RESOLVE_MAP): Likewise.
2195 (_dl_relocate_object): Remove cache initialization.
2196 * elf/dl-lookup.c: Rip out cache handling code.
2197 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
2200 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2201 remove some __builtin_expect.
2202 (_dl_lookup_versioned_symbol): Likewise.
2204 * config.h.in: Add HAVE_Z_COMBRELOC.
2205 * configure.in: Add test for -z combreloc.
2207 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
2208 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
2209 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
2210 case to almost no code.
2212 2001-08-25 Ulrich Drepper <drepper@redhat.com>
2214 * po/tr.po: Update from translation team.
2216 2001-08-24 Andreas Jaeger <aj@suse.de>
2218 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2221 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2223 * elf/rtld.c (print_statistics): Printf % after percent values.
2224 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
2226 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
2227 don't have to compute the hash value and initialize current_value.
2228 Move reference_name variable to where it is needed.
2229 (_dl_lookup_versioned_symbol): Likewise.
2231 2001-08-24 Roland McGrath <roland@frob.com>
2233 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
2234 Just test that strerror returns non-null for a few errno codes.
2236 2001-08-23 Roland McGrath <roland@frob.com>
2238 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2239 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2241 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2243 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2246 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2248 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
2251 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
2252 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
2254 * elf/rtld.c: Include <sys/param.h>.
2255 * elf/dl-reloc.c: Likewise.
2257 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2259 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
2260 empty to prevent junk from being generated.
2261 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
2263 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2265 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
2266 records. Rename endrel to relative, initialize it to r, and use it
2267 in elf_machine_rel_relative calls. Point r after relative relocs.
2269 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2271 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2274 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2276 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
2277 necessary. Undefine newly defined macros at the end.
2278 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
2279 Rename from elf_machine_rel_relative.
2280 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
2281 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
2282 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
2283 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
2285 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2287 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2289 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
2291 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
2292 Likewise. Fix argument types.
2293 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
2294 Likewise. Fix argument types.
2295 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
2297 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
2298 ElfW(Rel) in argument.
2299 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
2302 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2304 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2306 2001-08-24 Andreas Jaeger <aj@suse.de>
2308 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2309 Stephen L Moshier <moshier@mediaone.net>.
2311 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2313 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2314 first if RELCOUNT is set.
2316 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
2317 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
2318 elf_machine_rel_relative.
2319 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
2320 Minor optimizations.
2321 * sysdeps/arm/dl-machine.h: Likewise.
2322 * sysdeps/cris/dl-machine.h: Likewise.
2323 * sysdeps/hppa/dl-machine.h: Likewise.
2324 * sysdeps/i386/dl-machine.h: Likewise.
2325 * sysdeps/ia64/dl-machine.h: Likewise.
2326 * sysdeps/m68k/dl-machine.h: Likewise.
2327 * sysdeps/mips/dl-machine.h: Likewise.
2328 * sysdeps/powerpc/dl-machine.h: Likewise.
2329 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2330 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2331 * sysdeps/sh/dl-machine.h: Likewise.
2332 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2333 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2335 2001-08-23 Roland McGrath <roland@frob.com>
2337 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
2339 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
2340 sysdeps/mach version. Implement counting ("recursive") mutexes
2341 on top of cthreads mutexes.
2342 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
2344 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
2345 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
2346 (__libc_cleanup_region_start, __libc_cleanup_region_end,
2347 __libc_clean_end): Define these to call the cleanup function after
2348 normal exit when they're supposed to.
2350 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
2351 Take new first arg DOIT, a boolean saying whether to really install
2352 any cleanup handler.
2353 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
2354 (__libc_cleanup_end): Likewise.
2355 * sysdeps/generic/bits/libc-lock.h: Same changes.
2356 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
2357 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
2358 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
2360 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
2361 * sysdeps/generic/bits/stdio-lock.h
2362 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
2364 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2366 * elf/ldconfig.c (search_dir): Remove stale symlinks.
2368 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2370 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2371 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2373 (_dl_lookup_versioned_symbol): Likewise.
2374 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
2376 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
2377 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
2378 (lookup_cache, lookup_cache_versioned): Add declarations.
2380 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2382 * stdlib/tst-random.c (main): Swap parameters in fail call.
2383 Patch by Pete Bevin <pete@petebevin.com>.
2385 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2387 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2389 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2391 * malloc/obstack.c: Indent preprocessor directives.
2392 Patch by Jim Meyering <meyering@ascend.com>.
2394 * po/ja.po: Update from translation team.
2396 2001-08-23 Roland McGrath <roland@frob.com>
2398 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2400 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2401 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2403 2001-08-22 Roland McGrath <roland@frob.com>
2405 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
2406 __libc_lock_define_recursive.
2407 * elf/dl-open.c: Don't declare it here any more.
2408 * elf/dl-close.c: Likewise.
2409 * elf/dl-lookup.c: Likewise.
2410 * elf/dl-iteratephdr.c: Likewise.
2411 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
2412 __libc_lock_unlock_recursive.
2413 * elf/dl-close.c (_dl_close): Likewise
2414 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
2415 * elf/dl-open.c (_dl_open): Likewise
2417 * sysdeps/generic/bits/libc-lock.h
2418 (__libc_lock_define_recursive): New macro.
2419 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
2420 (_IO_lock_lock): Use __libc_lock_lock_recursive.
2421 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
2423 * conform/conformtest.pl (checknamespace): Sort the output list.
2425 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2426 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2427 definitions conditional on [__USE_XOPEN].
2429 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
2430 these unconditionally, not only use [__USE_BSD], so as to match
2431 the sysdeps/unix/sysv/linux files.
2433 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2435 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2438 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2441 2001-08-22 Roland McGrath <roland@frob.com>
2443 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
2444 conditionalization of sa_handler/sa_sigaction member types to
2445 match the sysdeps/unix/sysv/linux file.
2447 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2449 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2450 symbol sizes a bit better.
2452 * sysdeps/ia64/strncpy.S: Complete rewrite.
2453 Contributed by Jakub Jelinek <jakub@redhat.com>.
2455 * string/stratcliff.c (main): Add strncpy test.
2457 2001-08-22 Roland McGrath <roland@frob.com>
2459 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
2460 and don't declare unsetenv or _environ directly.
2461 (unsetenv): Return int, not void. Use __environ instead of _environ.
2463 2001-08-01 Mark Kettenis <kettenis@gnu.org>
2465 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
2466 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
2467 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
2468 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
2469 test for cmsg struct size.
2471 2001-04-23 Paul Eggert <eggert@twinsun.com>
2473 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
2474 Rename __argc to ___argc in prototypes to avoid compatibility
2475 problems with systems that reserve the identifier "__argc".
2476 Similarly for __argv.
2478 2001-08-21 Roland McGrath <roland@frob.com>
2480 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
2482 * mach/Makefile (tests): Removed.
2483 * mach/hello.c: File removed.
2485 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2487 * po/sv.po: Update from translation team.
2489 * stdio-common/vfscanf.c: Fix handling of %l[].
2490 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
2492 * libio/Makefile (tests): Add tst-sscanf.
2493 * libio/tst-sscanf.c: New file.
2495 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
2496 * malloc/mtrace.c (tr_where): dli_sname always points to a
2497 non-empty string if != NULL.
2498 Reported by Tim Janik <timj@gtk.org>.
2500 2001-08-22 Jakub Jelinek <jakub@redhat.com>
2502 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
2503 buf. Free resources on failure.
2504 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
2505 (makefd_xprt): Likewise.
2506 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
2507 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
2508 * sunrpc/auth_unix.c (authunix_create): Likewise.
2510 2001-08-21 Jakub Jelinek <jakub@redhat.com>
2512 * string/strnlen.c: Remove.
2513 * sysdeps/generic/strnlen.c: New file.
2514 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
2516 2001-08-21 Roland McGrath <roland@frob.com>
2518 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
2519 as a macro, not an extern inline function.
2521 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
2522 * Versions.def (libc): Add GLIBC_2.2.5 set.
2523 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
2524 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
2526 2001-08-20 Roland McGrath <roland@frob.com>
2528 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
2529 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
2531 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2533 * string/bits/string2.h: Remove strnlen optimization here.
2534 * sysdeps/i386/i486/bits/string.h: Add it here.
2536 2001-08-21 Wolfram Gloger <wg@malloc.de>
2538 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
2540 2001-08-21 Ulrich Drepper <drepper@redhat.com>
2542 * po/gl.po: Update from translation team.
2544 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2546 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
2547 * misc/err.c (convert_and_print): Likewise.
2549 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
2552 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2554 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
2555 change of the gregset_t type.
2556 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2558 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
2560 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
2562 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2564 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
2566 * string/strnlen.c: Fix the implementation. We cannot use memchr.
2568 2001-08-18 Mark Kettenis <kettenis@gnu.org>
2570 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
2571 before calling the cthreads initialization code.
2573 2001-08-20 Ulrich Drepper <drepper@redhat.com>
2575 * argp/argp-help.c: Fix two problems introduced in last change.
2577 * include/dirent.h: Include <dirstream.h> first.
2579 2001-08-19 Ulrich Drepper <drepper@redhat.com>
2581 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
2583 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
2584 * sunrpc/xdr_rec.c: Likewise.
2585 * sunrpc/xdr_mem.c: Likewise.
2586 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
2587 * sunrpc/rpc_cmsg.c: Likewise.
2588 * sunrpc/getrpcport.c (getrpcport): Likewise.
2589 * sunrpc/clnt_simp.c (callrpc): Likewise.
2590 * sunrpc/clnt_gen.c (clnt_create): Likewise.
2591 * string/envz.c: Likewise.
2593 * po/ko.po: Update from translation team.
2595 * argp/argp-help.c: Handle wide oriented stderr stream.
2597 2001-08-18 Ulrich Drepper <drepper@redhat.com>
2599 * sysdeps/generic/strtol.c: Little optimizations. Add some
2602 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
2604 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
2605 * wcsmbs/wcwidth.c (wcwdith): Likewise.
2606 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
2608 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
2610 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
2612 * time/time.h (struct timespec): Use __time_t for tv_sec element.
2614 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
2615 wchar_t for function declarations and defintions.
2617 * misc/sys/select.h: Define __need_time_t before including <time.h>.
2618 Define suseconds_t if it hasn't happened yet.
2620 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
2622 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
2624 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
2627 * conform/data/stddef.h-data: Remove wint_t.
2629 * conform/conformtest.pl: Change namespace test to take #undef
2632 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
2634 * conform/data/sys/socket.h-data: Add sockatmark.
2636 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2638 * io/fts.c: Update from recent BSD source.
2640 2001-08-17 Roland McGrath <roland@frob.com>
2642 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
2643 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
2646 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2648 * locale/duplocale.c (__duplocale): Also initialize the special
2651 * conform/data/netdb.h-data: Adjust gai_strerror return type.
2653 2001-08-17 Andreas Jaeger <aj@suse.de>
2655 * misc/getpass.c: Include wchar.h for prototypes.
2656 * malloc/obstack.c: Likewise.
2658 2001-08-17 Ulrich Drepper <drepper@redhat.com>
2660 * sunrpc/svc_simple.c (universal): Use __write instead of write.
2662 * wcsmbs/wcscoll.c: Also define __wcscoll.
2663 * include/wchar.h: Declare __wcscoll.
2665 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
2666 * libio/vwprintf.c: Likewise.
2667 * libio/wprintf.c: Likewise.
2669 * iconv/gconv_cache.c: Use __munmap instead of munmap.
2671 2001-08-16 Ulrich Drepper <drepper@redhat.com>
2673 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
2675 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
2676 wcslen, and __wcscoll instead of wcscoll.
2678 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
2680 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
2681 __getuid instead of getuid.
2683 * stdio-common/perror.c (perror): Use __close instead of close.
2684 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
2685 * libio/freopen.c (freopen): Likewise.
2686 * libio/freopen64.c (freopen64): Likewise.
2688 * libio/tst-ungetwc2.c (main): Define str const.
2690 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
2691 * libio/fwprintf.c: Also define __fwprintf.
2692 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
2693 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
2694 * assert/assert-perr.c: Likewise.
2695 * assert/assert.c: Likewise.
2696 * gmon/gmon.c: Likewise.
2697 * inet/rcmd.c: Likewise.
2698 * malloc/obstack.c: Likewise.
2699 * misc/err.c: Likewise.
2700 * misc/error.c: Likewise.
2701 * misc/getpass.c: Likewise.
2702 * posix/getopt.c: Likewise.
2703 * resolv/res_hconf.c: Likewise.
2704 * stdio-common/perror.c: Likewise.
2705 * stdio-common/psignal.c: Likewise.
2706 * stdlib/fmtmsg.c: Likewise.
2707 * sunrpc/auth_unix.c: Likewise.
2708 * sunrpc/clnt_perr.c: Likewise.
2709 * sunrpc/clnt_tcp.c: Likewise.
2710 * sunrpc/clnt_udp.c: Likewise.
2711 * sunrpc/clnt_unix.c: Likewise.
2712 * sunrpc/svc_simple.c: Likewise.
2713 * sunrpc/svc_tcp.c: Likewise.
2714 * sunrpc/svc_udp.c: Likewise.
2715 * sunrpc/svc_unix.c: Likewise.
2716 * sunrpc/xdr.c: Likewise.
2717 * sunrpc/xdr_array.c: Likewise.
2718 * sunrpc/xdr_rec.c: Likewise.
2719 * sunrpc/xdr_ref.c: Likewise.
2720 * sysdeps/generic/wordexp.c: Likewise.
2722 * po/it.po: Update from translation team.
2724 * misc/err.c: Handle wide oriented stderr stream.
2726 2001-08-14 Tom Rix <trix@redhat.com>
2728 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
2729 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
2731 2001-08-13 Tom Rix <trix@redhat.com>
2733 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
2734 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
2737 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
2739 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
2740 Store the access registers to the ucontext structure.
2741 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
2744 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
2745 Load the access registers from the ucontext structure.
2746 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
2749 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
2750 offsets to the new ucontext layout.
2751 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
2753 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
2754 of the ucontext structure.
2755 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
2757 2001-08-15 Ulrich Drepper <drepper@redhat.com>
2759 * misc/error.c (error): Handle wide oriented stderr stream correctly.
2760 (error_at_line): Likewise.
2762 * stdio-common/perror.c (perror): Implement according to standard.
2763 The stream orientation must not be changed if the stream was not
2764 oriented before the call.
2765 * stdio-common/Makefile (tests): Add tst-perror.
2766 * stdio-common/tst-perror.c: New file.
2769 See ChangeLog.12 for earlier changes.