1 2002-04-13 Ulrich Drepper <drepper@redhat.com>
3 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
4 check whether the caller prefers getting the most recent version of
5 a symbol of the earliest version.
6 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
7 _dl_do_lookup to also take the new parameter and pass it on.
8 Change 'explicit' parameter of _dl_lookup_symbol and
9 _dl_lookup_versioned_symbol to flags. Adjust tests.
10 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
11 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
12 _dl_lookup_versioned_symbol.
13 * elf/dl-reloc.c: Likewise.
14 * elf/dl-runtime.c: Likewise.
15 * elf/dl-sym.c: Likewise.
16 * sysdeps/mips/dl-machine.h: Likewise.
18 2002-04-11 Jakub Jelinek <jakub@redhat.com>
20 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
22 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
24 2002-04-10 Andreas Jaeger <aj@suse.de>
26 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
28 * include/argz.h: Remove extra char from last patch.
30 2002-04-09 Ulrich Drepper <drepper@redhat.com>
32 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
33 * sysdeps/unix/sysv/aix/chown.c: Likewise.
34 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
35 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
36 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
37 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
39 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
41 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
42 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
43 * intl/ngettext.c: Likewise.
45 * include/sys/socket.h: Declare __connect_internal and define
46 __connect macro if not NOT_IN_libc.
47 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
48 * sysdeps/unix/sysv/aix/connect.c: Likewise.
49 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
51 * include/unistd.h: Declare __close_internal and define __close macro
53 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
54 WJUMP3): Add extra parenthesis to avoid expanding element names with
56 * sysdeps/unix/syscalls.list: Add __close_internal alias.
58 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
60 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
61 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
62 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
64 * include/unistd.h: Declare __fork_internal and define __fork macro
66 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
67 * sysdeps/unix/sysv/aix/fork.c: Likewise.
68 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
70 * include/stdio_ext.h: Declare __fsetlocking_internal and define
71 __fsetlocking macro to use it if not NOT_IN_libc.
72 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
74 * libio/__fbufsize.c: Correct copyright.
75 * libio/__flbf.c: Likewise.
76 * libio/__fpending.c: Likewise.
77 * libio/__fpurge.c: Likewise.
78 * libio/__freadable.c: Likewise.
79 * libio/__freading.c: Likewise.
80 * libio/__fsetlocking.c: Likewise.
81 * libio/__fwritable.c: Likewise.
82 * libio/__fwriting.c: Likewise.
84 * include/stdio.h: Declare __asprintf_internal and define __asprintf
85 macro to use it if not NOT_IN_libc.
86 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
88 * include/mntent.h: Declare __setmntent_internal,
89 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
90 __getmntent_r, and __endmntent macros to use these functions if not
92 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
95 * include/math.h: Declare __finite_internal, __finitef_internal, and
96 __finitel_internal. Redefine isfinite macro if in libc or libm using
98 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
99 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
100 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
101 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
102 * sysdeps/i386/fpu/s_finitef.S: Likewise.
103 * sysdeps/i386/fpu/s_finitel.S: Likewise.
104 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
105 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
106 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
107 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
109 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
110 to use this function if not NOT_IN_libc.
111 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
112 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
113 * sysdeps/mach/hurd/fcntl.c: Likewise.
114 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
115 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
117 * include/argz.h: Declare __argz_count_internal and
118 __argz_stringify_internal.
119 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
121 * string/argz-count.c: Use INTDEF for __argz_count.
122 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
124 * include/stdlib.h: Declare __cxa_atexit_internal and define
125 __cxa_atexit macro if not NOT_IN_libc.
126 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
127 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
129 * assert/assert.c: Use INTDEF for __assert_fail.
130 * assert/__assert.c: Use INTUSE for call to __assert_fail.
131 * include/assert.h: Declare __assert_fail_internal.
133 * extra-lib.mk: Mark assignment to lib with override.
135 2002-04-08 Ulrich Drepper <drepper@redhat.com>
137 * Makerules: Use cppflags-iterator.mk to add defines for all test
140 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
142 * elf/elf.h: Define R_SH_TLS_xxx macros.
143 * elf/rtld.c: Remove an extra parenthesis.
144 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
146 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
147 * sysdeps/sh/dl-lookupcfg.h: New file.
148 * sysdeps/sh/dl-tls.h: New file.
149 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
150 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
151 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
152 R_SH_TLS_TPOFF32 relocations.
154 2002-04-08 Ulrich Drepper <drepper@redhat.com>
156 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
158 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
159 * include/stdlib.h: Likewise.
161 2002-04-08 Jakub Jelinek <jakub@redhat.com>
163 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
164 instead of _RTLD_LOCAL.
165 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
166 * include/unistd.h: Likewise.
167 * sysdeps/generic/ldsodefs.h: Likewise.
169 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
172 2002-04-08 Andreas Jaeger <aj@suse.de>
174 * elf/cache.c (print_entry): Support x86-64.
176 2002-04-08 Ulrich Drepper <drepper@redhat.com>
178 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
179 with one accessing the locale data structures directly.
180 * stdio-common/printf-prs.c: Include localeinfo.h for new
181 MB_CUR_MAX definition.
183 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
184 is the name of the source file without extension.
185 * Makefile (distribute): Add cppflags-iterator.mk.
186 * cppflags-iterator.mk: New file.
187 * extra-lib.mk: For the sources of the library run
188 cppflags-iterator.mk.
190 * include/libintl.h: Declare __dcgettext_internal and
191 _libc_intl_domainname_internal. Define __dcgettext using these
192 two symbols if used in libc itself.
193 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
194 _libc_intl_domainname_internal.
195 * argp/argp-parse.c: Likewise.
196 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
197 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
198 * intl/gettext.c: Likewise.
199 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
201 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
203 * posix/regex_internal.c (gettext): Likewise.
205 2002-04-08 Andreas Jaeger <aj@suse.de>
207 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
209 * sysdeps/x86_64/fpu/s_llrint.S: New.
210 * sysdeps/x86_64/fpu/s_llrintf.S: New.
211 * sysdeps/x86_64/fpu/s_llrintl.S: New.
212 * sysdeps/x86_64/fpu/s_lrint.S: New.
213 * sysdeps/x86_64/fpu/s_lrintf.S: New
214 * sysdeps/x86_64/fpu/s_lrintl.S: New.
216 2002-04-08 Roland McGrath <roland@frob.com>
218 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
219 widening __hurd_fail value.
221 2002-04-07 Roland McGrath <roland@frob.com>
223 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
224 <mach/machine/alpha_instruction.h>.
225 (_hurd_setup_sighandler): Take proper arguments for current decls.
226 Update code to use _hurdsig_catch_fault.
227 Use `callsys' instruction instead of `call_pal'.
228 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
230 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
231 (ALIGN, at, AT, fp): New macros.
233 2002-04-06 Roland McGrath <roland@frob.com>
235 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
237 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
238 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
240 * sysdeps/mach/hurd/bind.c: Use prototype definition.
241 * sysdeps/mach/hurd/connect.c: Likewise.
242 * sysdeps/mach/hurd/getsockopt.c: Likewise.
243 * sysdeps/mach/hurd/setsockopt.c: Likewise.
245 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
248 * hurd/catch-exc.c: Use integer_t instead of int.
249 * hurd/hurdfault.c: Likewise.
251 * sysdeps/mach/hurd/alpha/exc2signal.c
252 (_hurd_exception2signal): Rewritten.
253 * sysdeps/mach/hurd/alpha/longjmp-ts.c
254 (_hurd_longjmp_thread_state): Rewritten.
256 2002-04-07 Ulrich Drepper <drepper@redhat.com>
258 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
259 DB_LOOKUP_FCT prototype.
260 * nss/getXXent_r.c: Likewise.
261 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
262 * inet/getaliasname_r.c: Likewise.
263 * inet/getnetbyad_r.c: Likewise.
264 * inet/getnetbynm_r.c: Likewise.
265 * inet/getnetent_r.c: Likewise.
266 * inet/getproto_r.c: Likewise.
267 * inet/getprtent_r.c: Likewise.
268 * inet/getprtname_r.c: Likewise.
269 * inet/getrpcbyname_r.c: Likewise.
270 * inet/getrpcbynumber_r.c: Likewise.
271 * inet/getrpcent_r.c: Likewise.
272 * inet/getservent_r.c: Likewise.
273 * inet/getsrvbynm_r.c: Likewise.
274 * inet/getsrvbypt_r.c: Likewise.
275 * shadow/getspent_r.c: Likewise.
276 * shadow/getspnam_r.c: Likewise.
278 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
280 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
281 Use i686-friendly PIC code.
282 * sysdeps/i386/elf/setjmp.S: Likewise.
284 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
286 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
288 * elf/Versions: Remove it here.
290 2002-04-06 Ulrich Drepper <drepper@redhat.com>
292 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
293 direction. Reported by H . J . Lu <hjl@lucon.org>.
295 2002-04-05 Ulrich Drepper <drepper@redhat.com>
297 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
298 test just before the test runs.
299 * intl/tst-translit.sh: Likewise.
300 * intl/tst-codeset.sh: Likewise.
302 * timezone/zic.c: Update from tzcode2002c.
303 * timezone/asia: Update from tzdata2002c.
304 * timezone/backward: Likewise.
305 * timezone/europe: Likewise.
306 * timezone/northamerica: Likewise.
307 * timezone/northamerica: Likewise.
308 * timezone/northamerica: Likewise.
309 * timezone/southamerica: Likewise.
310 * timezone/zone.tab: Likewise.
312 2002-03-23 Jakub Jelinek <jakub@redhat.com>
314 * sysdeps/generic/brk.c (__curbrk): Declare.
315 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
316 * sysdeps/generic/dl-sbrk.c: Likewise.
317 * sysdeps/unix/arm/dl-brk.S: New file.
318 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
319 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
320 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
321 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
322 * sysdeps/unix/i386/dl-brk.S: New file.
323 * sysdeps/unix/mips/dl-brk.S: New file.
324 * sysdeps/unix/sparc/dl-brk.S: New file.
325 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
326 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
327 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
328 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
330 2002-04-03 Andreas Schwab <schwab@suse.de>
332 * Makefile (headers): Add gnu/lib-names.h here instead of
334 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
336 (install-headers): Add dependency on install-headers-nosubdir.
337 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
338 instead of install-others.
339 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
342 2002-04-05 Ulrich Drepper <drepper@redhat.com>
344 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
345 Reported by Sam Roberts <sroberts@uniserve.com>.
347 2002-04-03 Jakub Jelinek <jakub@redhat.com>
349 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
350 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
351 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
352 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
354 2002-04-03 David Mosberger <davidm@hpl.hp.com>
356 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
358 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
359 dependency violation.
361 2002-04-05 Jakub Jelinek <jakub@redhat.com>
363 * time/mktime.c (__mktime_internal): Move check for year < 70 below
364 all variable declarations.
366 2002-04-04 Andreas Schwab <schwab@suse.de>
368 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
370 2002-04-04 Andreas Jaeger <aj@suse.de>
372 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
373 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
375 * sysdeps/x86_64/fpu/s_fabs.c: New file.
376 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
377 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
379 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
381 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
383 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
384 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
386 * configure.in: Handle all mips entries the same.
388 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
389 * sysdeps/mips/mips3/*: Likewise.
390 * sysdeps/mips/p40/bits/endian.h: Likewise.
392 2002-04-04 Ulrich Drepper <drepper@redhat.com>
394 * misc/dirname.c (dirname): Ignore trailing slashes at end of
395 non-null result [PR libc/2600].
397 * misc/tst-dirname.c: Add more tests.
399 2002-04-03 Ulrich Drepper <drepper@redhat.com>
401 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
402 define a code_set_name provide one based on the filename.
404 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
406 2001-12-28 Andreas Jaeger <aj@suse.de>
408 * time/mktime.c (__mktime_internal): Check for year < 70
411 2002-04-03 Andreas Jaeger <aj@suse.de>
413 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
415 Reported by Andi Kleen <ak@suse.de>.
417 2002-04-03 Ulrich Drepper <drepper@redhat.com>
419 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
420 * sysdeps/generic/w_lgammaf.c: Likewise.
421 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
423 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
424 Adjust for new output format of the backtrace functions.
426 * misc/syslog.c (vsyslog): Only use cleanup handler if
427 _LIBC_REENTRANT is defined [PR libc/2924].
429 * libio/Makefile (tests): Add bug-ungetwc2.
430 * libio/bug-ungetwc2.c: New file.
432 * manual/install.texi: Typographical and grammatical cleanup.
433 Patch by Dennis Grace <dgrace@us.ibm.com>.
435 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
436 parameter if mtflag. Patch by <jeongyun@innovay.com>.
438 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
439 always "&". Adjust callers.
440 Add "_" prefix to several generated definitions.
441 Patch by paul@serice.net [PR libc/3158].
443 2002-04-02 Ulrich Drepper <drepper@redhat.com>
445 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
446 size of _dl_arm_cap_flags.
447 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
449 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
452 2002-03-22 H.J. Lu <hjl@gnu.org>
454 * scripts/firstversions.awk: Check the first version.
456 2002-04-02 Ulrich Drepper <drepper@redhat.com>
458 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
459 dependencies must be stable to work correctly.
460 Reported by martin.lubich@datacon.at.
462 * libio/bug-ungetwc1.c: New file.
463 * libio/Makefile (tests): Add bug-ungetwc1.
465 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
466 if stream was last used for writing.
468 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
469 number [PR libc/3111].
471 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
473 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
475 2002-04-02 Jakub Jelinek <jakub@redhat.com>
477 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
478 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
479 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
480 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
481 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
483 2002-03-30 Jakub Jelinek <jakub@redhat.com>
485 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
488 2002-03-29 Jakub Jelinek <jakub@redhat.com>
490 * sysdeps/i386/fpu/s_fabs.S: New file.
491 * sysdeps/i386/fpu/s_fabsf.S: New file.
492 * sysdeps/i386/fpu/s_fabsl.S: New file.
493 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
494 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
495 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
497 2002-04-02 Ulrich Drepper <drepper@redhat.com>
499 * rt/tst-shm.c (do_test): Add one more test for size of shared
502 2002-03-29 Wolfram Gloger <wg@malloc.de>
504 * malloc/malloc.c: Add short description and prototypes for
505 malloc_get_state, malloc_set_state and posix_memalign, for
506 consistency and to avoid warnings with -Wstrict-prototypes.
507 Reported by Andreas Jaeger <aj@suse.de>.
509 2002-04-02 Ulrich Drepper <drepper@redhat.com>
511 * po/gl.po: Update from translation team.
513 2002-03-31 Roland McGrath <roland@frob.com>
515 * hurd/hurdselect.c (_hurd_select): Fix
516 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
517 Use a union rather than casts to compare mach_msg_type_t as int.
519 2002-03-25 Roland McGrath <roland@frob.com>
521 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
522 check off the end of NAME when it's shorter than 2 chars.
523 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
525 2002-03-17 Roland McGrath <roland@frob.com>
527 * sysdeps/mach/hurd/i386/sys/io.h: New file.
528 * sysdeps/mach/hurd/i386/ioperm.c: New file.
529 * sysdeps/mach/hurd/i386/Dist: Add them.
530 * sysdeps/mach/hurd/i386/Versions
531 (libc: GLIBC_2.2.6): New set, add ioperm.
532 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
533 (mach_interface_list): Check for mach_i386.defs.
534 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
535 * sysdeps/mach/configure: Regenerated.
537 2002-03-22 Ulrich Drepper <drepper@redhat.com>
539 * po/fr.po: Update from translation team.
541 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
543 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
544 getpriority from syscalls list.
546 2002-03-28 Andreas Jaeger <aj@suse.de>
548 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
549 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
550 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
551 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
553 2002-03-27 Andreas Jaeger <aj@suse.de>
555 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
556 sigcontext): Follow further kernel change.
558 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
561 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
562 Change for struct sigcontext change.
564 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
565 Follow changes in struct sigcontext.
567 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
568 sysycall, use wrapper instead.
570 2002-03-26 Andreas Jaeger <aj@suse.de>
572 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
573 read and write accesses as detailed as possible.
574 (__memcpy_by2): Likewise.
575 (__memcpy_g): Likewise.
578 (__memset_ccn_by4): Likewise.
579 (__memset_ccn_by2): Likewise.
580 (__memset_gcn_by4): Likewise.
581 (__memset_gcn_by2): Likewise.
583 (__memrchr): Likewise.
584 (rawmemchr): Likewise.
585 (__strlen_g): Likewise.
586 (__strcpy_g): Likewise.
587 (__mempcpy_by4): Likewise.
588 (__mempcpy_by2): Likewise.
589 (__mempcpy_byn): Likewise.
590 (__stpcpy_g): Likewise.
591 (__strncpy_by4): Likewise.
592 (__strncpy_by2): Likewise.
593 (__strncpy_byn): Likewise.
594 (__strncpy_gg): Likewise.
595 (__strcat_c): Likewise.
596 (__strcat_g): Likewise.
597 (__strncat_g): Likewise.
598 (__strcmp_gg): Likewise.
599 (__strncmp_g): Likewise.
600 (__strchr_c): Likewise.
601 (__strchr_g): Likewise.
602 (__strchrnul_c): Likewise.
603 (__strchrnul_g): Likewise.
604 (__strrchr_c): Likewise.
605 (__strrchr_g): Likewise.
606 (__strrchr_c): Likewise.
607 (__strrchr_g): Likewise.
608 (__strcspn_c1): Likewise.
609 (__strcspn_cg): Likewise.
610 (__strcspn_g): Likewise.
611 (__strcspn_g): Likewise.
612 (__strspn_c1): Likewise.
613 (__strspn_cg): Likewise.
614 (__strspn_g): Likewise.
615 (__strspn_g): Likewise.
616 (__strpbrk_cg): Likewise.
617 (__strpbrk_g): Likewise.
618 (__strstr_cg): Likewise.
619 (__strstr_g): Likewise.
621 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
622 Michal Ludvig <mludvig@suse.cz>.
624 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
625 compatibilty, adjust for kernel changes.
627 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
628 sigcontext): Adjust for kernel changes.
630 2002-03-25 Andreas Jaeger <aj@suse.de>
632 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
634 Reported by Artur Zaprzala <zybi@talex.com.pl>.
636 2002-03-24 Andreas Jaeger <aj@suse.de>
638 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
640 * stdio-common/tst-fdopen.c (main): Remove unused variable.
642 * iconv/tst-iconv3.c (main): Use correct printf strings.
644 2002-03-18 Roland McGrath <roland@frob.com>
646 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
647 (CMGROUP_MAX): New macro.
649 2002-03-23 Roland McGrath <roland@frob.com>
651 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
652 * sysdeps/posix/shm_unlink.c: Likewise.
654 2002-03-22 Roland McGrath <roland@frob.com>
656 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
657 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
658 under --enable-libio.
659 * sysdeps/mach/hurd/configure: Regenerated.
661 2002-03-23 Roland McGrath <roland@frob.com>
663 * sysdeps/mach/hurd/i386/Makefile
664 (sysdep_routines, shared-only-routines): Don't add framestate,
665 reverting 2001-10-02 change.
666 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
667 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
668 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
669 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
670 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
671 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
672 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
673 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
674 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
675 Do it here instead, only if [$(unwind-find-fde) = yes].
677 2002-03-23 Andreas Jaeger <aj@suse.de>
679 * signal/signal.h: Fix typo. Patch by Steve Kemp
680 <skx@tardis.ed.ac.uk>.
682 2002-03-22 Andreas Jaeger <aj@suse.de>
684 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
687 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
688 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
689 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
690 user_fpregs_struct): Rename fwd.
692 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
693 Follow sigcontext changes.
695 2002-03-22 Andreas Jaeger <aj@suse.de>
697 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
698 changes for NaNs on MIPS.
699 Patch by Hartvig Ekner <hartvige@mips.com>.
701 2002-03-21 Ulrich Drepper <drepper@redhat.com>
703 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
704 Use realloc if too large.
705 (addgrbyid): Likewise.
706 * nscd/hstcache.c (addhstbyname): Likewise.
707 (addhstbyaddr): Likewise.
708 (addhstbynamev6): Likewise.
709 (addhstbyaddrv6): Likewise.
710 * nscd/pwdcache.c (addpwbyname): Likewise.
711 (addpwbyuid): Likewise.
713 2002-03-21 Andreas Jaeger <aj@suse.de>
715 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
716 _fpstate): Add separate struct for x86-64.
718 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
719 user_fpregs_struct): Change member names to follow kernel.
721 2002-03-20 Ulrich Drepper <drepper@redhat.com>
723 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
724 Correctly close the UDP connection right away [PR libc/3120].
726 2002-03-20 Andreas Jaeger <aj@suse.de>
728 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
729 user_fpregs_struct): Fix for changed kernel struct.
730 (struct user_regs_struct): Likewise.
731 (struct user): Likewise.
732 Add 32-bit x86 compatibility.
734 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
736 2002-03-19 Andreas Jaeger <aj@suse.de>
738 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
740 2002-03-18 Andreas Jaeger <aj@suse.de>
742 * iconvdata/Makefile: Only run tests when shared libs are
745 2002-03-17 Andreas Jaeger <aj@suse.de>
747 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
749 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
751 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
754 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
756 Patch by Hartvig Ekner <hartvige@mips.com>.
758 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
759 * sysdeps/generic/unwind-pe.h: Likewise.
761 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
764 * libio/stdio.c (AL2): Define variant when visibility attribute is
767 * include/libc-symbols.h (_INTVARDEF): Define variant when
768 visibility attribute is not supported.
770 2002-03-16 Ulrich Drepper <drepper@redhat.com>
772 * po/fr.po: Update from translation team.
774 2002-02-25 Bruno Haible <bruno@clisp.org>
776 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
778 2002-03-15 Ulrich Drepper <drepper@redhat.com>
780 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
781 buffers if _IO_file_attach failed.
783 * libio/fileops.c (_IO_file_open): Close file descriptor if
784 _IO_SEEKOFF call failed.
786 2002-03-15 H.J. Lu <hjl@gnu.org>
787 Ulrich Drepper <drepper@redhat.com>
789 * configure.in: Check for availability of
790 init_array/fini_array/preinit_array handling in binutils.
791 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
792 * config.make.in (have-initfini-array): New variable.
794 2002-03-15 Ulrich Drepper <drepper@redhat.com>
796 * stdio-common/tst-printf.c (main): Comment out one test which
797 checked the compiler's ability to fold floating-point constants
798 but not really printf.
799 (rfg3): Make s const.
800 * stdio-common/tst-printf.sh: Adjust for removed test.
802 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
803 internal function. Adjust for internal_function calling convention.
804 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
805 as internal_function.
807 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
810 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
811 declaration and definition.
812 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
814 * nss/getXXent_r.c: Likewise.
815 * nss/nsswitch.h (db_lookup_function): Add internal_function to
818 * include/time.h: Declare __localtime_r as hidden.
820 * include/aliases.h: Declare __getaliasent_r as hidden.
821 * include/grp.h: Declare __getgrent_r as hidden.
822 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
823 __getservent_r, and __getprotoent_r as hidden.
824 * include/pwd.h: Declare __getpwent_r as hidden.
825 * include/shadow.h: Declare __getspent_r as hidden.
826 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
828 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
829 and __gconv_transliterate as hidden.
830 Add internal_function to __gconv_get_path declaration.
831 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
832 definition. Add attribute_hidden to __gconv_read_conf definition.
834 2002-03-14 Ulrich Drepper <drepper@redhat.com>
836 * elf/rtld.c: Declare _environ as hidden.
837 * sysdeps/generic/dl-environ.c: Likewise.
838 * sysdeps/generic/dl-sysdep.c: Likewise.
840 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
841 _dl_mcount_internal as hidden.
843 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
844 * sysdeps/generic/dl-brk.c: New file.
845 * sysdeps/generic/dl-sbrk.c: New file.
846 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
847 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
849 * elf/dl-minimal.c (malloc): Declare _end as hidden.
850 (__errno_location): New function. Declare errno as hidden.
851 * elf/rtld.c (_dl_argc): Define as hidden.
852 (_dl_skip_args): Define as hidden.
853 (_begin, _end): Declare as hidden.
854 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
855 * sysdeps/generic/entry.h (_start): Declare as hidden.
856 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
857 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
858 _dl_runtime_resolve and _dl_runtime_profile as hidden.
859 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
861 2002-03-14 Roland McGrath <roland@frob.com>
863 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
865 * Makeconfig (%.v.i, %.v): New implicit rules.
866 (preprocess-versions): Variable removed.
867 ($(common-objpfx)shlib-versions.v.i): New target giving just the
868 shlib-versions input files as dependencies.
869 ($(common-objpfx)soversions.i): Depend on that instead of the input
870 files. Use it as input instead of using a pipeline.
871 (postclean-generated): Append soversions.i, shlib-versions.v, and
872 shlib-versions.v.i here.
873 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
874 the Versions.def input files as dependencies.
875 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
876 ($(common-objpfx)Versions.all): Depend on that instead of the input
877 files. Use it as input instead of using a pipeline.
878 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
879 (postclean-generated): Append those .v and .v.i files here.
881 2002-03-14 Jakub Jelinek <jakub@redhat.com>
883 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
884 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
887 2002-03-14 Jakub Jelinek <jakub@redhat.com>
889 * sysdeps/generic/mp_clz_tab.c: New file.
890 * sysdeps/i386/mp_clz_tab.c: New file.
891 * sysdeps/hppa/mp_clz_tab.c: New file.
892 * sysdeps/powerpc/mp_clz_tab.c: New file.
893 * stdlib/Makefile (aux): Revert last patch.
894 * math/Makefile (gmp-objs): Likewise.
896 2002-03-13 Paul Eggert <eggert@twinsun.com>
898 * time/strftime.c: Comment fixes for references to obsolescent
899 standards, In most cases the simplest fix is to remove the
900 confusing comments. Cross-referencing all the standards properly
901 is a bit of a pain, and it should be enough to put that info in
902 the documentation as I did in my recent time.texi patch.
904 2002-03-13 Paul Eggert <eggert@twinsun.com>
906 * manual/time.texi (Formatting Calendar Time):
907 ISO C99 also specifies the E and O modifiers.
908 %P is a GNU extension, and is not in ISO C99.
909 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
910 %T is also in ISO C99.
911 The RFC 822 example is not valid in arbitrary locales.
912 Reword the POSIX.2 wording slightly, to make it a bit clearer
913 that POSIX.2 formats are also supported by later POSIX versions.
914 If a format was introduced in ISO C99 it is also required by
917 2002-03-13 Ulrich Drepper <drepper@redhat.com>
919 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
920 _sys_nerr_internal with INTVARDEF2.
921 * include/libc-symbols.h (INTVARDEF2): New macro.
922 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
923 (_sys_nerr_internal): Library.
925 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
926 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
928 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
930 2002-03-13 Wolfram Gloger <wg@malloc.de>
932 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
934 2002-03-02 Andreas Schwab <schwab@suse.de>
936 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
937 'h' flag and positional arg.
938 * stdio-common/tst-printf.c (rfg3): New function to test
939 positional arguments.
940 (main): Fix some warnings.
942 2002-03-13 Jakub Jelinek <jakub@redhat.com>
944 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
945 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
947 2002-03-13 Ulrich Drepper <drepper@redhat.com>
949 * grp/initgroups.c (__nss_group_data): Declare as hidden.
951 * include/locale.h (_nl_C_locobj): Declare as hidden.
953 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
954 * time/strptime.c (_nl_C_LC_TIME): Likewise.
956 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
958 * include/sys/gmon.h: Declare _gmonparam as hidden.
960 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
961 (__ctype32_wctrans): Likewise.
962 (__ctype32_width): Likewise.
964 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
967 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
969 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
970 hidden. Change all users of these variables.
972 * posix/regex_internal.h (__re_error_msgid): Renamed from
973 re_error_msgid. Declare as hidden.
974 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
977 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
978 (__printf_function_table): Likewise.
979 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
981 (__printf_function_table): Likewise.
983 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
984 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
986 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
987 * nss/nsswitch.c: Declare _nss_*_database as hidden.
989 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
990 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
992 2002-03-12 Ulrich Drepper <drepper@redhat.com>
994 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
995 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
996 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
997 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
998 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
999 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1000 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1001 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1002 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
1003 _nl_C_LC_CTYPE_width: Declare as hidden.
1004 * include/locale.h: Declare _nl_locale_file_list.
1005 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
1006 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
1007 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
1008 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
1009 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
1010 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
1011 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
1012 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
1013 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
1014 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
1015 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
1016 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
1017 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1018 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1019 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1020 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1021 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1022 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1023 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1024 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
1025 _nl_C_LC_CTYPE_width, and as hidden.
1026 * locale/findlocale.c: Declare _nl_C as hidden.
1027 * locale/newlocale.c: Likewise.
1028 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
1029 _nl_locale_file_list.
1030 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
1031 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
1032 Define _nl_C_locobj as hidden.
1034 * malloc/mtrace.c (_mtrace_file): Define as hidden.
1035 (_mtrace_line): Likewise.
1037 * include/time.h: Declare __mon_yday as hidden.
1038 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
1040 * libio/libioP.h: Declare __libio_codecvt as hidden.
1041 * libio/fileops.c: Declare __libio_translit as hidden.
1042 * libio/iofwide.c: Define __libio_translit as hidden.
1044 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
1045 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
1046 * login/getutline_r.c: Likewise.
1047 * login/utmpname.c: Likewise.
1049 * login/utmp-private.h: Declare __libc_utmp_file_functions,
1050 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
1051 __libc_utmp_file_name as hidden.
1053 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
1054 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
1055 * locale/freelocale.c: Likewise.
1056 * locale/lc-time.c: Likewise.
1058 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
1059 (__libc_ptyname2): Likewise.
1060 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
1062 (__libc_ptyname2): Likewise.
1064 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
1065 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
1066 * sysdeps/generic/init-first.c: Likewise.
1067 * sysdeps/i386/init-first.c: Likewise.
1068 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1069 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1070 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1071 * sysdeps/sh/init-first.c: Likewise.
1072 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1073 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1075 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
1076 (_itowa_upper_digits): Likewise.
1078 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
1079 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
1082 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
1083 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
1084 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
1085 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
1087 * gmon/gmon.c (__bb_head): Define as hidden.
1088 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
1090 * argp/argp-parse.c (_argp_hang): Define as static.
1092 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
1093 handling in latest compilers.
1095 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
1097 * libio/fileops.c (_IO_file_jumps): Likewise.
1098 * libio/stdfiles.c (_IO_list_all): Likewise.
1099 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
1101 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
1103 * include/malloc.h: Add __libc_malloc_initialized declaration
1104 here. Mark variable hidden.
1105 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
1107 * elf/dl-open.c (__libc_argc): Declare as hidden.
1108 (__libc_argv): Likewise.
1109 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
1110 (__libc_argv): Likewise.
1111 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
1112 __libc_argv as hidden.
1113 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1114 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1115 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1116 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1118 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
1119 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
1120 * stdlib/erand48.c: Likewise.
1121 * stdlib/jrand48.c: Likewise.
1122 * stdlib/lcong48.c: Likewise.
1123 * stdlib/lrand48.c: Likewise.
1124 * stdlib/mrand48.c: Likewise.
1125 * stdlib/nrand48.c: Likewise.
1126 * stdlib/seed48.c: Likewise.
1127 * stdlib/srand48.c: Likewise.
1129 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
1130 (_itoa_lower_digits_internal): New declaration.
1131 (_itoa_upper_digits_internal): New declaration.
1132 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
1133 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
1134 (_itoa_upper_digits_internal): New declaration.
1135 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
1137 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
1138 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
1140 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
1141 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1143 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
1144 (_itowa_lower_digits): Likewise.
1145 (_itowa_upper_digits): Likewise.
1146 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
1147 (_itowa_upper_digits): Likewise.
1149 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
1150 not already defined.
1151 (GERMANIC_PLURAL): Declare as hidden.
1153 * posix/getopt.c (__getopt_initialized): Declare as hidden.
1154 (attribute_hidden): Define as empty macro if not already defined.
1156 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1157 (__gconv_max_path_elem_len): Likewise.
1158 (__gconv_path_envvar): Likewise.
1160 * math/Makefile (gmp-objs): Remove mp_clz_tab.
1161 * stdlib/Makefile (aux): Remove mp_clz_tab.
1162 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
1164 * stdlib/exit.h (__exit_funcs): Declare as hidden.
1166 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1168 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1169 _nl_category_names, _nl_category_name_sizes, _nl_current,
1170 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1172 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1173 (_nl_current_default_domain): Likewise
1174 (_nl_state_lock): Likewise.
1175 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1176 (_nl_current_default_domain): Likewise
1177 (_nl_state_lock): Likewise.
1178 * intl/bindtextdom.c (_nl_state_lock): Likewise.
1180 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1181 (_fpioconst_pow10): Likewise.
1183 * include/time.h (_tmbuf): Add attribute_hidden.
1185 * time/tzset.c (tzstring_list): Define as static.
1187 * include/time.h: Add attribute_hidden to __tzname_cur_max and
1188 __use_tzfile declaration.
1190 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
1191 and __wcsmbs_last_locale declaration.
1193 2002-02-25 Paul Eggert <eggert@twinsun.com>
1195 * timezone/Makefile (tzbases): Move systemv from here...
1196 (tzlinks): to here, since the entries in systemv were all changed
1197 from Zone to Link lines in tz-2001a. Bug reported (and patch
1198 tested) by Peter Breitenlohner.
1200 2002-03-07 Jakub Jelinek <jakub@redhat.com>
1202 * time/tst-posixtz.c (tests): Add new tests.
1203 (main): Test whether tzset() sets daylight properly.
1205 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1207 * time/tzset.c (tz_compute): Move __daylight, __tzname and
1208 __tzname_cur_max setting...
1209 (tzset_internal): ...here.
1211 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1213 * time/tzset.c (compute_change): Don't return any value.
1214 (tz_compute): Likewise. Don't handle southern hemisphere here.
1215 (__tz_convert): But here.
1217 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1219 * manual/examples/mkfsock.c: Include <string.h> as well.
1220 Patch by Alain De Carolis <alaind@wseurope.com>.
1222 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
1224 * posix/regexec.c (re_match): Fix incorrect register sizes.
1225 (re_search): Likewise.
1227 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1229 * posix/regcomp.c (regfree): Remove a disused condition.
1230 * posix/regex_internal.c (re_acquire_state): Likewise.
1231 (re_acquire_state_context): Likewise.
1232 (register_state): Remove a redundant malloc invocation.
1233 * posix/regex_internal.h: (re_state_table_entry): Simplify
1236 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
1238 * posix/regcomp.c (regcomp): Add __builtin_expect to error
1239 handling conditions.
1240 (regerror): Likewise.
1241 (regfree): Likewise.
1242 (re_compile_internal): Likewise.
1243 (init_dfa): Likewise.
1244 (init_word_char): Likewise.
1245 (create_initial_state): Likewise.
1246 (analyze): Likewise.
1247 (analyze_tree): Likewise.
1248 (duplicate_node): Likewise.
1249 (calc_eclosure): Likewise.
1250 (calc_eclosure_iter): Likewise.
1252 (parse_reg_exp): Likewise.
1253 (parse_branch): Likewise.
1254 (parse_expression): Likewise.
1255 (parse_subexp): Likewise.
1256 (parse_dup_op): Likewise.
1257 (parse_bracket_exp): Likewise.
1258 (build_equiv_class): Likewise.
1259 (build_charclass): Likewise.
1260 (build_word_op): Likewise.
1261 (fetch_number): Likewise.
1262 (create_tree): Likewise.
1263 (duplicate_tree): Likewise.
1264 * posix/regex.c (BE): New macro.
1265 * posix/regexec.c (re_match): Add __builtin_expect to error
1266 handling conditions.
1267 (re_match_2): Likewise.
1268 (re_search): Likewise.
1269 (re_search_internal): Likewise.
1270 (check_matching): Likewise.
1271 (proceed_next_node): Likewise.
1272 (set_regs): Likewise.
1273 (sift_states_backward): Likewise.
1274 (add_epsilon_backreference): Likewise.
1275 (transit_state): Likewise.
1276 (transit_state_sb): Likewise.
1277 (transit_state_mb): Likewise.
1278 (transit_state_bkref): Likewise.
1279 (transit_state_bkref_loop): Likewise.
1280 (build_trtable): Likewise.
1281 (group_nodes_into_DFAstates): Likewise.
1282 (match_ctx_init): Likewise.
1283 (match_ctx_add_entry): Likewise.
1284 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
1285 to error handling conditions.
1286 (re_string_construct_toupper): Likewise.
1287 (build_wcs_buffer): Likewise.
1288 (build_wcs_upper_buffer): Likewise.
1289 (build_upper_buffer): Likewise.
1290 (re_string_translate_buffer): Likewise.
1291 (re_node_set_alloc): Likewise.
1292 (re_node_set_init_1): Likewise.
1293 (re_node_set_init_2): Likewise.
1294 (re_node_set_init_copy): Likewise.
1295 (re_node_set_intersect): Likewise.
1296 (re_node_set_init_union): Likewise.
1297 (re_node_set_merge): Likewise.
1298 (re_node_set_insert): Likewise.
1299 (re_dfa_add_node): Likewise.
1300 (re_acquire_state): Likewise.
1301 (re_acquire_state_context): Likewise.
1302 (create_new_state_common): Likewise.
1303 (register_state): Likewise.
1304 (create_ci_new_state): Likewise.
1305 (create_cd_new_state): Likewise.
1306 (re_string_context_at): Remove redundant condition.
1308 2002-01-16 Roger Sayle <roger@eyesopen.com>
1310 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
1312 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
1314 2002-03-11 Jakub Jelinek <jakub@redhat.com>
1316 * sysdeps/i386/elf/configure.in: Fix comment.
1318 * sysdeps/sparc/sparc64/configure.in: New.
1319 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
1320 if .dynamic comes before .got.
1321 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
1323 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
1324 HP_TIMING_ACCUM): Fix typos.
1326 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1328 * string/strfry.c: Add some more randomness to the seed.
1329 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
1331 * po/es.po: Update from translation team.
1332 * po/fr.po: Likewise.
1334 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
1336 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
1337 when determining type of format.
1338 Patch by James Antill <james@anqd.org> [PR libc/2787].
1340 2002-03-04 Jakub Jelinek <jakub@redhat.com>
1342 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
1344 2002-03-11 Roland McGrath <roland@frob.com>
1346 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
1348 * Versions.def (libc): Add GLIBC_2.2.6.
1349 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
1350 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
1351 __errno_location instead of __hurd_errno_location, and don't inline it.
1352 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1353 * hurd/errno.c: New file.
1354 * hurd/Makefile (routines): Add errno.
1356 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1358 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
1359 ridiculously large widths and precisions [PR libc/3026].
1361 2002-03-11 Andreas Jaeger <aj@suse.de>
1363 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
1365 Patch by Susanne Oberhauser <froh@SuSE.de>.
1367 2002-03-11 Ulrich Drepper <drepper@redhat.com>
1369 * inet/rexec.c (ahostbuf): Define as static.
1371 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
1372 (__ctype32_wctrans): Likewise.
1373 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
1374 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
1375 (__ctype32_wctrans): Likewise.
1376 (__ctype32_width): Likewise.
1378 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
1379 They were never exported anyway.
1381 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
1382 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
1384 * include/sys/gmon.h: Declare _gmonparam.
1386 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
1387 symbols for getdents64. They were never exported.
1389 2002-03-09 Roland McGrath <roland@frob.com>
1391 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1392 Reported by Jon Arney <jarney1@cox.net>.
1394 2002-02-23 Roland McGrath <roland@frob.com>
1396 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1398 (__hurd_errno_location): Function removed.
1400 2002-03-06 Andreas Jaeger <aj@suse.de>
1402 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1405 2002-03-04 Andreas Jaeger <aj@suse.de>
1407 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1409 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1412 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1414 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1416 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1418 * sysdeps/x86_64/bits/setjmp.h: New.
1420 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1422 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1424 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1426 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1427 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1429 2002-02-28 Bo Thorsen <bo@suse.de>
1431 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1434 2002-03-03 Andreas Jaeger <aj@suse.de>
1436 * sysdeps/x86_64/bits/wordsize.h: New file.
1438 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1439 * elf/tst-tlsmod1.c: Likewise.
1441 * posix/regcomp.c: Get regex.h from include dir for internal
1444 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1445 to libc-internal.h and include it.
1446 * include/libc-internal.h: Add __init_misc.
1448 * misc/init-misc.c: Include libc-internal.h for prototypes.
1450 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
1452 * misc/error.c [_LIBC]: Include libioP.h for prototype of
1455 2002-03-03 Ulrich Drepper <drepper@redhat.com>
1457 * posix/regcomp.c: Compatibility changes to allow using the code
1460 2002-02-28 Hartvig Ekner <hartvige@mips.com>
1462 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
1465 2002-03-02 Ulrich Drepper <drepper@redhat.com>
1467 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
1468 of .str elements in the returned data structure.
1470 * elf/elf.h: Add Alpha TLS bits.
1472 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1474 * sysdeps/unix/sysv/linux/nice.c: New file.
1476 2002-03-01 Ulrich Drepper <drepper@redhat.com>
1478 * elf/Makefile (dl-routines): Add dl-origin.
1479 (elide-routines.os): Add dl-origin.
1480 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
1481 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
1483 * include/libc-symbols.c: Define attribute_hidden depending on
1484 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
1486 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
1487 * elf/dl-load.c: Likewise.
1488 * elf/rtld.c: Likewise.
1489 * include/unistd.h: Declare __libc_enable_secure_internal.
1490 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
1491 Use INTUSE with __libc_enable_secure.
1492 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1494 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
1495 * elf/dl-error.c: Likewise,
1496 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
1498 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
1499 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
1500 function definition. Use INTDEF with _dl_get_origin.
1501 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1503 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
1504 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
1506 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
1507 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
1508 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
1510 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
1511 * elf/dl-deps.c: Likewise.
1512 * elf/dl-error.c: Likewise.
1513 * elf/dl-fini.c: Likewise.
1514 * elf/dl-init.c: Likewise.
1515 * elf/dl-load.c: Likewise.
1516 * elf/dl-lookup.c: Likewise.
1517 * elf/dl-reloc.c: Likewise.
1518 * elf/dl-version.c: Likewise.
1519 * elf/do-lookup.h: Likewise.
1520 * sysdeps/arm/dl-machine.h: Likewise.
1521 * sysdeps/cris/dl-machine.h: Likewise.
1522 * sysdeps/hppa/dl-machine.h: Likewise.
1523 * sysdeps/i386/dl-machine.h: Likewise.
1524 * sysdeps/m68k/dl-machine.h: Likewise.
1525 * sysdeps/powerpc/dl-machine.h: Likewise.
1526 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1527 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1528 * sysdeps/sh/dl-machine.h: Likewise.
1529 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
1530 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
1531 * sysdeps/x86_64/dl-machine.h: Likewise.
1532 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
1533 _dl_argv[0]. Use INTUSE with _dl_argv.
1534 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
1535 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
1537 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1539 * elf/rtld.c (_rtld_global): Remove .protected.
1540 (_rtld_local): Strong alias to _rtld_global.
1541 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
1543 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
1544 _rtld_local instead of _rtld_global.
1545 (_rtld_local): Add hidden extern, possibly in .sdata section.
1546 * configure.in: Add tests for visibility attribute and .sdata.
1547 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
1548 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
1549 * sysdeps/arm/dl-machine.h: Likewise.
1550 * sysdeps/generic/ldsodefs.h: Likewise.
1551 * sysdeps/hppa/dl-machine.h: Likewise.
1552 * sysdeps/cris/dl-machine.h: Likewise.
1553 * sysdeps/i386/dl-machine.h: Likewise.
1554 * sysdeps/ia64/dl-machine.h: Likewise.
1555 * sysdeps/m68k/dl-machine.h: Likewise.
1556 * sysdeps/mips/mips64/dl-machine.h: Likewise.
1557 * sysdeps/mips/dl-machine.h: Likewise.
1558 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1559 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1560 * sysdeps/sh/dl-machine.h: Likewise.
1561 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1562 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1563 * sysdeps/x86_64/dl-machine.h: Likewise.
1565 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1567 * login/login.c (login): Always initialize ut_line field
1570 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1572 * sysdeps/i386/Makefile (sysdep_routines): Add
1574 (shared-only-routines): Likewise.
1575 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1576 (shared-only-routines): Likewise.
1577 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1578 (shared-only-routines): Likewise.
1579 * sysdeps/wordsize-32/divdi3.c: New file.
1581 2002-02-28 Ulrich Drepper <drepper@redhat.com>
1583 * locale/iso-4217.def: Remove obsolete currencies for countries
1586 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
1588 * posix/regcomp.c (regcomp): Remove a redundant condition.
1589 (init_word_char): Add a check on malloc failure.
1590 (create_initial_state): Likewise.
1591 (duplicate_node): Likewise.
1592 (calc_eclosure): Likewise.
1593 (calc_eclosure_iter): Likewise.
1594 (parse_expression): Likewise.
1595 (parse_bracket_exp): Remove unnecessary malloc invocations.
1596 (build_equiv_class): Likewise.
1597 (build_charclass): Likewise.
1598 * posix/regex_internal.c (re_node_set_intersect): Add a check
1600 (re_node_set_add_intersect): Likewise.
1601 (re_node_set_merge): Likewise.
1602 (re_acquire_state): Likewise.
1603 (re_acquire_state_context): Likewise.
1604 (create_newstate_common): Likewise.
1605 (register_state): Likewise.
1606 (create_ci_newstate): Likewise.
1607 (create_cd_newstate): Likewise.
1608 * posix/regex_internal.h: Fix prototypes of re_acquire_state
1609 and re_acquire_state_context.
1610 * posix/regexec.c (regexec): Suit it to the error handling of
1612 (re_match): Likewise.
1613 (re_search): Likewise.
1614 (re_search_internal): Add a check on malloc failure.
1615 (acquire_init_state_context): Likewise.
1616 (check_matching): Likewise.
1617 (proceed_next_node): Likewise.
1618 (set_regs): Likewise.
1619 (sift_states_backward): Likewise.
1620 (sift_states_iter_bkref): Likewise.
1621 (add_epsilon_backreference): Likewise.
1622 (transit_state): Likewise.
1623 (transit_state_sb): Likewise.
1624 (transit_state_mb): Likewise.
1625 (transit_state_bkref_loop): Likewise.
1626 (build_trtable): Likewise.
1627 (group_nodes_into_DFAstates): Likewise.
1628 (match_ctx_init): Likewise.
1629 (match_ctx_add_entry): Likewise.
1631 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1633 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1634 l_libname if profiling is enabled [PR libc/2916].
1636 * sysdeps/ia64/dl-tls.h: New file.
1638 2002-02-27 Jakub Jelinek <jakub@redhat.com>
1640 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1641 Work around an Alpha gas bug.
1643 2002-02-27 Ulrich Drepper <drepper@redhat.com>
1645 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1646 uses read to load the catalog.
1647 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1649 2002-02-26 Ulrich Drepper <drepper@redhat.com>
1651 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1652 regex_internal.c, and regex_internal.h.
1653 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1654 * posix/regex.c: Complete rewrite.
1655 * posix/regexec.c: New file.
1656 * posix/regcomp.c: New file.
1657 * posix/regex_internal.c: New file.
1658 * posix/regex_internal.h: New file.
1659 * posix/regex.h (RE_ICASE): New macro.
1660 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1662 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1663 ungetwc. It's a macro.
1664 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1666 Reported by Jason Merrill <jason@redhat.com>.
1668 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1670 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1671 position to fp->_offset if it is set.
1672 * stdio-common/Makefile (tests): Add tst-fdopen.
1673 * stdio-common/tst-fdopen.c: New test.
1675 2002-02-25 Jakub Jelinek <jakub@redhat.com>
1677 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1678 * stdio-common/tst-ungetc.c (main): Add another test.
1680 2002-02-25 Ulrich Drepper <drepper@redhat.com>
1682 * assert/assert-perr.c: Use INTUSE to reference functions and variables
1683 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
1684 aliases. Add prototypes for the new aliases.
1685 * assert/assert.c: Likewise.
1686 * include/libc-symbols.h: Likewise.
1687 * include/stdio.h: Likewise.
1688 * include/netinet/in.h: Likewise.
1689 * include/rpc/auth.h: Likewise.
1690 * include/rpc/auth_unix.h: Likewise.
1691 * include/rpc/key_prot.h: Likewise.
1692 * include/rpc/pmap_prot.h: Likewise.
1693 * include/rpc/pmap_rmt.h: Likewise.
1694 * include/rpc/rpc_msg.h: Likewise.
1695 * include/rpc/xdr.h: Likewise.
1696 * inet/gethstbyad_r.c: Likewise.
1697 * inet/gethstbynm2_r.c: Likewise.
1698 * inet/gethstbynm_r.c: Likewise.
1699 * inet/gethstent_r.c: Likewise.
1700 * inet/in6_addr.c: Likewise.
1701 * libio/__fpurge.c: Likewise.
1702 * libio/filedoalloc.c: Likewise.
1703 * libio/fileops.c: Likewise.
1704 * libio/ftello.c: Likewise.
1705 * libio/ftello64.c: Likewise.
1706 * libio/genops.c: Likewise.
1707 * libio/iofclose.c: Likewise.
1708 * libio/iofdopen.c: Likewise.
1709 * libio/iofflush.c: Likewise.
1710 * libio/iofflush_u.c: Likewise.
1711 * libio/iofgetpos.c: Likewise.
1712 * libio/iofgetpos64.c: Likewise.
1713 * libio/iofgets.c: Likewise.
1714 * libio/iofgets_u.c: Likewise.
1715 * libio/iofopen.c: Likewise.
1716 * libio/iofopncook.c: Likewise.
1717 * libio/iofputs.c: Likewise.
1718 * libio/iofread.c: Likewise.
1719 * libio/iofread_u.c: Likewise.
1720 * libio/iofsetpos.c: Likewise.
1721 * libio/iofsetpos64.c: Likewise.
1722 * libio/ioftell.c: Likewise.
1723 * libio/iofwrite.c: Likewise.
1724 * libio/iogetline.c: Likewise.
1725 * libio/iogets.c: Likewise.
1726 * libio/iogetwline.c: Likewise.
1727 * libio/iolibio.h: Likewise.
1728 * libio/iopadn.c: Likewise.
1729 * libio/iopopen.c: Likewise.
1730 * libio/ioseekoff.c: Likewise.
1731 * libio/ioseekpos.c: Likewise.
1732 * libio/iosetbuffer.c: Likewise.
1733 * libio/iosetvbuf.c: Likewise.
1734 * libio/ioungetc.c: Likewise.
1735 * libio/ioungetwc.c: Likewise.
1736 * libio/iovdprintf.c: Likewise.
1737 * libio/iovsprintf.c: Likewise.
1738 * libio/iovsscanf.c: Likewise.
1739 * libio/libioP.h: Likewise.
1740 * libio/memstream.c: Likewise.
1741 * libio/obprintf.c: Likewise.
1742 * libio/oldfileops.c: Likewise.
1743 * libio/oldiofclose.c: Likewise.
1744 * libio/oldiofdopen.c: Likewise.
1745 * libio/oldiofgetpos.c: Likewise.
1746 * libio/oldiofgetpos64.c: Likewise.
1747 * libio/oldiofopen.c: Likewise.
1748 * libio/oldiofsetpos.c: Likewise.
1749 * libio/oldiofsetpos64.c: Likewise.
1750 * libio/oldiopopen.c: Likewise.
1751 * libio/oldstdfiles.c: Likewise.
1752 * libio/putc.c: Likewise.
1753 * libio/setbuf.c: Likewise.
1754 * libio/setlinebuf.c: Likewise.
1755 * libio/stdfiles.c: Likewise.
1756 * libio/stdio.c: Likewise.
1757 * libio/strops.c: Likewise.
1758 * libio/vasprintf.c: Likewise.
1759 * libio/vscanf.c: Likewise.
1760 * libio/vsnprintf.c: Likewise.
1761 * libio/vswprintf.c: Likewise.
1762 * libio/wfiledoalloc.c: Likewise.
1763 * libio/wfileops.c: Likewise.
1764 * libio/wgenops.c: Likewise.
1765 * libio/wstrops.c: Likewise.
1766 * malloc/mtrace.c: Likewise.
1767 * misc/error.c: Likewise.
1768 * misc/syslog.c: Likewise.
1769 * nss/getXXbyYY_r.c: Likewise.
1770 * nss/getXXent_r.c: Likewise.
1771 * nss/hosts-lookup.c: Likewise.
1772 * stdio-common/getw.c
1773 * stdio-common/printf-prs.c: Likewise.
1774 * stdio-common/printf_fp.c: Likewise.
1775 * stdio-common/printf_size.c: Likewise.
1776 * stdio-common/putw.c: Likewise.
1777 * stdio-common/scanf.c: Likewise.
1778 * stdio-common/sprintf.c: Likewise.
1779 * stdio-common/tmpfile64.c: Likewise.
1780 * stdio-common/vfprintf.c: Likewise.
1781 * stdio-common/vfscanf.c: Likewise.
1782 * stdlib/strfmon.c: Likewise.
1783 * sunrpc/auth_des.c: Likewise.
1784 * sunrpc/auth_none.c: Likewise.
1785 * sunrpc/auth_unix.c: Likewise.
1786 * sunrpc/authdes_prot.c: Likewise.
1787 * sunrpc/authuxprot.c: Likewise.
1788 * sunrpc/clnt_perr.c: Likewise.
1789 * sunrpc/clnt_raw.c: Likewise.
1790 * sunrpc/clnt_tcp.c: Likewise.
1791 * sunrpc/clnt_udp.c: Likewise.
1792 * sunrpc/clnt_unix.c: Likewise.
1793 * sunrpc/key_call.c: Likewise.
1794 * sunrpc/key_prot.c: Likewise.
1795 * sunrpc/openchild.c: Likewise.
1796 * sunrpc/pm_getmaps.c: Likewise.
1797 * sunrpc/pm_getport.c: Likewise.
1798 * sunrpc/pmap_clnt.c: Likewise.
1799 * sunrpc/pmap_prot.c: Likewise.
1800 * sunrpc/pmap_prot2.c: Likewise.
1801 * sunrpc/pmap_rmt.c: Likewise.
1802 * sunrpc/rpc_cmsg.c: Likewise.
1803 * sunrpc/rpc_prot.c: Likewise.
1804 * sunrpc/svc_authux.c: Likewise.
1805 * sunrpc/svc_raw.c: Likewise.
1806 * sunrpc/svc_simple.c: Likewise.
1807 * sunrpc/svc_tcp.c: Likewise.
1808 * sunrpc/svc_udp.c: Likewise.
1809 * sunrpc/svc_unix.c: Likewise.
1810 * sunrpc/xdr.c: Likewise.
1811 * sunrpc/xdr_array.c: Likewise.
1812 * sunrpc/xdr_mem.c: Likewise.
1813 * sunrpc/xdr_rec.c: Likewise.
1814 * sunrpc/xdr_ref.c: Likewise.
1815 * sunrpc/xdr_stdio.c: Likewise.
1816 * sysdeps/generic/_strerror.c: Likewise.
1817 * sysdeps/generic/printf_fphex.c: Likewise.
1818 * sysdeps/generic/tmpfile.c: Likewise.
1819 * sysdeps/gnu/errlist.awk: Likewise.
1820 * sysdeps/gnu/errlist.c: Likewise.
1822 * libio/Makefile (routines): Remove iosprint.
1823 * libio/iosprintf.c: Removed
1826 2002-02-24 Ulrich Drepper <drepper@redhat.com>
1828 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1829 non_dynamic_init and exported now.
1830 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1831 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1833 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1834 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1835 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1837 2002-02-23 Ulrich Drepper <drepper@redhat.com>
1839 * elf/dl-close.c (free_slotinfo): Check for end of list and return
1842 * locale/iso-639.def: Add language codes for Walloon.
1844 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1845 total number of relocations performed.
1847 * elf/sprof.c (load_profdata): If do_test provide information as
1848 to why loading failed.
1849 * elf/dl-profile.c (_dl_start_profile): Initialize all of
1852 * csu/set-init.c: Moved to...
1853 * sysdeps/mach/hurd/set-init.c: ...here. New file.
1854 * csu/Makefile: Don't compile set-init.
1855 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
1856 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
1858 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1859 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1860 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
1862 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
1865 2002-02-22 Ulrich Drepper <drepper@redhat.com>
1867 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
1868 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
1869 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
1870 (_dl_deallocate_tls): New function.
1871 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
1874 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1876 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
1877 * stdio-common/tst-fseek.c (main): Add test for this.
1879 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
1881 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
1883 2002-02-19 Jakub Jelinek <jakub@redhat.com>
1885 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
1886 pointer before dereferencing.
1888 2002-02-18 Roland McGrath <roland@frob.com>
1890 * sysdeps/mach/hurd/times.c: Fix typo in last change.
1892 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
1893 Use task_policy in place of task_priority.
1895 * sysdeps/generic/bits/mman.h
1896 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
1897 * sysdeps/mach/msync.c: New file.
1899 * sysdeps/mach/powerpc/syscall.S: New file.
1901 * mach/msg.c [MACH_MSG_OVERWRITE]
1902 (__mach_msg_trap, __mach_msg_overwrite): New functions.
1903 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
1905 * sysdeps/mach/configure.in: Check for clock.defs to put into
1906 mach_interface_list.
1907 * sysdeps/mach/configure: Regenerated.
1909 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
1910 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
1911 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
1912 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
1913 (mach-shortcuts): Add device_read_overwrite_request,
1914 device_read_overwrite, vm_read_overwrite, thread_switch.
1916 * configure.in (base_machine): Set to $machine by default.
1917 * configure: Regenerated.
1919 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
1920 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
1921 * sysdeps/mach/configure: Regenerated.
1922 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
1924 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
1926 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
1928 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
1929 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
1931 2002-02-17 Roland McGrath <roland@frob.com>
1933 * sysdeps/mach/hurd/times.c
1934 [NO_CREATION_TIME] (startup_time): New static variable.
1935 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
1936 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
1937 creation_time from task_basic_info.
1938 (__times): Use __gettimeofday instead of __host_get_time.
1940 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
1941 Use untyped Mach IPC message format.
1943 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
1945 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
1946 _S_catch_exception_raise_state_identity,
1947 _hurdsig_fault_catch_exception_raise_state,
1948 _hurdsig_fault_catch_exception_raise_state_identity.
1950 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
1952 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
1953 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
1955 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
1956 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
1958 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
1959 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
1960 them as no-op macros.
1961 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
1962 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
1964 * sysdeps/powerpc/dl-machine.h
1965 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
1967 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
1968 Use untyped Mach IPC message format.
1970 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
1971 Handle untyped Mach IPC message formats.
1973 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
1974 Expect different argument conventions when this is defined.
1975 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
1976 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
1977 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
1978 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
1979 for OSF Mach variant.
1980 (faulted): Use mig_reply_error_t for REPLY.
1981 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
1982 in __thread_set_exception_ports call.
1983 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
1984 __mach_port_set_attributes in place of __mach_port_set_qlimit.
1986 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
1987 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
1988 on Darwin, which includes bogons.
1990 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
1991 variable LOADBASE so it's not declared when it's not used.
1993 2002-02-16 Roland McGrath <roland@frob.com>
1995 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
1996 to use BI.creation_time.
1998 * mach/Machrules (MIG): Add -x c to CPP value passed down.
2000 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
2001 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
2002 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
2003 host_page_size instead of vm_statistics.
2005 * sysdeps/mach/Makefile (mach-before-compile): Don't include
2006 mach_interface.h here, since not all variants use that name.
2008 * sysdeps/mach/configure.in: Add some checks for Mach headers
2009 to ensure a sane installation.
2010 (mach_interface_list): Define this variable by checking for .defs
2011 files found in various variants.
2012 * configure.in (mach_interface_list): AC_SUBST this.
2013 * config.make.in (mach-interface-list): New substituted variable.
2014 * mach/Makefile (user-interfaces): Define this using the value
2015 of $(mach-interface-list) instead of mach, mach4.
2016 Updated other references to mach_interface to use it as well.
2018 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
2020 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
2021 mig_reply_error_t for OSF Mach variant.
2023 * mach/Makefile (routines): Remove bootprivport.
2024 * mach/bootprivport.c: File removed. It has never been used.
2026 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
2027 Grok the OSF flavor of message format.
2028 (mach_msg_destroy_port): For MAKE_SEND and
2029 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
2030 no-senders notification.
2032 2002-02-06 Roland McGrath <roland@frob.com>
2034 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
2035 to here if 2.0 compatibility enabled ...
2036 (libc: GLIBC_2.1.3): ... from here.
2038 2002-02-15 Ulrich Drepper <drepper@redhat.com>
2040 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
2042 * elf/dl-close.c (_dl_close): Likewise.
2044 2002-02-14 Ulrich Drepper <drepper@redhat.com>
2046 * elf/Makefile: Add rules to build and run tst-tls8.
2047 * elf/tst-tls8.c: New file.
2048 * elf/tst-tlsmod4.c: New file.
2050 * stdlib/test-a64l.c (tests): Add more test cases.
2052 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
2053 Reported by Walter Harms <WHarms@bfs.de>.
2055 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
2057 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
2058 definitions for struct sigcontext.
2059 Suggested by David Mosberger-Tang.
2061 2002-02-13 Ulrich Drepper <drepper@redhat.com>
2063 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
2064 for removing reference of module in slotinfo list.
2065 (_dl_close): Use remove_slotinfo.
2066 * sysdeps/generic/dl-tls.c: General pretty printing.
2067 (oom): Define only if SHARED.
2068 (_dl_next_tls_modid): Correct starting point for the case we assume
2069 there is a gap. Add missing instruction grouping (doh!). Correct
2070 tests for reaching maximum index.
2071 * elf/Makefile: Add rules to build and run tst-tls7.
2072 * elf/tst-tls7.c: New file.
2073 * elf/tst-tlsmod3.c: New file.
2075 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
2077 * elf/tst-tlsmod2.c: Likewise.
2079 * elf/dl-close.c (_dl_close): When closing an object using TLS
2080 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
2081 true. Increment dl_tls_generation only if we closed any TLS-using
2083 * elf/tst-tls6.c: New file.
2084 * elf/Makefile: Add rules to build and run tst-tls6.
2086 * po/da.po: Update from translation team.
2088 * locale/categories.def: Fix typo [PR libc/2948].
2089 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
2091 * locale/iso-4217.def: Update from official version [PR libc/2950].
2092 * glibcbug.in: Honor TMPDIR [PR libc/2951].
2093 * locale/programs/ld-collate.c (collate_finish): Bail out with a
2094 message if input is too confusion instead of using assert.
2095 (collate_read): Don't crash on unknown symbol [PR libc/2952].
2096 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
2098 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
2099 * elf/tst-tls2.c: Likewise.
2100 * elf/tst-tls3.c: Likewise.
2102 2002-02-13 Jakub Jelinek <jakub@redhat.com>
2104 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
2106 2002-02-13 Ulrich Drepper <drepper@redhat.com>
2108 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
2109 if this is really necessary.
2111 * elf/dl-close.c (_dl_close): Implement freeing entries in the
2113 (free_mem): Free memory for the slotinfo array if possible.
2115 2002-02-12 Andreas Schwab <schwab@suse.de>
2117 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
2119 2002-02-12 Ulrich Drepper <drepper@redhat.com>
2121 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
2123 (oom): New function.
2124 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
2125 (_dl_determine_tlsoffset): Likewise.
2126 (_dl_allocate_tls): Likewise.
2127 (__TLS_GET_ADDR): Define if not already defined.
2128 (_dl_tls_symaddr): New function.
2129 (allocate_and_init): New function.
2130 (__tls_get_addr): Actually implement handling of generation counter
2131 and deferred allocation.
2132 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
2133 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2135 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
2136 Declare _dl_tls_symaddr.
2137 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
2139 * include/link.h (struct link_map): Remove l_tls_nextimage and
2141 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
2142 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
2143 (_dl_vsym): Likewise.
2144 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
2146 (dl_main): Allow PT_TLS be present for empty segment. Remove
2147 nextimage list handling. Instead add all modules using TLS to
2148 dl_tls_dtv_slotinfo_list.
2149 * elf/dl-open.c (dl_open_worker): After successfully loading all
2150 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
2151 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
2152 empty segment don't do anything. Remove handling of initimage list.
2153 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2154 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2155 * elf/dl-minimal.c: Define __libc_memalign.
2156 * elf/dl-support.c: Remove _dl_initimage_list. Add
2157 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2159 * include/stdlib.h: Declare __libc_memalign.
2161 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2162 * elf/tst-tls4.c: New file.
2163 * elf/tst-tls5.c: New file.
2164 * elf/tst-tlsmod2.c: New file.
2166 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2168 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2170 * elf/tst-tls1.c: Use test-skeleton.c.
2171 * elf/tst-tls2.c: Likewise.
2172 * elf/tst-tls3.c: Likewise.
2174 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2176 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2178 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2180 2002-02-10 Ulrich Drepper <drepper@redhat.com>
2182 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2184 * elf/tst-tls3.c: New file.
2185 * elf/tst-tlsmod1.c: New file.
2186 * elf/Makefile: Add rules to build and run tst-tls3.
2188 * sysdeps/i386/dl-machine.h: Include <tls.h>.
2189 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2192 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
2194 * po/fr.po: Update from translation team.
2196 * elf/tls-macros.h: Add alternative macros for use in PIC.
2198 * elf/dl-lookup.c: Include <tls.h>.
2199 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
2201 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
2202 required by passing pointer to last element of the list.
2204 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
2205 l_tls_initimage to a place where it actually is performed.
2207 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
2208 after globfree() calls.
2210 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
2211 (openaux): Pass open_mode as new last argument to _dl_map_object.
2212 (_dl_map_object_deps): Add new argument open_mode. Initialize
2213 open_mode element of args variable with it.
2214 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
2215 _dl_map_object_deps.
2216 * elf/rtld.c (dl_main): Add zero as last parameter to
2217 _dl_map_object_deps call.
2218 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
2219 * elf/nodlopen2.c: New file.
2220 * elf/nodlopenmod2.c: New file.
2221 * elf/Makefile: Add rules to build and run nodlopen2.
2223 * elf/tst-tls1.c: Move TLS helper macros to...
2224 * elf/tls-macros.h: ...here. New file.
2225 * elf/tst-tls2.c: New file.
2226 * elf/Makefile (tests): Add tst-tls2.
2227 (distribute): Add tls-macros.h.
2229 * po/sv.po: Update from translation team.
2231 * elf/tst-tls1.c (main): Add complete set of tests. Split
2232 architecture specific definitions from the actual test code.
2234 * po/tr.po: Update from translation team.
2236 2002-02-09 Ulrich Drepper <drepper@redhat.com>
2238 * elf/Makefile (tests): Add tst-tls1.
2239 * elf/tst-tls1.c: New file.
2241 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
2242 alignment of TCB for now.
2244 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
2245 initialization image for the application itself.
2247 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
2248 loop to initialize TLS block.
2250 2002-02-08 Richard Henderson <rth@redhat.com>
2252 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
2253 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
2255 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
2257 2002-02-09 Jakub Jelinek <jakub@redhat.com>
2259 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
2261 2002-02-08 Ulrich Drepper <drepper@redhat.com>
2263 * po/ca.po: Update from translation team.
2264 * po/sk.po: Likewise.
2266 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
2267 (dl_main): Move dtv/static TLS handling before relocation.
2268 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
2269 TLS_INIT_TP to allocate and install the dtv/static TLS block.
2270 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
2271 so far uses TLS initialize GL(dl_tls_static_size) and
2272 GL(dl_tls_static_align) to account for the TCB.
2273 (_dl_allocate_tls): New function.
2274 * sysdeps/generic/ldsodefs.h (rtld_global): Add
2275 _dl_initial_dtv_malloced.
2277 * configure.in: Test for __builtin_memset more realistically.
2279 * csu/version.c (banner): If TLS support is available say so.
2281 2002-02-04 H.J. Lu <hjl@gnu.org>
2283 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
2285 (__dl_runtime_resolve): Likewise.
2287 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
2290 2001-11-15 H.J. Lu <hjl@gnu.org>
2292 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
2293 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
2295 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
2297 2002-02-07 H.J. Lu <hjl@gnu.org>
2299 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
2301 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
2304 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2306 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
2308 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
2309 ___tls_get_addr_internal.
2310 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
2312 * po/ko.po: Update from translation team.
2314 2002-02-07 Jakub Jelinek <jakub@redhat.com>
2316 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
2317 attribute, change __pad{1,2} type to unsigned int.
2318 (struct stat64): Remove packed attribute.
2320 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2322 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
2324 2002-02-07 Andreas Schwab <schwab@suse.de>
2326 * configure.in: Fix check for -zcombreloc.
2328 2002-02-06 H.J. Lu <hjl@gnu.org>
2330 * config.h.in (HAVE_BUILTIN_MEMSET): New.
2331 * configure.in: Check if __builtin_memset really works.
2332 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
2333 __GNUC_PREREQ (2, 96) before using __builtin_memset.
2335 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2337 * io/bug-ftw3.c (main): Don't try the test if root.
2339 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2341 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
2343 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
2344 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
2345 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
2347 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
2348 a weak alias for __clone.
2349 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
2350 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
2351 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
2352 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
2353 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
2354 a weak alias for __mmap64.
2356 2002-02-05 H.J. Lu <hjl@gnu.org>
2358 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
2359 (atomic_add): Likewise.
2360 (compare_and_swap): Likewise.
2361 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
2363 2002-02-07 Ulrich Drepper <drepper@redhat.com>
2365 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
2367 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
2368 alignment of the TCB and store total size and alignment of static
2369 TLS block in _dl_tls_static_size and _dl_tls_static_align.
2370 tls_index is a typedef.
2371 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
2372 _dl_tls_static_align.
2373 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
2374 * elf/dl-support.c: Define _dl_tls_static_size and
2375 _dl_tls_static_align.
2377 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2379 * configure.in: Add --without-tls option.
2380 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
2381 --without-tls is given.
2383 * sysdeps/generic/dl-tls.c: Include <tls.h>.
2385 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
2387 2002-02-06 Roland McGrath <roland@frob.com>
2389 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
2390 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2392 * scripts/versions.awk: Improve error message for missing version.
2393 Each version inherits from the last one only if they have the same
2394 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2395 but not GLIBC_x and FOO_y.
2397 * scripts/firstversions.awk: Handle libraries that don't have each
2398 particular version named in the third column of shlib-versions.
2400 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2402 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2404 * Versions.def [ld]: Add GLIBC_2.3.
2405 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2406 * elf/Makefile (dl-routines): Add dl-tls.
2407 (distribute): Add dl-tls.h.
2408 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2409 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2410 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2411 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2412 along with the other info in the link map. Change queueing of init
2413 images for double linked list. Use _dl_next_tls_modid to compute
2415 * elf/rtld.c (_dl_start_final): Store alignment requirement
2416 along with the other info in rtld map and executable map.
2417 (dl_main): Add ld.so to the init image list if necessary. Compute
2418 final module ID with _dl_next_tls_modid.
2419 * include/link.h (struct link_map): Add l_tls_previmage and
2421 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2422 * sysdeps/i386/elf/Versions: New file.
2423 * sysdeps/generic/dl-tls.c: New file.
2424 * sysdeps/generic/dl-tls.h: New file.
2425 * sysdeps/i386/dl-tls.h: New file.
2427 2002-02-06 Roland McGrath <roland@frob.com>
2429 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2430 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2432 2002-01-05 Roland McGrath <roland@frob.com>
2434 * sysdeps/mach/configure.in: New file.
2435 * sysdeps/mach/configure: New generated file.
2437 * mach/Makefile (user-interfaces): Remove default_pager_helper.
2438 It has never been used by anything.
2440 2002-02-06 H.J. Lu <hjl@gnu.org>
2442 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2445 2002-02-06 Ulrich Drepper <drepper@redhat.com>
2447 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2448 attribute((packed)) to counter stupid people misusing gcc options.
2449 (struct stat64): Likewise.
2451 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2453 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
2454 the variables which are used as booleans.
2456 2002-02-06 Andreas Jaeger <aj@suse.de>
2458 * include/libc-symbols.h (INTUSE): Renamed from INT.
2459 * elf/dl-deps.c: Change users.
2460 * sysdeps/generic/dl-sysdep.c: Likewise.
2461 * sysdeps/generic/dl-cache.c: Likewise.
2462 * elf/dl-reloc.c: Likewise.
2463 * elf/rtld.c: Likewise.
2464 * elf/dl-version.c: Likewise.
2465 * elf/dl-load.c: Likewise.
2466 * elf/dl-dst.h: Likewise.
2467 * elf/dl-init.c: Likewise.
2468 * elf/dl-error.c: Likewise.
2469 * elf/dl-fini.c: Likewise.
2470 * elf/dl-runtime.c: Likewise.
2471 * elf/do-lookup.h: Likewise.
2473 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
2475 * stdio-common/_itowa.h: Likewise.
2477 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2479 * elf/dl-minimal.c: Define _itoa_lower_digits.
2481 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
2484 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
2485 loading modules with the DF_STATIC_TLS flag set.
2486 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
2488 * include/link.h (struct link_map): Add l_flags field.
2489 * elf/elf.h (DF_STATIC_TLS): New definition.
2491 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
2492 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
2494 * elf/rtld.c (process_dl_debug): Correct printing help message.
2495 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
2498 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
2499 definition and pass &errno in use of this variable.
2500 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
2502 2002-02-04 Andreas Schwab <schwab@suse.de>
2504 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
2505 * locale/programs/charmap-dir.c: Wrap calls that output messages
2506 with WITH_CUR_LOCALE. Include "localedef.h" first.
2507 * locale/programs/charmap.c: Likewise.
2508 * locale/programs/ld-address.c: Likewise.
2509 * locale/programs/ld-collate.c: Likewise.
2510 * locale/programs/ld-ctype.c: Likewise.
2511 * locale/programs/ld-identification.c: Likewise.
2512 * locale/programs/ld-measurement.c: Likewise.
2513 * locale/programs/ld-messages.c: Likewise.
2514 * locale/programs/ld-monetary.c: Likewise.
2515 * locale/programs/ld-name.c: Likewise.
2516 * locale/programs/ld-numeric.c: Likewise.
2517 * locale/programs/ld-paper.c: Likewise.
2518 * locale/programs/ld-telephone.c: Likewise.
2519 * locale/programs/ld-time.c: Likewise.
2520 * locale/programs/linereader.c: Likewise.
2521 * locale/programs/linereader.h: Likewise.
2522 * locale/programs/localedef.c: Likewise.
2523 * locale/programs/locfile.c: Likewise.
2524 * locale/programs/repertoire.c: Likewise.
2526 2002-02-05 Ulrich Drepper <drepper@redhat.com>
2528 * elf/rtld.c (_dl_start_final): Determine load address to locate
2529 ehdr with GL(dl_rtld_map).l_map_start.
2531 * po/ca.po: Update from translation team.
2533 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
2534 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
2536 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2538 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
2540 2002-02-04 Ulrich Drepper <drepper@redhat.com>
2542 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
2543 * include/link.h (struct link_map): Add various members for TLS
2545 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2546 _rtld_tlsoffset, add _dl_initimage_list.
2547 * sysdeps/i386/dl-lookupcfg.h: New file.
2548 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
2549 TLS relocation. When using TLS we now use RESOLVE_MAP.
2550 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2553 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2556 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2557 thread-pointer as soon as possible.
2558 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
2559 elements in rtld_global.
2560 * sysdeps/generic/tls.h: New file.
2561 * elf/Makefile (distribute): Add tls.h.
2562 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2563 relocations. Not complete yet.
2565 * resolv/resolv.h: Allow user to define __need_res_state and only
2566 define __res_start structure then.
2567 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2569 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2570 dl_cpuclock_offset initialization to _dl_start_final.
2571 (_dl_show_auxv): Avoid unnecessary sign extension.
2572 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2574 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2576 * config.h.in: Add HAVE_TLS_SUPPORT.
2577 * sysdeps/i386/elf/configure.in: New file.
2579 2002-02-03 Andreas Schwab <schwab@suse.de>
2581 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2582 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
2584 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
2586 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2587 alloca if the memory reqirements are too high.
2589 2002-02-03 Ulrich Drepper <drepper@redhat.com>
2591 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2592 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2593 the former is available anyway and speed isn't important here.
2594 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2595 * elf/dl-version.c (match_symbol): Likewise.
2596 (_dl_check_map_versions): Likewise.
2597 * elf/rtld.c (process_envvars): Likewise.
2598 (print_statistics): Likewise.
2599 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2600 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
2601 bases. Add assert to catch uses of unimplemented features.
2602 (__strsep): Add assert to catch uses of unimplemented features.
2603 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
2604 and avoid inline optimization.
2605 * elf/rtld.c (process_envvars): Likewise.
2606 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2607 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2608 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2610 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2612 * stdio-common/_itoa.h: Minor simplifications of the code.
2613 * stdio-common/_itoa.c: Likewise.
2615 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2616 instead of _dl_printf for debugging info output.
2618 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2619 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2621 2002-02-01 H.J. Lu <hjl@gnu.org>
2623 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2624 (atomic_add): Likewise.
2625 (compare_and_swap): Return 0 only when failed to compare. Use
2628 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2631 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
2633 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2635 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2637 * elf/dl-minimal.c (__strsep): New minimal implementation.
2639 2002-02-02 Paul Eggert <eggert@twinsun.com>
2641 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2642 (__mktime_internal): If no tm_isdst is requested, prefer solutions
2643 with tm_isdst > 0 when the requested time falls within a
2644 spring-forward gap [PR libc/2894].
2646 2002-02-03 Andreas Schwab <schwab@suse.de>
2648 * stdio-common/tst-rndseek.c: Increase timeout.
2650 2002-02-02 Ulrich Drepper <drepper@redhat.com>
2652 Change ld.so to not use functions which are exported. One cannot
2653 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
2655 * include/libc-symbols.h: Define INT and INTDEF.
2656 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2657 _dl_signal_error_internal, _dl_map_object_internal,
2658 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2659 _dl_lookup_versioned_symbol_internal,
2660 _dl_relocate_object_internal, _dl_debug_state_internal,
2661 _dl_start_profile_internal, and _dl_unload_cache_internal.
2662 * include/dlfcn.h: Declare _dl_catch_error_internal.
2663 * elf/rtld.c: Use INT for calls to any of the *_internal functions
2664 above. Add INTDEF to function definitions.
2665 * elf/dl-debug.c: Likewise.
2666 * elf/dl-deps.c: Likewise.
2667 * elf/dl-dst.h: Likewise.
2668 * elf/dl-error.c: Likewise.
2669 * elf/dl-fini.c: Likewise.
2670 * elf/dl-init.c: Likewise.
2671 * elf/dl-load.c: Likewise.
2672 * elf/dl-lookup.c: Likewise.
2673 * elf/dl-misc.c: Likewise.
2674 * elf/dl-open.c: Likewise.
2675 * elf/dl-profile.c: Likewise.
2676 * elf/dl-reloc.c: Likewise.
2677 * elf/dl-runtime.c: Likewise.
2678 * elf/dl-version.c: Likewise.
2679 * elf/do-lookup.h: Likewise.
2680 * sysdeps/generic/dl-cache.c: Likewise.
2681 * sysdeps/generic/dl-sysdep.c: Likewise.
2682 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2683 instead of _dl_init.
2684 * sysdeps/arm/dl-machine.h: Likewise.
2685 * sysdeps/cris/dl-machine.h: Likewise.
2686 * sysdeps/hppa/dl-machine.h: Likewise.
2687 * sysdeps/i386/dl-machine.h: Likewise.
2688 * sysdeps/ia64/dl-machine.h: Likewise.
2689 * sysdeps/m68k/dl-machine.h: Likewise.
2690 * sysdeps/mips/dl-machine.h: Likewise.
2691 * sysdeps/mips/mips64/dl-machine.h: Likewise.
2692 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2693 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2694 * sysdeps/sh/dl-machine.h: Likewise.
2695 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2696 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2697 * sysdeps/x86_64/dl-machine.h: Likewise.
2698 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2700 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2701 and _dl_debug_initialize.
2703 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
2705 * elf/rtld.c (dl_main): Avoid strrchr.
2706 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2707 result of readlink. Search from the back for '/'.
2709 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2710 strncpy if possible.
2712 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
2714 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
2715 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2716 strspn, and strcspn.
2717 (process_envvars): Don't use strcspn.
2719 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2720 (_dl_dst_substitute): Likewise.
2722 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2724 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2725 code which is never used when relocating ld.so itself.
2727 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2728 starting ld.so itself. Move l_addr variable initialization closer
2730 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2732 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2734 * Versions.def (libc): Add GLIBC_PRIVATE.
2735 (libdb, libnss_db, libdb1): Remove.
2736 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2737 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2738 (libpthread): Add GLIBC_PRIVATE.
2739 (libresolv): Likewise, remove GLIBC_2.1.
2740 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2741 GLIBC_2.2.3, GLIBC_2.3.
2742 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2743 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2744 _dl_sym, _dl_vsym): Likewise.
2745 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2746 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2747 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2748 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2749 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2750 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2751 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2752 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2754 (_dl_object_relocation_scope): Remove.
2755 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2756 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2757 __gconv_cache): Move to GLIBC_PRIVATE.
2758 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2759 __internal_setnetgrent): Likewise.
2760 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2761 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2762 * locale/Versions (__collate_element_hash, __collate_element_strings,
2763 __collate_symbol_classes, __collate_symbol_hash,
2764 __collate_symbol_strings, _nl_current_LC_COLLATE,
2765 _nl_current_LC_CTYPE): Likewise.
2766 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2767 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2768 (libnss_nis, libnss_nisplus): Likewise.
2769 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2770 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2771 (libnss_files): Move all symbols to GLIBC_PRIVATE.
2772 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2773 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2774 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2775 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2776 __ns_get16, __ns_samename): Likewise.
2777 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2778 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2780 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2781 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2782 __libc_connect): Likewise.
2783 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2785 * stdlib/Versions (__libc_system): Likewise.
2786 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2787 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2788 * sysdeps/ia64/fpu/Versions: Likewise.
2789 * sysdeps/ia64/Versions: Likewise.
2790 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2791 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2793 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2794 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2795 __libc_sigaction): Likewise.
2796 * termios/Versions (__libc_tcdrain): Likewise.
2798 * misc/sys/cdefs (__attribute_noinline__): Define.
2799 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2800 __attribute_noinline__.
2802 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2803 * elf/dl-xstat64.c: New file.
2804 * elf/dl-fxstat64.c: New file.
2805 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2806 don't export __fxstat64 at multiple versions.
2807 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2808 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2810 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
2812 * locale/program/ld-collate.c (collate_finish): Assign a wide
2813 char collation sequence value to multi character collating
2814 elements, and avoid over writing by non-character elements.
2816 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2818 * elf/Makefile (distribute): Add dl-procinfo.c.
2819 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2820 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2822 2002-02-01 Jakub Jelinek <jakub@redhat.com>
2824 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2826 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2827 _rtld_global struct.
2828 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2829 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2830 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2831 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2832 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2833 _dl_fpu_control_set): Remove unused externs.
2834 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2835 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2836 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2837 related variables in _rtld_global struct.
2838 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2839 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2842 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2844 * sysdeps/generic/dl-procinfo.c: New file.
2846 2002-02-01 Andreas Schwab <schwab@suse.de>
2848 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
2850 2002-02-01 Ulrich Drepper <drepper@redhat.com>
2852 * elf/rtld.c (_dl_start): Mark as internal_function.
2853 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
2855 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
2856 General pretty printing.
2858 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2860 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
2861 * elf/dl-reloc.c: Pretty printing.
2862 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
2863 procinfo-related variables in rtld_global struct.
2864 * elf/dl-support.c: Likewise.
2865 * elf/rtld.c: Likewise.
2866 * sysdeps/i386/i686/Makefile: Likewise.
2867 * sysdeps/i386/i686/hp-timing.c: Likewise.
2868 * sysdeps/i386/i686/hp-timing.h: Likewise.
2869 * sysdeps/ia64/Makefile: Likewise.
2870 * sysdeps/ia64/hp-timing.c: Likewise.
2871 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
2872 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
2873 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
2874 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
2875 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2876 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
2877 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2878 * sysdeps/x86_64/Makefile: Likewise.
2880 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
2881 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
2882 _dl_debug_fd to rtld_global.
2883 * elf/Versions: Likewise.
2884 * elf/dl-close.c: Likewise.
2885 * elf/dl-iteratephdr.c: Likewise.
2886 * elf/dl-lookup.c: Likewise.
2887 * elf/dl-misc.c: Likewise.
2888 * elf/dl-open.c: Likewise.
2889 * elf/dl-support.c: Likewise.
2890 * elf/do-lookup.h: Likewise.
2891 * elf/rtld.c: Likewise.
2892 * sysdeps/generic/dl-cache.c: Likewise.
2893 * sysdeps/generic/dl-sysdep.c: Likewise.
2894 * sysdeps/ia64/Versions: Likewise.
2895 * sysdeps/unix/clock_gettime.c: Likewise.
2896 * sysdeps/unix/clock_settime.c: Likewise.
2897 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2898 * sysdeps/sparc/Versions: Removed.
2899 * sysdeps/i386/i686/Versions : Removed.
2900 * sysdeps/x86_64/Versions: Removed.
2901 * configure.in: Define HAVE_PROTECTED if .protected is available.
2902 * config.h.in: Add entry for HAVE_PROTECTED.
2904 2002-01-31 Jakub Jelinek <jakub@redhat.com.
2906 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
2907 code in struct _rtld_global. Export this struct, remove all
2908 exports for the signal variables.
2909 * sysdeps/arm/dl-machine: Likewise.
2910 * sysdeps/generic/dl-origin: Likewise.
2911 * sysdeps/generic/dl-sysdep: Likewise.
2912 * sysdeps/generic/dl-cache: Likewise.
2913 * sysdeps/hppa/dl-fptr: Likewise.
2914 * sysdeps/hppa/dl-machine: Likewise.
2915 * sysdeps/cris/dl-machine: Likewise.
2916 * sysdeps/i386/dl-machine: Likewise.
2917 * sysdeps/ia64/dl-machine: Likewise.
2918 * sysdeps/m68k/dl-machine: Likewise.
2919 * sysdeps/mach/hurd/dl-sysdep: Likewise.
2920 * sysdeps/mips/mips64/dl-machine: Likewise.
2921 * sysdeps/mips/dl-machine: Likewise.
2922 * sysdeps/powerpc/elf/libc-start: Likewise.
2923 * sysdeps/powerpc/dl-machine: Likewise.
2924 * sysdeps/powerpc/dl-start: Likewise.
2925 * sysdeps/sparc/sparc32/dl-machine: Likewise.
2926 * sysdeps/sparc/sparc64/dl-machine: Likewise.
2927 * sysdeps/sh/dl-machine: Likewise.
2928 * sysdeps/s390/s390-32/dl-machine: Likewise.
2929 * sysdeps/s390/s390-64/dl-machine: Likewise.
2930 * sysdeps/unix/sysv/aix/libc-start: Likewise.
2931 * sysdeps/unix/sysv/aix/start-libc: Likewise.
2932 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
2933 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
2934 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
2935 * sysdeps/x86_64/dl-machine: Likewise.
2937 2002-01-31 Ulrich Drepper <drepper@redhat.com>
2939 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
2942 2002-01-31 Andreas Schwab <schwab@suse.de>
2944 * sysdeps/posix/readv.c: Check for ssize_t overflow.
2946 2002-01-31 Andreas Schwab <schwab@suse.de>
2948 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
2949 reference to _dl_pagesize.
2951 2002-01-30 Ulrich Drepper <drepper@redhat.com>
2953 * Versions.def [ld]: Add GLIBC_2.3.
2954 * elf/dl-addr.c: Move global variables for SHARED code in struct
2955 _rtld_global. Export this struct, remove all exports for the
2957 * elf/dl-close.c: Likewise.
2958 * elf/dl-conflict.c: Likewise.
2959 * elf/dl-debug.c: Likewise.
2960 * elf/dl-deps.c: Likewise.
2961 * elf/dl-dst.h: Likewise.
2962 * elf/dl-error.c: Likewise.
2963 * elf/dl-fini.c: Likewise.
2964 * elf/dl-init.c: Likewise.
2965 * elf/dl-iteratephdr.c: Likewise.
2966 * elf/dl-libc.c: Likewise.
2967 * elf/dl-load.c: Likewise.
2968 * elf/dl-lookup.c: Likewise.
2969 * elf/dl-minimal.c: Likewise.
2970 * elf/dl-object.c: Likewise.
2971 * elf/dl-open.c: Likewise.
2972 * elf/dl-profile.c: Likewise.
2973 * elf/dl-profstub.c: Likewise.
2974 * elf/dl-reloc.c: Likewise.
2975 * elf/dl-runtime.c: Likewise.
2976 * elf/dl-support.c: Likewise.
2977 * elf/dl-sym.c: Likewise.
2978 * elf/dl-version.c: Likewise.
2979 * elf/do-lookup.h: Likewise.
2980 * elf/do-rel.h: Likewise.
2981 * elf/dynamic-link.h: Likewise.
2982 * elf/rtld.c: Likewise.
2983 * sysdeps/generic/dl-cache.c: Likewise.
2984 * sysdeps/generic/dl-sysdep.c: Likewise.
2985 * sysdeps/generic/ldsodefs.h: Likewise.
2986 * sysdeps/generic/libc-start.c: Likewise.
2987 * sysdeps/i386/dl-machine.h: Likewise.
2988 * sysdeps/ia64/dl-fptr.c: Likewise.
2989 * sysdeps/ia64/dl-machine.h: Likewise.
2990 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
2991 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2992 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2993 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
2994 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2995 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2996 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
2997 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2999 2002-01-29 Ulrich Drepper <drepper@redhat.com>
3001 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
3003 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
3005 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
3007 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
3009 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
3011 2002-01-29 Ben Collins <bcollins@debian.org>
3013 * string/bits/string2.h (__mempcpy): Protect size arg for
3014 addition when using __builtin_memcpy.
3016 2002-01-29 Ulrich Drepper <drepper@redhat.com>
3018 * stdlib/Makefile (tests): Add tst-qsort.
3019 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
3021 * manual/signal.texi (Process Signal Mask): Document that
3022 pthread_sigmask, not sigprocmask, must be used in MT programs.
3023 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
3025 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
3027 * misc/Makefile (tests): Add tst-hsearch.
3028 * misc/tst-hsearch.c: New file.
3030 2002-01-18 Wolfram Gloger <wg@malloc.de>
3032 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
3033 * malloc/malloc.h: Likewise.
3034 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
3035 * malloc/arena.c: New file.
3036 * malloc/hooks.c: New file.
3037 * malloc/tst-mallocstate.c: New file.
3038 * malloc/Makefile: Add new testcase tst-mallocstate.
3039 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
3041 2002-01-28 Ulrich Drepper <drepper@redhat.com>
3043 * stdlib/msort.c: Remove last patch. The optimization violates the
3044 same rule which qsort.c had problems with.
3046 2002-01-27 Paul Eggert <eggert@twinsun.com>
3048 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
3049 to a pivot element that lies outside the array to be sorted, as
3050 ISO C99 requires that the comparison function be called only with
3051 addresses of array elements [PR libc/2880].
3053 2002-01-28 Ulrich Drepper <drepper@redhat.com>
3055 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
3056 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
3058 * timezone/asia: Update from tzdata2002b.
3059 * timezone/australasia: Likewise.
3060 * timezone/backward: Likewise.
3061 * timezone/europe: Likewise.
3062 * timezone/leapseconds: Likewise.
3063 * timezone/iso3166.tab: Likewise.
3064 * timezone/zone.tab: Likewise.
3066 2002-01-23 Richard Henderson <rth@redhat.com>
3068 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
3070 2002-01-28 Ulrich Drepper <drepper@redhat.com>
3072 * string/strxfrm.c: Allocate one more byte for rulearr and clear
3073 this element [PR libc/2855].
3075 * string/strcoll.c: Handle zero-length arguments specially
3078 2002-01-23 Jakub Jelinek <jakub@redhat.com>
3080 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
3081 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
3082 short lengths and constant src.
3083 (strcpy): Don't optimize for gcc 3.0+.
3084 (__stpcpy): For gcc 3.0+, don't use
3085 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
3086 for short string literal src.
3088 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3090 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3093 2001-01-22 Paul Eggert <eggert@twinsun.com>
3095 * manual/llio.texi (Linked Channels, Cleaning Streams):
3096 Make it clearer that a just-opened input stream might need cleaning.
3098 2002-01-21 H.J. Lu <hjl@gnu.org>
3100 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3101 Don't use label at end of compound statement.
3103 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
3105 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
3106 Remove test for negative integer arg; sin_pi does it correctly.
3108 2002-01-20 Ulrich Drepper <drepper@redhat.com>
3110 * nscd/Makefile (distribute): Filter out xmalloc.c.
3112 2002-01-19 Ulrich Drepper <drepper@redhat.com>
3114 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
3115 Set offset if read end wasn't the buffer end.
3116 (_IO_file_seekoff_mmap): New function.
3117 (_IO_file_xsgetn_mmap): New function.
3118 (_IO_file_jumps_mmap): Use the two new functions.
3119 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
3121 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
3122 _IO_file_underflow_mmap.
3123 * libio/iofopen.c: Don't position file descriptor at end of file.
3124 * libio/tst-widetext.c: Improve error messages.
3125 * stdio-common/tst-rndseek.c: Likewise.
3127 2002-01-18 Ulrich Drepper <drepper@redhat.com>
3129 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
3130 end of enum for !_GNU_SOURCE.
3131 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
3132 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
3133 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
3134 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
3135 values unless _GNU_SOURCE.
3137 * iconvdata/tcvn5712-1.c: Minor cleanups.
3139 2002-01-18 Andreas Schwab <schwab@suse.de>
3141 * sysdeps/unix/sysv/linux/configure.in
3142 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
3144 2002-01-16 Roger Sayle <roger@eyesopen.com>
3146 * stdlib/msort.c (msort_with_tmp): Replace implementation with
3147 more efficient "Towers of Hanoi" mergesort.
3148 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
3149 for generic, sizeof(int) and sizeof(long) variants respectively.
3151 2002-01-17 Ulrich Drepper <drepper@redhat.com>
3153 * manual/syslog.texi (openlog): Describe possible problems with
3155 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3157 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
3158 * nscd/connections.c (begin_drop_privileges): New function.
3159 (finish_drop_privileges): New function.
3160 (nscd_init): Call the new functions which also install all groups
3161 for the server user.
3162 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3163 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3165 2002-01-17 H.J. Lu <hjl@gnu.org>
3167 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3170 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3172 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3173 instructions for pointer operations.
3174 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3176 2002-01-17 Andreas Jaeger <aj@suse.de>
3178 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3179 __uint128_t build-in.
3181 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3182 PowerPC, sync with 2.2 branch.
3184 2002-01-16 Ulrich Drepper <drepper@redhat.com>
3186 * posix/getconf.c: Update copyright year.
3187 * nss/getent.c: Likewise.
3188 * nscd/nscd_nischeck.c: Likewise.
3189 * iconv/iconvconfig.c: Likewise.
3190 * iconv/iconv_prog.c: Likewise.
3191 * elf/ldconfig.c: Likewise.
3192 * catgets/gencat.c: Likewise.
3193 * csu/version.c: Likewise.
3194 * elf/ldd.bash.in: Likewise.
3195 * elf/sprof.c (print_version): Likewise.
3196 * locale/programs/locale.c: Likewise.
3197 * locale/programs/localedef.c: Likewise.
3198 * nscd/nscd.c (print_version): Likewise.
3199 * debug/xtrace.sh: Likewise.
3200 * malloc/memusage.sh: Likewise.
3201 * malloc/mtrace.pl: Likewise.
3203 2002-01-16 Andreas Schwab <schwab@suse.de>
3205 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
3206 reliably remove "-ia64" from rtld name.
3208 2002-01-16 Ulrich Drepper <drepper@redhat.com>
3210 * iconvdata/gb18030.c: Bug fixes and support for more characters.
3211 Patch by Yu Shao <yshao@redhat.com>.
3213 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
3215 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
3216 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
3217 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
3219 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
3221 * sysdeps/s390/fpu/libm-test-ulps: Update.
3223 2002-01-11 Ulrich Drepper <drepper@redhat.com>
3225 * elf/elf.h: Update x86 relocations.
3227 2002-01-10 Ulrich Drepper <drepper@redhat.com>
3229 * locale/programs/charmap.c (new_width): Check whether byte
3230 sequences for both ends of range have the same length.
3232 2002-01-09 Jakub Jelinek <jakub@redhat.com>
3234 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
3236 2002-01-09 Jakub Jelinek <jakub@redhat.com>
3238 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
3240 (__full_ieee754_sqrt): Add __attribute_used__.
3242 2002-01-10 Ulrich Drepper <drepper@redhat.com>
3244 * sysdeps/generic/group_member.c (__group_member): Also check
3245 groups[0] [PR libc/2781].
3247 2002-01-08 Ulrich Drepper <drepper@redhat.com>
3249 * Makefile (distribute): Add scripts/cpp.
3250 * elf/Makefile (distribute): Add reldep6mod[01234].c,
3251 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
3252 unwind-dw2-fde.h, and dwarf2.h.
3253 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
3254 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
3255 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
3256 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
3258 2002-01-07 Roland McGrath <roland@frob.com>
3260 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
3261 volatile on type of ARGC so the compiler doesn't get clever.
3263 2002-01-07 Andreas Jaeger <aj@suse.de>
3265 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
3266 * sysdeps/i386/bits/byteswap.h: Likewise.
3267 * sysdeps/ia64/bits/byteswap.h: Likewise.
3268 * sysdeps/m68k/bits/byteswap.h: Likewise.
3269 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
3270 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
3272 2002-01-02 Bruno Haible <bruno@clisp.org>
3274 * intl/plural.y: Fix %expect count.
3276 2002-01-03 Jakub Jelinek <jakub@redhat.com>
3278 * elf/Makefile (routines, shared-only-routines): Add
3279 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
3280 * elf/elf.h (PT_GNU_EH_FRAME): Define.
3281 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
3282 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
3283 Optimize if .eh_frame section contains no FDEs.
3284 (__register_frame, __deregister_frame_info_bases,
3285 __deregister_frame): Likewise.
3286 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
3287 DW_CFA_restore handling.
3289 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
3291 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
3293 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
3294 for x < 0.25 and restore original range reduction method.
3295 (__ieee754_lgammal_r): Make sure signgam is set before returning.
3297 2002-01-07 Ulrich Drepper <drepper@redhat.com>
3299 * libio/fileops.c (_IO_file_underflow_mmap): New function.
3300 (_IO_file_close_mmap): New function.
3301 (_IO_file_jumps_mmap): New variable.
3302 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
3303 trying to convert rest of byte buffer.
3304 (_IO_wfile_underflow_mmap): New function.
3305 (_IO_wfile_jumps_mmap): New variable.
3306 * libio/iofopen.c (__fopen_maybe_mmap): New function.
3307 (__fopen_internal): New function. Split out from _IO_new_fopen.
3308 (_IO_new_fopen): Call __fopen_internal.
3309 * libio/iofopen64.c: Just call __fopen_internal.
3310 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
3312 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
3313 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
3314 _IO_file_close_mmap.
3316 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
3317 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
3319 * stdio-common/Makefile (tests): Add tst-rndseek.
3320 * stdio-common/tst-rndseek.c: New file.
3322 2002-01-05 Roland McGrath <roland@frob.com>
3324 * config.h.in (HAVE_MIG_RETCODE): New #undef.
3325 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
3326 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
3327 * sysdeps/mach/hurd/configure: Regenerated.
3329 2002-01-03 Ulrich Drepper <drepper@redhat.com>
3331 * elf/elf.h: Add more TLS definitions.
3333 2002-01-02 Ulrich Drepper <drepper@redhat.com>
3335 * include/features.h (__GLIBC_MINOR__): Bump to 3.
3337 2002-01-02 Roland McGrath <roland@frob.com>
3339 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
3340 __sigisemptyset. Don't use MASK uninitialized.
3342 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
3343 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
3344 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
3345 __sigdelset, __sigaddset, __sigorset.
3347 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
3348 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
3350 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
3351 _hurd_ports is null.
3353 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
3354 for old CMU and new OSF Mach interface flavors.
3355 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
3356 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3358 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
3360 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
3361 Pass extra arguments to task_create for OSF variant.
3362 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3364 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
3365 conditional on [HAVE_AUX_VECTOR].
3367 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
3368 mach_msg_timeout_t as type of final argument.
3370 * hurd/privports.c (__get_privileged_ports):
3371 Change host_priv_t to mach_port_t in argument type.
3372 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
3375 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
3376 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
3377 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
3378 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
3379 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
3380 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
3382 2002-01-01 Roland McGrath <roland@frob.com>
3384 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
3386 2002-01-01 Ulrich Drepper <drepper@redhat.com>
3388 * include/stdlib.h: Define inlines for the _l variants of the strto*
3391 2002-01-01 Roland McGrath <roland@frob.com>
3393 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3395 * mach/Machrules (MIG): Set CPP as well as CC.
3397 2001-12-31 Ulrich Drepper <drepper@redhat.com>
3399 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3400 locale to parse /proc/loadavg [PR libc/2760].
3402 2001-12-31 Jakub Jelinek <jakub@redhat.com>
3404 * elf/dl-conflict.c: Include sys/param.h.
3405 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3406 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3408 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3409 literals to avoid warnings.
3411 2001-12-31 Andreas Jaeger <aj@suse.de>
3413 * configure.in: Don't check for gsed since we do not use it anywhere.
3415 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3417 * io/fts.c: Update from BSD to fix memory leaks.
3419 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
3421 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3422 * elf/chroot_canon.c: Likewise.
3423 * elf/dl-object.c: Likewise.
3424 * iconv/iconv_charmap.c: Likewise.
3425 * iconv/iconv_prog.c: Likewise.
3426 * libio/iogetdelim.c: Likewise.
3427 * locale/lc-time.c: Likewise.
3428 * stdlib/canonicalize.c: Likewise.
3429 * sunrpc/svc.c: Likewise.
3430 * sysdeps/generic/glob.c: Likewise.
3432 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3434 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3435 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3436 remove high order bit from the program counter.
3437 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3439 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3441 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3442 unnecessary code and add missing reloc types.
3443 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3444 case for reloc type R_390_NONE.
3446 2001-12-28 Andreas Jaeger <aj@suse.de>
3448 * io/bug-ftw3.c: Include string.h for prototypes.
3450 * crypt/md5test.c (main): Remove unused variable.
3452 * dlfcn/modstatic.c: Add prototype to avoid warning.
3454 2001-12-26 Roland McGrath <roland@frob.com>
3456 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
3457 check only (SS->pending & MASK) for the signal to return.
3458 From Jeroen Dekkers <jeroen@dekkers.cx>.
3460 2001-12-22 Roland McGrath <roland@frob.com>
3462 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
3463 Use preprocessor #if conditionals instead of `if' to avoid
3464 warnings about divide by zero in dead code.
3466 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
3467 _hurd_port_init, and __hurd_self_sigstate.
3469 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
3471 2001-12-21 Andreas Jaeger <aj@suse.de>
3473 * elf/dblloadmod1.c: Add prototype to avoid warning.
3474 * elf/dblloadmod2.c: Likewise.
3475 * elf/dblloadmod3.c: Likewise.
3476 * elf/reldepmod5.c: Likewise.
3477 * elf/reldepmod6.c: Likewise.
3479 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
3480 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
3481 used on all architectures.
3483 * sunrpc/svc_tcp.c: Add noreturn attribute for
3484 svctcp_rendezvous_abort.
3485 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
3487 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
3490 2001-12-19 Jakub Jelinek <jakub@redhat.com>
3492 * manual/llio.texi (aio_fsync): Fix a typo.
3493 Patch by Tammy Fox <tfox@redhat.com>.
3495 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3497 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
3498 stack bias from child stack pointer before passing it to clone syscall.
3500 2001-12-18 Ulrich Drepper <drepper@redhat.com>
3502 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
3504 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
3505 Reported by Thorsten Kukuk <kukuk@suse.de>.
3507 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
3510 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
3512 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
3514 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
3515 conforming: return EBADF if file descriptor is invalid and EINVAL
3516 if file descriptor is no valid tty.
3517 * login/tst-grantpt.c: New file.
3518 * login/Makefile (tests): Add tst-grantpt.
3520 2001-12-17 Ulrich Drepper <drepper@redhat.com>
3522 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
3523 different than implemented in last patch.
3524 * io/bug-ftw3.c: Adjust test for changed handling of
3525 inaccessibility of toplevel dir.
3527 2001-12-16 Roland McGrath <roland@frob.com>
3529 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
3530 * grp/initgroups.c (internal_getgrouplist): Likewise.
3532 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
3533 `default:' to silence new GCC warning.
3534 Rewrite cast of lvalue to silence new GCC warning.
3536 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
3538 * sysdeps/mach/hurd/spawni.c: New file, by me with a
3539 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
3541 2001-12-14 Ulrich Drepper <drepper@redhat.com>
3543 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
3544 Patch by Stephen R. van den Berg.
3546 * crypt/md5.h: Define md5_uintptr.
3548 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3550 * libio/tst_swprintf.c (main): Add test for string argument with
3552 * stdio-common/Makefile (tests): Add tst-sprintf.
3553 * stdio-common/tst-sprintf.c: New file.
3555 2001-12-13 Andreas Schwab <schwab@suse.de>
3557 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3558 zero precision with wide character string format.
3560 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
3562 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3563 but have a user supplied buffer, return the empty buffer, not NULL.
3565 2001-12-13 Ulrich Drepper <drepper@redhat.com>
3567 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3568 Patch by Eric Sharkey <sharkey@netrics.com>.
3570 * crypt/md5test.c (main): Add test for multiple calls to
3571 __md5_process_bytes to itererate over input string.
3573 2001-12-12 Ulrich Drepper <drepper@redhat.com>
3575 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3576 from __nis_findfastest. Take timeout value from parameter.
3577 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3578 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3579 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
3581 2001-12-12 Andreas Jaeger <aj@suse.de>
3583 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3584 combreloc test so that it works in this case.
3586 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3588 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
3590 * sysdeps/sh/Makefile: New file.
3591 * sysdeps/sh/_mcount.S: New file.
3592 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3593 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3595 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3597 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3598 limitation [PR libc/2564].
3600 2001-12-11 Jakub Jelinek <jakub@redhat.com>
3602 * elf/Makefile (dl-routines): Add conflict.
3603 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3604 (ld.so): Add _begin local symbol.
3605 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3607 * elf/dl-deps.c (_dl_build_local_scope): New.
3608 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3610 * elf/do-rel.h (VALIDX): Define.
3611 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3612 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3614 * elf/dl-conflict.c: New file.
3615 * elf/dl-lookup.c (_dl_debug_bindings): New.
3616 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
3618 (_dl_lookup_symbol_skip): Likewise.
3619 (_dl_lookup_versioned_symbol): Likewise.
3620 (_dl_lookup_versioned_symbol_skip): Likewise.
3621 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3622 define to ElfW(Rel).
3623 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3624 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3626 Don't adjust address dynamic tags if l_addr is 0.
3627 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3628 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3629 (VALIDX, ADDRIDX): Define.
3630 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3631 (dl_main): Print library list for LD_TRACE_PRELINKING.
3632 If prelinking information can be used, skip relocating libraries and
3633 call _dl_resolve_conflicts instead.
3634 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3635 * elf/dl-load.c (_dl_map_object): Don't create fake libs
3636 if LD_TRACE_PRELINKING.
3637 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3639 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3640 (DL_DEBUG_PRELINK): Define.
3641 (_dl_resolve_conflicts): Add prototype.
3643 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3644 .plt for prelinked libraries where prelinking info cannot be used.
3645 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3646 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3647 * sysdeps/arm/bits/link.h: New file.
3648 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3650 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3651 (ELF_MACHINE_PLT_REL): Define.
3652 (elf_machine_rela, elf_machine_rela_relative): New.
3653 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3654 of adjusting it if prelinked and prelinking cannot be used.
3655 * sysdeps/i386/bits/link.h: New file.
3656 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3658 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3659 (ELF_MACHINE_PLT_REL): Define.
3660 (elf_machine_rela, elf_machine_rela_relative): New.
3661 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3662 of adjusting it if prelinked and prelinking cannot be used.
3663 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3664 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
3665 to find out map for R_PPC_JMP_SLOT relocs.
3666 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3667 (OPCODE_BA): Define.
3668 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3669 libraries where prelinking info cannot be used.
3670 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3671 (elf_machine_fixup_plt): Call sparc_fixup_plt.
3672 (elf_machine_rela): Set value to 0 if relocating conflicts.
3673 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3674 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3675 (sparc64_fixup_plt): Fix a typo.
3676 (elf_machine_rela): Set value to 0 if relocating conflicts.
3677 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3678 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3679 libraries where prelinking info cannot be used.
3680 * sysdeps/sh/bits/link.h: New file.
3681 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3683 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3684 of adjusting it if prelinked and prelinking cannot be used.
3685 * sysdeps/s390/s390-32/bits/link.h: New file.
3686 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3687 Save original content of .got[1].
3688 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3689 of adjusting it if prelinked and prelinking cannot be used.
3690 * sysdeps/s390/s390-64/bits/link.h: New file.
3691 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3692 Save original content of .got[1].
3693 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3694 of adjusting it if prelinked and prelinking cannot be used.
3695 * sysdeps/x86_64/bits/link.h: New file.
3696 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3697 Save original content of .got[1].
3698 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3699 of adjusting it if prelinked and prelinking cannot be used.
3701 2001-12-11 Ulrich Drepper <drepper@redhat.com>
3703 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3704 where appropriate instead of numbers. Little optimizations.
3706 2001-12-10 Roland McGrath <roland@frob.com>
3708 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3711 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3712 set to GLIBC_2.2.5, not GLIBC_2.2.4.
3714 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3715 Fix conditionals so this is set by default for stdio and not for libio.
3716 * sysdeps/mach/hurd/configure: Regenerated.
3718 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
3720 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3722 2001-12-10 Ulrich Drepper <drepper@redhat.com>
3724 * io/Makefile (tests): Add bug-ftw3.
3725 * io/bug-ftw3.c: New file.
3727 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3728 matches and GLOB_NOCHECK is set.
3729 * posix/globtest.sh: Correct expected result for NOCHECK test.
3731 * po/ca.po: Update from translation team.
3733 2001-12-09 Ulrich Drepper <drepper@redhat.com>
3735 Implement transliteration of characters in strings of the locale
3737 * locale/programs/linereader.c: Adjust for additional parameter to
3739 (get_string): If character <Uxxxx> is not found try to transliterate
3741 * locale/programs/ld-ctype.c: Adjust for additional parameter to
3742 lr_token. Add const to charmap parameter of all functions.
3743 (find_translit, find_translit2): New functions.
3744 * locale/programs/charmap.c: Adjust for additional parameter to
3746 * locale/programs/repertoire.c: Likewise.
3747 * locale/programs/linereader.h: Likewise.
3748 * locale/programs/ld-address.c: Likewise. Add const to charmap
3749 parameter of all functions.
3750 * locale/programs/ld-collate.c: Likewise.
3751 * locale/programs/ld-identification.c: Likewise.
3752 * locale/programs/ld-measurement.c: Likewise.
3753 * locale/programs/ld-messages.c: Likewise.
3754 * locale/programs/ld-monetary.c: Likewise.
3755 * locale/programs/ld-name.c: Likewise.
3756 * locale/programs/ld-numeric.c: Likewise.
3757 * locale/programs/ld-paper.c: Likewise.
3758 * locale/programs/ld-paper.c: Likewise.
3759 * locale/programs/ld-telephone.c: Likewise.
3760 * locale/programs/ld-time.c: Likewise.
3761 * locale/programs/locfile.c: Likewise.
3762 * locale/programs/localedef.c: Likewise.
3763 * locale/programs/localedef.h: Likewise.
3764 * locale/programs/locfile.h: Likewise. Add declaration for
3766 * locale/programs/simple-hash.c: Add const to first parameter of
3767 find_entry, iterate_table, and lookup.
3768 * locale/programs/simple-hash.h: Likewise.
3769 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
3771 * include/locale.h: Define __LC_LAST.
3772 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3774 2001-12-07 Geoff Keating <geoffk@redhat.com>
3776 * sysdeps/powerpc/Dist: Update for recent FP changes.
3777 * sysdeps/powerpc/fpu/Dist: Likewise.
3779 2001-12-07 Andreas Schwab <schwab@suse.de>
3781 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3783 2001-12-06 Geoff Keating <geoffk@redhat.com>
3785 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3786 save/restore functions here.
3787 (libm-support): Don't define these functions here.
3788 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3790 * sysdeps/powerpc/fe_nomask.c: Move to...
3791 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3792 * sysdeps/powerpc/fprrest.S: Move to...
3793 * sysdeps/powerpc/fpu/fprrest.S: ... here.
3794 * sysdeps/powerpc/fprsave.S: Move to...
3795 * sysdeps/powerpc/fpu/fprsave.S: ... here.
3797 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3799 * sysdeps/unix/sysv/linux/opensock.c: New file.
3801 2001-12-06 Geoff Keating <geoffk@redhat.com>
3803 * config.make.in (with-fp): Define from configure.
3804 * configure.in: Substitute with_fp.
3805 * configure: Regenerate.
3806 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3807 specified, and don't change FPU environment.
3809 2001-12-06 Ulrich Drepper <drepper@redhat.com>
3811 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3812 * assert/assert.c: Check result of __asprintf call and don't use
3813 string if it failed.
3814 * assert/assert-perr.c: Likewise.
3815 * inet/rcmd.c: Likewise.
3816 * locale/programs/localedef.c (main): Check result of
3817 construct_output_path and exit if it failed.
3818 (construct_output_path): Check result of asprintf and mkdir calls and
3819 fail if they failed.
3820 * posix/getopt.c: Check result of __asprintf calls and fail if
3822 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3824 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3826 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3828 * sysdeps/generic/strncase.c: Likewise.
3829 * string/tester.c: Add tests for strcasecmp and strncasecmp.
3831 2001-12-05 Geoff Keating <geoffk@redhat.com>
3833 * scripts/cpp: Test the exit status from 'type', not 'awk'.
3835 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3836 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3837 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3838 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3839 * sysdeps/powerpc/fclrexcpt.c: Move to...
3840 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3841 * sysdeps/powerpc/fpu_control.h: Move to...
3842 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3844 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3846 * iconvdata/ibm1129.h: Remove duplicate mappings.
3847 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
3848 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
3849 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3851 * timezone/zic.c: Fix handling of turnaround times.
3852 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
3854 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
3856 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
3859 2001-12-05 Ulrich Drepper <drepper@redhat.com>
3861 * posix/regex.c: For use outside glibc defined bounded pointer
3862 macros here. Patch by Jim Meyering <jim@meyering.net>.
3864 * iconvdata/Makefile (modules): Add TCVN5712-1.
3865 * iconvdata/TESTS: Add TCVN5712-1.
3866 * iconvdata/gconv-modules: Likewise.
3867 * iconvdata/tcvn5712-1.c: New file.
3868 * iconvdata/testdata/TCVN-5712: New file.
3869 * iconvdata/testdata/TCVN-5712..UTF8: New file.
3871 2001-12-04 Ulrich Drepper <drepper@redhat.com>
3873 * iconvdata/cp1258.c: Optimize conversion from UCS4.
3875 2001-12-02 Roland McGrath <roland@frob.com>
3877 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
3879 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
3880 Reported by Jeff Bailey <jbailey@nisa.net>.
3882 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
3883 Reported by Jeff Bailey <jbailey@nisa.net>.
3885 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
3886 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
3887 Reported by Jeff Bailey <jbailey@nisa.net>.
3889 2001-12-01 Roland McGrath <roland@frob.com>
3891 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
3892 missing backslash in test arguments.
3893 * sysdeps/mach/hurd/configure: Regenerated.
3895 2001-11-26 Roland McGrath <roland@frob.com>
3897 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
3898 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
3900 2001-11-30 Ulrich Drepper <drepper@redhat.com>
3902 * iconvdata/Makefile (modules): Add ARMSCII-8.
3903 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
3904 * iconvdata/armscii-8.c: New file.
3906 2001-11-29 Jakub Jelinek <jakub@redhat.com>
3908 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
3909 don't match, fix {{a,b},c} globbing, clean up.
3910 Patch by Flavio Veloso <flaviovs@magnux.com>.
3911 * posix/globtest.sh: Add new tests.
3913 2001-11-29 Andreas Jaeger <aj@suse.de>
3915 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
3916 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
3918 * sysdeps/generic/abort.c: Include libioP.h for
3919 _IO_flush_all_lockp prototype.
3921 2001-11-29 Ulrich Drepper <drepper@redhat.com>
3923 * posix/regex.h: Define __restrict_arr correctly.
3925 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3927 * iconvdata/ibm1163.c: New file.
3928 * iconvdata/ibm1163.h: New file.
3929 * iconvdata/ibm1164.c: New file.
3930 * iconvdata/ibm1164.h: New file.
3931 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
3932 * iconvdata/Makefile: Likewise.
3933 * iconvdata/testdata/IBM1163: New file.
3934 * iconvdata/testdata/IBM1163..UTF8: New file.
3935 * iconvdata/testdata/IBM1164: New file.
3936 * iconvdata/testdata/IBM1164..UTF8: New file.
3937 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
3939 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
3940 * iconvdata/ibm1124.h: Likewise.
3941 * iconvdata/ibm1132.h: Likewise.
3942 * iconvdata/ibm1133.h: Likewise.
3943 * iconvdata/ibm1160.h: Likewise.
3944 * iconvdata/ibm1161.h: Likewise.
3945 * iconvdata/ibm1162.h: Likewise.
3946 * iconvdata/ibm856.h: Likewise.
3947 * iconvdata/ibm922.h: Likewise.
3948 * iconvdata/ibm930.h: Likewise.
3949 * iconvdata/ibm932.h: Likewise.
3950 * iconvdata/ibm933.h: Likewise.
3951 * iconvdata/ibm935.h: Likewise.
3952 * iconvdata/ibm937.h: Likewise.
3953 * iconvdata/ibm939.h: Likewise.
3954 * iconvdata/ibm943.h: Likewise.
3955 * iconvdata/ibm930.c: Pretty printing.
3956 * iconvdata/ibm937.c: Avoid access accross array boundary.
3958 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
3959 the current locale's codeset.
3960 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
3962 * iconv/iconv_prog.c: Pass empty strings as default value for to-
3963 and from-charset. Don't determine locale's charset here.
3965 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
3966 as the old _IO_flush_all but lock only if parameter is nonzero.
3967 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
3968 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
3969 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
3970 if libio is used [PR libc/2575].
3972 2001-11-28 Jakub Jelinek <jakub@redhat.com>
3974 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3975 __signbitl): Only define for ISO C99.
3977 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
3979 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
3980 herrnop to NETDB_INTERNAL if we run out of buffer space.
3982 2001-11-28 Ulrich Drepper <drepper@redhat.com>
3984 * nss/nss_files/files-XXX.c (internal_getent): Correct input
3985 overflow test for platforms with signed char.
3986 Reported by Andrew Haley <aph@cambridge.redhat.com>.
3988 2001-11-28 Bruno Haible <bruno@clisp.org>
3990 * locale/programs/simple-hash.c (lookup_2): Remove function.
3991 (insert_entry_2): Call lookup instead of lookup_2.
3993 2001-03-04 Bruno Haible <bruno@clisp.org>
3995 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
3997 2001-10-31 Bruno Haible <bruno@clisp.org>
3999 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
4001 2001-03-21 Bruno Haible <bruno@clisp.org>
4003 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
4004 chokes on empty macro arguments.
4005 * intl/plural.y: Add #pragma for alloca on AIX 3.
4007 2001-11-27 Ulrich Drepper <drepper@redhat.com>
4009 * intl/dcigettext.c (guess_category_value): Only implement for
4010 glibc. Otherwise rely on function _nl_locale_name which isn't
4011 present in the glibc sources.
4013 2001-09-24 Bruno Haible <bruno@clisp.org>
4015 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
4016 transliteration when building on a glibc system but outside glibc.
4018 2001-09-22 Bruno Haible <bruno@clisp.org>
4020 * intl/plural-eval.c: New file, extracted from dcigettext.c.
4021 * intl/dcigettext.c (plural_eval): Remove function, moved to
4023 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
4024 Include plural-eval.c.
4026 2001-09-22 Bruno Haible <bruno@clisp.org>
4028 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
4029 don't start with a digit; nplurals must be positive.
4031 2001-09-02 Bruno Haible <bruno@clisp.org>
4033 * intl/plural-exp.h: New file, extracted from gettextP.h.
4034 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
4035 * intl/gettextP.h (struct expression, struct parse_args,
4036 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
4037 * intl/loadmsgcat.c: Include plural-exp.h.
4038 (PLURAL_PARSE): Move macro to plural-exp.h.
4039 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
4041 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
4042 EXTRACT_PLURAL_EXPRESSION.
4043 (_nl_unload_domain): Update.
4044 * intl/dcigettext.c: Include plural-exp.h.
4045 * intl/plural.y: Include plural-exp.h, not gettextP.h.
4046 (FREE_EXPRESSION): Move macro to plural-exp.h.
4047 * intl/Makefile (routines): Add plural-exp.
4048 (distribute): Add plural-exp.h.
4050 2001-07-28 Bruno Haible <bruno@clisp.org>
4052 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
4053 isdigit, tolower argument to 'unsigned char'.
4054 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
4056 * intl/localealias.c (read_alias_file): Cast isspace argument to
4059 2001-10-20 Bruno Haible <bruno@clisp.org>
4061 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
4063 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
4064 with the variable 'index' in plural_lookup.
4065 * intl/l10nflist.c (strchr): Likewise.
4066 * intl/localealias.c (strchr): Likewise.
4068 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
4069 * intl/bindtextdom.c: Likewise.
4070 * intl/dcigettext.c: Likewise.
4071 * intl/dgettext.c: Likewise.
4072 * intl/dngettext.c: Likewise.
4073 * intl/explodename.c: Likewise.
4074 * intl/finddomain.c: Likewise.
4075 * intl/gettext.c: Likewise.
4076 * intl/l10nflist.c: Likewise.
4077 * intl/loadmsgcat.c: Likewise.
4078 * intl/localealias.c: Likewise.
4079 * intl/ngettext.c: Likewise.
4080 * intl/textdomain.c: Likewise.
4081 * intl/gettext.h: Assume <limits.h> exists.
4083 2001-11-27 Ulrich Drepper <drepper@redhat.com>
4085 * stdio-common/Makefile (tests): Add scanf11.
4086 * stdio-common/scanf11.c: New file.
4088 2001-11-26 Ulrich Drepper <drepper@redhat.com>
4090 * version.h (RELEASE): Define as development.
4091 (VERSION): Set to 2.2.90.
4093 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
4095 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
4096 * nis/nss_nis/nis-grp.c: Likewise.
4097 * nis/nss_nisplus/nisplus-grp.c: Likewise.
4099 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
4100 * nis/nss_nis/nis-pwd.c: Likewise.
4101 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4103 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
4104 * nis/nss_nisplus/nisplus-parser.c: Likewise.
4105 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4107 * nscd/grpcache.c: Use strtoul instead of atol.
4108 * nscd/pwdcache.c: Likewise.
4109 * nss/getent.c: Likewise.
4111 2001-11-27 Paul Eggert <eggert@twinsun.com>
4113 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4114 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4116 2001-11-19 Bruno Haible <bruno@clisp.org>
4118 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
4120 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
4121 improves the quality of the hash function, especially for short
4124 2001-11-26 Ulrich Drepper <drepper@redhat.com>
4126 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
4127 are found call conv_error and not input_error [PR libc/2669].
4129 * math/bits/mathcalls.h: Mark ceil and floor as const.
4130 Reported by David Mosberger.
4132 2001-11-21 Jim Meyering <meyering@lucent.com>
4134 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
4135 Define to be __-prefixed.
4136 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
4138 2001-11-26 Andreas Jaeger <aj@suse.de>
4140 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
4143 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
4145 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
4148 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
4149 unused variables. Fix threshold for returning 1.0.
4151 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
4154 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4155 remove unused variables.
4157 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4159 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4160 include local math header files.
4162 2001-11-22 Andreas Jaeger <aj@suse.de>
4164 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4167 2001-11-21 Andreas Jaeger <aj@suse.de>
4169 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4171 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4174 2001-11-15 Andreas Jaeger <aj@suse.de>
4176 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4177 compilers that support it.
4179 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4180 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4181 * stdlib/stdlib.h: Likewise.
4183 2001-11-17 Ulrich Drepper <drepper@redhat.com>
4185 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4186 statement with gotos.
4187 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4189 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
4191 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
4193 2001-11-15 Ulrich Drepper <drepper@redhat.com>
4195 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
4197 2001-10-02 Jakub Jelinek <jakub@redhat.com>
4198 H.J. Lu <hjl@gnu.org>
4200 * Versions.def (libc): Add GCC_3.0.
4201 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
4202 if gcc supports this flag.
4203 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
4204 (gcc3): Allow glibc to be compiled with gcc 3.x.
4205 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
4206 * config.make.in (static-libgcc, unwind-find-fde): Add.
4207 * Makerules (build-shlib-helper, build-module-helper): Use it.
4208 * scripts/versions.awk: Make sure GLIBC_ versions come first.
4209 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
4211 (_fini): Call __deregister_frame_info_bases if
4212 __register_frame_info_bases was used to register.
4213 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
4215 (__register_frame_info_bases, __register_frame_info_table_bases,
4216 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
4217 * elf/Makefile (routines): Add unwind-dw2-fde.
4218 (shared-only-routines): Add unwind-dw2-fde.
4219 * sysdeps/alpha/gccframe.h: New file.
4220 * sysdeps/arm/gccframe.h: New file.
4221 * sysdeps/generic/framestate.c: New file.
4222 * sysdeps/generic/dwarf2.h: New file.
4223 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
4224 * sysdeps/generic/unwind-dw2-fde.c: New file.
4225 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
4226 * sysdeps/generic/unwind-dw2-fde.h: New file.
4227 * sysdeps/generic/unwind-dw2.c: New file.
4228 * sysdeps/generic/unwind-pe.h: New file.
4229 * sysdeps/generic/unwind.h: New file.
4230 * sysdeps/hppa/gccframe.h: New file.
4231 * sysdeps/i386/gccframe.h: New file.
4232 * sysdeps/m68k/gccframe.h: New file.
4233 * sysdeps/mips/gccframe.h: New file.
4234 * sysdeps/powerpc/gccframe.h: New file.
4235 * sysdeps/s390/gccframe.h: New file.
4236 * sysdeps/sh/gccframe.h: New file.
4237 * sysdeps/sparc/gccframe.h: New file.
4238 * sysdeps/vax/gccframe.h: New file.
4239 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4240 Set on all architectures except ia64.
4241 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
4243 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
4244 __deregister_frame_info): Move to elf/Versions.
4245 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
4246 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4247 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
4248 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
4249 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
4250 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4251 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4252 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4253 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4254 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
4255 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4256 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4257 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4258 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4259 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4260 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4261 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4262 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4264 2001-11-15 Jeff Law <law@redhat.com>
4266 * posix/regex.c (uintptr_t): Do not provide a definition if the
4267 system provided one.
4269 2001-11-13 Roland McGrath <roland@frob.com>
4271 * stdio-common/tmpfile.c: Moved to ...
4272 * sysdeps/generic/tmpfile.c: ... here.
4273 * sysdeps/mach/hurd/tmpfile.c: New file.
4275 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
4276 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
4277 (fopenport): Define as weak alias.
4279 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
4280 * libio/libioP.h: ... to here.
4282 2001-11-12 Ulrich Drepper <drepper@redhat.com>
4284 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4285 program header twice. Construct list with the needed information.
4287 2001-11-10 Ulrich Drepper <drepper@redhat.com>
4289 * po/ca.po: Update from translation team.
4291 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
4292 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
4293 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
4294 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4296 2001-11-10 Andreas Jaeger <aj@suse.de>
4298 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
4299 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4300 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4302 2001-11-09 Ulrich Drepper <drepper@redhat.com>
4304 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
4306 * elf/dl-load.c (is_dst): New function.
4307 (_dl_dst_count): Use is_dst to check for DST variable.
4308 (_dl_dst_substitute): Likewise.
4310 2001-11-09 Roland McGrath <roland@frob.com>
4312 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
4313 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
4314 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
4315 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
4316 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
4317 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
4318 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
4319 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
4320 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
4321 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
4322 * sysdeps/mach/hurd/powerpc/Dist: New file.
4324 * hurd/privports.c (__get_privileged_ports):
4325 Only contact the proc server if necessary for this call.
4326 Suggested by Neal H Walfield <neal@cs.uml.edu>.
4327 Check error return for mach_port_mod_refs.
4329 2001-11-09 Andreas Schwab <schwab@suse.de>
4331 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
4333 2001-11-09 Ulrich Drepper <drepper@redhat.com>
4335 * elf/dl-load.c (lose): Remove some unnecessary code. The new
4336 object is always the last in the list.
4337 (_dl_map_object_from_fd): Delete code to remove from object list
4338 when DF_1_NOOPEN is seen. This is done in lose.
4340 2001-11-08 Ulrich Drepper <drepper@redhat.com>
4342 * elf/dl-object.c (_dl_new_object): Various small optimizations.
4344 2001-11-07 Ulrich Drepper <drepper@redhat.com>
4346 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
4347 HWCAP_CHECK macro code.
4349 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
4350 Now returns MAP_FAILED on error.
4351 * elf/rtld.c: Adjust caller.
4352 * sysdeps/generic/dl-cache.c: Likewise.
4353 * sysdeps/generic/ldsodefs.h: Adjust description.
4355 * elf/dl-version.c (match_symbol): Optimize error handling for size.
4356 (_dl_check_map_versions): Likewise.
4358 2001-11-06 Ulrich Drepper <drepper@redhat.com>
4360 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4361 _dl_signal_error directly, always use lose. Set fd to -1 after
4363 (lose): Don't call close if fd == -1.
4365 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
4367 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
4368 Also fix typo @code {mbsinit} to @code{mbsinit}.
4370 2001-11-06 Ulrich Drepper <drepper@redhat.com>
4372 * elf/dl-profile.c: Replace state variable with simple flag named
4373 running. Remove commented-out code.
4375 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
4376 (_dl_init_paths): Likewise.
4377 (_dl_map_object_from_fd): Likewise.
4378 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4380 2001-11-06 Roland McGrath <roland@frob.com>
4382 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
4383 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
4385 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
4386 sysdeps/powerpc/elf/sysdep.h.
4387 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
4389 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4391 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
4393 (process_envvars): Some more optimizations.
4394 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4396 * elf/elf.h: Add dynamic tag definitions for prelinking.
4398 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4399 Rewrite code to remove environment varables for SUID binaries.
4400 Small optimization in LD_PROFILE handling.
4401 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4403 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4405 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4407 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4408 strings. Change type of second parameter.
4409 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4412 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4414 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
4416 * manual/string.texi: Fix typos.
4417 * manual/examples/argp-ex2.c: Likewise.
4419 2001-11-05 Roland McGrath <roland@frob.com>
4421 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4422 the more-specific unix/sysv/linux/powerpc file and breaks everything.
4423 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4424 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4425 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4426 here, put under [__ELF__].
4428 2001-11-05 Ulrich Drepper <drepper@redhat.com>
4430 * manual/charset.texi: Extensive editing work.
4431 * manual/nss.texi: Likewise.
4432 Changes by Dennis Grace <dgrace@us.ibm.com>.
4434 2001-11-04 Roland McGrath <roland@frob.com>
4436 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4437 parameter to dir_mkfile.
4439 2001-11-02 Jakub Jelinek <jakub@redhat.com>
4441 * string/bits/string2.h (__strndup): If n is smaller than len, set
4443 * string/tester.c (test_strndup): New function.
4446 2001-11-01 Ulrich Drepper <drepper@redhat.com>
4448 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
4450 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4451 * scripts/cpp: New file.
4453 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
4454 for rtld_search_dirs content. Minor optimizations.
4456 2001-10-31 Ulrich Drepper <drepper@redhat.com>
4458 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
4459 avoiding unnecessary duplication.
4461 2001-10-31 Jakub Jelinek <jakub@redhat.com>
4463 * elf/dl-load.c (_dl_map_object): If library was found using
4464 LD_LIBRARY_PATH, don't try RUNPATH list.
4466 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
4468 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
4469 Correct second argument of register_dump call.
4470 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
4473 2001-10-31 Ulrich Drepper <drepper@redhat.com>
4475 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
4477 * iconvdata/TESTS: Likewise.
4478 * iconvdata/gconv-modules: Likewise.
4479 * iconvdata/ibm1132.c: New file.
4480 * iconvdata/ibm1132.h: New file.
4481 * iconvdata/ibm1133.c: New file.
4482 * iconvdata/ibm1133.h: New file.
4483 * iconvdata/ibm1162.c: New file.
4484 * iconvdata/ibm1162.h: New file.
4485 * iconvdata/testdata/IBM1132: New file.
4486 * iconvdata/testdata/IBM1132..UTF8: New file.
4487 * iconvdata/testdata/IBM1133: New file.
4488 * iconvdata/testdata/IBM1133..UTF8: New file.
4489 * iconvdata/testdata/IBM1162: New file.
4490 * iconvdata/testdata/IBM1162..UTF8: New file.
4491 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
4493 * string/string.h: Fix typo in comment.
4494 * wcsmbs/wchar.h: Likewise.
4496 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
4498 * manual/getopt.texi (getopt_long, getopt_long_only): Include
4499 const in type of longopts parameter.
4501 2001-10-29 Andreas Jaeger <aj@suse.de>
4503 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
4505 2001-10-29 Kevin Ryde <user42@zip.com.au>
4507 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
4508 output, clarify `#' behaviour on 0.
4509 (Floating-Point Conversions): Clarify that %g only uses %e when
4510 the exponent would be greater than 1.
4512 2001-10-28 Roland McGrath <roland@frob.com>
4514 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
4515 * sysdeps/mach/powerpc/machine-sp.h: New file.
4516 * sysdeps/mach/powerpc/sysdep.h: New file.
4517 * sysdeps/mach/powerpc/thread_state.h: New file.
4519 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
4520 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
4521 expect to need the same thing on every platform.
4523 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
4524 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
4526 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
4527 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
4528 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
4529 Move all these assembly-related definitions to ...
4530 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
4532 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
4533 by Peter Bruin <pjbruin@dds.nl>.
4535 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
4536 packing results for a `poll' call.
4538 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4540 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
4542 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
4545 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4547 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
4549 2001-10-24 H.J. Lu <hjl@gnu.org>
4551 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4552 Use __BEGIN_DECLS/__END_DECLS around prototypes.
4553 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4555 2001-10-21 Jim Meyering <meyering@lucent.com>
4557 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
4558 this code would end up calling gettext even in packages built
4560 * posix/getopt.c (_): Likewise.
4561 * posix/regex.c (_): Likewise.
4563 2001-10-26 Ulrich Drepper <drepper@redhat.com>
4565 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4567 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4568 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4570 2001-10-19 Jakub Jelinek <jakub@redhat.com>
4572 * misc/sys/cdefs.h (__attribute_used__): Define.
4573 * elf/rtld.c (_dl_start): Add __attribute_used__.
4574 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4576 2001-10-25 Andreas Schwab <schwab@suse.de>
4578 * stdlib/a64l.c: Expect least significant digit first.
4579 * stdlib/l64a.c: Produce least significant digit first.
4580 * stdlib/Makefile (tests): Add test-a64l.
4581 * stdlib/test-a64l.c: New file.
4582 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4584 2001-10-21 Ulrich Drepper <drepper@redhat.com>
4586 * po/sk.po: Update from translation team.
4588 2001-10-18 Ulrich Drepper <drepper@redhat.com>
4590 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4592 2001-10-18 Andreas Schwab <schwab@suse.de>
4594 * math/libm-test.inc (print_ulps): Print ulp values rounded to
4596 (print_function_ulps): Likewise.
4597 (print_complex_function_ulps): Likewise.
4598 (print_max_error): Likewise.
4599 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
4601 2001-10-16 Andreas Schwab <schwab@suse.de>
4603 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4606 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4607 BSD_SETJMP or BSD__SETJMP is defined, resp.
4608 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4609 a tail call to __sigsetjmp that would require extending the
4611 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4612 * sysdeps/m68k/bsd-setjmp.S: Deleted.
4613 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4614 Reported by Jes Sorensen <jes@trained-monkey.org>.
4616 2001-10-16 Andreas Jaeger <aj@suse.de>
4618 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4619 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
4622 2001-10-15 Ulrich Drepper <drepper@redhat.com>
4624 * po/ca.po: New file. Contributed by the translation team.
4626 2001-10-15 Ralf Baechle <ralf@gnu.org>
4628 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4629 a varargs prototype. Remove dependency from kernel header files.
4631 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4632 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4634 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4636 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4637 to generate hexadecimal identifier.
4638 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4640 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
4642 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4644 2001-10-14 Ulrich Drepper <drepper@redhat.com>
4646 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4647 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4648 Contributed by Stephen L Moshier <moshier@mediaone.net>.
4650 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4651 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4652 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4653 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4654 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4655 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4657 * timezone/africa: Update from tzdata2001d.
4658 * timezone/asia: Likewise.
4659 * timezone/australasia: Likewise.
4660 * timezone/backward: Likewise.
4661 * timezone/europe: Likewise.
4662 * timezone/leapseconds: Likewise.
4663 * timezone/northamerica: Likewise.
4664 * timezone/southamerica: Likewise.
4665 * timezone/zone.tab: Likewise.
4667 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4669 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4670 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4672 2001-10-12 Ulrich Drepper <drepper@redhat.com>
4674 * elf/elf.h (PT_TLS): New definition.
4676 2001-10-10 Jeff Bailey <jbailey@nisa.net>
4678 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4681 2001-10-07 Roland McGrath <roland@frob.com>
4683 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4685 2001-10-10 Ulrich Drepper <drepper@redhat.com>
4687 * elf/elf.h: Add more ELFOSABI_* constants.
4689 2001-10-04 Ben Collins <bcollins@debian.org>
4691 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4692 decleration of __need_wchar_t.
4694 2001-10-03 Jakub Jelinek <jakub@redhat.com>
4696 * string/bits/string2.h (__strsep_g): Add prototype.
4698 * string/Versions (__strsep): Remove.
4699 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4701 2001-10-07 Ulrich Drepper <drepper@redhat.com>
4703 * manua/llio.texi: Clarify file references added by mmap.
4704 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4706 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
4708 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4709 Add sc_loadrs and sc_rbs_bas to match current kernel.
4711 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4713 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4715 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4717 2001-09-27 Jakub Jelinek <jakub@redhat.com>
4719 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4720 object has been bumped because of relocation dependency, avoid
4721 duplicates in l_scope.
4722 (show_scope): Fix typos.
4723 * elf/Makefile: Add rules to build and run reldep6.
4724 * elf/reldep6.c: New file.
4725 * elf/reldep6mod0.c: New file.
4726 * elf/reldep6mod1.c: New file.
4727 * elf/reldep6mod2.c: New file.
4728 * elf/reldep6mod3.c: New file.
4729 * elf/reldep6mod4.c: New file.
4731 2001-09-26 Jakub Jelinek <jakub@redhat.com>
4733 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4735 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
4736 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4737 for non-lazy binding. Fix .plt[32768+] handling.
4738 (elf_machine_plt_value): Don't add addend.
4739 (elf_machine_rela): Call sparc64_fixup_plt instead of
4740 elf_machine_fixup_plt.
4741 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4742 dynamic linker at 0xfffff800XXXXXXXX.
4744 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4746 2001-09-28 Ulrich Drepper <drepper@redhat.com>
4748 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4750 2001-09-25 Jakub Jelinek <jakub@redhat.com>
4752 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4753 declare __cmsg_data field if its size would be bigger than 0.
4754 (CMSG_DATA): Adjust accordingly.
4755 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4756 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4757 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4758 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4759 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4760 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4761 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4763 2001-09-25 Ulrich Drepper <drepper@redhat.com>
4765 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4766 * iconvdata/testdata/IBM1160: New file.
4767 * iconvdata/testdata/IBM1160..UTF8: New file.
4768 * iconvdata/testdata/IBM1161: New file.
4769 * iconvdata/testdata/IBM1161..UTF8: New file.
4770 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4772 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4774 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4775 UL_SETFSIZE computations better.
4777 * rt/Makefile: Remove use of filter for librt again.
4779 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4780 UL_SETFSIZE computations better.
4782 * string/Versions: Export __strsep for GLIBC_2.2.5.
4783 * string/bits/string2.h: Define all __STRING_INLINE functions if
4784 _FORCE_INLINES is defined.
4785 Use int instead of char of parameter types.
4786 (__strsep): Don't use __strsep_g. Don't define it.
4787 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4788 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4790 (__stpcpy_a_small): Renamed from __stpcpy_small.
4791 (__strcspn_c1): Don't define if _FORCE_INLINES.
4792 (__strspn_c1): Likewise.
4794 2001-09-22 Ben Collins <bcollins@debian.org>
4796 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4797 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
4798 * sysdeps/ia64/bits/sigaction.h: Likewise.
4799 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4801 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
4803 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4805 2001-09-24 Jakub Jelinek <jakub@redhat.com>
4807 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4809 2001-09-24 Ulrich Drepper <drepper@redhat.com>
4811 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4813 2001-09-20 H.J. Lu <hjl@gnu.org>
4815 * include/dlfcn.h (__RTLD_SPROF): New definiton.
4816 * elf/dl-open.c (dl_open_worker): Return immediately after loading
4818 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4819 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4821 2001-09-20 H.J. Lu <hjl@gnu.org>
4823 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4826 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4828 * nss/getent.c: Accept -s parameter to overwrite rules in
4829 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
4831 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4832 with as many ".0" as necessary to form a complete address
4833 inet_network understands.
4835 * nss/getent.c: Various cleanups. Use simpler and fewer function
4838 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
4840 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4842 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4844 2001-09-22 Ulrich Drepper <drepper@redhat.com>
4846 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4848 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
4849 * iconvdata/ibm1160.c: New file.
4850 * iconvdata/ibm1160.h: New file.
4851 * iconvdata/ibm1161.c: New file.
4852 * iconvdata/ibm1161.h: New file.
4853 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4855 2001-09-19 Jakub Jelinek <jakub@redhat.com>
4857 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
4858 difference between base address and first PT_LOAD's virtual address,
4859 not the base address.
4861 2001-09-11 Tom Rix <trix@redhat.com>
4863 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
4864 ifdef for __getopt_clean_environment.
4865 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
4867 2001-09-22 Andreas Jaeger <aj@suse.de>
4869 * elf/reldep4.c (main): Add proper prototype to fix warning.
4871 * elf/reldep5.c (main): Remove unused variable.
4873 * math/math_private.h: Add prototypes.
4875 2001-09-21 Andreas Jaeger <aj@suse.de>
4877 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
4878 * sysdeps/x86_64/Dist: New file.
4879 * sysdeps/x86_64/soft-fp/Dist: New file.
4881 * sysdeps/gnu/Dist: Remove eval.c.
4883 2001-09-20 Ulrich Drepper <drepper@redhat.com>
4885 * malloc/memusage.c (realloc): Don't count already allocated
4887 (me): Always use dlsym() to find the real implementations.
4889 * malloc/memusage.sh: Make -n option actually do something.
4891 2001-09-20 Andreas Jaeger <aj@suse.de>
4893 * elf/elf.h (R_390_NUM): Correct value.
4895 * Versions.def: Add missing versions 2.2.3 for libthread_db and
4898 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
4899 for x86-64, install x86-64 into */lib64.
4901 * shlib-versions: Add x86-64.
4903 * elf/elf.h: Add x86-64 relocations.
4905 2001-09-19 Ulrich Drepper <drepper@redhat.com>
4907 * po/fr.po: Update from translation team.
4909 2001-09-19 Andreas Jaeger <aj@suse.de>
4911 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
4912 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
4913 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
4914 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
4915 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
4916 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
4917 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
4918 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
4919 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
4920 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
4921 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
4922 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
4923 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
4924 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
4925 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
4926 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
4927 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
4928 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
4929 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
4930 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
4931 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
4932 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
4933 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
4934 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
4935 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
4936 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
4937 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
4938 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
4939 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
4940 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
4941 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
4942 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
4943 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
4944 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
4945 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
4946 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
4947 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
4948 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
4949 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
4950 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
4951 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
4952 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
4953 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
4954 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
4955 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
4956 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
4957 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
4958 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
4959 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
4960 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
4961 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
4962 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
4963 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
4964 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
4965 * sysdeps/unix/x86_64/sysdep.S: New file.
4966 * sysdeps/unix/x86_64/sysdep.h: New file.
4967 * sysdeps/x86_64/Implies: New file.
4968 * sysdeps/x86_64/Makefile: New file.
4969 * sysdeps/x86_64/Versions: New file.
4970 * sysdeps/x86_64/__longjmp.S: New file.
4971 * sysdeps/x86_64/abort-instr.h: New file.
4972 * sysdeps/x86_64/atomicity.h: New file.
4973 * sysdeps/x86_64/bits/endian.h: New file.
4974 * sysdeps/x86_64/bits/setjmp.h: New file.
4975 * sysdeps/x86_64/bits/string.h: New file.
4976 * sysdeps/x86_64/bp-asm.h: New file.
4977 * sysdeps/x86_64/bsd-_setjmp.S: New file.
4978 * sysdeps/x86_64/bsd-setjmp.S: New file.
4979 * sysdeps/x86_64/dl-machine.h: New file.
4980 * sysdeps/x86_64/elf/initfini.c: New file.
4981 * sysdeps/x86_64/elf/start.S: New file.
4982 * sysdeps/x86_64/ffs.c: New file.
4983 * sysdeps/x86_64/ffsll.c: New file.
4984 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
4985 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
4986 * sysdeps/x86_64/fpu/e_acosl.c: New file.
4987 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
4988 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
4989 * sysdeps/x86_64/fpu/e_expl.c: New file.
4990 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
4991 * sysdeps/x86_64/fpu/e_log10l.S: New file.
4992 * sysdeps/x86_64/fpu/e_log2l.S: New file.
4993 * sysdeps/x86_64/fpu/e_logl.S: New file.
4994 * sysdeps/x86_64/fpu/e_powl.S: New file.
4995 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
4996 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
4997 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
4998 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
4999 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
5000 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
5001 * sysdeps/x86_64/fpu/fegetenv.c: New file.
5002 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
5003 * sysdeps/x86_64/fpu/fegetround.c: New file.
5004 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
5005 * sysdeps/x86_64/fpu/fesetenv.c: New file.
5006 * sysdeps/x86_64/fpu/fesetround.c: New file.
5007 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
5008 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
5009 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
5010 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
5011 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
5012 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
5013 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
5014 * sysdeps/x86_64/fpu/s_atanl.c: New file.
5015 * sysdeps/x86_64/fpu/s_cosl.S: New file.
5016 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
5017 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
5018 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
5019 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
5020 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
5021 * sysdeps/x86_64/fpu/s_logbl.c: New file.
5022 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
5023 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
5024 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
5025 * sysdeps/x86_64/fpu/s_rintl.c: New file.
5026 * sysdeps/x86_64/fpu/s_significandl.c: New file.
5027 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
5028 * sysdeps/x86_64/fpu/s_sinl.S: New file.
5029 * sysdeps/x86_64/fpu/s_tanl.S: New file.
5030 * sysdeps/x86_64/gmp-mparam.h: New file.
5031 * sysdeps/x86_64/hp-timing.c: New file.
5032 * sysdeps/x86_64/hp-timing.h: New file.
5033 * sysdeps/x86_64/htonl.S: New file.
5034 * sysdeps/x86_64/memusage.h: New file.
5035 * sysdeps/x86_64/setjmp.S: New file.
5036 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
5037 * sysdeps/x86_64/stackinfo.h: New file.
5038 * sysdeps/x86_64/sysdep.h: New file.
5039 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
5041 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
5044 2001-09-18 Ulrich Drepper <drepper@redhat.com>
5046 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
5047 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
5049 2001-09-18 Andreas Schwab <schwab@suse.de>
5051 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
5052 list, now that l_scope is a pointer.
5054 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
5057 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
5059 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
5060 (elf_machine_rela_relative): Add a missing declaration.
5062 2001-09-18 Jakub Jelinek <jakub@redhat.com>
5064 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
5065 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
5066 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
5067 ldd-rewrite scripts.
5069 2001-09-18 Ulrich Drepper <drepper@redhat.com>
5071 * elf/ldd.bash.in: Update copyright message.
5073 2001-09-17 H.J. Lu <hjl@gnu.org>
5075 * hurd/hurdmalloc.c (bcopy): Removed.
5076 (realloc): Replace bcopy with memcpy.
5077 * hurd/path-lookup.c (file_name_path_scan): Likewise.
5078 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
5079 * sunrpc/rpcinfo.c (pmapdump): Likewise.
5081 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
5082 (gethostbyaddr): Likewise.
5083 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
5085 2001-09-18 Ulrich Drepper <drepper@redhat.com>
5087 * sysdeps/gnu/eval.c: Removed.
5089 2001-09-18 Andreas Jaeger <aj@suse.de>
5091 * sysdeps/i386/fpu/s_logbl.S: Move to ...
5092 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
5094 * sysdeps/i386/fpu/s_rintl.S: Move to ...
5095 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
5097 * sysdeps/i386/fpu/s_significandl.S: Move to ...
5098 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
5100 2001-09-16 Ulrich Drepper <drepper@redhat.com>
5102 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5105 2001-09-14 H.J. Lu <hjl@gnu.org>
5107 * sysdeps/mips/fpu/libm-test-ulps: Updated.
5109 2001-09-14 Ulrich Drepper <drepper@redhat.com>
5111 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
5112 Patch by Florian La Roche <laroche@redhat.com>.
5114 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
5116 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
5119 2001-09-14 Andreas Schwab <schwab@suse.de>
5121 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
5122 Sumner <bls@sgi.com>.
5123 * posix/execlp.c: Likewise.
5125 2001-09-13 Jakub Jelinek <jakub@redhat.com>
5127 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
5128 is already found earlier in the search scope.
5130 2001-09-12 Jakub Jelinek <jakub@redhat.com>
5132 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
5135 2001-09-13 Ulrich Drepper <drepper@redhat.com>
5137 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
5139 2001-09-12 Ulrich Drepper <drepper@redhat.com>
5141 * config.h.in: Enforce optimization to be used.
5142 * Makeconfig (preprocess-versions): Define ASSEMBLER.
5143 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
5144 * posix/Makefile (annexc-CFLAGS): Define to -O.
5145 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
5147 2001-09-11 Ulrich Drepper <drepper@redhat.com>
5149 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
5150 Patch by Stephan Kulow.
5152 2001-09-08 Ben Collins <bcollins@debian.org>
5154 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5155 usage of RESOLVE() (r_type, not reloc->r_type).
5157 2001-09-08 Ulrich Drepper <drepper@redhat.com>
5159 * elf/dl-object.c: Avoid allocating extra memory block for name.
5160 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5161 allocated separately.
5162 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5164 2001-09-08 H.J. Lu <hjl@gnu.org>
5166 * po/zh_TW.po: Fix a typo.
5168 2001-09-07 Tom Rix <trix@redhat.com>
5170 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5172 2001-08-26 Tom Rix <trix@redhat.com>
5174 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5175 command line options.
5176 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5177 * sysdeps/unix/sysv/aix/start.c: Removed.
5178 * sysdeps/unix/sysv/aix/start-libc.c: New file.
5179 * sysdeps/unix/sysv/aix/init-first.c: New file.
5180 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5182 2001-09-08 Ben Collins <bcollins@debian.org>
5184 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5185 * sysdeps/generic/dl-machine.h: Likewise.
5186 * sysdeps/hppa/dl-fptr.c: Likewise.
5187 * sysdeps/ia64/dl-fptr.c: Likewise.
5188 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5189 * sysdeps/mips/dl-machine.h: Likewise.
5190 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5191 * sysdeps/powerpc/dl-machine.c: Likewise.
5193 2001-09-07 Ben Collins <bcollins@debian.org>
5195 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
5197 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
5199 2001-09-08 Ulrich Drepper <drepper@redhat.com>
5201 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
5202 dependencies if necessary.
5204 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
5205 loaded directly) determine length if l_initfini list by iterating
5206 over its elements. Minor optimizations.
5207 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
5208 for dependency objects.
5209 If object was already loaded check whether any of the dependencies
5210 is already on the relocation dependency list. If yes, remove the
5211 latter. Minor optimizations.
5212 * elf/dl-lookup.c (add_dependency): Add check for self reference of
5213 maps here. Search l_initfini list only if the object was loaded
5214 directly and not only as a dependency.
5215 (_dl_lookup_symbol): Add relocation dependency also if object
5216 is not in global scope. Remove test for self-reference here.
5217 (_dl_lookup_versioned_symbol): Likewise.
5218 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
5219 element of first name record.
5220 * elf/loadtest.c: Add some more test to recognize early if an object
5222 * elf/Makefile: Add rules to build and run reldep5.
5223 * elf/reldep5.c: New file.
5224 * elf/reldepmod5.c: New file.
5225 * elf/reldepmod6.c: New file.
5227 * elf/reldep2.c: Fix typo.
5229 2001-09-07 Ulrich Drepper <drepper@redhat.com>
5231 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
5232 elements. Change l_scope to be a pointer only.
5233 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5234 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
5235 here add searchlist of newly open file to the dependency's scope.
5236 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
5237 only searchlist from its scope. Free own scope array if necessary.
5238 * elf/Makefile (tests): Add dblload and dblunload now.
5240 2001-09-06 Andreas Jaeger <aj@suse.de>
5242 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
5245 2001-09-05 Ulrich Drepper <drepper@redhat.com>
5247 * elf/Makefile: Add rules to build new tests. Don't run them yet since
5249 * elf/dblload.c: New file.
5250 * elf/dblloadmod1.c: New file.
5251 * elf/dblloadmod2.c: New file.
5252 * elf/dblloadmod3.c: New file.
5253 * elf/dblunload.c: New file.
5255 2001-09-04 Richard Henderson <rth@redhat.com>
5257 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
5258 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
5260 2001-09-04 Ulrich Drepper <drepper@redhat.com>
5262 Correct very misleading message for error in failed runtime relocation.
5263 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
5265 (_dl_signal_cerror): Likewise.
5266 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5267 * elf/dl-close.c: Likewise.
5268 * elf/dl-deps.c: Likewise.
5269 * elf/dl-load.c: Likewise.
5270 * elf/dl-lookup.c: Likewise.
5271 * elf/dl-open.c: Likewise.
5272 * elf/dl-reloc.c: Likewise.
5273 * elf/dl-sym.c: Likewise.
5274 * elf/dl-version.c: Likewise.
5275 * sysdeps/generic/dl-sysdep.c: Likewise.
5277 2001-09-04 Jakub Jelinek <jakub@redhat.com>
5279 * iconv/strtab.c (strtabinit): Initialize null Strent.
5280 (newstring): Move len == 0 handling...
5281 (strtabadd): ...here.
5282 If len == 1, return null Strent.
5283 When inserting a suffix of an existing string, check if
5284 it is not equal to some suffix already recorded.
5285 Copy left and right members over if adding longer string.
5287 2001-09-04 Jakub Jelinek <jakub@redhat.com>
5289 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
5291 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
5292 (__syscall_gethostname): Add prototype.
5294 2001-09-04 Ulrich Drepper <drepper@redhat.com>
5296 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
5298 2001-09-02 Ulrich Drepper <drepper@redhat.com>
5300 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
5302 2001-08-27 Roland McGrath <roland@frob.com>
5304 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
5305 short, copy that much into NAME anyway before returning error.
5307 2001-09-01 Richard Henderson <rth@redhat.com>
5309 * sysdeps/alpha/elf/Dist: Remove file.
5310 * sysdeps/alpha/elf/Makefile: Remove file.
5311 * sysdeps/alpha/elf/crtbegin.S: Remove file.
5312 * sysdeps/alpha/elf/crtend.S: Remove file.
5313 * sysdeps/alpha/elf/initfini.c: New file.
5315 2001-09-01 Mark Kettenis <kettenis@gnu.org>
5317 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
5318 * iconv/tst-iconv3.c: Likewise.
5320 2001-09-01 Jakub Jelinek <jakub@redhat.com>
5322 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
5324 2001-09-01 Ulrich Drepper <drepper@redhat.com>
5326 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
5328 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
5329 * iconv/iconv_prog.c (insert_cache): New function.
5330 (print_known_names): If cache is used call insert_cache to use the
5331 information from the cache [PR libc/2509].
5333 2001-08-31 Ulrich Drepper <drepper@redhat.com>
5335 * time/strptime.c (strptime_internal): Recognize 'l' format and
5336 handle it like 'I' for symmetry with strftime.
5338 2001-08-31 Richard Henderson <rth@redhat.com>
5340 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
5341 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
5342 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
5343 (print_statistics): Make scalar unsigned long long.
5344 * sysdeps/alpha/hp-timing.h: New file.
5346 2001-08-31 Jakub Jelinek <jakub@redhat.com>
5348 * stdio-common/perror.c (perror): Save errno early, pass it
5349 down to perror_internal.
5350 (perror_internal): Add errnum argument.
5352 2001-08-31 Jakub Jelinek <jakub@redhat.com>
5354 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
5355 Don't add old memory content for R_ALPHA_REFQUAD.
5357 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5359 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
5362 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
5363 instead of open, __close instead of close, __getpagesize instead
5366 * string/argz-stringify.c (__argz_stringify): Use __strnlen
5368 * include/string.h (strndupa): Redefine here to use __strnlen
5370 * string/strndup.c (__strndup): Use __strnlen not strnlen.
5372 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
5375 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5377 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
5378 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
5379 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5380 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
5381 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
5382 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
5383 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
5385 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5387 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
5389 2001-08-30 Andreas Jaeger <aj@suse.de>
5391 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5392 contributed Stephen L Moshier.
5394 2001-08-30 Jakub Jelinek <jakub@redhat.com>
5396 * sunrpc/etc.rpc (sgi_fam): Add.
5398 2001-08-30 Ulrich Drepper <drepper@redhat.com>
5400 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5402 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5404 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5405 first is from a previous call.
5406 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5408 2001-08-29 Andreas Schwab <schwab@suse.de>
5410 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5412 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5414 * config.make.in (INSTALL_SCRIPT): Define.
5415 * Makeconfig (INSTALL_SCRIPT): Define.
5416 * Makerules (do-install-script): New macro to install scripts using
5418 (install-bin-script): New rule to install scripts with
5420 (install-bin-script-nosubdir): New rule.
5421 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5422 (distinfo-vars): Add $(install-bin-script).
5423 * Rules (others): Likewise.
5424 * Makefile (glibcbug): Install with install-bin-script.
5425 * debug/Makefile (xtrace): Likewise.
5426 (catchsegv): Likewise.
5427 * elf/Makefile (ldd): Likewise.
5428 * malloc/Makefile (mtrace): Likewise.
5429 * timezone/Makefile (tzselect): Likewise.
5431 2001-08-29 H.J. Lu <hjl@gnu.org>
5433 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5434 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5435 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5437 2001-08-29 Andreas Schwab <schwab@suse.de>
5439 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5441 2001-08-28 H.J. Lu <hjl@gnu.org>
5443 * Makeconfig (combreloc-LDFLAGS): New variable.
5444 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5445 * config.make.in (have-z-combreloc): New variable.
5446 * configure.in: Substitute libc_cv_z_combreloc.
5448 2001-08-29 Ulrich Drepper <drepper@redhat.com>
5450 * po/sv.po: Update from translation team.
5451 * po/fr.po: Likewise.
5452 * po/da.po: Likewise.
5454 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5456 * Makerules: Fix a typo: MD% -> MD5.
5458 2001-08-28 Ulrich Drepper <drepper@redhat.com>
5460 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
5461 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
5463 2001-08-28 Andreas Jaeger <aj@suse.de>
5465 * manual/libc-texinfo.sh: Add entry about free manuals.
5467 * manual/contrib.texi (Contributors): Fix cross reference.
5469 * manual/libc.texinfo (Copying): Include freemanuals.
5471 * manual/Makefile (appendices): Add freemanuals.
5473 * manual/freemanuals.texi: New file.
5474 Patch by Brian Youmans <3diff@gnu.org>.
5476 * manual/libm-err-tab.pl: Pretty print more platforms, print a
5479 * manual/math.texi (Errors in Math Functions): Fix grammar, start
5480 table on separate page.
5481 Patch by Brian Youmans <3diff@gnu.org>.
5483 2001-08-27 Ulrich Drepper <drepper@redhat.com>
5485 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
5486 the connection went down after we first used it try to connect
5487 again and resend the message before printing to the console.
5488 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
5490 2001-08-27 Jakub Jelinek <jakub@redhat.com>
5492 * string/tst-strlen.c (main): Test strnlen (, -1) too.
5493 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
5496 2001-08-27 Ulrich Drepper <drepper@redhat.com>
5498 * iconv/strtab.c (searchstring): Use correct length for comparison.
5499 (strtabadd): Account total size correct if new string has old string as
5502 2001-08-27 Jakub Jelinek <jakub@redhat.com>
5504 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
5506 2001-08-27 Andreas Jaeger <aj@suse.de>
5508 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
5510 * math/libm-test.inc (j0_test): Add extra tests.
5511 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
5512 not x, in Hankel approximation.
5513 Patches by Stephen L Moshier.
5515 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5517 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
5520 * configure.in: Fix test for .rela.dyn section.
5522 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
5524 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5526 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
5527 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
5528 Pass type_class to _dl_lookup_*.
5529 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
5530 Pass around just type_class instead of noexec, noplt pair.
5531 (_dl_lookup_versioned_symbol): Likewise.
5532 (_dl_lookup_symbol_skip): Pass around just type_class instead of
5534 (_dl_lookup_versioned_symbol_skip): Likewise.
5535 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
5536 * elf/do-lookup.h (do_lookup): Likewise.
5537 * include/link.h (struct link_map): Replace noexec and noplt fields
5538 in l_lookup_cache with type_class field.
5539 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
5540 ELF_RTYPE_CLASS_COPY): Define.
5541 Adjust prototypes for _dl_lookup_symbol and
5542 _dl_lookup_versioned_symbol.
5543 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
5544 elf_machine_lookup_noexec_p): Remove.
5545 (elf_machine_type_class): Define.
5546 * sysdeps/arm/dl-machine.h: Likewise.
5547 * sysdeps/hppa/dl-machine.h: Likewise.
5548 * sysdeps/cris/dl-machine.h: Likewise.
5549 * sysdeps/i386/dl-machine.h: Likewise.
5550 * sysdeps/ia64/dl-machine.h: Likewise.
5551 * sysdeps/m68k/dl-machine.h: Likewise.
5552 * sysdeps/mips/mips64/dl-machine.h: Likewise.
5553 * sysdeps/mips/dl-machine.h: Likewise.
5554 * sysdeps/powerpc/dl-machine.h: Likewise.
5555 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5556 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5557 * sysdeps/sh/dl-machine.h: Likewise.
5558 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5559 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5561 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5563 * manual/message.texi (Advanced gettext functions): Change
5564 description of plural forms for Slovak.
5565 Reported by Marcel Telka <marcel@telka.sk>.
5567 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5568 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5570 2001-08-26 Jakub Jelinek <jakub@redhat.com>
5572 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5573 typo. Patch by Florian La Roche <laroche@redhat.com>.
5575 2001-08-26 Ulrich Drepper <drepper@redhat.com>
5577 * include/link.h (struct link_map): Add l_lookup_cache element.
5578 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5579 (RESOLVE_MAP): Likewise.
5580 (_dl_relocate_object): Remove cache initialization.
5581 * elf/dl-lookup.c: Rip out cache handling code.
5582 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5585 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5586 remove some __builtin_expect.
5587 (_dl_lookup_versioned_symbol): Likewise.
5589 * config.h.in: Add HAVE_Z_COMBRELOC.
5590 * configure.in: Add test for -z combreloc.
5592 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5593 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
5594 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
5595 case to almost no code.
5597 2001-08-25 Ulrich Drepper <drepper@redhat.com>
5599 * po/tr.po: Update from translation team.
5601 2001-08-24 Andreas Jaeger <aj@suse.de>
5603 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5606 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5608 * elf/rtld.c (print_statistics): Printf % after percent values.
5609 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5611 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5612 don't have to compute the hash value and initialize current_value.
5613 Move reference_name variable to where it is needed.
5614 (_dl_lookup_versioned_symbol): Likewise.
5616 2001-08-24 Roland McGrath <roland@frob.com>
5618 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5619 Just test that strerror returns non-null for a few errno codes.
5621 2001-08-23 Roland McGrath <roland@frob.com>
5623 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5624 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5626 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5628 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5631 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5633 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5636 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5637 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5639 * elf/rtld.c: Include <sys/param.h>.
5640 * elf/dl-reloc.c: Likewise.
5642 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5644 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5645 empty to prevent junk from being generated.
5646 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5648 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5650 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5651 records. Rename endrel to relative, initialize it to r, and use it
5652 in elf_machine_rel_relative calls. Point r after relative relocs.
5654 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5656 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5659 2001-08-24 Jakub Jelinek <jakub@redhat.com>
5661 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5662 necessary. Undefine newly defined macros at the end.
5663 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5664 Rename from elf_machine_rel_relative.
5665 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5666 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5667 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5668 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5670 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5672 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5674 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5676 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5677 Likewise. Fix argument types.
5678 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5679 Likewise. Fix argument types.
5680 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5682 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5683 ElfW(Rel) in argument.
5684 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5687 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
5689 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5691 2001-08-24 Andreas Jaeger <aj@suse.de>
5693 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5694 Stephen L Moshier <moshier@mediaone.net>.
5696 2001-08-24 Ulrich Drepper <drepper@redhat.com>
5698 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5699 first if RELCOUNT is set.
5701 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5702 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5703 elf_machine_rel_relative.
5704 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5705 Minor optimizations.
5706 * sysdeps/arm/dl-machine.h: Likewise.
5707 * sysdeps/cris/dl-machine.h: Likewise.
5708 * sysdeps/hppa/dl-machine.h: Likewise.
5709 * sysdeps/i386/dl-machine.h: Likewise.
5710 * sysdeps/ia64/dl-machine.h: Likewise.
5711 * sysdeps/m68k/dl-machine.h: Likewise.
5712 * sysdeps/mips/dl-machine.h: Likewise.
5713 * sysdeps/powerpc/dl-machine.h: Likewise.
5714 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5715 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5716 * sysdeps/sh/dl-machine.h: Likewise.
5717 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5718 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5720 2001-08-23 Roland McGrath <roland@frob.com>
5722 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5724 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5725 sysdeps/mach version. Implement counting ("recursive") mutexes
5726 on top of cthreads mutexes.
5727 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5729 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5730 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5731 (__libc_cleanup_region_start, __libc_cleanup_region_end,
5732 __libc_clean_end): Define these to call the cleanup function after
5733 normal exit when they're supposed to.
5735 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5736 Take new first arg DOIT, a boolean saying whether to really install
5737 any cleanup handler.
5738 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5739 (__libc_cleanup_end): Likewise.
5740 * sysdeps/generic/bits/libc-lock.h: Same changes.
5741 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5742 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5743 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5745 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5746 * sysdeps/generic/bits/stdio-lock.h
5747 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5749 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5751 * elf/ldconfig.c (search_dir): Remove stale symlinks.
5753 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5755 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5756 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5758 (_dl_lookup_versioned_symbol): Likewise.
5759 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5761 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5762 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5763 (lookup_cache, lookup_cache_versioned): Add declarations.
5765 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5767 * stdlib/tst-random.c (main): Swap parameters in fail call.
5768 Patch by Pete Bevin <pete@petebevin.com>.
5770 2001-08-23 Jakub Jelinek <jakub@redhat.com>
5772 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5774 2001-08-23 Ulrich Drepper <drepper@redhat.com>
5776 * malloc/obstack.c: Indent preprocessor directives.
5777 Patch by Jim Meyering <meyering@ascend.com>.
5779 * po/ja.po: Update from translation team.
5781 2001-08-23 Roland McGrath <roland@frob.com>
5783 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5785 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5786 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5788 2001-08-22 Roland McGrath <roland@frob.com>
5790 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5791 __libc_lock_define_recursive.
5792 * elf/dl-open.c: Don't declare it here any more.
5793 * elf/dl-close.c: Likewise.
5794 * elf/dl-lookup.c: Likewise.
5795 * elf/dl-iteratephdr.c: Likewise.
5796 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5797 __libc_lock_unlock_recursive.
5798 * elf/dl-close.c (_dl_close): Likewise
5799 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5800 * elf/dl-open.c (_dl_open): Likewise
5802 * sysdeps/generic/bits/libc-lock.h
5803 (__libc_lock_define_recursive): New macro.
5804 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5805 (_IO_lock_lock): Use __libc_lock_lock_recursive.
5806 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5808 * conform/conformtest.pl (checknamespace): Sort the output list.
5810 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5811 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5812 definitions conditional on [__USE_XOPEN].
5814 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5815 these unconditionally, not only use [__USE_BSD], so as to match
5816 the sysdeps/unix/sysv/linux files.
5818 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5820 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5823 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5826 2001-08-22 Roland McGrath <roland@frob.com>
5828 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5829 conditionalization of sa_handler/sa_sigaction member types to
5830 match the sysdeps/unix/sysv/linux file.
5832 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5834 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5835 symbol sizes a bit better.
5837 * sysdeps/ia64/strncpy.S: Complete rewrite.
5838 Contributed by Jakub Jelinek <jakub@redhat.com>.
5840 * string/stratcliff.c (main): Add strncpy test.
5842 2001-08-22 Roland McGrath <roland@frob.com>
5844 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5845 and don't declare unsetenv or _environ directly.
5846 (unsetenv): Return int, not void. Use __environ instead of _environ.
5848 2001-08-01 Mark Kettenis <kettenis@gnu.org>
5850 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
5851 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
5852 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
5853 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
5854 test for cmsg struct size.
5856 2001-04-23 Paul Eggert <eggert@twinsun.com>
5858 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
5859 Rename __argc to ___argc in prototypes to avoid compatibility
5860 problems with systems that reserve the identifier "__argc".
5861 Similarly for __argv.
5863 2001-08-21 Roland McGrath <roland@frob.com>
5865 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
5867 * mach/Makefile (tests): Removed.
5868 * mach/hello.c: File removed.
5870 2001-08-22 Ulrich Drepper <drepper@redhat.com>
5872 * po/sv.po: Update from translation team.
5874 * stdio-common/vfscanf.c: Fix handling of %l[].
5875 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
5877 * libio/Makefile (tests): Add tst-sscanf.
5878 * libio/tst-sscanf.c: New file.
5880 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
5881 * malloc/mtrace.c (tr_where): dli_sname always points to a
5882 non-empty string if != NULL.
5883 Reported by Tim Janik <timj@gtk.org>.
5885 2001-08-22 Jakub Jelinek <jakub@redhat.com>
5887 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
5888 buf. Free resources on failure.
5889 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
5890 (makefd_xprt): Likewise.
5891 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
5892 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
5893 * sunrpc/auth_unix.c (authunix_create): Likewise.
5895 2001-08-21 Jakub Jelinek <jakub@redhat.com>
5897 * string/strnlen.c: Remove.
5898 * sysdeps/generic/strnlen.c: New file.
5899 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
5901 2001-08-21 Roland McGrath <roland@frob.com>
5903 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
5904 as a macro, not an extern inline function.
5906 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
5907 * Versions.def (libc): Add GLIBC_2.2.5 set.
5908 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
5909 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
5911 2001-08-20 Roland McGrath <roland@frob.com>
5913 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
5914 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
5916 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5918 * string/bits/string2.h: Remove strnlen optimization here.
5919 * sysdeps/i386/i486/bits/string.h: Add it here.
5921 2001-08-21 Wolfram Gloger <wg@malloc.de>
5923 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
5925 2001-08-21 Ulrich Drepper <drepper@redhat.com>
5927 * po/gl.po: Update from translation team.
5929 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5931 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
5932 * misc/err.c (convert_and_print): Likewise.
5934 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
5937 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5939 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
5940 change of the gregset_t type.
5941 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
5943 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
5945 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
5947 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5949 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
5951 * string/strnlen.c: Fix the implementation. We cannot use memchr.
5953 2001-08-18 Mark Kettenis <kettenis@gnu.org>
5955 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
5956 before calling the cthreads initialization code.
5958 2001-08-20 Ulrich Drepper <drepper@redhat.com>
5960 * argp/argp-help.c: Fix two problems introduced in last change.
5962 * include/dirent.h: Include <dirstream.h> first.
5964 2001-08-19 Ulrich Drepper <drepper@redhat.com>
5966 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
5968 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
5969 * sunrpc/xdr_rec.c: Likewise.
5970 * sunrpc/xdr_mem.c: Likewise.
5971 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
5972 * sunrpc/rpc_cmsg.c: Likewise.
5973 * sunrpc/getrpcport.c (getrpcport): Likewise.
5974 * sunrpc/clnt_simp.c (callrpc): Likewise.
5975 * sunrpc/clnt_gen.c (clnt_create): Likewise.
5976 * string/envz.c: Likewise.
5978 * po/ko.po: Update from translation team.
5980 * argp/argp-help.c: Handle wide oriented stderr stream.
5982 2001-08-18 Ulrich Drepper <drepper@redhat.com>
5984 * sysdeps/generic/strtol.c: Little optimizations. Add some
5987 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
5989 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
5990 * wcsmbs/wcwidth.c (wcwdith): Likewise.
5991 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
5993 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
5995 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
5997 * time/time.h (struct timespec): Use __time_t for tv_sec element.
5999 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
6000 wchar_t for function declarations and defintions.
6002 * misc/sys/select.h: Define __need_time_t before including <time.h>.
6003 Define suseconds_t if it hasn't happened yet.
6005 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
6007 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
6009 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
6012 * conform/data/stddef.h-data: Remove wint_t.
6014 * conform/conformtest.pl: Change namespace test to take #undef
6017 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
6019 * conform/data/sys/socket.h-data: Add sockatmark.
6021 2001-08-17 Ulrich Drepper <drepper@redhat.com>
6023 * io/fts.c: Update from recent BSD source.
6025 2001-08-17 Roland McGrath <roland@frob.com>
6027 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
6028 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
6031 2001-08-17 Ulrich Drepper <drepper@redhat.com>
6033 * locale/duplocale.c (__duplocale): Also initialize the special
6036 * conform/data/netdb.h-data: Adjust gai_strerror return type.
6038 2001-08-17 Andreas Jaeger <aj@suse.de>
6040 * misc/getpass.c: Include wchar.h for prototypes.
6041 * malloc/obstack.c: Likewise.
6043 2001-08-17 Ulrich Drepper <drepper@redhat.com>
6045 * sunrpc/svc_simple.c (universal): Use __write instead of write.
6047 * wcsmbs/wcscoll.c: Also define __wcscoll.
6048 * include/wchar.h: Declare __wcscoll.
6050 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
6051 * libio/vwprintf.c: Likewise.
6052 * libio/wprintf.c: Likewise.
6054 * iconv/gconv_cache.c: Use __munmap instead of munmap.
6056 2001-08-16 Ulrich Drepper <drepper@redhat.com>
6058 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6060 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6061 wcslen, and __wcscoll instead of wcscoll.
6063 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
6065 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
6066 __getuid instead of getuid.
6068 * stdio-common/perror.c (perror): Use __close instead of close.
6069 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6070 * libio/freopen.c (freopen): Likewise.
6071 * libio/freopen64.c (freopen64): Likewise.
6073 * libio/tst-ungetwc2.c (main): Define str const.
6075 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
6076 * libio/fwprintf.c: Also define __fwprintf.
6077 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
6078 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
6079 * assert/assert-perr.c: Likewise.
6080 * assert/assert.c: Likewise.
6081 * gmon/gmon.c: Likewise.
6082 * inet/rcmd.c: Likewise.
6083 * malloc/obstack.c: Likewise.
6084 * misc/err.c: Likewise.
6085 * misc/error.c: Likewise.
6086 * misc/getpass.c: Likewise.
6087 * posix/getopt.c: Likewise.
6088 * resolv/res_hconf.c: Likewise.
6089 * stdio-common/perror.c: Likewise.
6090 * stdio-common/psignal.c: Likewise.
6091 * stdlib/fmtmsg.c: Likewise.
6092 * sunrpc/auth_unix.c: Likewise.
6093 * sunrpc/clnt_perr.c: Likewise.
6094 * sunrpc/clnt_tcp.c: Likewise.
6095 * sunrpc/clnt_udp.c: Likewise.
6096 * sunrpc/clnt_unix.c: Likewise.
6097 * sunrpc/svc_simple.c: Likewise.
6098 * sunrpc/svc_tcp.c: Likewise.
6099 * sunrpc/svc_udp.c: Likewise.
6100 * sunrpc/svc_unix.c: Likewise.
6101 * sunrpc/xdr.c: Likewise.
6102 * sunrpc/xdr_array.c: Likewise.
6103 * sunrpc/xdr_rec.c: Likewise.
6104 * sunrpc/xdr_ref.c: Likewise.
6105 * sysdeps/generic/wordexp.c: Likewise.
6107 * po/it.po: Update from translation team.
6109 * misc/err.c: Handle wide oriented stderr stream.
6111 2001-08-14 Tom Rix <trix@redhat.com>
6113 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
6114 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
6116 2001-08-13 Tom Rix <trix@redhat.com>
6118 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
6119 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
6122 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
6124 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
6125 Store the access registers to the ucontext structure.
6126 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
6129 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
6130 Load the access registers from the ucontext structure.
6131 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
6134 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
6135 offsets to the new ucontext layout.
6136 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
6138 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
6139 of the ucontext structure.
6140 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6142 2001-08-15 Ulrich Drepper <drepper@redhat.com>
6144 * misc/error.c (error): Handle wide oriented stderr stream correctly.
6145 (error_at_line): Likewise.
6147 * stdio-common/perror.c (perror): Implement according to standard.
6148 The stream orientation must not be changed if the stream was not
6149 oriented before the call.
6150 * stdio-common/Makefile (tests): Add tst-perror.
6151 * stdio-common/tst-perror.c: New file.
6154 See ChangeLog.12 for earlier changes.