1 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
3 * elf/elf.h: Define R_SH_TLS_xxx macros.
4 * elf/rtld.c: Remove an extra parenthesis.
5 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
7 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
8 * sysdeps/sh/dl-lookupcfg.h: New file.
9 * sysdeps/sh/dl-tls.h: New file.
10 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
11 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
12 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
13 R_SH_TLS_TPOFF32 relocations.
15 2002-04-08 Ulrich Drepper <drepper@redhat.com>
17 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
19 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
20 * include/stdlib.h: Likewise.
22 2002-04-08 Jakub Jelinek <jakub@redhat.com>
24 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
25 instead of _RTLD_LOCAL.
26 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
27 * include/unistd.h: Likewise.
28 * sysdeps/generic/ldsodefs.h: Likewise.
30 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
33 2002-04-08 Andreas Jaeger <aj@suse.de>
35 * elf/cache.c (print_entry): Support x86-64.
37 2002-04-08 Ulrich Drepper <drepper@redhat.com>
39 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
40 with one accessing the locale data structures directly.
41 * stdio-common/printf-prs.c: Include localeinfo.h for new
42 MB_CUR_MAX definition.
44 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
45 is the name of the source file without extension.
46 * Makefile (distribute): Add cppflags-iterator.mk.
47 * cppflags-iterator.mk: New file.
48 * extra-lib.mk: For the sources of the library run
51 * include/libintl.h: Declare __dcgettext_internal and
52 _libc_intl_domainname_internal. Define __dcgettext using these
53 two symbols if used in libc itself.
54 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
55 _libc_intl_domainname_internal.
56 * argp/argp-parse.c: Likewise.
57 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
58 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
59 * intl/gettext.c: Likewise.
60 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
62 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
64 * posix/regex_internal.c (gettext): Likewise.
66 2002-04-08 Andreas Jaeger <aj@suse.de>
68 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
70 * sysdeps/x86_64/fpu/s_llrint.S: New.
71 * sysdeps/x86_64/fpu/s_llrintf.S: New.
72 * sysdeps/x86_64/fpu/s_llrintl.S: New.
73 * sysdeps/x86_64/fpu/s_lrint.S: New.
74 * sysdeps/x86_64/fpu/s_lrintf.S: New
75 * sysdeps/x86_64/fpu/s_lrintl.S: New.
77 2002-04-08 Roland McGrath <roland@frob.com>
79 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
80 widening __hurd_fail value.
82 2002-04-07 Roland McGrath <roland@frob.com>
84 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
85 <mach/machine/alpha_instruction.h>.
86 (_hurd_setup_sighandler): Take proper arguments for current decls.
87 Update code to use _hurdsig_catch_fault.
88 Use `callsys' instruction instead of `call_pal'.
89 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
91 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
92 (ALIGN, at, AT, fp): New macros.
94 2002-04-06 Roland McGrath <roland@frob.com>
96 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
98 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
99 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
101 * sysdeps/mach/hurd/bind.c: Use prototype definition.
102 * sysdeps/mach/hurd/connect.c: Likewise.
103 * sysdeps/mach/hurd/getsockopt.c: Likewise.
104 * sysdeps/mach/hurd/setsockopt.c: Likewise.
106 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
109 * hurd/catch-exc.c: Use integer_t instead of int.
110 * hurd/hurdfault.c: Likewise.
112 * sysdeps/mach/hurd/alpha/exc2signal.c
113 (_hurd_exception2signal): Rewritten.
114 * sysdeps/mach/hurd/alpha/longjmp-ts.c
115 (_hurd_longjmp_thread_state): Rewritten.
117 2002-04-07 Ulrich Drepper <drepper@redhat.com>
119 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
120 DB_LOOKUP_FCT prototype.
121 * nss/getXXent_r.c: Likewise.
122 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
123 * inet/getaliasname_r.c: Likewise.
124 * inet/getnetbyad_r.c: Likewise.
125 * inet/getnetbynm_r.c: Likewise.
126 * inet/getnetent_r.c: Likewise.
127 * inet/getproto_r.c: Likewise.
128 * inet/getprtent_r.c: Likewise.
129 * inet/getprtname_r.c: Likewise.
130 * inet/getrpcbyname_r.c: Likewise.
131 * inet/getrpcbynumber_r.c: Likewise.
132 * inet/getrpcent_r.c: Likewise.
133 * inet/getservent_r.c: Likewise.
134 * inet/getsrvbynm_r.c: Likewise.
135 * inet/getsrvbypt_r.c: Likewise.
136 * shadow/getspent_r.c: Likewise.
137 * shadow/getspnam_r.c: Likewise.
139 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
141 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
142 Use i686-friendly PIC code.
143 * sysdeps/i386/elf/setjmp.S: Likewise.
145 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
147 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
149 * elf/Versions: Remove it here.
151 2002-04-06 Ulrich Drepper <drepper@redhat.com>
153 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
154 direction. Reported by H . J . Lu <hjl@lucon.org>.
156 2002-04-05 Ulrich Drepper <drepper@redhat.com>
158 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
159 test just before the test runs.
160 * intl/tst-translit.sh: Likewise.
161 * intl/tst-codeset.sh: Likewise.
163 * timezone/zic.c: Update from tzcode2002c.
164 * timezone/asia: Update from tzdata2002c.
165 * timezone/backward: Likewise.
166 * timezone/europe: Likewise.
167 * timezone/northamerica: Likewise.
168 * timezone/northamerica: Likewise.
169 * timezone/northamerica: Likewise.
170 * timezone/southamerica: Likewise.
171 * timezone/zone.tab: Likewise.
173 2002-03-23 Jakub Jelinek <jakub@redhat.com>
175 * sysdeps/generic/brk.c (__curbrk): Declare.
176 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
177 * sysdeps/generic/dl-sbrk.c: Likewise.
178 * sysdeps/unix/arm/dl-brk.S: New file.
179 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
180 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
181 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
182 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
183 * sysdeps/unix/i386/dl-brk.S: New file.
184 * sysdeps/unix/mips/dl-brk.S: New file.
185 * sysdeps/unix/sparc/dl-brk.S: New file.
186 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
187 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
188 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
189 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
191 2002-04-03 Andreas Schwab <schwab@suse.de>
193 * Makefile (headers): Add gnu/lib-names.h here instead of
195 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
197 (install-headers): Add dependency on install-headers-nosubdir.
198 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
199 instead of install-others.
200 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
203 2002-04-05 Ulrich Drepper <drepper@redhat.com>
205 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
206 Reported by Sam Roberts <sroberts@uniserve.com>.
208 2002-04-03 Jakub Jelinek <jakub@redhat.com>
210 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
211 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
212 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
213 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
215 2002-04-03 David Mosberger <davidm@hpl.hp.com>
217 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
219 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
220 dependency violation.
222 2002-04-05 Jakub Jelinek <jakub@redhat.com>
224 * time/mktime.c (__mktime_internal): Move check for year < 70 below
225 all variable declarations.
227 2002-04-04 Andreas Schwab <schwab@suse.de>
229 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
231 2002-04-04 Andreas Jaeger <aj@suse.de>
233 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
234 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
236 * sysdeps/x86_64/fpu/s_fabs.c: New file.
237 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
238 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
240 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
242 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
244 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
245 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
247 * configure.in: Handle all mips entries the same.
249 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
250 * sysdeps/mips/mips3/*: Likewise.
251 * sysdeps/mips/p40/bits/endian.h: Likewise.
253 2002-04-04 Ulrich Drepper <drepper@redhat.com>
255 * misc/dirname.c (dirname): Ignore trailing slashes at end of
256 non-null result [PR libc/2600].
258 * misc/tst-dirname.c: Add more tests.
260 2002-04-03 Ulrich Drepper <drepper@redhat.com>
262 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
263 define a code_set_name provide one based on the filename.
265 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
267 2001-12-28 Andreas Jaeger <aj@suse.de>
269 * time/mktime.c (__mktime_internal): Check for year < 70
272 2002-04-03 Andreas Jaeger <aj@suse.de>
274 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
276 Reported by Andi Kleen <ak@suse.de>.
278 2002-04-03 Ulrich Drepper <drepper@redhat.com>
280 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
281 * sysdeps/generic/w_lgammaf.c: Likewise.
282 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
284 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
285 Adjust for new output format of the backtrace functions.
287 * misc/syslog.c (vsyslog): Only use cleanup handler if
288 _LIBC_REENTRANT is defined [PR libc/2924].
290 * libio/Makefile (tests): Add bug-ungetwc2.
291 * libio/bug-ungetwc2.c: New file.
293 * manual/install.texi: Typographical and grammatical cleanup.
294 Patch by Dennis Grace <dgrace@us.ibm.com>.
296 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
297 parameter if mtflag. Patch by <jeongyun@innovay.com>.
299 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
300 always "&". Adjust callers.
301 Add "_" prefix to several generated definitions.
302 Patch by paul@serice.net [PR libc/3158].
304 2002-04-02 Ulrich Drepper <drepper@redhat.com>
306 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
307 size of _dl_arm_cap_flags.
308 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
310 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
313 2002-03-22 H.J. Lu <hjl@gnu.org>
315 * scripts/firstversions.awk: Check the first version.
317 2002-04-02 Ulrich Drepper <drepper@redhat.com>
319 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
320 dependencies must be stable to work correctly.
321 Reported by martin.lubich@datacon.at.
323 * libio/bug-ungetwc1.c: New file.
324 * libio/Makefile (tests): Add bug-ungetwc1.
326 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
327 if stream was last used for writing.
329 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
330 number [PR libc/3111].
332 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
334 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
336 2002-04-02 Jakub Jelinek <jakub@redhat.com>
338 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
339 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
340 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
341 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
342 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
344 2002-03-30 Jakub Jelinek <jakub@redhat.com>
346 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
349 2002-03-29 Jakub Jelinek <jakub@redhat.com>
351 * sysdeps/i386/fpu/s_fabs.S: New file.
352 * sysdeps/i386/fpu/s_fabsf.S: New file.
353 * sysdeps/i386/fpu/s_fabsl.S: New file.
354 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
355 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
356 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
358 2002-04-02 Ulrich Drepper <drepper@redhat.com>
360 * rt/tst-shm.c (do_test): Add one more test for size of shared
363 2002-03-29 Wolfram Gloger <wg@malloc.de>
365 * malloc/malloc.c: Add short description and prototypes for
366 malloc_get_state, malloc_set_state and posix_memalign, for
367 consistency and to avoid warnings with -Wstrict-prototypes.
368 Reported by Andreas Jaeger <aj@suse.de>.
370 2002-04-02 Ulrich Drepper <drepper@redhat.com>
372 * po/gl.po: Update from translation team.
374 2002-03-31 Roland McGrath <roland@frob.com>
376 * hurd/hurdselect.c (_hurd_select): Fix
377 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
378 Use a union rather than casts to compare mach_msg_type_t as int.
380 2002-03-25 Roland McGrath <roland@frob.com>
382 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
383 check off the end of NAME when it's shorter than 2 chars.
384 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
386 2002-03-17 Roland McGrath <roland@frob.com>
388 * sysdeps/mach/hurd/i386/sys/io.h: New file.
389 * sysdeps/mach/hurd/i386/ioperm.c: New file.
390 * sysdeps/mach/hurd/i386/Dist: Add them.
391 * sysdeps/mach/hurd/i386/Versions
392 (libc: GLIBC_2.2.6): New set, add ioperm.
393 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
394 (mach_interface_list): Check for mach_i386.defs.
395 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
396 * sysdeps/mach/configure: Regenerated.
398 2002-03-22 Ulrich Drepper <drepper@redhat.com>
400 * po/fr.po: Update from translation team.
402 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
404 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
405 getpriority from syscalls list.
407 2002-03-28 Andreas Jaeger <aj@suse.de>
409 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
410 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
411 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
412 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
414 2002-03-27 Andreas Jaeger <aj@suse.de>
416 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
417 sigcontext): Follow further kernel change.
419 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
422 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
423 Change for struct sigcontext change.
425 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
426 Follow changes in struct sigcontext.
428 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
429 sysycall, use wrapper instead.
431 2002-03-26 Andreas Jaeger <aj@suse.de>
433 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
434 read and write accesses as detailed as possible.
435 (__memcpy_by2): Likewise.
436 (__memcpy_g): Likewise.
439 (__memset_ccn_by4): Likewise.
440 (__memset_ccn_by2): Likewise.
441 (__memset_gcn_by4): Likewise.
442 (__memset_gcn_by2): Likewise.
444 (__memrchr): Likewise.
445 (rawmemchr): Likewise.
446 (__strlen_g): Likewise.
447 (__strcpy_g): Likewise.
448 (__mempcpy_by4): Likewise.
449 (__mempcpy_by2): Likewise.
450 (__mempcpy_byn): Likewise.
451 (__stpcpy_g): Likewise.
452 (__strncpy_by4): Likewise.
453 (__strncpy_by2): Likewise.
454 (__strncpy_byn): Likewise.
455 (__strncpy_gg): Likewise.
456 (__strcat_c): Likewise.
457 (__strcat_g): Likewise.
458 (__strncat_g): Likewise.
459 (__strcmp_gg): Likewise.
460 (__strncmp_g): Likewise.
461 (__strchr_c): Likewise.
462 (__strchr_g): Likewise.
463 (__strchrnul_c): Likewise.
464 (__strchrnul_g): Likewise.
465 (__strrchr_c): Likewise.
466 (__strrchr_g): Likewise.
467 (__strrchr_c): Likewise.
468 (__strrchr_g): Likewise.
469 (__strcspn_c1): Likewise.
470 (__strcspn_cg): Likewise.
471 (__strcspn_g): Likewise.
472 (__strcspn_g): Likewise.
473 (__strspn_c1): Likewise.
474 (__strspn_cg): Likewise.
475 (__strspn_g): Likewise.
476 (__strspn_g): Likewise.
477 (__strpbrk_cg): Likewise.
478 (__strpbrk_g): Likewise.
479 (__strstr_cg): Likewise.
480 (__strstr_g): Likewise.
482 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
483 Michal Ludvig <mludvig@suse.cz>.
485 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
486 compatibilty, adjust for kernel changes.
488 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
489 sigcontext): Adjust for kernel changes.
491 2002-03-25 Andreas Jaeger <aj@suse.de>
493 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
495 Reported by Artur Zaprzala <zybi@talex.com.pl>.
497 2002-03-24 Andreas Jaeger <aj@suse.de>
499 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
501 * stdio-common/tst-fdopen.c (main): Remove unused variable.
503 * iconv/tst-iconv3.c (main): Use correct printf strings.
505 2002-03-18 Roland McGrath <roland@frob.com>
507 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
508 (CMGROUP_MAX): New macro.
510 2002-03-23 Roland McGrath <roland@frob.com>
512 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
513 * sysdeps/posix/shm_unlink.c: Likewise.
515 2002-03-22 Roland McGrath <roland@frob.com>
517 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
518 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
519 under --enable-libio.
520 * sysdeps/mach/hurd/configure: Regenerated.
522 2002-03-23 Roland McGrath <roland@frob.com>
524 * sysdeps/mach/hurd/i386/Makefile
525 (sysdep_routines, shared-only-routines): Don't add framestate,
526 reverting 2001-10-02 change.
527 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
528 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
529 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
530 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
531 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
532 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
533 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
534 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
535 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
536 Do it here instead, only if [$(unwind-find-fde) = yes].
538 2002-03-23 Andreas Jaeger <aj@suse.de>
540 * signal/signal.h: Fix typo. Patch by Steve Kemp
541 <skx@tardis.ed.ac.uk>.
543 2002-03-22 Andreas Jaeger <aj@suse.de>
545 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
548 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
549 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
550 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
551 user_fpregs_struct): Rename fwd.
553 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
554 Follow sigcontext changes.
556 2002-03-22 Andreas Jaeger <aj@suse.de>
558 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
559 changes for NaNs on MIPS.
560 Patch by Hartvig Ekner <hartvige@mips.com>.
562 2002-03-21 Ulrich Drepper <drepper@redhat.com>
564 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
565 Use realloc if too large.
566 (addgrbyid): Likewise.
567 * nscd/hstcache.c (addhstbyname): Likewise.
568 (addhstbyaddr): Likewise.
569 (addhstbynamev6): Likewise.
570 (addhstbyaddrv6): Likewise.
571 * nscd/pwdcache.c (addpwbyname): Likewise.
572 (addpwbyuid): Likewise.
574 2002-03-21 Andreas Jaeger <aj@suse.de>
576 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
577 _fpstate): Add separate struct for x86-64.
579 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
580 user_fpregs_struct): Change member names to follow kernel.
582 2002-03-20 Ulrich Drepper <drepper@redhat.com>
584 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
585 Correctly close the UDP connection right away [PR libc/3120].
587 2002-03-20 Andreas Jaeger <aj@suse.de>
589 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
590 user_fpregs_struct): Fix for changed kernel struct.
591 (struct user_regs_struct): Likewise.
592 (struct user): Likewise.
593 Add 32-bit x86 compatibility.
595 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
597 2002-03-19 Andreas Jaeger <aj@suse.de>
599 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
601 2002-03-18 Andreas Jaeger <aj@suse.de>
603 * iconvdata/Makefile: Only run tests when shared libs are
606 2002-03-17 Andreas Jaeger <aj@suse.de>
608 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
610 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
612 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
615 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
617 Patch by Hartvig Ekner <hartvige@mips.com>.
619 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
620 * sysdeps/generic/unwind-pe.h: Likewise.
622 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
625 * libio/stdio.c (AL2): Define variant when visibility attribute is
628 * include/libc-symbols.h (_INTVARDEF): Define variant when
629 visibility attribute is not supported.
631 2002-03-16 Ulrich Drepper <drepper@redhat.com>
633 * po/fr.po: Update from translation team.
635 2002-02-25 Bruno Haible <bruno@clisp.org>
637 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
639 2002-03-15 Ulrich Drepper <drepper@redhat.com>
641 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
642 buffers if _IO_file_attach failed.
644 * libio/fileops.c (_IO_file_open): Close file descriptor if
645 _IO_SEEKOFF call failed.
647 2002-03-15 H.J. Lu <hjl@gnu.org>
648 Ulrich Drepper <drepper@redhat.com>
650 * configure.in: Check for availability of
651 init_array/fini_array/preinit_array handling in binutils.
652 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
653 * config.make.in (have-initfini-array): New variable.
655 2002-03-15 Ulrich Drepper <drepper@redhat.com>
657 * stdio-common/tst-printf.c (main): Comment out one test which
658 checked the compiler's ability to fold floating-point constants
659 but not really printf.
660 (rfg3): Make s const.
661 * stdio-common/tst-printf.sh: Adjust for removed test.
663 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
664 internal function. Adjust for internal_function calling convention.
665 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
666 as internal_function.
668 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
671 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
672 declaration and definition.
673 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
675 * nss/getXXent_r.c: Likewise.
676 * nss/nsswitch.h (db_lookup_function): Add internal_function to
679 * include/time.h: Declare __localtime_r as hidden.
681 * include/aliases.h: Declare __getaliasent_r as hidden.
682 * include/grp.h: Declare __getgrent_r as hidden.
683 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
684 __getservent_r, and __getprotoent_r as hidden.
685 * include/pwd.h: Declare __getpwent_r as hidden.
686 * include/shadow.h: Declare __getspent_r as hidden.
687 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
689 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
690 and __gconv_transliterate as hidden.
691 Add internal_function to __gconv_get_path declaration.
692 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
693 definition. Add attribute_hidden to __gconv_read_conf definition.
695 2002-03-14 Ulrich Drepper <drepper@redhat.com>
697 * elf/rtld.c: Declare _environ as hidden.
698 * sysdeps/generic/dl-environ.c: Likewise.
699 * sysdeps/generic/dl-sysdep.c: Likewise.
701 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
702 _dl_mcount_internal as hidden.
704 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
705 * sysdeps/generic/dl-brk.c: New file.
706 * sysdeps/generic/dl-sbrk.c: New file.
707 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
708 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
710 * elf/dl-minimal.c (malloc): Declare _end as hidden.
711 (__errno_location): New function. Declare errno as hidden.
712 * elf/rtld.c (_dl_argc): Define as hidden.
713 (_dl_skip_args): Define as hidden.
714 (_begin, _end): Declare as hidden.
715 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
716 * sysdeps/generic/entry.h (_start): Declare as hidden.
717 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
718 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
719 _dl_runtime_resolve and _dl_runtime_profile as hidden.
720 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
722 2002-03-14 Roland McGrath <roland@frob.com>
724 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
726 * Makeconfig (%.v.i, %.v): New implicit rules.
727 (preprocess-versions): Variable removed.
728 ($(common-objpfx)shlib-versions.v.i): New target giving just the
729 shlib-versions input files as dependencies.
730 ($(common-objpfx)soversions.i): Depend on that instead of the input
731 files. Use it as input instead of using a pipeline.
732 (postclean-generated): Append soversions.i, shlib-versions.v, and
733 shlib-versions.v.i here.
734 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
735 the Versions.def input files as dependencies.
736 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
737 ($(common-objpfx)Versions.all): Depend on that instead of the input
738 files. Use it as input instead of using a pipeline.
739 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
740 (postclean-generated): Append those .v and .v.i files here.
742 2002-03-14 Jakub Jelinek <jakub@redhat.com>
744 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
745 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
748 2002-03-14 Jakub Jelinek <jakub@redhat.com>
750 * sysdeps/generic/mp_clz_tab.c: New file.
751 * sysdeps/i386/mp_clz_tab.c: New file.
752 * sysdeps/hppa/mp_clz_tab.c: New file.
753 * sysdeps/powerpc/mp_clz_tab.c: New file.
754 * stdlib/Makefile (aux): Revert last patch.
755 * math/Makefile (gmp-objs): Likewise.
757 2002-03-13 Paul Eggert <eggert@twinsun.com>
759 * time/strftime.c: Comment fixes for references to obsolescent
760 standards, In most cases the simplest fix is to remove the
761 confusing comments. Cross-referencing all the standards properly
762 is a bit of a pain, and it should be enough to put that info in
763 the documentation as I did in my recent time.texi patch.
765 2002-03-13 Paul Eggert <eggert@twinsun.com>
767 * manual/time.texi (Formatting Calendar Time):
768 ISO C99 also specifies the E and O modifiers.
769 %P is a GNU extension, and is not in ISO C99.
770 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
771 %T is also in ISO C99.
772 The RFC 822 example is not valid in arbitrary locales.
773 Reword the POSIX.2 wording slightly, to make it a bit clearer
774 that POSIX.2 formats are also supported by later POSIX versions.
775 If a format was introduced in ISO C99 it is also required by
778 2002-03-13 Ulrich Drepper <drepper@redhat.com>
780 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
781 _sys_nerr_internal with INTVARDEF2.
782 * include/libc-symbols.h (INTVARDEF2): New macro.
783 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
784 (_sys_nerr_internal): Library.
786 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
787 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
789 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
791 2002-03-13 Wolfram Gloger <wg@malloc.de>
793 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
795 2002-03-02 Andreas Schwab <schwab@suse.de>
797 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
798 'h' flag and positional arg.
799 * stdio-common/tst-printf.c (rfg3): New function to test
800 positional arguments.
801 (main): Fix some warnings.
803 2002-03-13 Jakub Jelinek <jakub@redhat.com>
805 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
806 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
808 2002-03-13 Ulrich Drepper <drepper@redhat.com>
810 * grp/initgroups.c (__nss_group_data): Declare as hidden.
812 * include/locale.h (_nl_C_locobj): Declare as hidden.
814 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
815 * time/strptime.c (_nl_C_LC_TIME): Likewise.
817 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
819 * include/sys/gmon.h: Declare _gmonparam as hidden.
821 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
822 (__ctype32_wctrans): Likewise.
823 (__ctype32_width): Likewise.
825 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
828 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
830 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
831 hidden. Change all users of these variables.
833 * posix/regex_internal.h (__re_error_msgid): Renamed from
834 re_error_msgid. Declare as hidden.
835 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
838 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
839 (__printf_function_table): Likewise.
840 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
842 (__printf_function_table): Likewise.
844 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
845 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
847 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
848 * nss/nsswitch.c: Declare _nss_*_database as hidden.
850 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
851 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
853 2002-03-12 Ulrich Drepper <drepper@redhat.com>
855 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
856 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
857 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
858 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
859 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
860 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
861 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
862 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
863 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
864 _nl_C_LC_CTYPE_width: Declare as hidden.
865 * include/locale.h: Declare _nl_locale_file_list.
866 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
867 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
868 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
869 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
870 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
871 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
872 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
873 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
874 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
875 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
876 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
877 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
878 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
879 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
880 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
881 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
882 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
883 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
884 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
885 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
886 _nl_C_LC_CTYPE_width, and as hidden.
887 * locale/findlocale.c: Declare _nl_C as hidden.
888 * locale/newlocale.c: Likewise.
889 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
890 _nl_locale_file_list.
891 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
892 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
893 Define _nl_C_locobj as hidden.
895 * malloc/mtrace.c (_mtrace_file): Define as hidden.
896 (_mtrace_line): Likewise.
898 * include/time.h: Declare __mon_yday as hidden.
899 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
901 * libio/libioP.h: Declare __libio_codecvt as hidden.
902 * libio/fileops.c: Declare __libio_translit as hidden.
903 * libio/iofwide.c: Define __libio_translit as hidden.
905 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
906 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
907 * login/getutline_r.c: Likewise.
908 * login/utmpname.c: Likewise.
910 * login/utmp-private.h: Declare __libc_utmp_file_functions,
911 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
912 __libc_utmp_file_name as hidden.
914 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
915 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
916 * locale/freelocale.c: Likewise.
917 * locale/lc-time.c: Likewise.
919 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
920 (__libc_ptyname2): Likewise.
921 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
923 (__libc_ptyname2): Likewise.
925 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
926 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
927 * sysdeps/generic/init-first.c: Likewise.
928 * sysdeps/i386/init-first.c: Likewise.
929 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
930 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
931 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
932 * sysdeps/sh/init-first.c: Likewise.
933 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
934 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
936 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
937 (_itowa_upper_digits): Likewise.
939 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
940 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
943 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
944 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
945 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
946 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
948 * gmon/gmon.c (__bb_head): Define as hidden.
949 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
951 * argp/argp-parse.c (_argp_hang): Define as static.
953 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
954 handling in latest compilers.
956 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
958 * libio/fileops.c (_IO_file_jumps): Likewise.
959 * libio/stdfiles.c (_IO_list_all): Likewise.
960 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
962 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
964 * include/malloc.h: Add __libc_malloc_initialized declaration
965 here. Mark variable hidden.
966 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
968 * elf/dl-open.c (__libc_argc): Declare as hidden.
969 (__libc_argv): Likewise.
970 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
971 (__libc_argv): Likewise.
972 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
973 __libc_argv as hidden.
974 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
975 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
976 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
977 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
979 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
980 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
981 * stdlib/erand48.c: Likewise.
982 * stdlib/jrand48.c: Likewise.
983 * stdlib/lcong48.c: Likewise.
984 * stdlib/lrand48.c: Likewise.
985 * stdlib/mrand48.c: Likewise.
986 * stdlib/nrand48.c: Likewise.
987 * stdlib/seed48.c: Likewise.
988 * stdlib/srand48.c: Likewise.
990 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
991 (_itoa_lower_digits_internal): New declaration.
992 (_itoa_upper_digits_internal): New declaration.
993 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
994 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
995 (_itoa_upper_digits_internal): New declaration.
996 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
998 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
999 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
1001 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
1002 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1004 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
1005 (_itowa_lower_digits): Likewise.
1006 (_itowa_upper_digits): Likewise.
1007 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
1008 (_itowa_upper_digits): Likewise.
1010 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
1011 not already defined.
1012 (GERMANIC_PLURAL): Declare as hidden.
1014 * posix/getopt.c (__getopt_initialized): Declare as hidden.
1015 (attribute_hidden): Define as empty macro if not already defined.
1017 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1018 (__gconv_max_path_elem_len): Likewise.
1019 (__gconv_path_envvar): Likewise.
1021 * math/Makefile (gmp-objs): Remove mp_clz_tab.
1022 * stdlib/Makefile (aux): Remove mp_clz_tab.
1023 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
1025 * stdlib/exit.h (__exit_funcs): Declare as hidden.
1027 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1029 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1030 _nl_category_names, _nl_category_name_sizes, _nl_current,
1031 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1033 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1034 (_nl_current_default_domain): Likewise
1035 (_nl_state_lock): Likewise.
1036 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1037 (_nl_current_default_domain): Likewise
1038 (_nl_state_lock): Likewise.
1039 * intl/bindtextdom.c (_nl_state_lock): Likewise.
1041 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1042 (_fpioconst_pow10): Likewise.
1044 * include/time.h (_tmbuf): Add attribute_hidden.
1046 * time/tzset.c (tzstring_list): Define as static.
1048 * include/time.h: Add attribute_hidden to __tzname_cur_max and
1049 __use_tzfile declaration.
1051 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
1052 and __wcsmbs_last_locale declaration.
1054 2002-02-25 Paul Eggert <eggert@twinsun.com>
1056 * timezone/Makefile (tzbases): Move systemv from here...
1057 (tzlinks): to here, since the entries in systemv were all changed
1058 from Zone to Link lines in tz-2001a. Bug reported (and patch
1059 tested) by Peter Breitenlohner.
1061 2002-03-07 Jakub Jelinek <jakub@redhat.com>
1063 * time/tst-posixtz.c (tests): Add new tests.
1064 (main): Test whether tzset() sets daylight properly.
1066 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1068 * time/tzset.c (tz_compute): Move __daylight, __tzname and
1069 __tzname_cur_max setting...
1070 (tzset_internal): ...here.
1072 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1074 * time/tzset.c (compute_change): Don't return any value.
1075 (tz_compute): Likewise. Don't handle southern hemisphere here.
1076 (__tz_convert): But here.
1078 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1080 * manual/examples/mkfsock.c: Include <string.h> as well.
1081 Patch by Alain De Carolis <alaind@wseurope.com>.
1083 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
1085 * posix/regexec.c (re_match): Fix incorrect register sizes.
1086 (re_search): Likewise.
1088 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1090 * posix/regcomp.c (regfree): Remove a disused condition.
1091 * posix/regex_internal.c (re_acquire_state): Likewise.
1092 (re_acquire_state_context): Likewise.
1093 (register_state): Remove a redundant malloc invocation.
1094 * posix/regex_internal.h: (re_state_table_entry): Simplify
1097 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1099 * posix/regcomp.c (regcomp): Add __builtin_expect to error
1100 handling conditions.
1101 (regerror): Likewise.
1102 (regfree): Likewise.
1103 (re_compile_internal): Likewise.
1104 (init_dfa): Likewise.
1105 (init_word_char): Likewise.
1106 (create_initial_state): Likewise.
1107 (analyze): Likewise.
1108 (analyze_tree): Likewise.
1109 (duplicate_node): Likewise.
1110 (calc_eclosure): Likewise.
1111 (calc_eclosure_iter): Likewise.
1113 (parse_reg_exp): Likewise.
1114 (parse_branch): Likewise.
1115 (parse_expression): Likewise.
1116 (parse_subexp): Likewise.
1117 (parse_dup_op): Likewise.
1118 (parse_bracket_exp): Likewise.
1119 (build_equiv_class): Likewise.
1120 (build_charclass): Likewise.
1121 (build_word_op): Likewise.
1122 (fetch_number): Likewise.
1123 (create_tree): Likewise.
1124 (duplicate_tree): Likewise.
1125 * posix/regex.c (BE): New macro.
1126 * posix/regexec.c (re_match): Add __builtin_expect to error
1127 handling conditions.
1128 (re_match_2): Likewise.
1129 (re_search): Likewise.
1130 (re_search_internal): Likewise.
1131 (check_matching): Likewise.
1132 (proceed_next_node): Likewise.
1133 (set_regs): Likewise.
1134 (sift_states_backward): Likewise.
1135 (add_epsilon_backreference): Likewise.
1136 (transit_state): Likewise.
1137 (transit_state_sb): Likewise.
1138 (transit_state_mb): Likewise.
1139 (transit_state_bkref): Likewise.
1140 (transit_state_bkref_loop): Likewise.
1141 (build_trtable): Likewise.
1142 (group_nodes_into_DFAstates): Likewise.
1143 (match_ctx_init): Likewise.
1144 (match_ctx_add_entry): Likewise.
1145 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
1146 to error handling conditions.
1147 (re_string_construct_toupper): Likewise.
1148 (build_wcs_buffer): Likewise.
1149 (build_wcs_upper_buffer): Likewise.
1150 (build_upper_buffer): Likewise.
1151 (re_string_translate_buffer): Likewise.
1152 (re_node_set_alloc): Likewise.
1153 (re_node_set_init_1): Likewise.
1154 (re_node_set_init_2): Likewise.
1155 (re_node_set_init_copy): Likewise.
1156 (re_node_set_intersect): Likewise.
1157 (re_node_set_init_union): Likewise.
1158 (re_node_set_merge): Likewise.
1159 (re_node_set_insert): Likewise.
1160 (re_dfa_add_node): Likewise.
1161 (re_acquire_state): Likewise.
1162 (re_acquire_state_context): Likewise.
1163 (create_new_state_common): Likewise.
1164 (register_state): Likewise.
1165 (create_ci_new_state): Likewise.
1166 (create_cd_new_state): Likewise.
1167 (re_string_context_at): Remove redundant condition.
1169 2002-01-16 Roger Sayle <roger@eyesopen.com>
1171 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
1173 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
1175 2002-03-11 Jakub Jelinek <jakub@redhat.com>
1177 * sysdeps/i386/elf/configure.in: Fix comment.
1179 * sysdeps/sparc/sparc64/configure.in: New.
1180 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
1181 if .dynamic comes before .got.
1182 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
1184 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
1185 HP_TIMING_ACCUM): Fix typos.
1187 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1189 * string/strfry.c: Add some more randomness to the seed.
1190 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
1192 * po/es.po: Update from translation team.
1193 * po/fr.po: Likewise.
1195 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
1197 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
1198 when determining type of format.
1199 Patch by James Antill <james@anqd.org> [PR libc/2787].
1201 2002-03-04 Jakub Jelinek <jakub@redhat.com>
1203 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
1205 2002-03-11 Roland McGrath <roland@frob.com>
1207 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
1209 * Versions.def (libc): Add GLIBC_2.2.6.
1210 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
1211 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
1212 __errno_location instead of __hurd_errno_location, and don't inline it.
1213 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1214 * hurd/errno.c: New file.
1215 * hurd/Makefile (routines): Add errno.
1217 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1219 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
1220 ridiculously large widths and precisions [PR libc/3026].
1222 2002-03-11 Andreas Jaeger <aj@suse.de>
1224 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
1226 Patch by Susanne Oberhauser <froh@SuSE.de>.
1228 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1230 * inet/rexec.c (ahostbuf): Define as static.
1232 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
1233 (__ctype32_wctrans): Likewise.
1234 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
1235 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
1236 (__ctype32_wctrans): Likewise.
1237 (__ctype32_width): Likewise.
1239 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
1240 They were never exported anyway.
1242 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
1243 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
1245 * include/sys/gmon.h: Declare _gmonparam.
1247 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
1248 symbols for getdents64. They were never exported.
1250 2002-03-09 Roland McGrath <roland@frob.com>
1252 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1253 Reported by Jon Arney <jarney1@cox.net>.
1255 2002-02-23 Roland McGrath <roland@frob.com>
1257 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1259 (__hurd_errno_location): Function removed.
1261 2002-03-06 Andreas Jaeger <aj@suse.de>
1263 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1266 2002-03-04 Andreas Jaeger <aj@suse.de>
1268 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1270 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1273 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1275 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1277 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1279 * sysdeps/x86_64/bits/setjmp.h: New.
1281 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1283 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1285 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1287 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1288 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1290 2002-02-28 Bo Thorsen <bo@suse.de>
1292 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1295 2002-03-03 Andreas Jaeger <aj@suse.de>
1297 * sysdeps/x86_64/bits/wordsize.h: New file.
1299 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1300 * elf/tst-tlsmod1.c: Likewise.
1302 * posix/regcomp.c: Get regex.h from include dir for internal
1305 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1306 to libc-internal.h and include it.
1307 * include/libc-internal.h: Add __init_misc.
1309 * misc/init-misc.c: Include libc-internal.h for prototypes.
1311 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
1313 * misc/error.c [_LIBC]: Include libioP.h for prototype of
1316 2002-03-03 Ulrich Drepper <drepper@redhat.com>
1318 * posix/regcomp.c: Compatibility changes to allow using the code
1321 2002-02-28 Hartvig Ekner <hartvige@mips.com>
1323 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
1326 2002-03-02 Ulrich Drepper <drepper@redhat.com>
1328 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
1329 of .str elements in the returned data structure.
1331 * elf/elf.h: Add Alpha TLS bits.
1333 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1335 * sysdeps/unix/sysv/linux/nice.c: New file.
1337 2002-03-01 Ulrich Drepper <drepper@redhat.com>
1339 * elf/Makefile (dl-routines): Add dl-origin.
1340 (elide-routines.os): Add dl-origin.
1341 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
1342 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
1344 * include/libc-symbols.c: Define attribute_hidden depending on
1345 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
1347 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
1348 * elf/dl-load.c: Likewise.
1349 * elf/rtld.c: Likewise.
1350 * include/unistd.h: Declare __libc_enable_secure_internal.
1351 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
1352 Use INTUSE with __libc_enable_secure.
1353 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1355 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
1356 * elf/dl-error.c: Likewise,
1357 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
1359 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
1360 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
1361 function definition. Use INTDEF with _dl_get_origin.
1362 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1364 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
1365 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
1367 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
1368 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
1369 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
1371 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
1372 * elf/dl-deps.c: Likewise.
1373 * elf/dl-error.c: Likewise.
1374 * elf/dl-fini.c: Likewise.
1375 * elf/dl-init.c: Likewise.
1376 * elf/dl-load.c: Likewise.
1377 * elf/dl-lookup.c: Likewise.
1378 * elf/dl-reloc.c: Likewise.
1379 * elf/dl-version.c: Likewise.
1380 * elf/do-lookup.h: Likewise.
1381 * sysdeps/arm/dl-machine.h: Likewise.
1382 * sysdeps/cris/dl-machine.h: Likewise.
1383 * sysdeps/hppa/dl-machine.h: Likewise.
1384 * sysdeps/i386/dl-machine.h: Likewise.
1385 * sysdeps/m68k/dl-machine.h: Likewise.
1386 * sysdeps/powerpc/dl-machine.h: Likewise.
1387 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1388 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1389 * sysdeps/sh/dl-machine.h: Likewise.
1390 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
1391 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
1392 * sysdeps/x86_64/dl-machine.h: Likewise.
1393 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
1394 _dl_argv[0]. Use INTUSE with _dl_argv.
1395 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
1396 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
1398 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1400 * elf/rtld.c (_rtld_global): Remove .protected.
1401 (_rtld_local): Strong alias to _rtld_global.
1402 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
1404 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
1405 _rtld_local instead of _rtld_global.
1406 (_rtld_local): Add hidden extern, possibly in .sdata section.
1407 * configure.in: Add tests for visibility attribute and .sdata.
1408 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
1409 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
1410 * sysdeps/arm/dl-machine.h: Likewise.
1411 * sysdeps/generic/ldsodefs.h: Likewise.
1412 * sysdeps/hppa/dl-machine.h: Likewise.
1413 * sysdeps/cris/dl-machine.h: Likewise.
1414 * sysdeps/i386/dl-machine.h: Likewise.
1415 * sysdeps/ia64/dl-machine.h: Likewise.
1416 * sysdeps/m68k/dl-machine.h: Likewise.
1417 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1418 * sysdeps/mips/dl-machine.h: Likewise.
1419 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1420 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1421 * sysdeps/sh/dl-machine.h: Likewise.
1422 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1423 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1424 * sysdeps/x86_64/dl-machine.h: Likewise.
1426 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1428 * login/login.c (login): Always initialize ut_line field
1431 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1433 * sysdeps/i386/Makefile (sysdep_routines): Add
1435 (shared-only-routines): Likewise.
1436 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1437 (shared-only-routines): Likewise.
1438 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1439 (shared-only-routines): Likewise.
1440 * sysdeps/wordsize-32/divdi3.c: New file.
1442 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1444 * locale/iso-4217.def: Remove obsolete currencies for countries
1447 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1449 * posix/regcomp.c (regcomp): Remove a redundant condition.
1450 (init_word_char): Add a check on malloc failure.
1451 (create_initial_state): Likewise.
1452 (duplicate_node): Likewise.
1453 (calc_eclosure): Likewise.
1454 (calc_eclosure_iter): Likewise.
1455 (parse_expression): Likewise.
1456 (parse_bracket_exp): Remove unnecessary malloc invocations.
1457 (build_equiv_class): Likewise.
1458 (build_charclass): Likewise.
1459 * posix/regex_internal.c (re_node_set_intersect): Add a check
1461 (re_node_set_add_intersect): Likewise.
1462 (re_node_set_merge): Likewise.
1463 (re_acquire_state): Likewise.
1464 (re_acquire_state_context): Likewise.
1465 (create_newstate_common): Likewise.
1466 (register_state): Likewise.
1467 (create_ci_newstate): Likewise.
1468 (create_cd_newstate): Likewise.
1469 * posix/regex_internal.h: Fix prototypes of re_acquire_state
1470 and re_acquire_state_context.
1471 * posix/regexec.c (regexec): Suit it to the error handling of
1473 (re_match): Likewise.
1474 (re_search): Likewise.
1475 (re_search_internal): Add a check on malloc failure.
1476 (acquire_init_state_context): Likewise.
1477 (check_matching): Likewise.
1478 (proceed_next_node): Likewise.
1479 (set_regs): Likewise.
1480 (sift_states_backward): Likewise.
1481 (sift_states_iter_bkref): Likewise.
1482 (add_epsilon_backreference): Likewise.
1483 (transit_state): Likewise.
1484 (transit_state_sb): Likewise.
1485 (transit_state_mb): Likewise.
1486 (transit_state_bkref_loop): Likewise.
1487 (build_trtable): Likewise.
1488 (group_nodes_into_DFAstates): Likewise.
1489 (match_ctx_init): Likewise.
1490 (match_ctx_add_entry): Likewise.
1492 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1494 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1495 l_libname if profiling is enabled [PR libc/2916].
1497 * sysdeps/ia64/dl-tls.h: New file.
1499 2002-02-27 Jakub Jelinek <jakub@redhat.com>
1501 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1502 Work around an Alpha gas bug.
1504 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1506 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1507 uses read to load the catalog.
1508 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1510 2002-02-26 Ulrich Drepper <drepper@redhat.com>
1512 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1513 regex_internal.c, and regex_internal.h.
1514 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1515 * posix/regex.c: Complete rewrite.
1516 * posix/regexec.c: New file.
1517 * posix/regcomp.c: New file.
1518 * posix/regex_internal.c: New file.
1519 * posix/regex_internal.h: New file.
1520 * posix/regex.h (RE_ICASE): New macro.
1521 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1523 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1524 ungetwc. It's a macro.
1525 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1527 Reported by Jason Merrill <jason@redhat.com>.
1529 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1531 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1532 position to fp->_offset if it is set.
1533 * stdio-common/Makefile (tests): Add tst-fdopen.
1534 * stdio-common/tst-fdopen.c: New test.
1536 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1538 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1539 * stdio-common/tst-ungetc.c (main): Add another test.
1541 2002-02-25 Ulrich Drepper <drepper@redhat.com>
1543 * assert/assert-perr.c: Use INTUSE to reference functions and variables
1544 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
1545 aliases. Add prototypes for the new aliases.
1546 * assert/assert.c: Likewise.
1547 * include/libc-symbols.h: Likewise.
1548 * include/stdio.h: Likewise.
1549 * include/netinet/in.h: Likewise.
1550 * include/rpc/auth.h: Likewise.
1551 * include/rpc/auth_unix.h: Likewise.
1552 * include/rpc/key_prot.h: Likewise.
1553 * include/rpc/pmap_prot.h: Likewise.
1554 * include/rpc/pmap_rmt.h: Likewise.
1555 * include/rpc/rpc_msg.h: Likewise.
1556 * include/rpc/xdr.h: Likewise.
1557 * inet/gethstbyad_r.c: Likewise.
1558 * inet/gethstbynm2_r.c: Likewise.
1559 * inet/gethstbynm_r.c: Likewise.
1560 * inet/gethstent_r.c: Likewise.
1561 * inet/in6_addr.c: Likewise.
1562 * libio/__fpurge.c: Likewise.
1563 * libio/filedoalloc.c: Likewise.
1564 * libio/fileops.c: Likewise.
1565 * libio/ftello.c: Likewise.
1566 * libio/ftello64.c: Likewise.
1567 * libio/genops.c: Likewise.
1568 * libio/iofclose.c: Likewise.
1569 * libio/iofdopen.c: Likewise.
1570 * libio/iofflush.c: Likewise.
1571 * libio/iofflush_u.c: Likewise.
1572 * libio/iofgetpos.c: Likewise.
1573 * libio/iofgetpos64.c: Likewise.
1574 * libio/iofgets.c: Likewise.
1575 * libio/iofgets_u.c: Likewise.
1576 * libio/iofopen.c: Likewise.
1577 * libio/iofopncook.c: Likewise.
1578 * libio/iofputs.c: Likewise.
1579 * libio/iofread.c: Likewise.
1580 * libio/iofread_u.c: Likewise.
1581 * libio/iofsetpos.c: Likewise.
1582 * libio/iofsetpos64.c: Likewise.
1583 * libio/ioftell.c: Likewise.
1584 * libio/iofwrite.c: Likewise.
1585 * libio/iogetline.c: Likewise.
1586 * libio/iogets.c: Likewise.
1587 * libio/iogetwline.c: Likewise.
1588 * libio/iolibio.h: Likewise.
1589 * libio/iopadn.c: Likewise.
1590 * libio/iopopen.c: Likewise.
1591 * libio/ioseekoff.c: Likewise.
1592 * libio/ioseekpos.c: Likewise.
1593 * libio/iosetbuffer.c: Likewise.
1594 * libio/iosetvbuf.c: Likewise.
1595 * libio/ioungetc.c: Likewise.
1596 * libio/ioungetwc.c: Likewise.
1597 * libio/iovdprintf.c: Likewise.
1598 * libio/iovsprintf.c: Likewise.
1599 * libio/iovsscanf.c: Likewise.
1600 * libio/libioP.h: Likewise.
1601 * libio/memstream.c: Likewise.
1602 * libio/obprintf.c: Likewise.
1603 * libio/oldfileops.c: Likewise.
1604 * libio/oldiofclose.c: Likewise.
1605 * libio/oldiofdopen.c: Likewise.
1606 * libio/oldiofgetpos.c: Likewise.
1607 * libio/oldiofgetpos64.c: Likewise.
1608 * libio/oldiofopen.c: Likewise.
1609 * libio/oldiofsetpos.c: Likewise.
1610 * libio/oldiofsetpos64.c: Likewise.
1611 * libio/oldiopopen.c: Likewise.
1612 * libio/oldstdfiles.c: Likewise.
1613 * libio/putc.c: Likewise.
1614 * libio/setbuf.c: Likewise.
1615 * libio/setlinebuf.c: Likewise.
1616 * libio/stdfiles.c: Likewise.
1617 * libio/stdio.c: Likewise.
1618 * libio/strops.c: Likewise.
1619 * libio/vasprintf.c: Likewise.
1620 * libio/vscanf.c: Likewise.
1621 * libio/vsnprintf.c: Likewise.
1622 * libio/vswprintf.c: Likewise.
1623 * libio/wfiledoalloc.c: Likewise.
1624 * libio/wfileops.c: Likewise.
1625 * libio/wgenops.c: Likewise.
1626 * libio/wstrops.c: Likewise.
1627 * malloc/mtrace.c: Likewise.
1628 * misc/error.c: Likewise.
1629 * misc/syslog.c: Likewise.
1630 * nss/getXXbyYY_r.c: Likewise.
1631 * nss/getXXent_r.c: Likewise.
1632 * nss/hosts-lookup.c: Likewise.
1633 * stdio-common/getw.c
1634 * stdio-common/printf-prs.c: Likewise.
1635 * stdio-common/printf_fp.c: Likewise.
1636 * stdio-common/printf_size.c: Likewise.
1637 * stdio-common/putw.c: Likewise.
1638 * stdio-common/scanf.c: Likewise.
1639 * stdio-common/sprintf.c: Likewise.
1640 * stdio-common/tmpfile64.c: Likewise.
1641 * stdio-common/vfprintf.c: Likewise.
1642 * stdio-common/vfscanf.c: Likewise.
1643 * stdlib/strfmon.c: Likewise.
1644 * sunrpc/auth_des.c: Likewise.
1645 * sunrpc/auth_none.c: Likewise.
1646 * sunrpc/auth_unix.c: Likewise.
1647 * sunrpc/authdes_prot.c: Likewise.
1648 * sunrpc/authuxprot.c: Likewise.
1649 * sunrpc/clnt_perr.c: Likewise.
1650 * sunrpc/clnt_raw.c: Likewise.
1651 * sunrpc/clnt_tcp.c: Likewise.
1652 * sunrpc/clnt_udp.c: Likewise.
1653 * sunrpc/clnt_unix.c: Likewise.
1654 * sunrpc/key_call.c: Likewise.
1655 * sunrpc/key_prot.c: Likewise.
1656 * sunrpc/openchild.c: Likewise.
1657 * sunrpc/pm_getmaps.c: Likewise.
1658 * sunrpc/pm_getport.c: Likewise.
1659 * sunrpc/pmap_clnt.c: Likewise.
1660 * sunrpc/pmap_prot.c: Likewise.
1661 * sunrpc/pmap_prot2.c: Likewise.
1662 * sunrpc/pmap_rmt.c: Likewise.
1663 * sunrpc/rpc_cmsg.c: Likewise.
1664 * sunrpc/rpc_prot.c: Likewise.
1665 * sunrpc/svc_authux.c: Likewise.
1666 * sunrpc/svc_raw.c: Likewise.
1667 * sunrpc/svc_simple.c: Likewise.
1668 * sunrpc/svc_tcp.c: Likewise.
1669 * sunrpc/svc_udp.c: Likewise.
1670 * sunrpc/svc_unix.c: Likewise.
1671 * sunrpc/xdr.c: Likewise.
1672 * sunrpc/xdr_array.c: Likewise.
1673 * sunrpc/xdr_mem.c: Likewise.
1674 * sunrpc/xdr_rec.c: Likewise.
1675 * sunrpc/xdr_ref.c: Likewise.
1676 * sunrpc/xdr_stdio.c: Likewise.
1677 * sysdeps/generic/_strerror.c: Likewise.
1678 * sysdeps/generic/printf_fphex.c: Likewise.
1679 * sysdeps/generic/tmpfile.c: Likewise.
1680 * sysdeps/gnu/errlist.awk: Likewise.
1681 * sysdeps/gnu/errlist.c: Likewise.
1683 * libio/Makefile (routines): Remove iosprint.
1684 * libio/iosprintf.c: Removed
1687 2002-02-24 Ulrich Drepper <drepper@redhat.com>
1689 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1690 non_dynamic_init and exported now.
1691 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1692 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1694 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1695 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1696 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1698 2002-02-23 Ulrich Drepper <drepper@redhat.com>
1700 * elf/dl-close.c (free_slotinfo): Check for end of list and return
1703 * locale/iso-639.def: Add language codes for Walloon.
1705 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1706 total number of relocations performed.
1708 * elf/sprof.c (load_profdata): If do_test provide information as
1709 to why loading failed.
1710 * elf/dl-profile.c (_dl_start_profile): Initialize all of
1713 * csu/set-init.c: Moved to...
1714 * sysdeps/mach/hurd/set-init.c: ...here. New file.
1715 * csu/Makefile: Don't compile set-init.
1716 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1717 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1719 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1720 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1721 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1723 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
1726 2002-02-22 Ulrich Drepper <drepper@redhat.com>
1728 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1729 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1730 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1731 (_dl_deallocate_tls): New function.
1732 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1735 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1737 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1738 * stdio-common/tst-fseek.c (main): Add test for this.
1740 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
1742 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1744 2002-02-19 Jakub Jelinek <jakub@redhat.com>
1746 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1747 pointer before dereferencing.
1749 2002-02-18 Roland McGrath <roland@frob.com>
1751 * sysdeps/mach/hurd/times.c: Fix typo in last change.
1753 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1754 Use task_policy in place of task_priority.
1756 * sysdeps/generic/bits/mman.h
1757 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1758 * sysdeps/mach/msync.c: New file.
1760 * sysdeps/mach/powerpc/syscall.S: New file.
1762 * mach/msg.c [MACH_MSG_OVERWRITE]
1763 (__mach_msg_trap, __mach_msg_overwrite): New functions.
1764 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1766 * sysdeps/mach/configure.in: Check for clock.defs to put into
1767 mach_interface_list.
1768 * sysdeps/mach/configure: Regenerated.
1770 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1771 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1772 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1773 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1774 (mach-shortcuts): Add device_read_overwrite_request,
1775 device_read_overwrite, vm_read_overwrite, thread_switch.
1777 * configure.in (base_machine): Set to $machine by default.
1778 * configure: Regenerated.
1780 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1781 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1782 * sysdeps/mach/configure: Regenerated.
1783 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1785 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1787 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1789 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1790 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1792 2002-02-17 Roland McGrath <roland@frob.com>
1794 * sysdeps/mach/hurd/times.c
1795 [NO_CREATION_TIME] (startup_time): New static variable.
1796 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1797 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1798 creation_time from task_basic_info.
1799 (__times): Use __gettimeofday instead of __host_get_time.
1801 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1802 Use untyped Mach IPC message format.
1804 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1806 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1807 _S_catch_exception_raise_state_identity,
1808 _hurdsig_fault_catch_exception_raise_state,
1809 _hurdsig_fault_catch_exception_raise_state_identity.
1811 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1813 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1814 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1816 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1817 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1819 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1820 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
1821 them as no-op macros.
1822 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1823 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1825 * sysdeps/powerpc/dl-machine.h
1826 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1828 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1829 Use untyped Mach IPC message format.
1831 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1832 Handle untyped Mach IPC message formats.
1834 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1835 Expect different argument conventions when this is defined.
1836 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1837 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1838 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1839 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1840 for OSF Mach variant.
1841 (faulted): Use mig_reply_error_t for REPLY.
1842 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1843 in __thread_set_exception_ports call.
1844 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1845 __mach_port_set_attributes in place of __mach_port_set_qlimit.
1847 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1848 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1849 on Darwin, which includes bogons.
1851 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1852 variable LOADBASE so it's not declared when it's not used.
1854 2002-02-16 Roland McGrath <roland@frob.com>
1856 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1857 to use BI.creation_time.
1859 * mach/Machrules (MIG): Add -x c to CPP value passed down.
1861 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
1862 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
1863 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
1864 host_page_size instead of vm_statistics.
1866 * sysdeps/mach/Makefile (mach-before-compile): Don't include
1867 mach_interface.h here, since not all variants use that name.
1869 * sysdeps/mach/configure.in: Add some checks for Mach headers
1870 to ensure a sane installation.
1871 (mach_interface_list): Define this variable by checking for .defs
1872 files found in various variants.
1873 * configure.in (mach_interface_list): AC_SUBST this.
1874 * config.make.in (mach-interface-list): New substituted variable.
1875 * mach/Makefile (user-interfaces): Define this using the value
1876 of $(mach-interface-list) instead of mach, mach4.
1877 Updated other references to mach_interface to use it as well.
1879 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
1881 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
1882 mig_reply_error_t for OSF Mach variant.
1884 * mach/Makefile (routines): Remove bootprivport.
1885 * mach/bootprivport.c: File removed. It has never been used.
1887 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
1888 Grok the OSF flavor of message format.
1889 (mach_msg_destroy_port): For MAKE_SEND and
1890 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
1891 no-senders notification.
1893 2002-02-06 Roland McGrath <roland@frob.com>
1895 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
1896 to here if 2.0 compatibility enabled ...
1897 (libc: GLIBC_2.1.3): ... from here.
1899 2002-02-15 Ulrich Drepper <drepper@redhat.com>
1901 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
1903 * elf/dl-close.c (_dl_close): Likewise.
1905 2002-02-14 Ulrich Drepper <drepper@redhat.com>
1907 * elf/Makefile: Add rules to build and run tst-tls8.
1908 * elf/tst-tls8.c: New file.
1909 * elf/tst-tlsmod4.c: New file.
1911 * stdlib/test-a64l.c (tests): Add more test cases.
1913 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
1914 Reported by Walter Harms <WHarms@bfs.de>.
1916 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
1918 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
1919 definitions for struct sigcontext.
1920 Suggested by David Mosberger-Tang.
1922 2002-02-13 Ulrich Drepper <drepper@redhat.com>
1924 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
1925 for removing reference of module in slotinfo list.
1926 (_dl_close): Use remove_slotinfo.
1927 * sysdeps/generic/dl-tls.c: General pretty printing.
1928 (oom): Define only if SHARED.
1929 (_dl_next_tls_modid): Correct starting point for the case we assume
1930 there is a gap. Add missing instruction grouping (doh!). Correct
1931 tests for reaching maximum index.
1932 * elf/Makefile: Add rules to build and run tst-tls7.
1933 * elf/tst-tls7.c: New file.
1934 * elf/tst-tlsmod3.c: New file.
1936 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
1938 * elf/tst-tlsmod2.c: Likewise.
1940 * elf/dl-close.c (_dl_close): When closing an object using TLS
1941 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
1942 true. Increment dl_tls_generation only if we closed any TLS-using
1944 * elf/tst-tls6.c: New file.
1945 * elf/Makefile: Add rules to build and run tst-tls6.
1947 * po/da.po: Update from translation team.
1949 * locale/categories.def: Fix typo [PR libc/2948].
1950 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
1952 * locale/iso-4217.def: Update from official version [PR libc/2950].
1953 * glibcbug.in: Honor TMPDIR [PR libc/2951].
1954 * locale/programs/ld-collate.c (collate_finish): Bail out with a
1955 message if input is too confusion instead of using assert.
1956 (collate_read): Don't crash on unknown symbol [PR libc/2952].
1957 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
1959 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
1960 * elf/tst-tls2.c: Likewise.
1961 * elf/tst-tls3.c: Likewise.
1963 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1965 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
1967 2002-02-13 Ulrich Drepper <drepper@redhat.com>
1969 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
1970 if this is really necessary.
1972 * elf/dl-close.c (_dl_close): Implement freeing entries in the
1974 (free_mem): Free memory for the slotinfo array if possible.
1976 2002-02-12 Andreas Schwab <schwab@suse.de>
1978 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
1980 2002-02-12 Ulrich Drepper <drepper@redhat.com>
1982 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
1984 (oom): New function.
1985 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
1986 (_dl_determine_tlsoffset): Likewise.
1987 (_dl_allocate_tls): Likewise.
1988 (__TLS_GET_ADDR): Define if not already defined.
1989 (_dl_tls_symaddr): New function.
1990 (allocate_and_init): New function.
1991 (__tls_get_addr): Actually implement handling of generation counter
1992 and deferred allocation.
1993 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
1994 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
1996 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
1997 Declare _dl_tls_symaddr.
1998 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
2000 * include/link.h (struct link_map): Remove l_tls_nextimage and
2002 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
2003 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
2004 (_dl_vsym): Likewise.
2005 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
2007 (dl_main): Allow PT_TLS be present for empty segment. Remove
2008 nextimage list handling. Instead add all modules using TLS to
2009 dl_tls_dtv_slotinfo_list.
2010 * elf/dl-open.c (dl_open_worker): After successfully loading all
2011 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
2012 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
2013 empty segment don't do anything. Remove handling of initimage list.
2014 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2015 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2016 * elf/dl-minimal.c: Define __libc_memalign.
2017 * elf/dl-support.c: Remove _dl_initimage_list. Add
2018 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2020 * include/stdlib.h: Declare __libc_memalign.
2022 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2023 * elf/tst-tls4.c: New file.
2024 * elf/tst-tls5.c: New file.
2025 * elf/tst-tlsmod2.c: New file.
2027 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2029 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2031 * elf/tst-tls1.c: Use test-skeleton.c.
2032 * elf/tst-tls2.c: Likewise.
2033 * elf/tst-tls3.c: Likewise.
2035 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2037 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2039 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2041 2002-02-10 Ulrich Drepper <drepper@redhat.com>
2043 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2045 * elf/tst-tls3.c: New file.
2046 * elf/tst-tlsmod1.c: New file.
2047 * elf/Makefile: Add rules to build and run tst-tls3.
2049 * sysdeps/i386/dl-machine.h: Include <tls.h>.
2050 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2053 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
2055 * po/fr.po: Update from translation team.
2057 * elf/tls-macros.h: Add alternative macros for use in PIC.
2059 * elf/dl-lookup.c: Include <tls.h>.
2060 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
2062 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
2063 required by passing pointer to last element of the list.
2065 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
2066 l_tls_initimage to a place where it actually is performed.
2068 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
2069 after globfree() calls.
2071 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
2072 (openaux): Pass open_mode as new last argument to _dl_map_object.
2073 (_dl_map_object_deps): Add new argument open_mode. Initialize
2074 open_mode element of args variable with it.
2075 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
2076 _dl_map_object_deps.
2077 * elf/rtld.c (dl_main): Add zero as last parameter to
2078 _dl_map_object_deps call.
2079 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
2080 * elf/nodlopen2.c: New file.
2081 * elf/nodlopenmod2.c: New file.
2082 * elf/Makefile: Add rules to build and run nodlopen2.
2084 * elf/tst-tls1.c: Move TLS helper macros to...
2085 * elf/tls-macros.h: ...here. New file.
2086 * elf/tst-tls2.c: New file.
2087 * elf/Makefile (tests): Add tst-tls2.
2088 (distribute): Add tls-macros.h.
2090 * po/sv.po: Update from translation team.
2092 * elf/tst-tls1.c (main): Add complete set of tests. Split
2093 architecture specific definitions from the actual test code.
2095 * po/tr.po: Update from translation team.
2097 2002-02-09 Ulrich Drepper <drepper@redhat.com>
2099 * elf/Makefile (tests): Add tst-tls1.
2100 * elf/tst-tls1.c: New file.
2102 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
2103 alignment of TCB for now.
2105 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
2106 initialization image for the application itself.
2108 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
2109 loop to initialize TLS block.
2111 2002-02-08 Richard Henderson <rth@redhat.com>
2113 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
2114 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
2116 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
2118 2002-02-09 Jakub Jelinek <jakub@redhat.com>
2120 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
2122 2002-02-08 Ulrich Drepper <drepper@redhat.com>
2124 * po/ca.po: Update from translation team.
2125 * po/sk.po: Likewise.
2127 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
2128 (dl_main): Move dtv/static TLS handling before relocation.
2129 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
2130 TLS_INIT_TP to allocate and install the dtv/static TLS block.
2131 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
2132 so far uses TLS initialize GL(dl_tls_static_size) and
2133 GL(dl_tls_static_align) to account for the TCB.
2134 (_dl_allocate_tls): New function.
2135 * sysdeps/generic/ldsodefs.h (rtld_global): Add
2136 _dl_initial_dtv_malloced.
2138 * configure.in: Test for __builtin_memset more realistically.
2140 * csu/version.c (banner): If TLS support is available say so.
2142 2002-02-04 H.J. Lu <hjl@gnu.org>
2144 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
2146 (__dl_runtime_resolve): Likewise.
2148 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
2151 2001-11-15 H.J. Lu <hjl@gnu.org>
2153 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
2154 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
2156 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
2158 2002-02-07 H.J. Lu <hjl@gnu.org>
2160 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
2162 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
2165 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2167 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
2169 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
2170 ___tls_get_addr_internal.
2171 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
2173 * po/ko.po: Update from translation team.
2175 2002-02-07 Jakub Jelinek <jakub@redhat.com>
2177 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
2178 attribute, change __pad{1,2} type to unsigned int.
2179 (struct stat64): Remove packed attribute.
2181 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2183 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
2185 2002-02-07 Andreas Schwab <schwab@suse.de>
2187 * configure.in: Fix check for -zcombreloc.
2189 2002-02-06 H.J. Lu <hjl@gnu.org>
2191 * config.h.in (HAVE_BUILTIN_MEMSET): New.
2192 * configure.in: Check if __builtin_memset really works.
2193 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
2194 __GNUC_PREREQ (2, 96) before using __builtin_memset.
2196 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2198 * io/bug-ftw3.c (main): Don't try the test if root.
2200 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2202 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
2204 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
2205 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
2206 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
2208 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
2209 a weak alias for __clone.
2210 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
2211 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
2212 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
2213 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
2214 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
2215 a weak alias for __mmap64.
2217 2002-02-05 H.J. Lu <hjl@gnu.org>
2219 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
2220 (atomic_add): Likewise.
2221 (compare_and_swap): Likewise.
2222 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
2224 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2226 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
2228 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
2229 alignment of the TCB and store total size and alignment of static
2230 TLS block in _dl_tls_static_size and _dl_tls_static_align.
2231 tls_index is a typedef.
2232 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
2233 _dl_tls_static_align.
2234 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
2235 * elf/dl-support.c: Define _dl_tls_static_size and
2236 _dl_tls_static_align.
2238 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2240 * configure.in: Add --without-tls option.
2241 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
2242 --without-tls is given.
2244 * sysdeps/generic/dl-tls.c: Include <tls.h>.
2246 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
2248 2002-02-06 Roland McGrath <roland@frob.com>
2250 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
2251 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2253 * scripts/versions.awk: Improve error message for missing version.
2254 Each version inherits from the last one only if they have the same
2255 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2256 but not GLIBC_x and FOO_y.
2258 * scripts/firstversions.awk: Handle libraries that don't have each
2259 particular version named in the third column of shlib-versions.
2261 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2263 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2265 * Versions.def [ld]: Add GLIBC_2.3.
2266 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2267 * elf/Makefile (dl-routines): Add dl-tls.
2268 (distribute): Add dl-tls.h.
2269 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2270 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2271 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2272 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2273 along with the other info in the link map. Change queueing of init
2274 images for double linked list. Use _dl_next_tls_modid to compute
2276 * elf/rtld.c (_dl_start_final): Store alignment requirement
2277 along with the other info in rtld map and executable map.
2278 (dl_main): Add ld.so to the init image list if necessary. Compute
2279 final module ID with _dl_next_tls_modid.
2280 * include/link.h (struct link_map): Add l_tls_previmage and
2282 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2283 * sysdeps/i386/elf/Versions: New file.
2284 * sysdeps/generic/dl-tls.c: New file.
2285 * sysdeps/generic/dl-tls.h: New file.
2286 * sysdeps/i386/dl-tls.h: New file.
2288 2002-02-06 Roland McGrath <roland@frob.com>
2290 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2291 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2293 2002-01-05 Roland McGrath <roland@frob.com>
2295 * sysdeps/mach/configure.in: New file.
2296 * sysdeps/mach/configure: New generated file.
2298 * mach/Makefile (user-interfaces): Remove default_pager_helper.
2299 It has never been used by anything.
2301 2002-02-06 H.J. Lu <hjl@gnu.org>
2303 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2306 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2308 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2309 attribute((packed)) to counter stupid people misusing gcc options.
2310 (struct stat64): Likewise.
2312 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2314 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
2315 the variables which are used as booleans.
2317 2002-02-06 Andreas Jaeger <aj@suse.de>
2319 * include/libc-symbols.h (INTUSE): Renamed from INT.
2320 * elf/dl-deps.c: Change users.
2321 * sysdeps/generic/dl-sysdep.c: Likewise.
2322 * sysdeps/generic/dl-cache.c: Likewise.
2323 * elf/dl-reloc.c: Likewise.
2324 * elf/rtld.c: Likewise.
2325 * elf/dl-version.c: Likewise.
2326 * elf/dl-load.c: Likewise.
2327 * elf/dl-dst.h: Likewise.
2328 * elf/dl-init.c: Likewise.
2329 * elf/dl-error.c: Likewise.
2330 * elf/dl-fini.c: Likewise.
2331 * elf/dl-runtime.c: Likewise.
2332 * elf/do-lookup.h: Likewise.
2334 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
2336 * stdio-common/_itowa.h: Likewise.
2338 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2340 * elf/dl-minimal.c: Define _itoa_lower_digits.
2342 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
2345 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
2346 loading modules with the DF_STATIC_TLS flag set.
2347 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
2349 * include/link.h (struct link_map): Add l_flags field.
2350 * elf/elf.h (DF_STATIC_TLS): New definition.
2352 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
2353 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
2355 * elf/rtld.c (process_dl_debug): Correct printing help message.
2356 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
2359 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
2360 definition and pass &errno in use of this variable.
2361 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
2363 2002-02-04 Andreas Schwab <schwab@suse.de>
2365 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
2366 * locale/programs/charmap-dir.c: Wrap calls that output messages
2367 with WITH_CUR_LOCALE. Include "localedef.h" first.
2368 * locale/programs/charmap.c: Likewise.
2369 * locale/programs/ld-address.c: Likewise.
2370 * locale/programs/ld-collate.c: Likewise.
2371 * locale/programs/ld-ctype.c: Likewise.
2372 * locale/programs/ld-identification.c: Likewise.
2373 * locale/programs/ld-measurement.c: Likewise.
2374 * locale/programs/ld-messages.c: Likewise.
2375 * locale/programs/ld-monetary.c: Likewise.
2376 * locale/programs/ld-name.c: Likewise.
2377 * locale/programs/ld-numeric.c: Likewise.
2378 * locale/programs/ld-paper.c: Likewise.
2379 * locale/programs/ld-telephone.c: Likewise.
2380 * locale/programs/ld-time.c: Likewise.
2381 * locale/programs/linereader.c: Likewise.
2382 * locale/programs/linereader.h: Likewise.
2383 * locale/programs/localedef.c: Likewise.
2384 * locale/programs/locfile.c: Likewise.
2385 * locale/programs/repertoire.c: Likewise.
2387 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2389 * elf/rtld.c (_dl_start_final): Determine load address to locate
2390 ehdr with GL(dl_rtld_map).l_map_start.
2392 * po/ca.po: Update from translation team.
2394 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
2395 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
2397 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2399 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
2401 2002-02-04 Ulrich Drepper <drepper@redhat.com>
2403 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
2404 * include/link.h (struct link_map): Add various members for TLS
2406 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2407 _rtld_tlsoffset, add _dl_initimage_list.
2408 * sysdeps/i386/dl-lookupcfg.h: New file.
2409 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
2410 TLS relocation. When using TLS we now use RESOLVE_MAP.
2411 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2414 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2417 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2418 thread-pointer as soon as possible.
2419 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
2420 elements in rtld_global.
2421 * sysdeps/generic/tls.h: New file.
2422 * elf/Makefile (distribute): Add tls.h.
2423 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2424 relocations. Not complete yet.
2426 * resolv/resolv.h: Allow user to define __need_res_state and only
2427 define __res_start structure then.
2428 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2430 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2431 dl_cpuclock_offset initialization to _dl_start_final.
2432 (_dl_show_auxv): Avoid unnecessary sign extension.
2433 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2435 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2437 * config.h.in: Add HAVE_TLS_SUPPORT.
2438 * sysdeps/i386/elf/configure.in: New file.
2440 2002-02-03 Andreas Schwab <schwab@suse.de>
2442 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2443 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
2445 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
2447 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2448 alloca if the memory reqirements are too high.
2450 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2452 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2453 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2454 the former is available anyway and speed isn't important here.
2455 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2456 * elf/dl-version.c (match_symbol): Likewise.
2457 (_dl_check_map_versions): Likewise.
2458 * elf/rtld.c (process_envvars): Likewise.
2459 (print_statistics): Likewise.
2460 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2461 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
2462 bases. Add assert to catch uses of unimplemented features.
2463 (__strsep): Add assert to catch uses of unimplemented features.
2464 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
2465 and avoid inline optimization.
2466 * elf/rtld.c (process_envvars): Likewise.
2467 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2468 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2469 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2471 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2473 * stdio-common/_itoa.h: Minor simplifications of the code.
2474 * stdio-common/_itoa.c: Likewise.
2476 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2477 instead of _dl_printf for debugging info output.
2479 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2480 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2482 2002-02-01 H.J. Lu <hjl@gnu.org>
2484 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2485 (atomic_add): Likewise.
2486 (compare_and_swap): Return 0 only when failed to compare. Use
2489 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2492 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
2494 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2496 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2498 * elf/dl-minimal.c (__strsep): New minimal implementation.
2500 2002-02-02 Paul Eggert <eggert@twinsun.com>
2502 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2503 (__mktime_internal): If no tm_isdst is requested, prefer solutions
2504 with tm_isdst > 0 when the requested time falls within a
2505 spring-forward gap [PR libc/2894].
2507 2002-02-03 Andreas Schwab <schwab@suse.de>
2509 * stdio-common/tst-rndseek.c: Increase timeout.
2511 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2513 Change ld.so to not use functions which are exported. One cannot
2514 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
2516 * include/libc-symbols.h: Define INT and INTDEF.
2517 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2518 _dl_signal_error_internal, _dl_map_object_internal,
2519 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2520 _dl_lookup_versioned_symbol_internal,
2521 _dl_relocate_object_internal, _dl_debug_state_internal,
2522 _dl_start_profile_internal, and _dl_unload_cache_internal.
2523 * include/dlfcn.h: Declare _dl_catch_error_internal.
2524 * elf/rtld.c: Use INT for calls to any of the *_internal functions
2525 above. Add INTDEF to function definitions.
2526 * elf/dl-debug.c: Likewise.
2527 * elf/dl-deps.c: Likewise.
2528 * elf/dl-dst.h: Likewise.
2529 * elf/dl-error.c: Likewise.
2530 * elf/dl-fini.c: Likewise.
2531 * elf/dl-init.c: Likewise.
2532 * elf/dl-load.c: Likewise.
2533 * elf/dl-lookup.c: Likewise.
2534 * elf/dl-misc.c: Likewise.
2535 * elf/dl-open.c: Likewise.
2536 * elf/dl-profile.c: Likewise.
2537 * elf/dl-reloc.c: Likewise.
2538 * elf/dl-runtime.c: Likewise.
2539 * elf/dl-version.c: Likewise.
2540 * elf/do-lookup.h: Likewise.
2541 * sysdeps/generic/dl-cache.c: Likewise.
2542 * sysdeps/generic/dl-sysdep.c: Likewise.
2543 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2544 instead of _dl_init.
2545 * sysdeps/arm/dl-machine.h: Likewise.
2546 * sysdeps/cris/dl-machine.h: Likewise.
2547 * sysdeps/hppa/dl-machine.h: Likewise.
2548 * sysdeps/i386/dl-machine.h: Likewise.
2549 * sysdeps/ia64/dl-machine.h: Likewise.
2550 * sysdeps/m68k/dl-machine.h: Likewise.
2551 * sysdeps/mips/dl-machine.h: Likewise.
2552 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2553 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2554 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2555 * sysdeps/sh/dl-machine.h: Likewise.
2556 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2557 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2558 * sysdeps/x86_64/dl-machine.h: Likewise.
2559 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2561 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2562 and _dl_debug_initialize.
2564 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
2566 * elf/rtld.c (dl_main): Avoid strrchr.
2567 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2568 result of readlink. Search from the back for '/'.
2570 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2571 strncpy if possible.
2573 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
2575 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
2576 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2577 strspn, and strcspn.
2578 (process_envvars): Don't use strcspn.
2580 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2581 (_dl_dst_substitute): Likewise.
2583 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2585 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2586 code which is never used when relocating ld.so itself.
2588 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2589 starting ld.so itself. Move l_addr variable initialization closer
2591 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2593 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2595 * Versions.def (libc): Add GLIBC_PRIVATE.
2596 (libdb, libnss_db, libdb1): Remove.
2597 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2598 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2599 (libpthread): Add GLIBC_PRIVATE.
2600 (libresolv): Likewise, remove GLIBC_2.1.
2601 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2602 GLIBC_2.2.3, GLIBC_2.3.
2603 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2604 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2605 _dl_sym, _dl_vsym): Likewise.
2606 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2607 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2608 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2609 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2610 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2611 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2612 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2613 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2615 (_dl_object_relocation_scope): Remove.
2616 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2617 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2618 __gconv_cache): Move to GLIBC_PRIVATE.
2619 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2620 __internal_setnetgrent): Likewise.
2621 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2622 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2623 * locale/Versions (__collate_element_hash, __collate_element_strings,
2624 __collate_symbol_classes, __collate_symbol_hash,
2625 __collate_symbol_strings, _nl_current_LC_COLLATE,
2626 _nl_current_LC_CTYPE): Likewise.
2627 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2628 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2629 (libnss_nis, libnss_nisplus): Likewise.
2630 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2631 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2632 (libnss_files): Move all symbols to GLIBC_PRIVATE.
2633 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2634 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2635 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2636 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2637 __ns_get16, __ns_samename): Likewise.
2638 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2639 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2641 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2642 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2643 __libc_connect): Likewise.
2644 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2646 * stdlib/Versions (__libc_system): Likewise.
2647 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2648 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2649 * sysdeps/ia64/fpu/Versions: Likewise.
2650 * sysdeps/ia64/Versions: Likewise.
2651 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2652 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2654 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2655 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2656 __libc_sigaction): Likewise.
2657 * termios/Versions (__libc_tcdrain): Likewise.
2659 * misc/sys/cdefs (__attribute_noinline__): Define.
2660 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2661 __attribute_noinline__.
2663 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2664 * elf/dl-xstat64.c: New file.
2665 * elf/dl-fxstat64.c: New file.
2666 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2667 don't export __fxstat64 at multiple versions.
2668 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2669 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2671 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
2673 * locale/program/ld-collate.c (collate_finish): Assign a wide
2674 char collation sequence value to multi character collating
2675 elements, and avoid over writing by non-character elements.
2677 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2679 * elf/Makefile (distribute): Add dl-procinfo.c.
2680 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2681 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2683 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2685 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2687 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2688 _rtld_global struct.
2689 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2690 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2691 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2692 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2693 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2694 _dl_fpu_control_set): Remove unused externs.
2695 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2696 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2697 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2698 related variables in _rtld_global struct.
2699 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2700 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2703 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2705 * sysdeps/generic/dl-procinfo.c: New file.
2707 2002-02-01 Andreas Schwab <schwab@suse.de>
2709 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2711 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2713 * elf/rtld.c (_dl_start): Mark as internal_function.
2714 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2716 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2717 General pretty printing.
2719 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2721 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2722 * elf/dl-reloc.c: Pretty printing.
2723 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2724 procinfo-related variables in rtld_global struct.
2725 * elf/dl-support.c: Likewise.
2726 * elf/rtld.c: Likewise.
2727 * sysdeps/i386/i686/Makefile: Likewise.
2728 * sysdeps/i386/i686/hp-timing.c: Likewise.
2729 * sysdeps/i386/i686/hp-timing.h: Likewise.
2730 * sysdeps/ia64/Makefile: Likewise.
2731 * sysdeps/ia64/hp-timing.c: Likewise.
2732 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2733 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2734 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2735 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2736 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2737 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2738 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2739 * sysdeps/x86_64/Makefile: Likewise.
2741 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2742 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2743 _dl_debug_fd to rtld_global.
2744 * elf/Versions: Likewise.
2745 * elf/dl-close.c: Likewise.
2746 * elf/dl-iteratephdr.c: Likewise.
2747 * elf/dl-lookup.c: Likewise.
2748 * elf/dl-misc.c: Likewise.
2749 * elf/dl-open.c: Likewise.
2750 * elf/dl-support.c: Likewise.
2751 * elf/do-lookup.h: Likewise.
2752 * elf/rtld.c: Likewise.
2753 * sysdeps/generic/dl-cache.c: Likewise.
2754 * sysdeps/generic/dl-sysdep.c: Likewise.
2755 * sysdeps/ia64/Versions: Likewise.
2756 * sysdeps/unix/clock_gettime.c: Likewise.
2757 * sysdeps/unix/clock_settime.c: Likewise.
2758 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2759 * sysdeps/sparc/Versions: Removed.
2760 * sysdeps/i386/i686/Versions : Removed.
2761 * sysdeps/x86_64/Versions: Removed.
2762 * configure.in: Define HAVE_PROTECTED if .protected is available.
2763 * config.h.in: Add entry for HAVE_PROTECTED.
2765 2002-01-31 Jakub Jelinek <jakub@redhat.com.
2767 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2768 code in struct _rtld_global. Export this struct, remove all
2769 exports for the signal variables.
2770 * sysdeps/arm/dl-machine: Likewise.
2771 * sysdeps/generic/dl-origin: Likewise.
2772 * sysdeps/generic/dl-sysdep: Likewise.
2773 * sysdeps/generic/dl-cache: Likewise.
2774 * sysdeps/hppa/dl-fptr: Likewise.
2775 * sysdeps/hppa/dl-machine: Likewise.
2776 * sysdeps/cris/dl-machine: Likewise.
2777 * sysdeps/i386/dl-machine: Likewise.
2778 * sysdeps/ia64/dl-machine: Likewise.
2779 * sysdeps/m68k/dl-machine: Likewise.
2780 * sysdeps/mach/hurd/dl-sysdep: Likewise.
2781 * sysdeps/mips/mips64/dl-machine: Likewise.
2782 * sysdeps/mips/dl-machine: Likewise.
2783 * sysdeps/powerpc/elf/libc-start: Likewise.
2784 * sysdeps/powerpc/dl-machine: Likewise.
2785 * sysdeps/powerpc/dl-start: Likewise.
2786 * sysdeps/sparc/sparc32/dl-machine: Likewise.
2787 * sysdeps/sparc/sparc64/dl-machine: Likewise.
2788 * sysdeps/sh/dl-machine: Likewise.
2789 * sysdeps/s390/s390-32/dl-machine: Likewise.
2790 * sysdeps/s390/s390-64/dl-machine: Likewise.
2791 * sysdeps/unix/sysv/aix/libc-start: Likewise.
2792 * sysdeps/unix/sysv/aix/start-libc: Likewise.
2793 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2794 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2795 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2796 * sysdeps/x86_64/dl-machine: Likewise.
2798 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2800 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2803 2002-01-31 Andreas Schwab <schwab@suse.de>
2805 * sysdeps/posix/readv.c: Check for ssize_t overflow.
2807 2002-01-31 Andreas Schwab <schwab@suse.de>
2809 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2810 reference to _dl_pagesize.
2812 2002-01-30 Ulrich Drepper <drepper@redhat.com>
2814 * Versions.def [ld]: Add GLIBC_2.3.
2815 * elf/dl-addr.c: Move global variables for SHARED code in struct
2816 _rtld_global. Export this struct, remove all exports for the
2818 * elf/dl-close.c: Likewise.
2819 * elf/dl-conflict.c: Likewise.
2820 * elf/dl-debug.c: Likewise.
2821 * elf/dl-deps.c: Likewise.
2822 * elf/dl-dst.h: Likewise.
2823 * elf/dl-error.c: Likewise.
2824 * elf/dl-fini.c: Likewise.
2825 * elf/dl-init.c: Likewise.
2826 * elf/dl-iteratephdr.c: Likewise.
2827 * elf/dl-libc.c: Likewise.
2828 * elf/dl-load.c: Likewise.
2829 * elf/dl-lookup.c: Likewise.
2830 * elf/dl-minimal.c: Likewise.
2831 * elf/dl-object.c: Likewise.
2832 * elf/dl-open.c: Likewise.
2833 * elf/dl-profile.c: Likewise.
2834 * elf/dl-profstub.c: Likewise.
2835 * elf/dl-reloc.c: Likewise.
2836 * elf/dl-runtime.c: Likewise.
2837 * elf/dl-support.c: Likewise.
2838 * elf/dl-sym.c: Likewise.
2839 * elf/dl-version.c: Likewise.
2840 * elf/do-lookup.h: Likewise.
2841 * elf/do-rel.h: Likewise.
2842 * elf/dynamic-link.h: Likewise.
2843 * elf/rtld.c: Likewise.
2844 * sysdeps/generic/dl-cache.c: Likewise.
2845 * sysdeps/generic/dl-sysdep.c: Likewise.
2846 * sysdeps/generic/ldsodefs.h: Likewise.
2847 * sysdeps/generic/libc-start.c: Likewise.
2848 * sysdeps/i386/dl-machine.h: Likewise.
2849 * sysdeps/ia64/dl-fptr.c: Likewise.
2850 * sysdeps/ia64/dl-machine.h: Likewise.
2851 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2852 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2853 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2854 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2855 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2856 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2857 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2858 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2860 2002-01-29 Ulrich Drepper <drepper@redhat.com>
2862 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
2864 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
2866 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
2868 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
2870 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
2872 2002-01-29 Ben Collins <bcollins@debian.org>
2874 * string/bits/string2.h (__mempcpy): Protect size arg for
2875 addition when using __builtin_memcpy.
2877 2002-01-29 Ulrich Drepper <drepper@redhat.com>
2879 * stdlib/Makefile (tests): Add tst-qsort.
2880 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
2882 * manual/signal.texi (Process Signal Mask): Document that
2883 pthread_sigmask, not sigprocmask, must be used in MT programs.
2884 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
2886 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
2888 * misc/Makefile (tests): Add tst-hsearch.
2889 * misc/tst-hsearch.c: New file.
2891 2002-01-18 Wolfram Gloger <wg@malloc.de>
2893 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
2894 * malloc/malloc.h: Likewise.
2895 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
2896 * malloc/arena.c: New file.
2897 * malloc/hooks.c: New file.
2898 * malloc/tst-mallocstate.c: New file.
2899 * malloc/Makefile: Add new testcase tst-mallocstate.
2900 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
2902 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2904 * stdlib/msort.c: Remove last patch. The optimization violates the
2905 same rule which qsort.c had problems with.
2907 2002-01-27 Paul Eggert <eggert@twinsun.com>
2909 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
2910 to a pivot element that lies outside the array to be sorted, as
2911 ISO C99 requires that the comparison function be called only with
2912 addresses of array elements [PR libc/2880].
2914 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2916 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
2917 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
2919 * timezone/asia: Update from tzdata2002b.
2920 * timezone/australasia: Likewise.
2921 * timezone/backward: Likewise.
2922 * timezone/europe: Likewise.
2923 * timezone/leapseconds: Likewise.
2924 * timezone/iso3166.tab: Likewise.
2925 * timezone/zone.tab: Likewise.
2927 2002-01-23 Richard Henderson <rth@redhat.com>
2929 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
2931 2002-01-28 Ulrich Drepper <drepper@redhat.com>
2933 * string/strxfrm.c: Allocate one more byte for rulearr and clear
2934 this element [PR libc/2855].
2936 * string/strcoll.c: Handle zero-length arguments specially
2939 2002-01-23 Jakub Jelinek <jakub@redhat.com>
2941 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
2942 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
2943 short lengths and constant src.
2944 (strcpy): Don't optimize for gcc 3.0+.
2945 (__stpcpy): For gcc 3.0+, don't use
2946 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
2947 for short string literal src.
2949 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2951 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2954 2001-01-22 Paul Eggert <eggert@twinsun.com>
2956 * manual/llio.texi (Linked Channels, Cleaning Streams):
2957 Make it clearer that a just-opened input stream might need cleaning.
2959 2002-01-21 H.J. Lu <hjl@gnu.org>
2961 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2962 Don't use label at end of compound statement.
2964 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
2966 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
2967 Remove test for negative integer arg; sin_pi does it correctly.
2969 2002-01-20 Ulrich Drepper <drepper@redhat.com>
2971 * nscd/Makefile (distribute): Filter out xmalloc.c.
2973 2002-01-19 Ulrich Drepper <drepper@redhat.com>
2975 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
2976 Set offset if read end wasn't the buffer end.
2977 (_IO_file_seekoff_mmap): New function.
2978 (_IO_file_xsgetn_mmap): New function.
2979 (_IO_file_jumps_mmap): Use the two new functions.
2980 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
2982 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
2983 _IO_file_underflow_mmap.
2984 * libio/iofopen.c: Don't position file descriptor at end of file.
2985 * libio/tst-widetext.c: Improve error messages.
2986 * stdio-common/tst-rndseek.c: Likewise.
2988 2002-01-18 Ulrich Drepper <drepper@redhat.com>
2990 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
2991 end of enum for !_GNU_SOURCE.
2992 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
2993 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
2994 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
2995 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
2996 values unless _GNU_SOURCE.
2998 * iconvdata/tcvn5712-1.c: Minor cleanups.
3000 2002-01-18 Andreas Schwab <schwab@suse.de>
3002 * sysdeps/unix/sysv/linux/configure.in
3003 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
3005 2002-01-16 Roger Sayle <roger@eyesopen.com>
3007 * stdlib/msort.c (msort_with_tmp): Replace implementation with
3008 more efficient "Towers of Hanoi" mergesort.
3009 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
3010 for generic, sizeof(int) and sizeof(long) variants respectively.
3012 2002-01-17 Ulrich Drepper <drepper@redhat.com>
3014 * manual/syslog.texi (openlog): Describe possible problems with
3016 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3018 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
3019 * nscd/connections.c (begin_drop_privileges): New function.
3020 (finish_drop_privileges): New function.
3021 (nscd_init): Call the new functions which also install all groups
3022 for the server user.
3023 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3024 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3026 2002-01-17 H.J. Lu <hjl@gnu.org>
3028 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3031 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3033 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3034 instructions for pointer operations.
3035 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3037 2002-01-17 Andreas Jaeger <aj@suse.de>
3039 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3040 __uint128_t build-in.
3042 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3043 PowerPC, sync with 2.2 branch.
3045 2002-01-16 Ulrich Drepper <drepper@redhat.com>
3047 * posix/getconf.c: Update copyright year.
3048 * nss/getent.c: Likewise.
3049 * nscd/nscd_nischeck.c: Likewise.
3050 * iconv/iconvconfig.c: Likewise.
3051 * iconv/iconv_prog.c: Likewise.
3052 * elf/ldconfig.c: Likewise.
3053 * catgets/gencat.c: Likewise.
3054 * csu/version.c: Likewise.
3055 * elf/ldd.bash.in: Likewise.
3056 * elf/sprof.c (print_version): Likewise.
3057 * locale/programs/locale.c: Likewise.
3058 * locale/programs/localedef.c: Likewise.
3059 * nscd/nscd.c (print_version): Likewise.
3060 * debug/xtrace.sh: Likewise.
3061 * malloc/memusage.sh: Likewise.
3062 * malloc/mtrace.pl: Likewise.
3064 2002-01-16 Andreas Schwab <schwab@suse.de>
3066 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
3067 reliably remove "-ia64" from rtld name.
3069 2002-01-16 Ulrich Drepper <drepper@redhat.com>
3071 * iconvdata/gb18030.c: Bug fixes and support for more characters.
3072 Patch by Yu Shao <yshao@redhat.com>.
3074 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
3076 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
3077 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
3078 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
3080 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
3082 * sysdeps/s390/fpu/libm-test-ulps: Update.
3084 2002-01-11 Ulrich Drepper <drepper@redhat.com>
3086 * elf/elf.h: Update x86 relocations.
3088 2002-01-10 Ulrich Drepper <drepper@redhat.com>
3090 * locale/programs/charmap.c (new_width): Check whether byte
3091 sequences for both ends of range have the same length.
3093 2002-01-09 Jakub Jelinek <jakub@redhat.com>
3095 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
3097 2002-01-09 Jakub Jelinek <jakub@redhat.com>
3099 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
3101 (__full_ieee754_sqrt): Add __attribute_used__.
3103 2002-01-10 Ulrich Drepper <drepper@redhat.com>
3105 * sysdeps/generic/group_member.c (__group_member): Also check
3106 groups[0] [PR libc/2781].
3108 2002-01-08 Ulrich Drepper <drepper@redhat.com>
3110 * Makefile (distribute): Add scripts/cpp.
3111 * elf/Makefile (distribute): Add reldep6mod[01234].c,
3112 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
3113 unwind-dw2-fde.h, and dwarf2.h.
3114 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
3115 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
3116 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
3117 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
3119 2002-01-07 Roland McGrath <roland@frob.com>
3121 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
3122 volatile on type of ARGC so the compiler doesn't get clever.
3124 2002-01-07 Andreas Jaeger <aj@suse.de>
3126 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
3127 * sysdeps/i386/bits/byteswap.h: Likewise.
3128 * sysdeps/ia64/bits/byteswap.h: Likewise.
3129 * sysdeps/m68k/bits/byteswap.h: Likewise.
3130 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
3131 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
3133 2002-01-02 Bruno Haible <bruno@clisp.org>
3135 * intl/plural.y: Fix %expect count.
3137 2002-01-03 Jakub Jelinek <jakub@redhat.com>
3139 * elf/Makefile (routines, shared-only-routines): Add
3140 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
3141 * elf/elf.h (PT_GNU_EH_FRAME): Define.
3142 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
3143 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
3144 Optimize if .eh_frame section contains no FDEs.
3145 (__register_frame, __deregister_frame_info_bases,
3146 __deregister_frame): Likewise.
3147 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
3148 DW_CFA_restore handling.
3150 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
3152 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
3154 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
3155 for x < 0.25 and restore original range reduction method.
3156 (__ieee754_lgammal_r): Make sure signgam is set before returning.
3158 2002-01-07 Ulrich Drepper <drepper@redhat.com>
3160 * libio/fileops.c (_IO_file_underflow_mmap): New function.
3161 (_IO_file_close_mmap): New function.
3162 (_IO_file_jumps_mmap): New variable.
3163 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
3164 trying to convert rest of byte buffer.
3165 (_IO_wfile_underflow_mmap): New function.
3166 (_IO_wfile_jumps_mmap): New variable.
3167 * libio/iofopen.c (__fopen_maybe_mmap): New function.
3168 (__fopen_internal): New function. Split out from _IO_new_fopen.
3169 (_IO_new_fopen): Call __fopen_internal.
3170 * libio/iofopen64.c: Just call __fopen_internal.
3171 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
3173 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
3174 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
3175 _IO_file_close_mmap.
3177 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
3178 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
3180 * stdio-common/Makefile (tests): Add tst-rndseek.
3181 * stdio-common/tst-rndseek.c: New file.
3183 2002-01-05 Roland McGrath <roland@frob.com>
3185 * config.h.in (HAVE_MIG_RETCODE): New #undef.
3186 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
3187 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
3188 * sysdeps/mach/hurd/configure: Regenerated.
3190 2002-01-03 Ulrich Drepper <drepper@redhat.com>
3192 * elf/elf.h: Add more TLS definitions.
3194 2002-01-02 Ulrich Drepper <drepper@redhat.com>
3196 * include/features.h (__GLIBC_MINOR__): Bump to 3.
3198 2002-01-02 Roland McGrath <roland@frob.com>
3200 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
3201 __sigisemptyset. Don't use MASK uninitialized.
3203 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
3204 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
3205 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
3206 __sigdelset, __sigaddset, __sigorset.
3208 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
3209 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
3211 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
3212 _hurd_ports is null.
3214 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
3215 for old CMU and new OSF Mach interface flavors.
3216 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
3217 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3219 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
3221 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
3222 Pass extra arguments to task_create for OSF variant.
3223 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3225 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
3226 conditional on [HAVE_AUX_VECTOR].
3228 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
3229 mach_msg_timeout_t as type of final argument.
3231 * hurd/privports.c (__get_privileged_ports):
3232 Change host_priv_t to mach_port_t in argument type.
3233 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
3236 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
3237 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
3238 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
3239 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
3240 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
3241 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
3243 2002-01-01 Roland McGrath <roland@frob.com>
3245 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
3247 2002-01-01 Ulrich Drepper <drepper@redhat.com>
3249 * include/stdlib.h: Define inlines for the _l variants of the strto*
3252 2002-01-01 Roland McGrath <roland@frob.com>
3254 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3256 * mach/Machrules (MIG): Set CPP as well as CC.
3258 2001-12-31 Ulrich Drepper <drepper@redhat.com>
3260 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3261 locale to parse /proc/loadavg [PR libc/2760].
3263 2001-12-31 Jakub Jelinek <jakub@redhat.com>
3265 * elf/dl-conflict.c: Include sys/param.h.
3266 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3267 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3269 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3270 literals to avoid warnings.
3272 2001-12-31 Andreas Jaeger <aj@suse.de>
3274 * configure.in: Don't check for gsed since we do not use it anywhere.
3276 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3278 * io/fts.c: Update from BSD to fix memory leaks.
3280 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3282 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3283 * elf/chroot_canon.c: Likewise.
3284 * elf/dl-object.c: Likewise.
3285 * iconv/iconv_charmap.c: Likewise.
3286 * iconv/iconv_prog.c: Likewise.
3287 * libio/iogetdelim.c: Likewise.
3288 * locale/lc-time.c: Likewise.
3289 * stdlib/canonicalize.c: Likewise.
3290 * sunrpc/svc.c: Likewise.
3291 * sysdeps/generic/glob.c: Likewise.
3293 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3295 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3296 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3297 remove high order bit from the program counter.
3298 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3300 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3302 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3303 unnecessary code and add missing reloc types.
3304 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3305 case for reloc type R_390_NONE.
3307 2001-12-28 Andreas Jaeger <aj@suse.de>
3309 * io/bug-ftw3.c: Include string.h for prototypes.
3311 * crypt/md5test.c (main): Remove unused variable.
3313 * dlfcn/modstatic.c: Add prototype to avoid warning.
3315 2001-12-26 Roland McGrath <roland@frob.com>
3317 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
3318 check only (SS->pending & MASK) for the signal to return.
3319 From Jeroen Dekkers <jeroen@dekkers.cx>.
3321 2001-12-22 Roland McGrath <roland@frob.com>
3323 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
3324 Use preprocessor #if conditionals instead of `if' to avoid
3325 warnings about divide by zero in dead code.
3327 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
3328 _hurd_port_init, and __hurd_self_sigstate.
3330 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
3332 2001-12-21 Andreas Jaeger <aj@suse.de>
3334 * elf/dblloadmod1.c: Add prototype to avoid warning.
3335 * elf/dblloadmod2.c: Likewise.
3336 * elf/dblloadmod3.c: Likewise.
3337 * elf/reldepmod5.c: Likewise.
3338 * elf/reldepmod6.c: Likewise.
3340 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
3341 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
3342 used on all architectures.
3344 * sunrpc/svc_tcp.c: Add noreturn attribute for
3345 svctcp_rendezvous_abort.
3346 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
3348 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
3351 2001-12-19 Jakub Jelinek <jakub@redhat.com>
3353 * manual/llio.texi (aio_fsync): Fix a typo.
3354 Patch by Tammy Fox <tfox@redhat.com>.
3356 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3358 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
3359 stack bias from child stack pointer before passing it to clone syscall.
3361 2001-12-18 Ulrich Drepper <drepper@redhat.com>
3363 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
3365 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
3366 Reported by Thorsten Kukuk <kukuk@suse.de>.
3368 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
3371 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
3373 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
3375 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
3376 conforming: return EBADF if file descriptor is invalid and EINVAL
3377 if file descriptor is no valid tty.
3378 * login/tst-grantpt.c: New file.
3379 * login/Makefile (tests): Add tst-grantpt.
3381 2001-12-17 Ulrich Drepper <drepper@redhat.com>
3383 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
3384 different than implemented in last patch.
3385 * io/bug-ftw3.c: Adjust test for changed handling of
3386 inaccessibility of toplevel dir.
3388 2001-12-16 Roland McGrath <roland@frob.com>
3390 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
3391 * grp/initgroups.c (internal_getgrouplist): Likewise.
3393 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
3394 `default:' to silence new GCC warning.
3395 Rewrite cast of lvalue to silence new GCC warning.
3397 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
3399 * sysdeps/mach/hurd/spawni.c: New file, by me with a
3400 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
3402 2001-12-14 Ulrich Drepper <drepper@redhat.com>
3404 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
3405 Patch by Stephen R. van den Berg.
3407 * crypt/md5.h: Define md5_uintptr.
3409 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3411 * libio/tst_swprintf.c (main): Add test for string argument with
3413 * stdio-common/Makefile (tests): Add tst-sprintf.
3414 * stdio-common/tst-sprintf.c: New file.
3416 2001-12-13 Andreas Schwab <schwab@suse.de>
3418 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3419 zero precision with wide character string format.
3421 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
3423 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3424 but have a user supplied buffer, return the empty buffer, not NULL.
3426 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3428 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3429 Patch by Eric Sharkey <sharkey@netrics.com>.
3431 * crypt/md5test.c (main): Add test for multiple calls to
3432 __md5_process_bytes to itererate over input string.
3434 2001-12-12 Ulrich Drepper <drepper@redhat.com>
3436 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3437 from __nis_findfastest. Take timeout value from parameter.
3438 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3439 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3440 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
3442 2001-12-12 Andreas Jaeger <aj@suse.de>
3444 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3445 combreloc test so that it works in this case.
3447 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3449 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
3451 * sysdeps/sh/Makefile: New file.
3452 * sysdeps/sh/_mcount.S: New file.
3453 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3454 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3456 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3458 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3459 limitation [PR libc/2564].
3461 2001-12-11 Jakub Jelinek <jakub@redhat.com>
3463 * elf/Makefile (dl-routines): Add conflict.
3464 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3465 (ld.so): Add _begin local symbol.
3466 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3468 * elf/dl-deps.c (_dl_build_local_scope): New.
3469 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3471 * elf/do-rel.h (VALIDX): Define.
3472 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3473 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3475 * elf/dl-conflict.c: New file.
3476 * elf/dl-lookup.c (_dl_debug_bindings): New.
3477 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
3479 (_dl_lookup_symbol_skip): Likewise.
3480 (_dl_lookup_versioned_symbol): Likewise.
3481 (_dl_lookup_versioned_symbol_skip): Likewise.
3482 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3483 define to ElfW(Rel).
3484 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3485 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3487 Don't adjust address dynamic tags if l_addr is 0.
3488 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3489 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3490 (VALIDX, ADDRIDX): Define.
3491 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3492 (dl_main): Print library list for LD_TRACE_PRELINKING.
3493 If prelinking information can be used, skip relocating libraries and
3494 call _dl_resolve_conflicts instead.
3495 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3496 * elf/dl-load.c (_dl_map_object): Don't create fake libs
3497 if LD_TRACE_PRELINKING.
3498 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3500 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3501 (DL_DEBUG_PRELINK): Define.
3502 (_dl_resolve_conflicts): Add prototype.
3504 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3505 .plt for prelinked libraries where prelinking info cannot be used.
3506 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3507 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3508 * sysdeps/arm/bits/link.h: New file.
3509 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3511 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3512 (ELF_MACHINE_PLT_REL): Define.
3513 (elf_machine_rela, elf_machine_rela_relative): New.
3514 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3515 of adjusting it if prelinked and prelinking cannot be used.
3516 * sysdeps/i386/bits/link.h: New file.
3517 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3519 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3520 (ELF_MACHINE_PLT_REL): Define.
3521 (elf_machine_rela, elf_machine_rela_relative): New.
3522 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3523 of adjusting it if prelinked and prelinking cannot be used.
3524 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3525 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
3526 to find out map for R_PPC_JMP_SLOT relocs.
3527 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3528 (OPCODE_BA): Define.
3529 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3530 libraries where prelinking info cannot be used.
3531 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3532 (elf_machine_fixup_plt): Call sparc_fixup_plt.
3533 (elf_machine_rela): Set value to 0 if relocating conflicts.
3534 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3535 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3536 (sparc64_fixup_plt): Fix a typo.
3537 (elf_machine_rela): Set value to 0 if relocating conflicts.
3538 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3539 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3540 libraries where prelinking info cannot be used.
3541 * sysdeps/sh/bits/link.h: New file.
3542 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3544 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3545 of adjusting it if prelinked and prelinking cannot be used.
3546 * sysdeps/s390/s390-32/bits/link.h: New file.
3547 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3548 Save original content of .got[1].
3549 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3550 of adjusting it if prelinked and prelinking cannot be used.
3551 * sysdeps/s390/s390-64/bits/link.h: New file.
3552 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3553 Save original content of .got[1].
3554 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3555 of adjusting it if prelinked and prelinking cannot be used.
3556 * sysdeps/x86_64/bits/link.h: New file.
3557 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3558 Save original content of .got[1].
3559 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3560 of adjusting it if prelinked and prelinking cannot be used.
3562 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3564 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3565 where appropriate instead of numbers. Little optimizations.
3567 2001-12-10 Roland McGrath <roland@frob.com>
3569 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3572 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3573 set to GLIBC_2.2.5, not GLIBC_2.2.4.
3575 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3576 Fix conditionals so this is set by default for stdio and not for libio.
3577 * sysdeps/mach/hurd/configure: Regenerated.
3579 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
3581 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3583 2001-12-10 Ulrich Drepper <drepper@redhat.com>
3585 * io/Makefile (tests): Add bug-ftw3.
3586 * io/bug-ftw3.c: New file.
3588 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3589 matches and GLOB_NOCHECK is set.
3590 * posix/globtest.sh: Correct expected result for NOCHECK test.
3592 * po/ca.po: Update from translation team.
3594 2001-12-09 Ulrich Drepper <drepper@redhat.com>
3596 Implement transliteration of characters in strings of the locale
3598 * locale/programs/linereader.c: Adjust for additional parameter to
3600 (get_string): If character <Uxxxx> is not found try to transliterate
3602 * locale/programs/ld-ctype.c: Adjust for additional parameter to
3603 lr_token. Add const to charmap parameter of all functions.
3604 (find_translit, find_translit2): New functions.
3605 * locale/programs/charmap.c: Adjust for additional parameter to
3607 * locale/programs/repertoire.c: Likewise.
3608 * locale/programs/linereader.h: Likewise.
3609 * locale/programs/ld-address.c: Likewise. Add const to charmap
3610 parameter of all functions.
3611 * locale/programs/ld-collate.c: Likewise.
3612 * locale/programs/ld-identification.c: Likewise.
3613 * locale/programs/ld-measurement.c: Likewise.
3614 * locale/programs/ld-messages.c: Likewise.
3615 * locale/programs/ld-monetary.c: Likewise.
3616 * locale/programs/ld-name.c: Likewise.
3617 * locale/programs/ld-numeric.c: Likewise.
3618 * locale/programs/ld-paper.c: Likewise.
3619 * locale/programs/ld-paper.c: Likewise.
3620 * locale/programs/ld-telephone.c: Likewise.
3621 * locale/programs/ld-time.c: Likewise.
3622 * locale/programs/locfile.c: Likewise.
3623 * locale/programs/localedef.c: Likewise.
3624 * locale/programs/localedef.h: Likewise.
3625 * locale/programs/locfile.h: Likewise. Add declaration for
3627 * locale/programs/simple-hash.c: Add const to first parameter of
3628 find_entry, iterate_table, and lookup.
3629 * locale/programs/simple-hash.h: Likewise.
3630 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
3632 * include/locale.h: Define __LC_LAST.
3633 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3635 2001-12-07 Geoff Keating <geoffk@redhat.com>
3637 * sysdeps/powerpc/Dist: Update for recent FP changes.
3638 * sysdeps/powerpc/fpu/Dist: Likewise.
3640 2001-12-07 Andreas Schwab <schwab@suse.de>
3642 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3644 2001-12-06 Geoff Keating <geoffk@redhat.com>
3646 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3647 save/restore functions here.
3648 (libm-support): Don't define these functions here.
3649 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3651 * sysdeps/powerpc/fe_nomask.c: Move to...
3652 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3653 * sysdeps/powerpc/fprrest.S: Move to...
3654 * sysdeps/powerpc/fpu/fprrest.S: ... here.
3655 * sysdeps/powerpc/fprsave.S: Move to...
3656 * sysdeps/powerpc/fpu/fprsave.S: ... here.
3658 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3660 * sysdeps/unix/sysv/linux/opensock.c: New file.
3662 2001-12-06 Geoff Keating <geoffk@redhat.com>
3664 * config.make.in (with-fp): Define from configure.
3665 * configure.in: Substitute with_fp.
3666 * configure: Regenerate.
3667 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3668 specified, and don't change FPU environment.
3670 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3672 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3673 * assert/assert.c: Check result of __asprintf call and don't use
3674 string if it failed.
3675 * assert/assert-perr.c: Likewise.
3676 * inet/rcmd.c: Likewise.
3677 * locale/programs/localedef.c (main): Check result of
3678 construct_output_path and exit if it failed.
3679 (construct_output_path): Check result of asprintf and mkdir calls and
3680 fail if they failed.
3681 * posix/getopt.c: Check result of __asprintf calls and fail if
3683 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3685 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3687 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3689 * sysdeps/generic/strncase.c: Likewise.
3690 * string/tester.c: Add tests for strcasecmp and strncasecmp.
3692 2001-12-05 Geoff Keating <geoffk@redhat.com>
3694 * scripts/cpp: Test the exit status from 'type', not 'awk'.
3696 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3697 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3698 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3699 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3700 * sysdeps/powerpc/fclrexcpt.c: Move to...
3701 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3702 * sysdeps/powerpc/fpu_control.h: Move to...
3703 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3705 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3707 * iconvdata/ibm1129.h: Remove duplicate mappings.
3708 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
3709 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3710 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3712 * timezone/zic.c: Fix handling of turnaround times.
3713 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3715 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
3717 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3720 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3722 * posix/regex.c: For use outside glibc defined bounded pointer
3723 macros here. Patch by Jim Meyering <jim@meyering.net>.
3725 * iconvdata/Makefile (modules): Add TCVN5712-1.
3726 * iconvdata/TESTS: Add TCVN5712-1.
3727 * iconvdata/gconv-modules: Likewise.
3728 * iconvdata/tcvn5712-1.c: New file.
3729 * iconvdata/testdata/TCVN-5712: New file.
3730 * iconvdata/testdata/TCVN-5712..UTF8: New file.
3732 2001-12-04 Ulrich Drepper <drepper@redhat.com>
3734 * iconvdata/cp1258.c: Optimize conversion from UCS4.
3736 2001-12-02 Roland McGrath <roland@frob.com>
3738 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3740 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3741 Reported by Jeff Bailey <jbailey@nisa.net>.
3743 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3744 Reported by Jeff Bailey <jbailey@nisa.net>.
3746 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3747 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3748 Reported by Jeff Bailey <jbailey@nisa.net>.
3750 2001-12-01 Roland McGrath <roland@frob.com>
3752 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3753 missing backslash in test arguments.
3754 * sysdeps/mach/hurd/configure: Regenerated.
3756 2001-11-26 Roland McGrath <roland@frob.com>
3758 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3759 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3761 2001-11-30 Ulrich Drepper <drepper@redhat.com>
3763 * iconvdata/Makefile (modules): Add ARMSCII-8.
3764 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3765 * iconvdata/armscii-8.c: New file.
3767 2001-11-29 Jakub Jelinek <jakub@redhat.com>
3769 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3770 don't match, fix {{a,b},c} globbing, clean up.
3771 Patch by Flavio Veloso <flaviovs@magnux.com>.
3772 * posix/globtest.sh: Add new tests.
3774 2001-11-29 Andreas Jaeger <aj@suse.de>
3776 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3777 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3779 * sysdeps/generic/abort.c: Include libioP.h for
3780 _IO_flush_all_lockp prototype.
3782 2001-11-29 Ulrich Drepper <drepper@redhat.com>
3784 * posix/regex.h: Define __restrict_arr correctly.
3786 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3788 * iconvdata/ibm1163.c: New file.
3789 * iconvdata/ibm1163.h: New file.
3790 * iconvdata/ibm1164.c: New file.
3791 * iconvdata/ibm1164.h: New file.
3792 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3793 * iconvdata/Makefile: Likewise.
3794 * iconvdata/testdata/IBM1163: New file.
3795 * iconvdata/testdata/IBM1163..UTF8: New file.
3796 * iconvdata/testdata/IBM1164: New file.
3797 * iconvdata/testdata/IBM1164..UTF8: New file.
3798 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3800 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
3801 * iconvdata/ibm1124.h: Likewise.
3802 * iconvdata/ibm1132.h: Likewise.
3803 * iconvdata/ibm1133.h: Likewise.
3804 * iconvdata/ibm1160.h: Likewise.
3805 * iconvdata/ibm1161.h: Likewise.
3806 * iconvdata/ibm1162.h: Likewise.
3807 * iconvdata/ibm856.h: Likewise.
3808 * iconvdata/ibm922.h: Likewise.
3809 * iconvdata/ibm930.h: Likewise.
3810 * iconvdata/ibm932.h: Likewise.
3811 * iconvdata/ibm933.h: Likewise.
3812 * iconvdata/ibm935.h: Likewise.
3813 * iconvdata/ibm937.h: Likewise.
3814 * iconvdata/ibm939.h: Likewise.
3815 * iconvdata/ibm943.h: Likewise.
3816 * iconvdata/ibm930.c: Pretty printing.
3817 * iconvdata/ibm937.c: Avoid access accross array boundary.
3819 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3820 the current locale's codeset.
3821 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3823 * iconv/iconv_prog.c: Pass empty strings as default value for to-
3824 and from-charset. Don't determine locale's charset here.
3826 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
3827 as the old _IO_flush_all but lock only if parameter is nonzero.
3828 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3829 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3830 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3831 if libio is used [PR libc/2575].
3833 2001-11-28 Jakub Jelinek <jakub@redhat.com>
3835 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3836 __signbitl): Only define for ISO C99.
3838 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3840 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3841 herrnop to NETDB_INTERNAL if we run out of buffer space.
3843 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3845 * nss/nss_files/files-XXX.c (internal_getent): Correct input
3846 overflow test for platforms with signed char.
3847 Reported by Andrew Haley <aph@cambridge.redhat.com>.
3849 2001-11-28 Bruno Haible <bruno@clisp.org>
3851 * locale/programs/simple-hash.c (lookup_2): Remove function.
3852 (insert_entry_2): Call lookup instead of lookup_2.
3854 2001-03-04 Bruno Haible <bruno@clisp.org>
3856 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3858 2001-10-31 Bruno Haible <bruno@clisp.org>
3860 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
3862 2001-03-21 Bruno Haible <bruno@clisp.org>
3864 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
3865 chokes on empty macro arguments.
3866 * intl/plural.y: Add #pragma for alloca on AIX 3.
3868 2001-11-27 Ulrich Drepper <drepper@redhat.com>
3870 * intl/dcigettext.c (guess_category_value): Only implement for
3871 glibc. Otherwise rely on function _nl_locale_name which isn't
3872 present in the glibc sources.
3874 2001-09-24 Bruno Haible <bruno@clisp.org>
3876 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
3877 transliteration when building on a glibc system but outside glibc.
3879 2001-09-22 Bruno Haible <bruno@clisp.org>
3881 * intl/plural-eval.c: New file, extracted from dcigettext.c.
3882 * intl/dcigettext.c (plural_eval): Remove function, moved to
3884 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
3885 Include plural-eval.c.
3887 2001-09-22 Bruno Haible <bruno@clisp.org>
3889 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
3890 don't start with a digit; nplurals must be positive.
3892 2001-09-02 Bruno Haible <bruno@clisp.org>
3894 * intl/plural-exp.h: New file, extracted from gettextP.h.
3895 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
3896 * intl/gettextP.h (struct expression, struct parse_args,
3897 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
3898 * intl/loadmsgcat.c: Include plural-exp.h.
3899 (PLURAL_PARSE): Move macro to plural-exp.h.
3900 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
3902 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
3903 EXTRACT_PLURAL_EXPRESSION.
3904 (_nl_unload_domain): Update.
3905 * intl/dcigettext.c: Include plural-exp.h.
3906 * intl/plural.y: Include plural-exp.h, not gettextP.h.
3907 (FREE_EXPRESSION): Move macro to plural-exp.h.
3908 * intl/Makefile (routines): Add plural-exp.
3909 (distribute): Add plural-exp.h.
3911 2001-07-28 Bruno Haible <bruno@clisp.org>
3913 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
3914 isdigit, tolower argument to 'unsigned char'.
3915 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
3917 * intl/localealias.c (read_alias_file): Cast isspace argument to
3920 2001-10-20 Bruno Haible <bruno@clisp.org>
3922 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
3924 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
3925 with the variable 'index' in plural_lookup.
3926 * intl/l10nflist.c (strchr): Likewise.
3927 * intl/localealias.c (strchr): Likewise.
3929 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
3930 * intl/bindtextdom.c: Likewise.
3931 * intl/dcigettext.c: Likewise.
3932 * intl/dgettext.c: Likewise.
3933 * intl/dngettext.c: Likewise.
3934 * intl/explodename.c: Likewise.
3935 * intl/finddomain.c: Likewise.
3936 * intl/gettext.c: Likewise.
3937 * intl/l10nflist.c: Likewise.
3938 * intl/loadmsgcat.c: Likewise.
3939 * intl/localealias.c: Likewise.
3940 * intl/ngettext.c: Likewise.
3941 * intl/textdomain.c: Likewise.
3942 * intl/gettext.h: Assume <limits.h> exists.
3944 2001-11-27 Ulrich Drepper <drepper@redhat.com>
3946 * stdio-common/Makefile (tests): Add scanf11.
3947 * stdio-common/scanf11.c: New file.
3949 2001-11-26 Ulrich Drepper <drepper@redhat.com>
3951 * version.h (RELEASE): Define as development.
3952 (VERSION): Set to 2.2.90.
3954 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3956 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
3957 * nis/nss_nis/nis-grp.c: Likewise.
3958 * nis/nss_nisplus/nisplus-grp.c: Likewise.
3960 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
3961 * nis/nss_nis/nis-pwd.c: Likewise.
3962 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
3964 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
3965 * nis/nss_nisplus/nisplus-parser.c: Likewise.
3966 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3968 * nscd/grpcache.c: Use strtoul instead of atol.
3969 * nscd/pwdcache.c: Likewise.
3970 * nss/getent.c: Likewise.
3972 2001-11-27 Paul Eggert <eggert@twinsun.com>
3974 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3975 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3977 2001-11-19 Bruno Haible <bruno@clisp.org>
3979 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
3981 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
3982 improves the quality of the hash function, especially for short
3985 2001-11-26 Ulrich Drepper <drepper@redhat.com>
3987 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
3988 are found call conv_error and not input_error [PR libc/2669].
3990 * math/bits/mathcalls.h: Mark ceil and floor as const.
3991 Reported by David Mosberger.
3993 2001-11-21 Jim Meyering <meyering@lucent.com>
3995 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
3996 Define to be __-prefixed.
3997 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
3999 2001-11-26 Andreas Jaeger <aj@suse.de>
4001 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
4004 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
4006 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
4009 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
4010 unused variables. Fix threshold for returning 1.0.
4012 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
4015 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4016 remove unused variables.
4018 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4020 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4021 include local math header files.
4023 2001-11-22 Andreas Jaeger <aj@suse.de>
4025 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4028 2001-11-21 Andreas Jaeger <aj@suse.de>
4030 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4032 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4035 2001-11-15 Andreas Jaeger <aj@suse.de>
4037 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4038 compilers that support it.
4040 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4041 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4042 * stdlib/stdlib.h: Likewise.
4044 2001-11-17 Ulrich Drepper <drepper@redhat.com>
4046 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4047 statement with gotos.
4048 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4050 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
4052 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
4054 2001-11-15 Ulrich Drepper <drepper@redhat.com>
4056 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
4058 2001-10-02 Jakub Jelinek <jakub@redhat.com>
4059 H.J. Lu <hjl@gnu.org>
4061 * Versions.def (libc): Add GCC_3.0.
4062 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
4063 if gcc supports this flag.
4064 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
4065 (gcc3): Allow glibc to be compiled with gcc 3.x.
4066 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
4067 * config.make.in (static-libgcc, unwind-find-fde): Add.
4068 * Makerules (build-shlib-helper, build-module-helper): Use it.
4069 * scripts/versions.awk: Make sure GLIBC_ versions come first.
4070 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
4072 (_fini): Call __deregister_frame_info_bases if
4073 __register_frame_info_bases was used to register.
4074 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
4076 (__register_frame_info_bases, __register_frame_info_table_bases,
4077 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
4078 * elf/Makefile (routines): Add unwind-dw2-fde.
4079 (shared-only-routines): Add unwind-dw2-fde.
4080 * sysdeps/alpha/gccframe.h: New file.
4081 * sysdeps/arm/gccframe.h: New file.
4082 * sysdeps/generic/framestate.c: New file.
4083 * sysdeps/generic/dwarf2.h: New file.
4084 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
4085 * sysdeps/generic/unwind-dw2-fde.c: New file.
4086 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
4087 * sysdeps/generic/unwind-dw2-fde.h: New file.
4088 * sysdeps/generic/unwind-dw2.c: New file.
4089 * sysdeps/generic/unwind-pe.h: New file.
4090 * sysdeps/generic/unwind.h: New file.
4091 * sysdeps/hppa/gccframe.h: New file.
4092 * sysdeps/i386/gccframe.h: New file.
4093 * sysdeps/m68k/gccframe.h: New file.
4094 * sysdeps/mips/gccframe.h: New file.
4095 * sysdeps/powerpc/gccframe.h: New file.
4096 * sysdeps/s390/gccframe.h: New file.
4097 * sysdeps/sh/gccframe.h: New file.
4098 * sysdeps/sparc/gccframe.h: New file.
4099 * sysdeps/vax/gccframe.h: New file.
4100 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4101 Set on all architectures except ia64.
4102 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
4104 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
4105 __deregister_frame_info): Move to elf/Versions.
4106 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
4107 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4108 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
4109 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
4110 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
4111 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4112 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4113 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4114 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4115 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
4116 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4117 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4118 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4119 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4120 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4121 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4122 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4123 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4125 2001-11-15 Jeff Law <law@redhat.com>
4127 * posix/regex.c (uintptr_t): Do not provide a definition if the
4128 system provided one.
4130 2001-11-13 Roland McGrath <roland@frob.com>
4132 * stdio-common/tmpfile.c: Moved to ...
4133 * sysdeps/generic/tmpfile.c: ... here.
4134 * sysdeps/mach/hurd/tmpfile.c: New file.
4136 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
4137 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
4138 (fopenport): Define as weak alias.
4140 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
4141 * libio/libioP.h: ... to here.
4143 2001-11-12 Ulrich Drepper <drepper@redhat.com>
4145 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4146 program header twice. Construct list with the needed information.
4148 2001-11-10 Ulrich Drepper <drepper@redhat.com>
4150 * po/ca.po: Update from translation team.
4152 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
4153 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
4154 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
4155 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4157 2001-11-10 Andreas Jaeger <aj@suse.de>
4159 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
4160 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4161 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4163 2001-11-09 Ulrich Drepper <drepper@redhat.com>
4165 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
4167 * elf/dl-load.c (is_dst): New function.
4168 (_dl_dst_count): Use is_dst to check for DST variable.
4169 (_dl_dst_substitute): Likewise.
4171 2001-11-09 Roland McGrath <roland@frob.com>
4173 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
4174 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
4175 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
4176 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
4177 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
4178 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
4179 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
4180 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
4181 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
4182 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
4183 * sysdeps/mach/hurd/powerpc/Dist: New file.
4185 * hurd/privports.c (__get_privileged_ports):
4186 Only contact the proc server if necessary for this call.
4187 Suggested by Neal H Walfield <neal@cs.uml.edu>.
4188 Check error return for mach_port_mod_refs.
4190 2001-11-09 Andreas Schwab <schwab@suse.de>
4192 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
4194 2001-11-09 Ulrich Drepper <drepper@redhat.com>
4196 * elf/dl-load.c (lose): Remove some unnecessary code. The new
4197 object is always the last in the list.
4198 (_dl_map_object_from_fd): Delete code to remove from object list
4199 when DF_1_NOOPEN is seen. This is done in lose.
4201 2001-11-08 Ulrich Drepper <drepper@redhat.com>
4203 * elf/dl-object.c (_dl_new_object): Various small optimizations.
4205 2001-11-07 Ulrich Drepper <drepper@redhat.com>
4207 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
4208 HWCAP_CHECK macro code.
4210 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
4211 Now returns MAP_FAILED on error.
4212 * elf/rtld.c: Adjust caller.
4213 * sysdeps/generic/dl-cache.c: Likewise.
4214 * sysdeps/generic/ldsodefs.h: Adjust description.
4216 * elf/dl-version.c (match_symbol): Optimize error handling for size.
4217 (_dl_check_map_versions): Likewise.
4219 2001-11-06 Ulrich Drepper <drepper@redhat.com>
4221 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4222 _dl_signal_error directly, always use lose. Set fd to -1 after
4224 (lose): Don't call close if fd == -1.
4226 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
4228 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
4229 Also fix typo @code {mbsinit} to @code{mbsinit}.
4231 2001-11-06 Ulrich Drepper <drepper@redhat.com>
4233 * elf/dl-profile.c: Replace state variable with simple flag named
4234 running. Remove commented-out code.
4236 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
4237 (_dl_init_paths): Likewise.
4238 (_dl_map_object_from_fd): Likewise.
4239 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4241 2001-11-06 Roland McGrath <roland@frob.com>
4243 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
4244 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
4246 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
4247 sysdeps/powerpc/elf/sysdep.h.
4248 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
4250 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4252 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
4254 (process_envvars): Some more optimizations.
4255 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4257 * elf/elf.h: Add dynamic tag definitions for prelinking.
4259 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4260 Rewrite code to remove environment varables for SUID binaries.
4261 Small optimization in LD_PROFILE handling.
4262 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4264 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4266 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4268 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4269 strings. Change type of second parameter.
4270 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4273 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4275 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
4277 * manual/string.texi: Fix typos.
4278 * manual/examples/argp-ex2.c: Likewise.
4280 2001-11-05 Roland McGrath <roland@frob.com>
4282 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4283 the more-specific unix/sysv/linux/powerpc file and breaks everything.
4284 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4285 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4286 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4287 here, put under [__ELF__].
4289 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4291 * manual/charset.texi: Extensive editing work.
4292 * manual/nss.texi: Likewise.
4293 Changes by Dennis Grace <dgrace@us.ibm.com>.
4295 2001-11-04 Roland McGrath <roland@frob.com>
4297 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4298 parameter to dir_mkfile.
4300 2001-11-02 Jakub Jelinek <jakub@redhat.com>
4302 * string/bits/string2.h (__strndup): If n is smaller than len, set
4304 * string/tester.c (test_strndup): New function.
4307 2001-11-01 Ulrich Drepper <drepper@redhat.com>
4309 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
4311 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4312 * scripts/cpp: New file.
4314 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
4315 for rtld_search_dirs content. Minor optimizations.
4317 2001-10-31 Ulrich Drepper <drepper@redhat.com>
4319 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
4320 avoiding unnecessary duplication.
4322 2001-10-31 Jakub Jelinek <jakub@redhat.com>
4324 * elf/dl-load.c (_dl_map_object): If library was found using
4325 LD_LIBRARY_PATH, don't try RUNPATH list.
4327 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
4329 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
4330 Correct second argument of register_dump call.
4331 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
4334 2001-10-31 Ulrich Drepper <drepper@redhat.com>
4336 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
4338 * iconvdata/TESTS: Likewise.
4339 * iconvdata/gconv-modules: Likewise.
4340 * iconvdata/ibm1132.c: New file.
4341 * iconvdata/ibm1132.h: New file.
4342 * iconvdata/ibm1133.c: New file.
4343 * iconvdata/ibm1133.h: New file.
4344 * iconvdata/ibm1162.c: New file.
4345 * iconvdata/ibm1162.h: New file.
4346 * iconvdata/testdata/IBM1132: New file.
4347 * iconvdata/testdata/IBM1132..UTF8: New file.
4348 * iconvdata/testdata/IBM1133: New file.
4349 * iconvdata/testdata/IBM1133..UTF8: New file.
4350 * iconvdata/testdata/IBM1162: New file.
4351 * iconvdata/testdata/IBM1162..UTF8: New file.
4352 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
4354 * string/string.h: Fix typo in comment.
4355 * wcsmbs/wchar.h: Likewise.
4357 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
4359 * manual/getopt.texi (getopt_long, getopt_long_only): Include
4360 const in type of longopts parameter.
4362 2001-10-29 Andreas Jaeger <aj@suse.de>
4364 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
4366 2001-10-29 Kevin Ryde <user42@zip.com.au>
4368 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
4369 output, clarify `#' behaviour on 0.
4370 (Floating-Point Conversions): Clarify that %g only uses %e when
4371 the exponent would be greater than 1.
4373 2001-10-28 Roland McGrath <roland@frob.com>
4375 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
4376 * sysdeps/mach/powerpc/machine-sp.h: New file.
4377 * sysdeps/mach/powerpc/sysdep.h: New file.
4378 * sysdeps/mach/powerpc/thread_state.h: New file.
4380 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
4381 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
4382 expect to need the same thing on every platform.
4384 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
4385 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
4387 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
4388 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
4389 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
4390 Move all these assembly-related definitions to ...
4391 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
4393 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
4394 by Peter Bruin <pjbruin@dds.nl>.
4396 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
4397 packing results for a `poll' call.
4399 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4401 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
4403 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
4406 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4408 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
4410 2001-10-24 H.J. Lu <hjl@gnu.org>
4412 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4413 Use __BEGIN_DECLS/__END_DECLS around prototypes.
4414 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4416 2001-10-21 Jim Meyering <meyering@lucent.com>
4418 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
4419 this code would end up calling gettext even in packages built
4421 * posix/getopt.c (_): Likewise.
4422 * posix/regex.c (_): Likewise.
4424 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4426 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4428 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4429 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4431 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4433 * misc/sys/cdefs.h (__attribute_used__): Define.
4434 * elf/rtld.c (_dl_start): Add __attribute_used__.
4435 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4437 2001-10-25 Andreas Schwab <schwab@suse.de>
4439 * stdlib/a64l.c: Expect least significant digit first.
4440 * stdlib/l64a.c: Produce least significant digit first.
4441 * stdlib/Makefile (tests): Add test-a64l.
4442 * stdlib/test-a64l.c: New file.
4443 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4445 2001-10-21 Ulrich Drepper <drepper@redhat.com>
4447 * po/sk.po: Update from translation team.
4449 2001-10-18 Ulrich Drepper <drepper@redhat.com>
4451 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4453 2001-10-18 Andreas Schwab <schwab@suse.de>
4455 * math/libm-test.inc (print_ulps): Print ulp values rounded to
4457 (print_function_ulps): Likewise.
4458 (print_complex_function_ulps): Likewise.
4459 (print_max_error): Likewise.
4460 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
4462 2001-10-16 Andreas Schwab <schwab@suse.de>
4464 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4467 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4468 BSD_SETJMP or BSD__SETJMP is defined, resp.
4469 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4470 a tail call to __sigsetjmp that would require extending the
4472 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4473 * sysdeps/m68k/bsd-setjmp.S: Deleted.
4474 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4475 Reported by Jes Sorensen <jes@trained-monkey.org>.
4477 2001-10-16 Andreas Jaeger <aj@suse.de>
4479 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4480 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
4483 2001-10-15 Ulrich Drepper <drepper@redhat.com>
4485 * po/ca.po: New file. Contributed by the translation team.
4487 2001-10-15 Ralf Baechle <ralf@gnu.org>
4489 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4490 a varargs prototype. Remove dependency from kernel header files.
4492 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4493 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4495 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4497 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4498 to generate hexadecimal identifier.
4499 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4501 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
4503 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4505 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4507 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4508 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4509 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4511 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4512 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4513 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4514 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4515 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4516 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4518 * timezone/africa: Update from tzdata2001d.
4519 * timezone/asia: Likewise.
4520 * timezone/australasia: Likewise.
4521 * timezone/backward: Likewise.
4522 * timezone/europe: Likewise.
4523 * timezone/leapseconds: Likewise.
4524 * timezone/northamerica: Likewise.
4525 * timezone/southamerica: Likewise.
4526 * timezone/zone.tab: Likewise.
4528 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4530 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4531 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4533 2001-10-12 Ulrich Drepper <drepper@redhat.com>
4535 * elf/elf.h (PT_TLS): New definition.
4537 2001-10-10 Jeff Bailey <jbailey@nisa.net>
4539 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4542 2001-10-07 Roland McGrath <roland@frob.com>
4544 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4546 2001-10-10 Ulrich Drepper <drepper@redhat.com>
4548 * elf/elf.h: Add more ELFOSABI_* constants.
4550 2001-10-04 Ben Collins <bcollins@debian.org>
4552 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4553 decleration of __need_wchar_t.
4555 2001-10-03 Jakub Jelinek <jakub@redhat.com>
4557 * string/bits/string2.h (__strsep_g): Add prototype.
4559 * string/Versions (__strsep): Remove.
4560 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4562 2001-10-07 Ulrich Drepper <drepper@redhat.com>
4564 * manua/llio.texi: Clarify file references added by mmap.
4565 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4567 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
4569 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4570 Add sc_loadrs and sc_rbs_bas to match current kernel.
4572 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4574 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4576 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4578 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4580 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4581 object has been bumped because of relocation dependency, avoid
4582 duplicates in l_scope.
4583 (show_scope): Fix typos.
4584 * elf/Makefile: Add rules to build and run reldep6.
4585 * elf/reldep6.c: New file.
4586 * elf/reldep6mod0.c: New file.
4587 * elf/reldep6mod1.c: New file.
4588 * elf/reldep6mod2.c: New file.
4589 * elf/reldep6mod3.c: New file.
4590 * elf/reldep6mod4.c: New file.
4592 2001-09-26 Jakub Jelinek <jakub@redhat.com>
4594 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4596 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
4597 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4598 for non-lazy binding. Fix .plt[32768+] handling.
4599 (elf_machine_plt_value): Don't add addend.
4600 (elf_machine_rela): Call sparc64_fixup_plt instead of
4601 elf_machine_fixup_plt.
4602 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4603 dynamic linker at 0xfffff800XXXXXXXX.
4605 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4607 2001-09-28 Ulrich Drepper <drepper@redhat.com>
4609 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4611 2001-09-25 Jakub Jelinek <jakub@redhat.com>
4613 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4614 declare __cmsg_data field if its size would be bigger than 0.
4615 (CMSG_DATA): Adjust accordingly.
4616 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4617 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4618 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4619 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4620 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4621 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4622 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4624 2001-09-25 Ulrich Drepper <drepper@redhat.com>
4626 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4627 * iconvdata/testdata/IBM1160: New file.
4628 * iconvdata/testdata/IBM1160..UTF8: New file.
4629 * iconvdata/testdata/IBM1161: New file.
4630 * iconvdata/testdata/IBM1161..UTF8: New file.
4631 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4633 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4635 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4636 UL_SETFSIZE computations better.
4638 * rt/Makefile: Remove use of filter for librt again.
4640 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4641 UL_SETFSIZE computations better.
4643 * string/Versions: Export __strsep for GLIBC_2.2.5.
4644 * string/bits/string2.h: Define all __STRING_INLINE functions if
4645 _FORCE_INLINES is defined.
4646 Use int instead of char of parameter types.
4647 (__strsep): Don't use __strsep_g. Don't define it.
4648 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4649 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4651 (__stpcpy_a_small): Renamed from __stpcpy_small.
4652 (__strcspn_c1): Don't define if _FORCE_INLINES.
4653 (__strspn_c1): Likewise.
4655 2001-09-22 Ben Collins <bcollins@debian.org>
4657 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4658 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
4659 * sysdeps/ia64/bits/sigaction.h: Likewise.
4660 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4662 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
4664 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4666 2001-09-24 Jakub Jelinek <jakub@redhat.com>
4668 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4670 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4672 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4674 2001-09-20 H.J. Lu <hjl@gnu.org>
4676 * include/dlfcn.h (__RTLD_SPROF): New definiton.
4677 * elf/dl-open.c (dl_open_worker): Return immediately after loading
4679 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4680 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4682 2001-09-20 H.J. Lu <hjl@gnu.org>
4684 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4687 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4689 * nss/getent.c: Accept -s parameter to overwrite rules in
4690 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
4692 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4693 with as many ".0" as necessary to form a complete address
4694 inet_network understands.
4696 * nss/getent.c: Various cleanups. Use simpler and fewer function
4699 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4701 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4703 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4705 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4707 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4709 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4710 * iconvdata/ibm1160.c: New file.
4711 * iconvdata/ibm1160.h: New file.
4712 * iconvdata/ibm1161.c: New file.
4713 * iconvdata/ibm1161.h: New file.
4714 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4716 2001-09-19 Jakub Jelinek <jakub@redhat.com>
4718 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4719 difference between base address and first PT_LOAD's virtual address,
4720 not the base address.
4722 2001-09-11 Tom Rix <trix@redhat.com>
4724 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
4725 ifdef for __getopt_clean_environment.
4726 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4728 2001-09-22 Andreas Jaeger <aj@suse.de>
4730 * elf/reldep4.c (main): Add proper prototype to fix warning.
4732 * elf/reldep5.c (main): Remove unused variable.
4734 * math/math_private.h: Add prototypes.
4736 2001-09-21 Andreas Jaeger <aj@suse.de>
4738 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4739 * sysdeps/x86_64/Dist: New file.
4740 * sysdeps/x86_64/soft-fp/Dist: New file.
4742 * sysdeps/gnu/Dist: Remove eval.c.
4744 2001-09-20 Ulrich Drepper <drepper@redhat.com>
4746 * malloc/memusage.c (realloc): Don't count already allocated
4748 (me): Always use dlsym() to find the real implementations.
4750 * malloc/memusage.sh: Make -n option actually do something.
4752 2001-09-20 Andreas Jaeger <aj@suse.de>
4754 * elf/elf.h (R_390_NUM): Correct value.
4756 * Versions.def: Add missing versions 2.2.3 for libthread_db and
4759 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4760 for x86-64, install x86-64 into */lib64.
4762 * shlib-versions: Add x86-64.
4764 * elf/elf.h: Add x86-64 relocations.
4766 2001-09-19 Ulrich Drepper <drepper@redhat.com>
4768 * po/fr.po: Update from translation team.
4770 2001-09-19 Andreas Jaeger <aj@suse.de>
4772 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4773 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4774 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4775 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4776 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4777 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4778 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4779 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4780 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4781 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4782 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4783 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4784 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4785 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4786 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4787 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4788 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4789 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4790 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4791 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4792 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4793 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4794 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4795 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4796 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4797 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4798 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4799 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4800 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4801 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4802 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4803 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4804 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4805 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4806 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4807 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4808 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4809 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4810 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4811 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4812 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4813 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4814 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4815 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4816 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4817 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4818 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4819 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4820 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4821 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4822 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4823 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4824 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4825 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4826 * sysdeps/unix/x86_64/sysdep.S: New file.
4827 * sysdeps/unix/x86_64/sysdep.h: New file.
4828 * sysdeps/x86_64/Implies: New file.
4829 * sysdeps/x86_64/Makefile: New file.
4830 * sysdeps/x86_64/Versions: New file.
4831 * sysdeps/x86_64/__longjmp.S: New file.
4832 * sysdeps/x86_64/abort-instr.h: New file.
4833 * sysdeps/x86_64/atomicity.h: New file.
4834 * sysdeps/x86_64/bits/endian.h: New file.
4835 * sysdeps/x86_64/bits/setjmp.h: New file.
4836 * sysdeps/x86_64/bits/string.h: New file.
4837 * sysdeps/x86_64/bp-asm.h: New file.
4838 * sysdeps/x86_64/bsd-_setjmp.S: New file.
4839 * sysdeps/x86_64/bsd-setjmp.S: New file.
4840 * sysdeps/x86_64/dl-machine.h: New file.
4841 * sysdeps/x86_64/elf/initfini.c: New file.
4842 * sysdeps/x86_64/elf/start.S: New file.
4843 * sysdeps/x86_64/ffs.c: New file.
4844 * sysdeps/x86_64/ffsll.c: New file.
4845 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4846 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4847 * sysdeps/x86_64/fpu/e_acosl.c: New file.
4848 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4849 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4850 * sysdeps/x86_64/fpu/e_expl.c: New file.
4851 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4852 * sysdeps/x86_64/fpu/e_log10l.S: New file.
4853 * sysdeps/x86_64/fpu/e_log2l.S: New file.
4854 * sysdeps/x86_64/fpu/e_logl.S: New file.
4855 * sysdeps/x86_64/fpu/e_powl.S: New file.
4856 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4857 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4858 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4859 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4860 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
4861 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
4862 * sysdeps/x86_64/fpu/fegetenv.c: New file.
4863 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
4864 * sysdeps/x86_64/fpu/fegetround.c: New file.
4865 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
4866 * sysdeps/x86_64/fpu/fesetenv.c: New file.
4867 * sysdeps/x86_64/fpu/fesetround.c: New file.
4868 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
4869 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
4870 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
4871 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
4872 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
4873 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
4874 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
4875 * sysdeps/x86_64/fpu/s_atanl.c: New file.
4876 * sysdeps/x86_64/fpu/s_cosl.S: New file.
4877 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
4878 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
4879 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
4880 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
4881 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
4882 * sysdeps/x86_64/fpu/s_logbl.c: New file.
4883 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
4884 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
4885 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
4886 * sysdeps/x86_64/fpu/s_rintl.c: New file.
4887 * sysdeps/x86_64/fpu/s_significandl.c: New file.
4888 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
4889 * sysdeps/x86_64/fpu/s_sinl.S: New file.
4890 * sysdeps/x86_64/fpu/s_tanl.S: New file.
4891 * sysdeps/x86_64/gmp-mparam.h: New file.
4892 * sysdeps/x86_64/hp-timing.c: New file.
4893 * sysdeps/x86_64/hp-timing.h: New file.
4894 * sysdeps/x86_64/htonl.S: New file.
4895 * sysdeps/x86_64/memusage.h: New file.
4896 * sysdeps/x86_64/setjmp.S: New file.
4897 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
4898 * sysdeps/x86_64/stackinfo.h: New file.
4899 * sysdeps/x86_64/sysdep.h: New file.
4900 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
4902 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
4905 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4907 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
4908 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
4910 2001-09-18 Andreas Schwab <schwab@suse.de>
4912 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
4913 list, now that l_scope is a pointer.
4915 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
4918 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
4920 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
4921 (elf_machine_rela_relative): Add a missing declaration.
4923 2001-09-18 Jakub Jelinek <jakub@redhat.com>
4925 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
4926 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
4927 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
4928 ldd-rewrite scripts.
4930 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4932 * elf/ldd.bash.in: Update copyright message.
4934 2001-09-17 H.J. Lu <hjl@gnu.org>
4936 * hurd/hurdmalloc.c (bcopy): Removed.
4937 (realloc): Replace bcopy with memcpy.
4938 * hurd/path-lookup.c (file_name_path_scan): Likewise.
4939 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
4940 * sunrpc/rpcinfo.c (pmapdump): Likewise.
4942 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
4943 (gethostbyaddr): Likewise.
4944 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
4946 2001-09-18 Ulrich Drepper <drepper@redhat.com>
4948 * sysdeps/gnu/eval.c: Removed.
4950 2001-09-18 Andreas Jaeger <aj@suse.de>
4952 * sysdeps/i386/fpu/s_logbl.S: Move to ...
4953 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
4955 * sysdeps/i386/fpu/s_rintl.S: Move to ...
4956 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
4958 * sysdeps/i386/fpu/s_significandl.S: Move to ...
4959 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
4961 2001-09-16 Ulrich Drepper <drepper@redhat.com>
4963 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4966 2001-09-14 H.J. Lu <hjl@gnu.org>
4968 * sysdeps/mips/fpu/libm-test-ulps: Updated.
4970 2001-09-14 Ulrich Drepper <drepper@redhat.com>
4972 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
4973 Patch by Florian La Roche <laroche@redhat.com>.
4975 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
4977 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
4980 2001-09-14 Andreas Schwab <schwab@suse.de>
4982 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
4983 Sumner <bls@sgi.com>.
4984 * posix/execlp.c: Likewise.
4986 2001-09-13 Jakub Jelinek <jakub@redhat.com>
4988 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
4989 is already found earlier in the search scope.
4991 2001-09-12 Jakub Jelinek <jakub@redhat.com>
4993 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
4996 2001-09-13 Ulrich Drepper <drepper@redhat.com>
4998 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
5000 2001-09-12 Ulrich Drepper <drepper@redhat.com>
5002 * config.h.in: Enforce optimization to be used.
5003 * Makeconfig (preprocess-versions): Define ASSEMBLER.
5004 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
5005 * posix/Makefile (annexc-CFLAGS): Define to -O.
5006 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
5008 2001-09-11 Ulrich Drepper <drepper@redhat.com>
5010 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
5011 Patch by Stephan Kulow.
5013 2001-09-08 Ben Collins <bcollins@debian.org>
5015 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5016 usage of RESOLVE() (r_type, not reloc->r_type).
5018 2001-09-08 Ulrich Drepper <drepper@redhat.com>
5020 * elf/dl-object.c: Avoid allocating extra memory block for name.
5021 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5022 allocated separately.
5023 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5025 2001-09-08 H.J. Lu <hjl@gnu.org>
5027 * po/zh_TW.po: Fix a typo.
5029 2001-09-07 Tom Rix <trix@redhat.com>
5031 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5033 2001-08-26 Tom Rix <trix@redhat.com>
5035 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5036 command line options.
5037 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5038 * sysdeps/unix/sysv/aix/start.c: Removed.
5039 * sysdeps/unix/sysv/aix/start-libc.c: New file.
5040 * sysdeps/unix/sysv/aix/init-first.c: New file.
5041 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5043 2001-09-08 Ben Collins <bcollins@debian.org>
5045 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5046 * sysdeps/generic/dl-machine.h: Likewise.
5047 * sysdeps/hppa/dl-fptr.c: Likewise.
5048 * sysdeps/ia64/dl-fptr.c: Likewise.
5049 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5050 * sysdeps/mips/dl-machine.h: Likewise.
5051 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5052 * sysdeps/powerpc/dl-machine.c: Likewise.
5054 2001-09-07 Ben Collins <bcollins@debian.org>
5056 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
5058 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
5060 2001-09-08 Ulrich Drepper <drepper@redhat.com>
5062 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
5063 dependencies if necessary.
5065 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
5066 loaded directly) determine length if l_initfini list by iterating
5067 over its elements. Minor optimizations.
5068 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
5069 for dependency objects.
5070 If object was already loaded check whether any of the dependencies
5071 is already on the relocation dependency list. If yes, remove the
5072 latter. Minor optimizations.
5073 * elf/dl-lookup.c (add_dependency): Add check for self reference of
5074 maps here. Search l_initfini list only if the object was loaded
5075 directly and not only as a dependency.
5076 (_dl_lookup_symbol): Add relocation dependency also if object
5077 is not in global scope. Remove test for self-reference here.
5078 (_dl_lookup_versioned_symbol): Likewise.
5079 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
5080 element of first name record.
5081 * elf/loadtest.c: Add some more test to recognize early if an object
5083 * elf/Makefile: Add rules to build and run reldep5.
5084 * elf/reldep5.c: New file.
5085 * elf/reldepmod5.c: New file.
5086 * elf/reldepmod6.c: New file.
5088 * elf/reldep2.c: Fix typo.
5090 2001-09-07 Ulrich Drepper <drepper@redhat.com>
5092 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
5093 elements. Change l_scope to be a pointer only.
5094 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5095 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
5096 here add searchlist of newly open file to the dependency's scope.
5097 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
5098 only searchlist from its scope. Free own scope array if necessary.
5099 * elf/Makefile (tests): Add dblload and dblunload now.
5101 2001-09-06 Andreas Jaeger <aj@suse.de>
5103 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
5106 2001-09-05 Ulrich Drepper <drepper@redhat.com>
5108 * elf/Makefile: Add rules to build new tests. Don't run them yet since
5110 * elf/dblload.c: New file.
5111 * elf/dblloadmod1.c: New file.
5112 * elf/dblloadmod2.c: New file.
5113 * elf/dblloadmod3.c: New file.
5114 * elf/dblunload.c: New file.
5116 2001-09-04 Richard Henderson <rth@redhat.com>
5118 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
5119 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
5121 2001-09-04 Ulrich Drepper <drepper@redhat.com>
5123 Correct very misleading message for error in failed runtime relocation.
5124 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
5126 (_dl_signal_cerror): Likewise.
5127 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5128 * elf/dl-close.c: Likewise.
5129 * elf/dl-deps.c: Likewise.
5130 * elf/dl-load.c: Likewise.
5131 * elf/dl-lookup.c: Likewise.
5132 * elf/dl-open.c: Likewise.
5133 * elf/dl-reloc.c: Likewise.
5134 * elf/dl-sym.c: Likewise.
5135 * elf/dl-version.c: Likewise.
5136 * sysdeps/generic/dl-sysdep.c: Likewise.
5138 2001-09-04 Jakub Jelinek <jakub@redhat.com>
5140 * iconv/strtab.c (strtabinit): Initialize null Strent.
5141 (newstring): Move len == 0 handling...
5142 (strtabadd): ...here.
5143 If len == 1, return null Strent.
5144 When inserting a suffix of an existing string, check if
5145 it is not equal to some suffix already recorded.
5146 Copy left and right members over if adding longer string.
5148 2001-09-04 Jakub Jelinek <jakub@redhat.com>
5150 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
5152 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
5153 (__syscall_gethostname): Add prototype.
5155 2001-09-04 Ulrich Drepper <drepper@redhat.com>
5157 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
5159 2001-09-02 Ulrich Drepper <drepper@redhat.com>
5161 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
5163 2001-08-27 Roland McGrath <roland@frob.com>
5165 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
5166 short, copy that much into NAME anyway before returning error.
5168 2001-09-01 Richard Henderson <rth@redhat.com>
5170 * sysdeps/alpha/elf/Dist: Remove file.
5171 * sysdeps/alpha/elf/Makefile: Remove file.
5172 * sysdeps/alpha/elf/crtbegin.S: Remove file.
5173 * sysdeps/alpha/elf/crtend.S: Remove file.
5174 * sysdeps/alpha/elf/initfini.c: New file.
5176 2001-09-01 Mark Kettenis <kettenis@gnu.org>
5178 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
5179 * iconv/tst-iconv3.c: Likewise.
5181 2001-09-01 Jakub Jelinek <jakub@redhat.com>
5183 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
5185 2001-09-01 Ulrich Drepper <drepper@redhat.com>
5187 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
5189 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
5190 * iconv/iconv_prog.c (insert_cache): New function.
5191 (print_known_names): If cache is used call insert_cache to use the
5192 information from the cache [PR libc/2509].
5194 2001-08-31 Ulrich Drepper <drepper@redhat.com>
5196 * time/strptime.c (strptime_internal): Recognize 'l' format and
5197 handle it like 'I' for symmetry with strftime.
5199 2001-08-31 Richard Henderson <rth@redhat.com>
5201 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
5202 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
5203 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
5204 (print_statistics): Make scalar unsigned long long.
5205 * sysdeps/alpha/hp-timing.h: New file.
5207 2001-08-31 Jakub Jelinek <jakub@redhat.com>
5209 * stdio-common/perror.c (perror): Save errno early, pass it
5210 down to perror_internal.
5211 (perror_internal): Add errnum argument.
5213 2001-08-31 Jakub Jelinek <jakub@redhat.com>
5215 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
5216 Don't add old memory content for R_ALPHA_REFQUAD.
5218 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5220 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
5223 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
5224 instead of open, __close instead of close, __getpagesize instead
5227 * string/argz-stringify.c (__argz_stringify): Use __strnlen
5229 * include/string.h (strndupa): Redefine here to use __strnlen
5231 * string/strndup.c (__strndup): Use __strnlen not strnlen.
5233 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
5236 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5238 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
5239 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
5240 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5241 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
5242 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
5243 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
5244 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
5246 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5248 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
5250 2001-08-30 Andreas Jaeger <aj@suse.de>
5252 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5253 contributed Stephen L Moshier.
5255 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5257 * sunrpc/etc.rpc (sgi_fam): Add.
5259 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5261 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5263 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5265 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5266 first is from a previous call.
5267 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5269 2001-08-29 Andreas Schwab <schwab@suse.de>
5271 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5273 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5275 * config.make.in (INSTALL_SCRIPT): Define.
5276 * Makeconfig (INSTALL_SCRIPT): Define.
5277 * Makerules (do-install-script): New macro to install scripts using
5279 (install-bin-script): New rule to install scripts with
5281 (install-bin-script-nosubdir): New rule.
5282 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5283 (distinfo-vars): Add $(install-bin-script).
5284 * Rules (others): Likewise.
5285 * Makefile (glibcbug): Install with install-bin-script.
5286 * debug/Makefile (xtrace): Likewise.
5287 (catchsegv): Likewise.
5288 * elf/Makefile (ldd): Likewise.
5289 * malloc/Makefile (mtrace): Likewise.
5290 * timezone/Makefile (tzselect): Likewise.
5292 2001-08-29 H.J. Lu <hjl@gnu.org>
5294 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5295 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5296 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5298 2001-08-29 Andreas Schwab <schwab@suse.de>
5300 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5302 2001-08-28 H.J. Lu <hjl@gnu.org>
5304 * Makeconfig (combreloc-LDFLAGS): New variable.
5305 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5306 * config.make.in (have-z-combreloc): New variable.
5307 * configure.in: Substitute libc_cv_z_combreloc.
5309 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5311 * po/sv.po: Update from translation team.
5312 * po/fr.po: Likewise.
5313 * po/da.po: Likewise.
5315 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5317 * Makerules: Fix a typo: MD% -> MD5.
5319 2001-08-28 Ulrich Drepper <drepper@redhat.com>
5321 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
5322 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
5324 2001-08-28 Andreas Jaeger <aj@suse.de>
5326 * manual/libc-texinfo.sh: Add entry about free manuals.
5328 * manual/contrib.texi (Contributors): Fix cross reference.
5330 * manual/libc.texinfo (Copying): Include freemanuals.
5332 * manual/Makefile (appendices): Add freemanuals.
5334 * manual/freemanuals.texi: New file.
5335 Patch by Brian Youmans <3diff@gnu.org>.
5337 * manual/libm-err-tab.pl: Pretty print more platforms, print a
5340 * manual/math.texi (Errors in Math Functions): Fix grammar, start
5341 table on separate page.
5342 Patch by Brian Youmans <3diff@gnu.org>.
5344 2001-08-27 Ulrich Drepper <drepper@redhat.com>
5346 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
5347 the connection went down after we first used it try to connect
5348 again and resend the message before printing to the console.
5349 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
5351 2001-08-27 Jakub Jelinek <jakub@redhat.com>
5353 * string/tst-strlen.c (main): Test strnlen (, -1) too.
5354 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
5357 2001-08-27 Ulrich Drepper <drepper@redhat.com>
5359 * iconv/strtab.c (searchstring): Use correct length for comparison.
5360 (strtabadd): Account total size correct if new string has old string as
5363 2001-08-27 Jakub Jelinek <jakub@redhat.com>
5365 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
5367 2001-08-27 Andreas Jaeger <aj@suse.de>
5369 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
5371 * math/libm-test.inc (j0_test): Add extra tests.
5372 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
5373 not x, in Hankel approximation.
5374 Patches by Stephen L Moshier.
5376 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5378 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
5381 * configure.in: Fix test for .rela.dyn section.
5383 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
5385 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5387 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
5388 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
5389 Pass type_class to _dl_lookup_*.
5390 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
5391 Pass around just type_class instead of noexec, noplt pair.
5392 (_dl_lookup_versioned_symbol): Likewise.
5393 (_dl_lookup_symbol_skip): Pass around just type_class instead of
5395 (_dl_lookup_versioned_symbol_skip): Likewise.
5396 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
5397 * elf/do-lookup.h (do_lookup): Likewise.
5398 * include/link.h (struct link_map): Replace noexec and noplt fields
5399 in l_lookup_cache with type_class field.
5400 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
5401 ELF_RTYPE_CLASS_COPY): Define.
5402 Adjust prototypes for _dl_lookup_symbol and
5403 _dl_lookup_versioned_symbol.
5404 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
5405 elf_machine_lookup_noexec_p): Remove.
5406 (elf_machine_type_class): Define.
5407 * sysdeps/arm/dl-machine.h: Likewise.
5408 * sysdeps/hppa/dl-machine.h: Likewise.
5409 * sysdeps/cris/dl-machine.h: Likewise.
5410 * sysdeps/i386/dl-machine.h: Likewise.
5411 * sysdeps/ia64/dl-machine.h: Likewise.
5412 * sysdeps/m68k/dl-machine.h: Likewise.
5413 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5414 * sysdeps/mips/dl-machine.h: Likewise.
5415 * sysdeps/powerpc/dl-machine.h: Likewise.
5416 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5417 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5418 * sysdeps/sh/dl-machine.h: Likewise.
5419 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5420 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5422 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5424 * manual/message.texi (Advanced gettext functions): Change
5425 description of plural forms for Slovak.
5426 Reported by Marcel Telka <marcel@telka.sk>.
5428 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5429 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5431 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5433 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5434 typo. Patch by Florian La Roche <laroche@redhat.com>.
5436 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5438 * include/link.h (struct link_map): Add l_lookup_cache element.
5439 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5440 (RESOLVE_MAP): Likewise.
5441 (_dl_relocate_object): Remove cache initialization.
5442 * elf/dl-lookup.c: Rip out cache handling code.
5443 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5446 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5447 remove some __builtin_expect.
5448 (_dl_lookup_versioned_symbol): Likewise.
5450 * config.h.in: Add HAVE_Z_COMBRELOC.
5451 * configure.in: Add test for -z combreloc.
5453 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5454 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
5455 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
5456 case to almost no code.
5458 2001-08-25 Ulrich Drepper <drepper@redhat.com>
5460 * po/tr.po: Update from translation team.
5462 2001-08-24 Andreas Jaeger <aj@suse.de>
5464 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5467 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5469 * elf/rtld.c (print_statistics): Printf % after percent values.
5470 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5472 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5473 don't have to compute the hash value and initialize current_value.
5474 Move reference_name variable to where it is needed.
5475 (_dl_lookup_versioned_symbol): Likewise.
5477 2001-08-24 Roland McGrath <roland@frob.com>
5479 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5480 Just test that strerror returns non-null for a few errno codes.
5482 2001-08-23 Roland McGrath <roland@frob.com>
5484 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5485 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5487 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5489 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5492 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5494 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5497 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5498 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5500 * elf/rtld.c: Include <sys/param.h>.
5501 * elf/dl-reloc.c: Likewise.
5503 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5505 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5506 empty to prevent junk from being generated.
5507 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5509 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5511 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5512 records. Rename endrel to relative, initialize it to r, and use it
5513 in elf_machine_rel_relative calls. Point r after relative relocs.
5515 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5517 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5520 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5522 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5523 necessary. Undefine newly defined macros at the end.
5524 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5525 Rename from elf_machine_rel_relative.
5526 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5527 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5528 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5529 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5531 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5533 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5535 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5537 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5538 Likewise. Fix argument types.
5539 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5540 Likewise. Fix argument types.
5541 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5543 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5544 ElfW(Rel) in argument.
5545 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5548 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
5550 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5552 2001-08-24 Andreas Jaeger <aj@suse.de>
5554 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5555 Stephen L Moshier <moshier@mediaone.net>.
5557 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5559 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5560 first if RELCOUNT is set.
5562 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5563 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5564 elf_machine_rel_relative.
5565 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5566 Minor optimizations.
5567 * sysdeps/arm/dl-machine.h: Likewise.
5568 * sysdeps/cris/dl-machine.h: Likewise.
5569 * sysdeps/hppa/dl-machine.h: Likewise.
5570 * sysdeps/i386/dl-machine.h: Likewise.
5571 * sysdeps/ia64/dl-machine.h: Likewise.
5572 * sysdeps/m68k/dl-machine.h: Likewise.
5573 * sysdeps/mips/dl-machine.h: Likewise.
5574 * sysdeps/powerpc/dl-machine.h: Likewise.
5575 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5576 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5577 * sysdeps/sh/dl-machine.h: Likewise.
5578 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5579 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5581 2001-08-23 Roland McGrath <roland@frob.com>
5583 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5585 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5586 sysdeps/mach version. Implement counting ("recursive") mutexes
5587 on top of cthreads mutexes.
5588 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5590 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5591 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5592 (__libc_cleanup_region_start, __libc_cleanup_region_end,
5593 __libc_clean_end): Define these to call the cleanup function after
5594 normal exit when they're supposed to.
5596 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5597 Take new first arg DOIT, a boolean saying whether to really install
5598 any cleanup handler.
5599 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5600 (__libc_cleanup_end): Likewise.
5601 * sysdeps/generic/bits/libc-lock.h: Same changes.
5602 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5603 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5604 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5606 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5607 * sysdeps/generic/bits/stdio-lock.h
5608 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5610 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5612 * elf/ldconfig.c (search_dir): Remove stale symlinks.
5614 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5616 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5617 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5619 (_dl_lookup_versioned_symbol): Likewise.
5620 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5622 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5623 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5624 (lookup_cache, lookup_cache_versioned): Add declarations.
5626 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5628 * stdlib/tst-random.c (main): Swap parameters in fail call.
5629 Patch by Pete Bevin <pete@petebevin.com>.
5631 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5633 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5635 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5637 * malloc/obstack.c: Indent preprocessor directives.
5638 Patch by Jim Meyering <meyering@ascend.com>.
5640 * po/ja.po: Update from translation team.
5642 2001-08-23 Roland McGrath <roland@frob.com>
5644 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5646 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5647 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5649 2001-08-22 Roland McGrath <roland@frob.com>
5651 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5652 __libc_lock_define_recursive.
5653 * elf/dl-open.c: Don't declare it here any more.
5654 * elf/dl-close.c: Likewise.
5655 * elf/dl-lookup.c: Likewise.
5656 * elf/dl-iteratephdr.c: Likewise.
5657 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5658 __libc_lock_unlock_recursive.
5659 * elf/dl-close.c (_dl_close): Likewise
5660 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5661 * elf/dl-open.c (_dl_open): Likewise
5663 * sysdeps/generic/bits/libc-lock.h
5664 (__libc_lock_define_recursive): New macro.
5665 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5666 (_IO_lock_lock): Use __libc_lock_lock_recursive.
5667 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5669 * conform/conformtest.pl (checknamespace): Sort the output list.
5671 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5672 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5673 definitions conditional on [__USE_XOPEN].
5675 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5676 these unconditionally, not only use [__USE_BSD], so as to match
5677 the sysdeps/unix/sysv/linux files.
5679 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5681 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5684 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5687 2001-08-22 Roland McGrath <roland@frob.com>
5689 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5690 conditionalization of sa_handler/sa_sigaction member types to
5691 match the sysdeps/unix/sysv/linux file.
5693 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5695 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5696 symbol sizes a bit better.
5698 * sysdeps/ia64/strncpy.S: Complete rewrite.
5699 Contributed by Jakub Jelinek <jakub@redhat.com>.
5701 * string/stratcliff.c (main): Add strncpy test.
5703 2001-08-22 Roland McGrath <roland@frob.com>
5705 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5706 and don't declare unsetenv or _environ directly.
5707 (unsetenv): Return int, not void. Use __environ instead of _environ.
5709 2001-08-01 Mark Kettenis <kettenis@gnu.org>
5711 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5712 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5713 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5714 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5715 test for cmsg struct size.
5717 2001-04-23 Paul Eggert <eggert@twinsun.com>
5719 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5720 Rename __argc to ___argc in prototypes to avoid compatibility
5721 problems with systems that reserve the identifier "__argc".
5722 Similarly for __argv.
5724 2001-08-21 Roland McGrath <roland@frob.com>
5726 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5728 * mach/Makefile (tests): Removed.
5729 * mach/hello.c: File removed.
5731 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5733 * po/sv.po: Update from translation team.
5735 * stdio-common/vfscanf.c: Fix handling of %l[].
5736 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5738 * libio/Makefile (tests): Add tst-sscanf.
5739 * libio/tst-sscanf.c: New file.
5741 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5742 * malloc/mtrace.c (tr_where): dli_sname always points to a
5743 non-empty string if != NULL.
5744 Reported by Tim Janik <timj@gtk.org>.
5746 2001-08-22 Jakub Jelinek <jakub@redhat.com>
5748 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5749 buf. Free resources on failure.
5750 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5751 (makefd_xprt): Likewise.
5752 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5753 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5754 * sunrpc/auth_unix.c (authunix_create): Likewise.
5756 2001-08-21 Jakub Jelinek <jakub@redhat.com>
5758 * string/strnlen.c: Remove.
5759 * sysdeps/generic/strnlen.c: New file.
5760 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5762 2001-08-21 Roland McGrath <roland@frob.com>
5764 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5765 as a macro, not an extern inline function.
5767 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5768 * Versions.def (libc): Add GLIBC_2.2.5 set.
5769 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5770 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5772 2001-08-20 Roland McGrath <roland@frob.com>
5774 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5775 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5777 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5779 * string/bits/string2.h: Remove strnlen optimization here.
5780 * sysdeps/i386/i486/bits/string.h: Add it here.
5782 2001-08-21 Wolfram Gloger <wg@malloc.de>
5784 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5786 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5788 * po/gl.po: Update from translation team.
5790 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5792 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5793 * misc/err.c (convert_and_print): Likewise.
5795 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5798 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5800 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5801 change of the gregset_t type.
5802 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5804 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
5806 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5808 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5810 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5812 * string/strnlen.c: Fix the implementation. We cannot use memchr.
5814 2001-08-18 Mark Kettenis <kettenis@gnu.org>
5816 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5817 before calling the cthreads initialization code.
5819 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5821 * argp/argp-help.c: Fix two problems introduced in last change.
5823 * include/dirent.h: Include <dirstream.h> first.
5825 2001-08-19 Ulrich Drepper <drepper@redhat.com>
5827 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5829 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5830 * sunrpc/xdr_rec.c: Likewise.
5831 * sunrpc/xdr_mem.c: Likewise.
5832 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5833 * sunrpc/rpc_cmsg.c: Likewise.
5834 * sunrpc/getrpcport.c (getrpcport): Likewise.
5835 * sunrpc/clnt_simp.c (callrpc): Likewise.
5836 * sunrpc/clnt_gen.c (clnt_create): Likewise.
5837 * string/envz.c: Likewise.
5839 * po/ko.po: Update from translation team.
5841 * argp/argp-help.c: Handle wide oriented stderr stream.
5843 2001-08-18 Ulrich Drepper <drepper@redhat.com>
5845 * sysdeps/generic/strtol.c: Little optimizations. Add some
5848 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5850 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5851 * wcsmbs/wcwidth.c (wcwdith): Likewise.
5852 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5854 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5856 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5858 * time/time.h (struct timespec): Use __time_t for tv_sec element.
5860 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
5861 wchar_t for function declarations and defintions.
5863 * misc/sys/select.h: Define __need_time_t before including <time.h>.
5864 Define suseconds_t if it hasn't happened yet.
5866 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
5868 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
5870 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
5873 * conform/data/stddef.h-data: Remove wint_t.
5875 * conform/conformtest.pl: Change namespace test to take #undef
5878 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
5880 * conform/data/sys/socket.h-data: Add sockatmark.
5882 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5884 * io/fts.c: Update from recent BSD source.
5886 2001-08-17 Roland McGrath <roland@frob.com>
5888 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
5889 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
5892 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5894 * locale/duplocale.c (__duplocale): Also initialize the special
5897 * conform/data/netdb.h-data: Adjust gai_strerror return type.
5899 2001-08-17 Andreas Jaeger <aj@suse.de>
5901 * misc/getpass.c: Include wchar.h for prototypes.
5902 * malloc/obstack.c: Likewise.
5904 2001-08-17 Ulrich Drepper <drepper@redhat.com>
5906 * sunrpc/svc_simple.c (universal): Use __write instead of write.
5908 * wcsmbs/wcscoll.c: Also define __wcscoll.
5909 * include/wchar.h: Declare __wcscoll.
5911 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
5912 * libio/vwprintf.c: Likewise.
5913 * libio/wprintf.c: Likewise.
5915 * iconv/gconv_cache.c: Use __munmap instead of munmap.
5917 2001-08-16 Ulrich Drepper <drepper@redhat.com>
5919 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5921 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5922 wcslen, and __wcscoll instead of wcscoll.
5924 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
5926 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
5927 __getuid instead of getuid.
5929 * stdio-common/perror.c (perror): Use __close instead of close.
5930 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
5931 * libio/freopen.c (freopen): Likewise.
5932 * libio/freopen64.c (freopen64): Likewise.
5934 * libio/tst-ungetwc2.c (main): Define str const.
5936 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
5937 * libio/fwprintf.c: Also define __fwprintf.
5938 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
5939 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
5940 * assert/assert-perr.c: Likewise.
5941 * assert/assert.c: Likewise.
5942 * gmon/gmon.c: Likewise.
5943 * inet/rcmd.c: Likewise.
5944 * malloc/obstack.c: Likewise.
5945 * misc/err.c: Likewise.
5946 * misc/error.c: Likewise.
5947 * misc/getpass.c: Likewise.
5948 * posix/getopt.c: Likewise.
5949 * resolv/res_hconf.c: Likewise.
5950 * stdio-common/perror.c: Likewise.
5951 * stdio-common/psignal.c: Likewise.
5952 * stdlib/fmtmsg.c: Likewise.
5953 * sunrpc/auth_unix.c: Likewise.
5954 * sunrpc/clnt_perr.c: Likewise.
5955 * sunrpc/clnt_tcp.c: Likewise.
5956 * sunrpc/clnt_udp.c: Likewise.
5957 * sunrpc/clnt_unix.c: Likewise.
5958 * sunrpc/svc_simple.c: Likewise.
5959 * sunrpc/svc_tcp.c: Likewise.
5960 * sunrpc/svc_udp.c: Likewise.
5961 * sunrpc/svc_unix.c: Likewise.
5962 * sunrpc/xdr.c: Likewise.
5963 * sunrpc/xdr_array.c: Likewise.
5964 * sunrpc/xdr_rec.c: Likewise.
5965 * sunrpc/xdr_ref.c: Likewise.
5966 * sysdeps/generic/wordexp.c: Likewise.
5968 * po/it.po: Update from translation team.
5970 * misc/err.c: Handle wide oriented stderr stream.
5972 2001-08-14 Tom Rix <trix@redhat.com>
5974 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
5975 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
5977 2001-08-13 Tom Rix <trix@redhat.com>
5979 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
5980 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
5983 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
5985 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
5986 Store the access registers to the ucontext structure.
5987 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
5990 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
5991 Load the access registers from the ucontext structure.
5992 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
5995 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
5996 offsets to the new ucontext layout.
5997 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
5999 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
6000 of the ucontext structure.
6001 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6003 2001-08-15 Ulrich Drepper <drepper@redhat.com>
6005 * misc/error.c (error): Handle wide oriented stderr stream correctly.
6006 (error_at_line): Likewise.
6008 * stdio-common/perror.c (perror): Implement according to standard.
6009 The stream orientation must not be changed if the stream was not
6010 oriented before the call.
6011 * stdio-common/Makefile (tests): Add tst-perror.
6012 * stdio-common/tst-perror.c: New file.
6015 See ChangeLog.12 for earlier changes.