1 2002-11-23 Roland McGrath <roland@redhat.com>
3 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
4 Just produce hex output for datum sizes.
6 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
7 Reported by Luca Barbieri <ldb@ldb.ods.org>.
9 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
11 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
12 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
14 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
15 [__WORDSIZE == 32]: Only PPC32 requires __unused1
17 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
18 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
19 __unused3, and __unused4 fields.
21 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
22 obtain lowest address for profiling in __monstartup call.
24 2002-11-21 Roland McGrath <roland@redhat.com>
26 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
27 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
29 * locale/localeinfo.h (struct locale_data): Revert last change.
31 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
32 From Ian Wienand <ianw@gelato.unsw.edu.au>.
34 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
35 __NR_pread64 if not defined.
36 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
37 From Ian Wienand <ianw@gelato.unsw.edu.au>.
39 2002-11-21 Roland McGrath <roland@frob.com>
41 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
42 __libc_multiple_libcs here. Call __setfpucw.
44 2002-11-21 Ulrich Drepper <drepper@redhat.com>
46 * elf/Makefile (tests): Don't run test-arrayX tests for now.
48 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
49 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
50 CLONE_CHILD_*TID flags.
52 2002-11-20 Andreas Jaeger <aj@suse.de>
54 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
55 We pass struct ucontext on x86-64.
60 2002-11-20 Roland McGrath <roland@redhat.com>
62 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
63 conditionalize [! DO_VERSIONING] #error.
65 * scripts/abilist.awk: Grok function descriptor symbols.
67 * intl/tst-gettext.c (main): Check return values from setlocale.
68 Add necessary unsetenv's to make LANG=existing-locale check work.
70 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
71 so aborted prior runs don't confuse things.
73 * locale/localeinfo.h (struct locale_data: union locale_data_value):
74 Use uintptr_t instead of unsigned int for `word' member.
75 (_NL_CURRENT_WORD): Cast to uint32_t.
77 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
80 2002-11-20 Ulrich Drepper <drepper@redhat.com>
82 * elf/tls-macros.h: Add IA-64 definitions.
83 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
85 * iconv/Makefile (tests): Add tst-iconv4.
86 * iconv/tst-iconv4.c: New file.
88 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
89 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
90 __GCONV_INCOMPLETE_INPUT.
91 (ucs4le_internal_loop): Likewise.
92 (ucs4le_internal_loop_unaligned): Likewise.
93 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
94 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
95 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
97 * iconv/loop.c (LOOPFCT): First test for empty input then for full
100 * inet/getnameinfo.c: Use extend_alloca where appropriate.
101 * sysdeps/posix/getaddrinfo.c: Likewise.
103 * include/alloca.h (extend_alloca): New define. Based on stack
104 direction it'll try to append to the previouls allocated buffer.
106 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
108 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
109 use the same service for AF_INET and AF_INET6.
111 2002-11-19 Ulrich Drepper <drepper@redhat.com>
113 * intl/localealias.c (read_alias_file): Use only about 400 bytes
114 of stack space instead of 16k.
116 2002-11-18 Wolfram Gloger <wg@malloc.de>
119 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
120 nothing if not initialized. Bug report from Marcus Brinkmann
121 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
123 2002-11-19 Roland McGrath <roland@redhat.com>
125 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
128 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
129 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
130 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
131 * configure: Regenerated.
133 2002-11-19 Ulrich Drepper <drepper@redhat.com>
135 * include/dlfcn.h: __libc_dlopen is now a macro calling
136 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
137 (__libc_dlopen_mode): New prototype.
138 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
139 new parameter. Store new parameter in mode field of structure passed
141 (struct do_dlopen_args): Add new field mode.
142 (do_dlopen): Pass mode from parameter structure to _dl_open.
144 2002-11-11 Randolf Chung <tausq@debian.org>
146 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
147 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
148 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
150 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
152 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
153 Set -mdisable-fpregs for this file.
155 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
157 * sysdeps/unix/sysv/linux/configure.in:
158 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
159 from gcc-3.0 era for backwards compatibility.
160 * sysdeps/unix/sysv/linux/configure: Regenerate.
162 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
163 Define mcontext_t as a sigcontext.
165 2002-11-18 Roland McGrath <roland@redhat.com>
167 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
168 Free memory in `last_result' if it was used.
170 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
171 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
172 Do the parsing inline instead of copying strings and calling
173 inet_network, and properly skip all alias names not matching the form.
175 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
177 2002-11-17 Ulrich Drepper <drepper@redhat.com>
179 * manual/pattern.texi (Wordexp Example): Fix sample code.
181 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
182 childs stack which will be loaded into the %esi register.
184 2002-11-14 Paul Eggert <eggert@twinsun.com>
186 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
187 overflow when skipping the question part and when unpacking aliases.
189 2002-11-15 Roland McGrath <roland@redhat.com>
191 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
192 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
193 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
195 2002-11-15 Jakub Jelinek <jakub@redhat.com>
197 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
198 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
200 2002-11-15 Roland McGrath <roland@redhat.com>
202 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
203 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
204 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
205 (+make-include-of-dep): New canned sequence.
207 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
208 From Dmitry V. Levin <ldv@altlinux.org>.
210 2002-11-14 Roland McGrath <roland@redhat.com>
212 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
213 * inet/herrno.c (__libc_h_errno): Likewise.
214 * resolv/res_libc.c (__libc_res): Likewise.
215 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
216 (__res_state) [! USE___THREAD]: Don't define as weak.
217 * csu/Versions: Revert last change.
218 * resolv/Versions: Revert last change.
220 * Makerules ($(common-objpfx)%.make): New pattern rule.
221 * tls.make.c: New file.
222 * Makefile (distribute): Add it.
224 * sysdeps/generic/errno.c [! USE___THREAD]
225 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
226 with compat_symbol so they are not link-time visible.
227 [! USE___THREAD] (__libc_errno): New alias for errno.
228 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
229 Add __libc_errno here.
230 * inet/herrno.c [USE___THREAD]: Use this conditional
231 in place of [USE_TLS && HAVE___THREAD].
232 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
233 (h_errno, _h_errno): Declare these with compat_symbol so they are not
235 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
236 * resolv/res_libc.c [! USE___THREAD]
237 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
238 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
239 (__libc_res): Define as alias for _res.
240 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
241 Add __libc_h_errno and __libc_res here.
243 2002-11-14 Jakub Jelinek <jakub@redhat.com>
245 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
246 * resolv/Versions (h_errno, _res): Likewise.
248 2002-11-14 Roland McGrath <roland@redhat.com>
250 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
251 (%.symlist): Likewise.
253 2002-11-13 Roland McGrath <roland@redhat.com>
255 * scripts/abilist.awk: New file.
256 * Makefile (distribute): Add it.
257 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
258 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
259 [$(subdir) = elf] (tests): Depend on libc.symlist.
260 (generated, common-generated): Add those files.
262 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
263 * configure: Regenerated.
264 * config.make.in (OBJDUMP): New variable, substituted by configure.
266 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
267 (mallochook, reallochook): Set them up.
268 (checkhdr): Check HDR->magic2 value.
269 (freehook): Reset HDR->magic2.
270 (memalignhook): New static function.
271 (old_memalign_hook): New static variable.
272 (mcheck, reallochook): Set __memalign_hook to memalignhook.
274 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
277 2002-11-13 Andreas Jaeger <aj@suse.de>
279 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
281 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
283 2002-11-11 Paul Eggert <eggert@twinsun.com>
285 * manual/crypt.texi (Cryptographic Functions): Mention that
286 the MD5 one-way algorithm is compatible with BSD's.
288 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
290 * posix/regex_internal.c (re_string_skip_chars): Also return the last
292 (re_string_reconstruct): Calculate the context by itself when the
293 offset points out of the valid range.
294 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
295 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
296 (IS_WIDE_WORD_CHAR): New macro.
297 (IS_WIDE_NEWLINE): New macro.
299 2002-11-12 Andreas Jaeger <aj@suse.de>
301 * sysdeps/x86_64/strchr.S: Don't use one register for two
302 purposes, this fixes a bug noticed by test-strchr.c.
304 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
307 2002-11-12 Roland McGrath <roland@redhat.com>
309 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
310 (_G_IO_NO_BACKWARD_COMPAT): Define it.
312 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
313 instead of <pt-machine.h>.
314 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
316 From Ian Wienand <ianw@gelato.unsw.edu.au>.
318 2002-11-10 Roland McGrath <roland@redhat.com>
320 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
321 Call fputs instead of fwprintf (simpler to follow in debugger).
323 * crypt/md5-crypt.c: Doc fix.
325 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
326 the beginning of generated target commands.
328 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
329 dependencies for these in case implicit rule search skipped the
330 nonexistent source directory.
331 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
332 files with $(object-suffixes) as targets too.
333 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
334 and a target for it using $(make-target-directory).
336 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
338 2002-11-10 Roland McGrath <roland@frob.com>
340 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
341 * sysdeps/generic/bits/pthreadtypes.h: ... here.
343 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
344 l_start == 0 and l_len == 1 as we do l_len == 0.
346 2002-11-10 Ulrich Drepper <drepper@redhat.com>
348 * po/da.po: Update from translation team.
350 2002-11-10 Roland McGrath <roland@redhat.com>
352 * config.make.in (includedir): New variable, substituted by configure.
353 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
354 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
356 2002-11-10 Andreas Jaeger <aj@suse.de>
358 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
359 REG_OLDMASK and REG_CR2 to synch with kernel header.
362 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
364 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
365 * nss/getnssent_r.c (__nss_getent_r): Likewise.
366 (__nss_setent): Likewise.
367 (__nss_getent_r): Likewise.
368 * inet/getnetgrent_r.c (innetgr): Likewise.
369 (__internal_setnetgrent_reuse): Likewise.
370 (internal_getnetgrent_r): Likewise.
371 * inet/ether_hton.c (ether_hostton): Likewise.
372 * inet/ether_ntoh.c (ether_ntohost): Likewise.
373 * sunrpc/netname.c (netname2user): Likewise.
374 * sunrpc/publickey.c (getpublickey): Likewise.
375 (getsecretkey): Likewise.
377 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
379 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
380 error in range calculation.
382 2002-10-09 Jakub Jelinek <jakub@redhat.com>
384 * string/test-strspn.c (do_test): Ensure zero termination.
385 * string/test-strpbrk.c (do_test): Likewise.
386 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
387 * string/test-strncpy.c (stupid_strncpy): Likewise.
388 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
390 2002-10-08 Roland McGrath <roland@redhat.com>
392 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
395 2002-09-22 H.J. Lu <hjl@gnu.org>
397 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
398 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
399 only if __NR_mmap2 is defined.
401 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
402 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
403 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
404 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
406 2002-11-08 Jakub Jelinek <jakub@redhat.com>
408 * posix/bug-regex13.c (tests): Add new test.
410 * string/test-strchr.c (stupid_strchr): New function.
411 (do_random_tests): Make sure the string is zero terminated.
412 * string/test-strpbrk.c (stupid_strpbrk): New function.
413 (do_random_tests): Make sure the string is zero terminated.
414 * string/test-strcmp.c (stupid_strcmp): New function.
415 (do_random_tests): Make sure the strings are zero terminated.
416 * string/test-strspn.c (stupid_strspn): New function.
417 (simple_strspn): Rename rej argument to acc.
418 (do_random_tests): Make sure the string is zero terminated.
419 * string/test-strcspn.c (stupid_strcspn): New function.
420 * string/test-strncpy.c (stupid_strncpy): New function.
421 * string/test-stpncpy.c (stupid_stpncpy): New function.
422 * string/test-strncmp.c (stupid_strncmp): New function.
423 (do_random_tests): Make sure the strings are zero terminated.
424 * string/test-string.h (impl_t): Change test into long.
425 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
427 2002-11-08 Roland McGrath <roland@redhat.com>
429 * sysdeps/ia64/elf/configure.in: Add TLS check.
430 From Ian Wienand <ianw@cse.unsw.edu.au>.
431 * sysdeps/ia64/elf/configure: Regenerated.
433 2002-11-07 Roland McGrath <roland@redhat.com>
435 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
436 place of _IO_new_do_write.
437 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
438 #undef before versioned_symbol use.
440 2002-11-07 Richard Henderson <rth@redhat.com>
442 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
443 * configure: Regenerated.
444 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
445 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
446 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
447 _dl_fini via gp-relative relocations.
448 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
450 * elf/tls-macros.h: Add alpha versions.
451 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
452 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
453 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
454 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
455 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
456 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
457 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
458 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
459 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
460 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
461 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
462 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
463 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
464 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
465 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
466 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
467 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
468 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
470 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
471 Kill argument registers across the inline syscall.
473 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
475 * linuxthreads/sysdeps/alpha/tls.h: New file.
476 * sysdeps/alpha/dl-tls.h: New file.
478 2002-10-29 David Mosberger <davidm@hpl.hp.com>
480 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
481 (gmon_initializer): New function.
482 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
483 __gmon_start__ here. Call it from gmon_initializer() instead.
485 2002-03-12 H.J. Lu <hjl@gnu.org>
487 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
488 tst-array2, and tst-array3.
489 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
490 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
491 ($(objpfx)tst-array1.out): New target.
492 ($(objpfx)tst-array2): Likewise.
493 ($(objpfx)tst-array2.out): Likewise.
494 ($(objpfx)tst-array3.out): Likewise.
495 * elf/tst-array1.c: New file.
496 * elf/tst-array1.exp: Likewise.
497 * elf/tst-array2.c: Likewise.
498 * elf/tst-array2dep.c: Likewise.
499 * elf/tst-array2.exp: Likewise.
500 * elf/tst-array3.c: Likewise.
502 2002-10-28 David Mosberger <davidm@hpl.hp.com>
504 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
505 Don't add L->l_addr to array entry values.
507 2002-11-07 Jakub Jelinek <jakub@redhat.com>
509 * string/test-string.h: New file.
510 * string/test-strlen.c: New file.
511 * string/test-string.h: New file.
512 * string/test-strcmp.c: New file.
513 * string/test-strchr.c: New file.
514 * string/test-strrchr.c: New file.
515 * string/test-strcpy.c: New file.
516 * string/test-stpcpy.c: New file.
517 * string/test-strncpy.c: New file.
518 * string/test-stpncpy.c: New file.
519 * string/test-strpbrk.c: New file.
520 * string/test-strcspn.c: New file.
521 * string/test-strspn.c: New file.
522 * string/test-strcat.c: New file.
523 * string/test-strncmp.c: New file.
524 * string/test-memchr.c: New file.
525 * string/test-memcmp.c: New file.
526 * string/test-memset.c: New file.
527 * string/test-memcpy.c: New file.
528 * string/test-mempcpy.c: New file.
529 * string/test-memmove.c: New file.
530 * string/Makefile (strop-tests): New variable.
531 (tests): Add strop-tests.
532 (distribute): Add test-string.h.
534 2002-11-06 Ulrich Drepper <drepper@redhat.com>
536 * posix/regcomp.c: Use tabs instead of spaces.
537 * posix/regexec.c: Likewise.
538 * posix/regex_internal.h: Likewise.
540 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
542 2002-11-06 Jakub Jelinek <jakub@redhat.com>
544 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
546 (regcomp): Don't set can_be_null here.
547 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
548 (re_compile_internal): Clear can_be_null, set regs_allocated.
550 * posix/regcomp.c (re_set_fastmap): New function.
551 (re_compile_fastmap_iter): Use it. Remove redundant type ==
552 COMPLEX_BRACKET check.
553 * posix/regexec.c (re_search_internal): Optimize searching with
554 fastmap. Call re_string_reconstruct even if match_first is
555 smaller than raw_mbs_idx.
557 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
559 * posix/regcomp (free_dfa_content): Use free_state.
560 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
561 pointers in case that realloc failed.
562 (re_node_set_merge): Likewise.
563 (register_state): Likewise.
564 (create_newstate_common): Invoke memory release functions in case of
566 (create_ci_newstate): Likewise.
567 (create_cd_newstate): Likewise.
568 (free_state): New function.
569 * posix/regexec.c (re_search_internal): Invoke memory release
570 functions in case of error conditions.
571 (sift_states_backward): Likewise.
572 (merge_state_array): Likewise.
573 (add_epsilon_src_nodes): Likewise.
574 (sub_epsilon_src_nodes): Likewise.
575 (search_subexp): Likewise.
576 (sift_states_bkref): Likewise.
577 (transit_state_sb): Likewise.
578 (transit_state_mb): Likewise.
579 (transit_state_bkref_loop): Likewise.
580 (group_nodes_into_DFAstates): Likewise.
581 (push_fail_stack): Don't edit pointers in case that realloc failed.
582 (extend_buffers): Likewise.
583 (match_ctx_add_entry): Likewise.
585 2002-11-06 Roland McGrath <roland@redhat.com>
587 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
588 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
590 * configure.in: Add checks on as and ld for binutils 2.13 or later.
591 * configure: Regenerated.
593 2002-11-06 Ulrich Drepper <drepper@redhat.com>
595 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
596 If re_compile_internal failed free fastmap buffer.
597 (free_dfa_content): Broken out of regfree function. Frees all dfa
599 (regfree): Add free_dfa_content.
600 (re_compile_internal): If any of the called functions fails free
601 all dfa related memory.
603 2002-11-05 Ulrich Drepper <drepper@redhat.com>
605 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
606 warnings from the kernel headers.
608 2002-11-05 Roland McGrath <roland@redhat.com>
610 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
611 From Johannes Stezenbach <js@convergence.de>.
613 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
614 #errlist-compat magic comment to give 123 as size.
615 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
616 (libc: GLIBC_2.2): ... here.
617 (libc: GLIBC_2.3): Likewise.
619 2002-11-05 Ulrich Drepper <drepper@redhat.com>
621 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
622 which happens at the beginning so that we can unload modules in
625 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
627 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
628 under [__USE_MISC || _ASM].
630 * elf/elf.h: Remove the obsolete SH TLS relocations.
632 2002-11-05 Ulrich Drepper <drepper@redhat.com>
634 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
636 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
639 __NR_pread64 and __NR_pwrite64.
640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
641 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
643 Revert change to use INLINE_SYSCALL.
644 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
645 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
646 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
647 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
649 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
652 Update clobber list and add a comment about the syscall ABI.
654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
655 s_pwrite64, s_ftruncate, s_truncate): Re-add.
657 2002-11-05 Jakub Jelinek <jakub@redhat.com>
659 * iconv/gconv_dl.c (free_mem): Clear loaded.
660 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
663 2002-11-05 Ulrich Drepper <drepper@redhat.com>
665 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
667 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
668 as old code without locking. _IO_seekoff calls this function after
670 * libio/ioseekpos.c: Likewise for _IO_seekpos.
671 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
672 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
674 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
675 of _IO_seekoff_internal.
676 (_IO_rewind): Likewise.
677 * libio/ioftell.c: Likewise.
678 * libio/ftello.c: Likewise.
679 * libio/ftello64.c: Likewise.
680 * libio/iofgetpos.c: Likewise.
681 * libio/iofgetpos64.c: Likewise.
682 * libio/oldiofgetpos.c: Likewise.
683 * libio/oldiofgetpos64.c: Likewise.
684 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
685 _IO_seekpos_internal.
686 * libio/iofsetpos64.c: Likewise.
687 * libio/oldiofsetpos.c: Likewise.
688 * libio/oldiofsetpos64.c: Likewise.
690 2002-11-04 Roland McGrath <roland@redhat.com>
692 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
693 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
694 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
695 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
696 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
697 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
698 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
699 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
700 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
701 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
703 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
704 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
705 Remove these, no longer used.
707 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
710 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
711 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
712 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
713 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
714 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
717 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
718 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
719 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
721 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
722 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
724 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
726 2002-11-03 Roland McGrath <roland@redhat.com>
728 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
729 `_dl_tls_static_used'.
730 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
731 (__libc_setup_tls): Initialize it. Let the initial value of
732 _dl_tls_static_size indicate some surplus space in the computed value.
733 * elf/dl-open.c (_dl_tls_static_size): New variable.
734 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
735 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
736 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
737 (CHECK_STATIC_TLS): Use it.
738 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
739 closed objects occupied a trailing contiguous chunk of static TLS area.
741 2002-10-18 Bruno Haible <bruno@clisp.org>
743 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
745 2002-11-04 Ulrich Drepper <drepper@redhat.com>
747 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
748 _wide_data->_IO_read_end if adjustment can be made in the current
751 * sysdeps/unix/sysv/linux/fexecve.c: New file.
753 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
754 wide oriented streams are used.
756 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
757 service hasn't been used [PR libc/4744].
759 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
760 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
762 * manual/examples/dir.c: Don't include <stddef.h>.
763 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
764 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
766 2002-11-02 H.J. Lu <hjl@gnu.org>
768 * stdio-common/reg-printf.c: Include <stddef.h>.
770 2002-11-03 Ulrich Drepper <drepper@redhat.com>
772 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
774 * po/ca.po: Update from translation team.
775 * po/es.po: Likewise.
777 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
778 is defined write out memory map.
779 * sysdeps/unix/sysv/linux/segfault.c: New file.
781 2002-11-02 Roland McGrath <roland@redhat.com>
783 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
784 pointers that can alias.
785 Reported by Daniel Jacobowitz <drow@mvista.com>.
787 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
789 2002-11-02 Roland McGrath <roland@redhat.com>
791 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
792 description to be clearer and to say that *RESULT is set to ENTRY.
794 2002-10-30 Jakub Jelinek <jakub@redhat.com>
796 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
797 dests_ch arrays together. Alloca or malloc dest_states,
798 dest_states_word and dest_states_nl arrays together. Free memory on
801 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
803 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
804 and current_saltbits.
806 2002-11-02 Roland McGrath <roland@redhat.com>
808 * stdio-common/reg-printf.c: Include <stdlib.h>.
810 2002-11-02 H.J. Lu <hjl@gnu.org>
812 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
813 caller to EXTRA instead of execve.
815 2002-11-01 Roland McGrath <roland@redhat.com>
817 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
818 in place of [!(USE_TLS && HAVE___THREAD)].
819 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
821 2002-10-31 Roger Sayle <roger@eyesopen.com>
823 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
825 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
827 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
828 without defining FP_ROUNDMODE.
830 2002-10-29 Jakub Jelinek <jakub@redhat.com>
832 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
833 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
835 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
836 (OLD_SIGLIST_SIZE): Define.
837 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
838 (OLD_SIGLIST_SIZE): Define.
839 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
841 2002-11-01 Jakub Jelinek <jakub@redhat.com>
843 * sysdeps/ia64/strncpy.S: Fix recovery code.
845 2002-10-30 Jakub Jelinek <jakub@redhat.com>
847 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
849 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
851 * elf/dl-libc.c (free_mem): Likewise.
852 * iconv/gconv_conf.c (free_mem): Likewise.
853 * iconv/gconv_db.c (free_mem): Likewise.
854 * iconv/gconv_dl.c (free_mem): Likewise.
855 * iconv/gconv_cache.c (free_mem): Likewise.
856 * intl/finddomain.c (free_mem): Likewise.
857 * intl/dcigettext.c (free_mem): Likewise.
858 * locale/setlocale.c (free_mem): Likewise.
859 * misc/fstab.c (fstab_free): Likewise.
860 * nss/nsswitch.c (free_mem): Likewise.
861 * posix/regcomp.c (free_mem): Likewise.
862 * resolv/gai_misc.c (free_res): Likewise.
863 * stdlib/fmtmsg.c (free_mem): Likewise.
864 * sunrpc/clnt_perr.c (free_mem): Likewise.
865 * sysdeps/generic/setenv.c (free_mem): Likewise.
866 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
867 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
868 * time/tzset.c (free_mem): Likewise.
869 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
870 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
871 * malloc/set-freeres.c (__libc_freeres): Likewise.
873 * login/getutent.c: Include stdlib.h instead of stddef.h.
874 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
875 (__getutent): Allocate buffer the first time it is run.
876 * login/getutid.c: Include stdlib.h instead of stddef.h.
877 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
878 (__getutid): Allocate buffer the first time it is run.
879 * login/getutline.c: Include stdlib.h instead of stddef.h.
880 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
881 (__getutline): Allocate buffer the first time it is run.
882 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
883 (mtrace): Allocate malloc_trace_buffer.
884 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
885 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
886 * string/strerror.c: Include libintl.h and errno.h.
888 (strerror): Only allocate buffer if actually needed (unknown error).
889 * time/tzfile.c (transitions): Add libc_freeres_ptr.
892 2002-10-25 Jakub Jelinek <jakub@redhat.com>
894 * include/libc-symbols.h (libc_freeres_ptr): New macro.
895 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
897 (__libc_freeres): Free all pointers in that section.
898 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
899 commands when creating .lds script.
900 (LDSEDCMD-c.so): New variable.
901 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
902 (rcmd_af): Use strdup to allocate ahostbuf.
903 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
904 (rexec_af): Use strdup to allocate ahostbuf.
905 * stdio-common/reg-printf.c (printf_funcs): Remove.
906 (__printf_arginfo_table): Change into printf_arginfo_function **.
907 Add libc_freeres_ptr.
908 (__register_printf_function): Allocate __printf_arginfo_table
909 and __printf_function_table the first time it is called.
910 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
911 printf_arginfo_function **.
912 (parse_one_spec): Add __builtin_expect.
913 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
915 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
917 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
918 (string_space, map): Add libc_freeres_ptr.
920 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
922 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
924 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
925 (buffer): Add libc_freeres_ptr.
926 (free_mem): Remove for _LIBC.
927 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
929 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
931 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
933 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
935 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
937 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
939 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
942 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
946 2002-10-30 Jakub Jelinek <jakub@redhat.com>
948 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
949 instead of duplicating the whole function in libc.
951 2002-10-31 Roland McGrath <roland@redhat.com>
953 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
954 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
956 2002-10-30 Jakub Jelinek <jakub@redhat.com>
958 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
959 32bit-predefine when creating .new32 list and -U for each
960 32bit-predefine when creating .new64 list.
961 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
963 2002-10-29 Andreas Schwab <schwab@suse.de>
965 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
966 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
968 2002-10-25 Roland McGrath <roland@redhat.com>
970 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
971 * sysdeps/unix/sysv/linux/configure: Regenerated.
973 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
974 _dl_starting_up decl.
976 2002-10-20 H.J. Lu <hjl@gnu.org>
978 * sysdeps/unix/sysv/linux/configure.in: Don't check
979 /lib/modules/`uname -r`/build/include for kernel headers if
981 * sysdeps/unix/sysv/linux/configure: Regenerated.
983 2002-10-25 Roland McGrath <roland@redhat.com>
985 * math/math.h (M_LOG2El): Correct the value.
986 From Stephen L Moshier <steve@moshier.net>.
988 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
989 conditional from __libc_multiple_libcs access. Remove kludge for weak
990 symbol access with old compilers we no longer support.
991 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
992 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
994 2002-10-25 Roland McGrath <roland@redhat.com>
996 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
997 implement SV_RESETHAND by translating it to SA_RESETHAND.
999 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
1001 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
1002 type on ELF64 platforms.
1004 2002-10-24 Ulrich Drepper <drepper@redhat.com>
1006 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
1008 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
1010 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1012 * elf/dl-misc.c: Include <sysdep.h>.
1013 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
1015 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
1016 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1017 (INLINE_SYSCALL): Use that.
1018 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
1019 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1020 (INLINE_SYSCALL): Use that.
1021 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
1022 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
1023 (INLINE_SYSCALL): Use that.
1024 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
1026 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1027 (__INTERNAL_SYSCALL_STRING): Define.
1028 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
1030 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1031 (__INTERNAL_SYSCALL_STRING): Define.
1032 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
1033 __SYSCALL_STRING to inline_syscall*.
1034 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
1036 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
1037 inline_syscall4, inline_syscall5, inline_syscall6): Add string
1040 2002-10-24 Roland McGrath <roland@redhat.com>
1042 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
1043 * sysdeps/unix/sysv/linux/init-first.c: Not here.
1044 * sysdeps/powerpc/elf/libc-start.c: Or here.
1045 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
1046 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
1047 * sysdeps/unix/sysv/aix/init-first.c: Or here.
1048 * sysdeps/generic/libc-start.c: Or here.
1049 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
1050 access with [! SHARED].
1051 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
1053 * libio/bug-wfflush.c: New file.
1054 * libio/Makefile (tests): Add bug-wfflush.
1056 2002-10-23 Roland McGrath <roland@redhat.com>
1058 * stdio-common/tst-fphex.c: New file.
1059 * stdio-common/Makefile (tests): Add tst-fphex.
1060 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
1061 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
1062 chars always before the value digits.
1063 Reported by James Antill <james.antill@redhat.com>.
1065 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1067 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
1068 (free_mem): New function.
1069 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
1070 if not cross compiling.
1071 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
1072 (bug-regex14-ENV): Set.
1073 (bug-regex14-mem): New target.
1074 * posix/bug-regex14.c: New file.
1076 2002-10-23 Roland McGrath <roland@redhat.com>
1078 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
1079 target, so we don't touch it when the link fails.
1081 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
1082 Check for the result overflowing off_t and fail with EOVERFLOW.
1083 * libio/ioftell.c (_IO_ftell): Likewise.
1084 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1086 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
1087 use a temporary timeval on the stack for gettimeofday and copy it.
1088 * login/logout.c (logout): Likewise.
1089 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1091 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
1092 Use __SWORD_TYPE instead of int for member types.
1093 (struct statfs64): Likewise.
1094 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
1095 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
1096 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
1097 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
1098 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
1100 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
1101 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
1102 (ST_NODIRATIME): Restore fixed value of 2048.
1103 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
1104 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
1106 Rearranged <bits/types.h> definitions to reduce duplication.
1107 * sysdeps/generic/bits/types.h: Rewritten, using macros from
1108 <bits/wordsize.h> and new header <bits/typesizes.h>.
1109 * posix/Makefile (headers): Add bits/typesizes.h here.
1110 * sysdeps/generic/bits/typesizes.h: New file.
1111 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
1112 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
1113 * sysdeps/mach/hurd/bits/typesizes.h: New file.
1114 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
1115 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
1116 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
1117 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
1118 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
1119 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
1120 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
1121 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
1122 <bits/pthreadtypes.h> here, not in <bits/types.h>.
1123 * signal/signal.h: Likewise.
1125 * streams/stropts.h: Include <bits/xtitypes.h>.
1126 * streams/Makefile (headers): Add bits/xtitypes.h here.
1127 * sysdeps/generic/bits/xtitypes.h: New file.
1128 * sysdeps/s390/bits/xtitypes.h: New file.
1129 * sysdeps/ia64/bits/xtitypes.h: New file.
1130 * sysdeps/x86_64/bits/xtitypes.h: New file.
1132 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
1133 * sysdeps/generic/bits/ipctypes.h: New file.
1134 * sysdeps/mips/bits/ipctypes.h: New file.
1135 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
1136 * sysdeps/gnu/bits/msq.h: Likewise.
1137 * sysvipc/sys/ipc.h: Likewise.
1139 2002-10-22 Ulrich Drepper <drepper@redhat.com>
1141 * elf/dl-load.c (struct filebuf): For buf element to have the
1142 alignment of ElfXX_Ehdr since this is what will be stored in it.
1144 2002-10-22 Jakub Jelinek <jakub@redhat.com>
1146 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
1147 into pointer to locrec_offset.
1148 (add_locale_to_archive): Adjust callers. Free normalized_name right
1149 before returning, not immediately after add_locale, pass it to
1150 add_alias if not NULL instead of name. Rename second normalized_name
1151 occurence to nnormalized_codeset_name.
1153 * locale/programs/locarchive.c (enlarge_archive): Make sure
1154 string_size is always a multiple of 4.
1155 Reported by Andreas Schwab <schwab@suse.de>.
1157 2002-10-21 Andreas Schwab <schwab@suse.de>
1159 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
1160 caller to EXTRA instead of execve, since the latter has a
1161 higher-priority implementation in linuxthreads.
1163 2002-10-21 Roland McGrath <roland@redhat.com>
1165 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
1166 slotinfo list's len member to the proper size, not just 1.
1167 Initialize static_map.l_tls_initimage.
1169 * elf/dl-open.c (dl_open_worker): Fix loop searching for
1170 dtv_slotinfo_list element containing new modules' l_tls_modid.
1172 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
1173 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
1174 * elf/Makefile (tests): Add tst-tls9.
1175 (tests-static): Add tst-tls9-static.
1176 (tst-tls9-static-ENV): New variable.
1177 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
1179 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
1180 modids used by partially loaded modules being closed can't be known.
1182 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
1184 * posix/Makefile: Add a test case for the bug reported by Aharon
1185 Robbins <arnold@skeeve.com>.
1186 * posix/bug-regex13.c: New file.
1187 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
1189 2002-10-21 Ulrich Drepper <drepper@redhat.com>
1191 * csu/gmon-start.c: Pretty printing.
1193 2002-10-19 Art Haas <ahaas@neosoft.com>
1195 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
1196 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
1197 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
1198 * configure: Regenerated.
1200 2002-10-19 Roland McGrath <roland@redhat.com>
1202 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
1203 and then set $subdirs directly, because the new Autoconf breaks
1204 compatibility in every way imaginable and insists on whining
1205 about usage that worked since the dawn of time.
1206 * configure: Regenerated.
1208 * configure: Regenerated (using Autoconf 2.54).
1209 * sysdeps/alpha/elf/configure: Likewise.
1210 * sysdeps/generic/configure: Likewise.
1211 * sysdeps/i386/elf/configure: Likewise.
1212 * sysdeps/ia64/elf/configure: Likewise.
1213 * sysdeps/mach/hurd/configure: Likewise.
1214 * sysdeps/mach/configure: Likewise.
1215 * sysdeps/unix/configure: Likewise.
1216 * sysdeps/unix/common/configure: Likewise.
1217 * sysdeps/unix/sysv/aix/configure: Likewise.
1218 * sysdeps/unix/sysv/linux/configure: Likewise.
1219 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
1220 * sysdeps/x86_64/elf/configure: Likewise.
1222 * config.make.in: Nix completely-soft nonsense.
1223 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
1224 of machine directories instead of fpu subdirectory.
1225 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
1226 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
1227 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
1228 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
1229 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
1230 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
1231 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
1232 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
1233 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
1234 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
1235 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
1236 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
1237 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
1238 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
1239 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
1240 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
1241 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
1242 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
1243 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
1244 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
1245 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
1246 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
1247 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
1248 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
1249 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
1250 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
1251 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
1252 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
1253 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
1254 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
1255 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
1256 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
1257 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
1258 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
1259 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
1260 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
1261 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
1262 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
1263 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
1264 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
1266 2002-10-19 Bruno Haible <bruno@clisp.org>
1268 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
1270 2002-10-18 Roland McGrath <roland@redhat.com>
1272 * io/Makefile (routines): Add lchmod.
1273 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
1274 * sysdeps/generic/lchmod.c: New file.
1275 * sysdeps/mach/hurd/lchmod.c: New file.
1276 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
1278 2002-10-18 Art Haas <ahaas@neosoft.com>
1280 * configure.in: Remove remaining AC_FD_CC macros, and replace
1281 AC_FD_MSG with AS_MESSAGE_FD.
1283 2002-10-18 Roland McGrath <roland@redhat.com>
1285 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
1286 typos: VALUE -> FINALADDR.
1288 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
1289 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
1290 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
1291 (inline_syscall6): Move these macros ...
1292 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
1294 * configure.in (libc_link_dests, libc_link_sources): Remove these
1295 variables and the AC_LINK_FILES call.
1297 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
1298 change to put new symbols here instead of in GLIBC_2.2.
1299 * sysdeps/powerpc/Subdirs: Move this file ...
1300 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
1302 2002-10-07 Roland McGrath <roland@redhat.com>
1304 * sysdeps/generic/bits/time.h: Replaced with contents of the
1305 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
1306 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
1307 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
1308 macros is ok even for architectures that don't now implement them.
1309 * sysdeps/mach/hurd/bits/time.h: File removed.
1310 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
1311 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
1312 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
1313 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
1314 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
1316 2002-10-18 Jeff Bailey <jbailey@gnu.org>
1318 * configure.in: Replace obsolete AC_OUTPUT syntax with
1319 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
1321 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
1322 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
1324 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
1325 * sysdeps/alpha/elf/configure.in: Likewise.
1326 * sysdeps/i386/elf/configure.in: Likewise.
1327 * sysdeps/mach/hurd/configure.in: Likewise.
1328 * sysdeps/x86_64/elf/configure.in: Likewise.
1330 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
1332 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
1333 * sysdeps/generic/configure.in: Likewise.
1334 * sysdeps/i386/elf/configure.in: Likewise.
1335 * sysdeps/ia64/elf/configure.in: Likewise.
1336 * sysdeps/mach/configure.in: Likewise.
1337 * sysdeps/mach/hurd/configure.in: Likewise.
1338 * sysdeps/unix/configure.in: Likewise.
1339 * sysdeps/unix/common/configure.in: Likewise.
1340 * sysdeps/unix/sysv/aix/configure.in: Likewise.
1341 * sysdeps/unix/sysv/linux/configure.in: Likewise.
1342 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
1343 * sysdeps/x86_64/elf/configure.in: Likewise.
1345 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
1346 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
1347 that it's obvious when extra autoconf machinery is being dragged in.
1349 2002-10-18 Roland McGrath <roland@redhat.com>
1351 * configure.in: Remove bogus echo included in
1352 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
1353 * configure: Regenerated.
1355 2002-10-18 Jakub Jelinek <jakub@redhat.com>
1357 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
1358 (statfs_filesize_max): New function.
1359 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
1360 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
1361 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
1362 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
1363 statfs_filesize_max.
1364 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1365 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
1366 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
1368 2002-10-17 Roland McGrath <roland@redhat.com>
1370 * configure.in (MIG): Just AC_SUBST it here.
1371 * configure: Regenerated.
1372 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
1373 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
1374 * sysdeps/mach/configure: Regenerated.
1376 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
1377 and AC_PROVIDE([_AS_CR_PREPARE]).
1379 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
1380 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
1382 * elf/dl-support.c: Move _dl_tls_* variables to ...
1383 * sysdeps/generic/libc-tls.c: ... here.
1385 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
1386 allow IDX to be one past the current last slotinfo entry.
1387 (_dl_close): Pass IMAP->l_init_called for that parameter.
1389 2002-10-07 Andreas Schwab <schwab@suse.de>
1391 * aclocal.m4: Fix for autoconf 2.53.
1392 * configure.in: Likewise. Require autoconf 2.53.
1394 2002-10-08 Richard Henderson <rth@redhat.com>
1396 * soft-fp/op-4.h: Handle carry correctly in
1397 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
1398 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
1399 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
1401 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
1403 * configure.in: Compute completely-soft.
1404 * config.make.in: Make completely-soft available to sub-makes.
1405 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
1406 gcc-double-routines. Add sim-full.c. Add fenv_const and
1407 fe_nomask to libm-support.
1408 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
1409 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
1410 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
1411 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
1412 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
1413 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
1414 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
1415 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
1416 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
1417 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
1418 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
1419 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
1420 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
1421 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
1422 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
1423 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
1424 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
1425 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
1426 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
1427 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
1429 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
1430 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
1431 FP_HANDLE_EXCEPTIONS.
1432 Define FP_ROUNDMODE.
1433 Redefine FP_* macros to correspond to the FE_* bit positions.
1434 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
1435 Define externs for __sim_exceptions, __sim_disabled_exceptions,
1436 __sim_round_mode, __simulate_exceptions.
1437 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
1438 * sysdeps/powerpc/bits/fenv.h: ...to here.
1440 2002-10-06 Jakub Jelinek <jakub@redhat.com>
1442 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1443 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
1444 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
1445 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
1448 2002-10-15 Jakub Jelinek <jakub@redhat.com>
1450 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
1451 __libc_res_nsend): New prototypes.
1452 * resolv/res_query.c (QUERYSIZE): Define.
1453 (__libc_res_nquery): Renamed from res_nquery. Added answerp
1454 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
1455 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
1456 res_nsend, pass answerp.
1457 (res_nquery): Changed into wrapper around __libc_res_nquery.
1458 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
1459 argument. Call __libc_res_nquerydomain and __libc_res_nquery
1460 instead of the non-__libc_ variants, pass them answerp.
1461 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
1462 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
1463 Added answerp argument. Call __libc_res_nquery instead of
1464 res_nquery, pass answerp.
1465 (res_nquerydomain): Changed into wrapper around
1466 __libc_res_nquerydomain.
1467 * resolv/res_send.c: Include sys/ioctl.h.
1468 (MAXPACKET): Define.
1469 (send_vc): Change arguments. Reallocate answer buffer if it is
1471 (send_dg): Likewise.
1472 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
1473 Reallocate answer buffer if it is too small and hooks are in use.
1474 Adjust calls to send_vc and send_dg.
1475 (res_nsend): Changed into wrapper around __libc_res_nsend.
1476 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
1477 just 1K answer buffer on the stack, use __libc_res_nsearch instead
1479 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
1480 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1481 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
1482 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
1483 (gethostbyaddr): Similarly with __libc_res_nquery.
1484 * resolv/Versions (libresolv): Export __libc_res_nquery and
1485 __libc_res_nsearch at GLIBC_PRIVATE.
1487 2002-10-17 Roland McGrath <roland@redhat.com>
1489 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
1490 * configure: Regenerated.
1492 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
1493 before performing the reloc, not after.
1494 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1496 2002-10-17 Ulrich Drepper <drepper@redhat.com>
1498 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
1499 * locale/programs/linereader.c (lr_open): Likewise.
1500 * locale/programs/charmap-dir.c (charmap_open): Likewise.
1501 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
1503 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
1505 * posix/bug-regex11.c: Add a test case for the bug reported by
1506 Paolo Bonzini <bonzini@gnu.org>.
1507 * posix/regexec.c (sift_states_bkref): Use correct destination of
1510 2002-10-17 Roland McGrath <roland@redhat.com>
1512 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
1513 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
1514 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
1515 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1516 Call it after performing TPOFF relocs.
1517 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1518 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1519 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
1521 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
1522 when closing a partially-initialized object.
1524 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
1525 instead of _dl_fatal_printf when we see PT_TLS.
1527 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
1528 instead of $(libof-$<).
1530 2002-10-16 Roland McGrath <roland@redhat.com>
1532 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
1533 instead of += to append, to be sure $(lib) gets expanded at defn time.
1534 (libof-$(cpp-src)): New variable, define this instead.
1535 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
1536 (lib): Don't use override.
1537 (CPPFLAGS-$(lib)): New variable, put -D's here.
1538 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
1539 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
1540 LIB found by $(libof-*) for basename, target, or source.
1541 * Makerules (CPPFLAGS-nonlib): New variable.
1542 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
1543 * locale/Makefile (lib): Likewise.
1544 * sunrpc/Makefile (lib): Likewise.
1546 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
1547 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
1548 * sysdeps/unix/sysv/linux/pathconf.h: New file.
1549 (statfs_link_max): New function, guts from fpathconf.c.
1550 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
1551 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1552 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
1553 to use the linux/pathconf.c code by #include rather than duplication.
1554 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
1556 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1558 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1559 Use __libc_errno only for libc itself.
1561 2002-10-16 Andreas Jaeger <aj@suse.de>
1563 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
1565 2002-10-16 Ulrich Drepper <drepper@redhat.com>
1567 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1568 Use __libc_errno only for libc itself.
1570 2002-10-15 Roland McGrath <roland@redhat.com>
1571 Jakub Jelinek <jakub@redhat.com>
1573 * sysdeps/unix/sysv/linux/Makefile
1574 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
1575 sparc/Makefile to produce a bi-arch file as needed.
1576 That's now parameterized by the variable $(64bit-predefine).
1577 Use LC_ALL=C for `comm' commands in that rule.
1578 No longer conditional on [$(no_syscall_list_h)].
1579 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
1580 (64bit-predefine): New variable.
1581 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
1582 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
1583 * sysdeps/unix/sysv/linux/powerpc/Makefile
1584 (64bit-predefine): New variable.
1586 2002-10-15 Roland McGrath <roland@redhat.com>
1588 * sysdeps/unix/sysv/linux/Makefile
1589 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
1591 * login/utmp-private.h: Declare __libc_utmp_lock.
1592 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
1593 and call __libc_utmp_jump_table functions directly, instead of using
1596 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
1597 * sysdeps/unix/sysv/linux/configure: Regenerated.
1599 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
1600 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
1601 Use int32_t for ll_time.
1602 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
1603 Use int32_t instead of long int for ut_session.
1604 Use an anonymous struct with 32-bit fields for ut_tv.
1605 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
1606 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
1607 here as in utmp.h for `struct utmp'.
1608 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
1609 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
1610 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
1611 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
1612 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
1613 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
1615 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
1616 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
1617 All the following files were identical or equivalent to it.
1618 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
1619 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
1620 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
1621 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
1622 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
1623 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
1624 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
1625 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
1626 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
1627 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
1629 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
1630 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
1631 Other than the previously incorrect sign of msg_iovlen, this is a
1632 no-op on 32-bit platforms. On 64-bit platforms it makes this header
1633 match their layouts as well, so the following are now identical to it.
1634 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
1635 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
1636 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
1637 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
1638 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
1640 2002-10-15 Ulrich Drepper <drepper@redhat.com>
1642 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1643 Define for 2.4+ kernels.
1645 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
1646 are known to have the vfork syscall. Don't confuse the CPUs
1647 branch prediction unit by jumping to the return address.
1649 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
1650 support for reiserfs and xfs.
1652 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
1654 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
1656 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
1658 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1660 * include/libc-symbols.h (attribute_tls_model_ie): Define.
1661 * include/errno.h (errno): Define to __libc_errno in libc.so.
1662 Add attribute_tls_model_ie.
1663 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
1664 Add attribute_tls_model_ie.
1665 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
1666 attribute_tls_model_ie.
1667 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
1669 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
1671 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
1672 attribute_tls_model_ie.
1673 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
1675 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
1676 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
1677 __libc_errno in USE___THREAD case.
1678 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1680 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
1681 __attribute__((tls_model (""))).
1682 * configure: Rebuilt.
1683 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
1685 2002-10-15 Ulrich Drepper <drepper@redhat.com>
1687 * timezone/asia: Update from tzdata2002d.
1688 * timezone/australasia: Likewise.
1689 * timezone/iso3166.tab: Likewise.
1690 * timezone/southamerica: Likewise.
1691 * timezone/zone-tab: Likewise.
1693 2002-10-15 Roland McGrath <roland@redhat.com>
1695 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
1696 Adjust TCB pointer before calling free, so we get the whole block.
1698 2002-10-14 Roland McGrath <roland@redhat.com>
1700 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
1701 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
1702 extern using attribute_hidden instead of static, avoids warning.
1704 2002-10-09 Jakub Jelinek <jakub@redhat.com>
1706 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
1707 * sysdeps/unix/sysv/linux/configure: Rebuilt.
1709 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1711 * po/sv.po: Update from translation team.
1713 2002-10-12 H.J. Lu <hjl@gnu.org>
1715 * sunrpc/thrsvc.c (PROCQUIT): New.
1716 (struct rpc_arg): New.
1717 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
1718 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
1719 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
1720 (main): Modified for struct rpc_arg *.
1722 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1724 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
1726 2002-10-14 Jakub Jelinek <jakub@redhat.com>
1728 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
1729 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
1730 in ld.so even if __thread is supported.
1732 2002-10-13 Jakub Jelinek <jakub@redhat.com>
1734 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1735 Add hack to prevent the compiler from clobbering the signal context.
1736 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
1738 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
1741 2002-10-14 Andreas Jaeger <aj@suse.de>
1743 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
1744 Guido Guenther <agx@sigxcpu.org>.
1746 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1748 * po/sk.po: Update from translation team.
1750 2002-09-26 Roland McGrath <roland@redhat.com>
1752 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
1754 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
1755 DL_DST_LIB based on $(slibdir).
1757 2002-10-13 Roland McGrath <roland@frob.com>
1759 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
1761 * sysdeps/mach/hurd/getresuid.c: New file.
1762 * sysdeps/mach/hurd/getresgid.c: New file.
1763 * sysdeps/mach/hurd/setresuid.c: New file.
1764 * sysdeps/mach/hurd/setresgid.c: New file.
1766 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
1767 setresgid): Declare them.
1770 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
1771 add libc_hidden_proto.
1772 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
1773 getresuid, getresgid, setresuid, setresgid here.
1774 * Versions.def (libc): Define GLIBC_2.3.2 set.
1775 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
1776 Add libc_hidden_def.
1777 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
1778 * sysdeps/generic/setresgid.c: New file.
1779 * sysdeps/generic/setresuid.c: New file.
1780 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1781 (sysdep_routines): Don't add getresuid and getresgid here.
1782 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
1783 (sysdep_routines): Don't add setresuid and setresgid here.
1784 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1785 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1786 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1787 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1788 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1789 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1790 * posix/Makefile (routines): Add them all here instead.
1791 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
1792 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
1793 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
1794 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
1795 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
1796 [! __NR_setresuid]: Include generic file.
1797 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
1798 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
1799 [! __NR_setresuid]: Include generic file.
1800 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
1801 Caller is - now, not EXTRA.
1802 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
1803 (setresuid, setresgid, getresuid, getresgid): Likewise.
1804 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
1805 Add these calls here.
1806 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
1807 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1808 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1809 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1810 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1813 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1814 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1816 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1817 (sysdep_routines): Add setfsuid and setfsgid here.
1818 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
1819 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
1820 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1821 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1822 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1823 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1824 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1825 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1827 * hurd/errno.c: Renamed to ...
1828 * hurd/errno-loc.c: ... this.
1829 * hurd/Makefile (routines): errno -> errno-loc
1831 2002-10-13 Ulrich Drepper <drepper@redhat.com>
1833 * po/de.po: Update from translation team.
1835 * MakeTAGS: Add -E flag to xgettext runs.
1837 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1839 * po/fr.po: Update from translation team.
1841 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
1842 Optimize a bit for use in glibc.
1844 2002-10-12 Roland McGrath <roland@redhat.com>
1846 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
1847 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
1849 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1851 * po/sv.po: Update from translation team.
1853 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1855 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
1857 (regfree): Likewise.
1858 (create_initial_state): Likewise.
1859 (analyze): Remove the substitutions which became useless.
1860 (calc_first): Likewise.
1861 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
1862 epsilon destination.
1863 (duplicate_node_closure): New function.
1864 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
1865 (calc_inveclosure): Likewise.
1866 (calc_eclosure): Likewise.
1867 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
1868 direct invocation of duplicate_node.
1869 (parse): Don't use comma operator in the return to avoid compiler
1871 (parse_reg_exp): Likewise.
1872 (parse_branch): Likewise.
1873 (parse_expression): Likewise.
1874 (parse_sub_exp): Likewise.
1875 (parse_dup_op): Likewise.
1876 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
1877 which became useless.
1878 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
1879 (create_cd_newstate): Likewise.
1880 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
1881 (re_token_t): Likewise.
1882 (re_dfa_t): Likewise.
1883 (re_node_set_remove): New macro.
1884 * posix/regexec.c (check_matching): Remove the handling
1886 (check_halt_node_context): Likewise.
1887 (proceed_next_node): Likewise.
1888 (pop_fail_stack): Fix the memory leak.
1889 (set_regs): Likewise.
1890 (free_fail_stack_return): New function.
1891 (sift_states_backward): Fix the memory leak. Remove the handling
1893 (update_cur_sifted_state): Append some if clause to avoid redundant
1895 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
1897 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
1898 (check_subexp_limits): Likewise.
1899 (search_subexp): Likewise.
1900 (sift_states_bkref): Likewise.
1901 (transit_state_mb): Likewise.
1902 (transit_state_bkref_loop): Likewise.
1903 (transit_state_bkref_loop): Likewise.
1904 (group_nodes_into_DFAstates): Likewise.
1905 (check_node_accept): Likewise.
1906 (sift_ctx_init): Add initializing.
1908 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1910 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
1913 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1915 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
1916 duplicated variable c.
1918 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
1921 * sysdeps/unix/sysv/linux/i386/sysdep.h
1922 (INTERNAL_SYSCALL_ERROR_P): New define.
1923 (INTERNAL_SYSCALL_ERRNO): Likewise.
1925 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
1926 Add hack to prevent the compiler from clobbering the signal context.
1928 2002-10-11 Roland McGrath <roland@redhat.com>
1930 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1933 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
1934 * sysdeps/sh/dl-lookupcfg.h: File removed.
1935 * sysdeps/i386/dl-lookupcfg.h: File removed.
1937 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
1938 missing labels and ; from last change.
1940 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
1941 number literals, so they are doubles instead of ints.
1943 2002-10-09 Roland McGrath <roland@redhat.com>
1945 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
1946 changed from [USE_TLS && HAVE___THREAD].
1948 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
1949 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
1950 * sysdeps/x86_64/dl-machine.h
1951 (elf_machine_type_class, elf_machine_rela): Likewise.
1952 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
1955 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
1956 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
1957 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
1959 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
1960 instead of ___tls_get_addr.
1961 (___tls_get_addr_internal): Add attribute_hidden to decl.
1963 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
1964 _dl_error_catch_tsd.
1965 * elf/rtld.c (startup_error_tsd): New function.
1966 (dl_main): Point _dl_error_catch_tsd at that.
1967 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
1968 use new function pointer instead.
1969 * elf/dl-tsd.c: New file.
1970 * elf/Makefile (routines): Add it.
1972 2002-10-07 Roland McGrath <roland@redhat.com>
1974 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
1975 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
1976 take _dl_load_lock around calling __writev.
1978 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
1979 (INLINE_SYSCALL): Use that.
1981 * sysdeps/generic/dl-sysdep.h: New file.
1982 * sysdeps/mach/hurd/dl-sysdep.h: New file.
1983 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
1984 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
1985 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
1987 * elf/dl-minimal.c (__errno_location): Removed.
1988 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1989 Use GOTOFF access for errno.
1990 * sysdeps/unix/sysv/linux/i386/sysdep.h
1991 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1993 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1994 Use PC-relative access for errno.
1995 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1996 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1998 * include/tls.h: New file.
1999 (USE___THREAD): New macro.
2000 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
2002 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
2003 changed from [USE_TLS && HAVE___THREAD].
2004 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2005 * sysdeps/unix/i386/sysdep.S: Likewise.
2006 * sysdeps/unix/x86_64/sysdep.S: Likewise.
2007 * include/errno.h: Likewise.
2008 * include/netdb.h: Likewise.
2009 * include/resolv.h: Likewise.
2011 * sysdeps/generic/errno.c: New file.
2012 * csu/Makefile (aux): New variable, list errno.
2013 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
2014 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2015 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
2016 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2017 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2018 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
2019 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
2020 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
2021 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2022 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
2023 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
2024 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
2025 * sysdeps/unix/alpha/sysdep.S: Likewise.
2026 * sysdeps/generic/start.c: Likewise.
2027 * sysdeps/unix/start.c: Likewise.
2028 * sysdeps/unix/arm/start.c: Likewise.
2029 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2030 * sysdeps/unix/sparc/start.c: Likewise.
2031 * sysdeps/unix/sysv/irix4/start.c: Likewise.
2032 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
2034 * manual/search.texi (Tree Search Function, Hash Search Function):
2035 Mention search.h clearly.
2037 2002-10-05 Roland McGrath <roland@redhat.com>
2039 * elf/dl-fxstat64.c: File removed.
2040 * elf/dl-xstat64.c: File removed.
2041 * elf/Makefile (rtld-routines): Remove them.
2042 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
2043 Instead, use strong_alias instead of versioned_symbol in the
2045 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2046 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2048 * include/shlib-compat.h
2049 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
2050 [! NOT_IN_libc] (IS_IN_libc): Define it.
2051 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
2052 * elf/Makefile (CPPFLAGS-.os): Likewise.
2054 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
2055 Return the status instead of calling exit.
2057 * Makeconfig (CFLAGS): Prepend -std=gnu99.
2058 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
2059 Remove superfluous rm command, whose @ plus make bugs hid
2060 all these commands from the make output.
2062 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
2063 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
2064 Use that file's contents instead of literal echo's for the prologue.
2065 * include/features.h: Include <gnu/stubs.h> unconditionally.
2066 * include/gnu/stubs.h: New file.
2068 2002-09-30 Roland McGrath <roland@redhat.com>
2070 * elf/rtld-Rules: New file.
2071 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
2072 $(objpfx)rtld-libc.a): New targets.
2073 (generated): Add them.
2074 (reloc-link): Remove -o $@ from the variable.
2075 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
2076 (distribute): Add rtld-Rules.
2077 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
2078 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
2079 (common-mostlyclean, common-clean): Clean up rtld-* files.
2080 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
2082 2002-10-11 Roland McGrath <roland@redhat.com>
2084 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
2085 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
2087 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
2088 proper set of no-op insn prefixes.
2090 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
2092 2002-10-11 Ulrich Drepper <drepper@redhat.com>
2094 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
2095 __pthread_kill_other_threads_np.
2097 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
2099 2002-10-08 Roland McGrath <roland@redhat.com>
2101 * locale/newlocale.c (__newlocale): If setting all categories to "C",
2102 just return &_nl_C_locobj instead of copying it.
2103 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
2104 * locale/duplocale.c (__duplocale): Likewise.
2106 2002-10-07 Roland McGrath <roland@frob.com>
2108 * config.h.in (HAVE_I386_SET_GDT): New #undef.
2109 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
2110 * sysdeps/mach/configure: Regenerated.
2112 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2115 Add all necessary register outputs for syscall-clobbered registers.
2117 2002-10-02 David Mosberger <davidm@hpl.hp.com>
2119 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
2120 Itanium 2 (and Itanium).
2121 Fix unwind directives and make it fit in 80 columns.
2122 * sysdeps/ia64/memset.S: Likewise.
2123 * sysdeps/ia64/memcpy.S: Likewise.
2124 Move jump table to .rodata section.
2126 2002-10-03 Roland McGrath <roland@frob.com>
2128 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
2131 2002-10-10 Andreas Jaeger <aj@suse.de>
2133 * sysdeps/x86_64/_mcount.S: Restore correct registers.
2135 2002-10-10 Ulrich Drepper <drepper@redhat.com>
2137 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
2139 2002-10-09 Ulrich Drepper <drepper@redhat.com>
2141 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
2142 _dl_allocate_tls_init. Add rtld_hidden_proto.
2143 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
2145 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
2147 * version.h (VERSION): Bump to 2.3.1.
2149 * Make-dist: Add back one of the tar invocations removed before.
2151 * stdlib/Makefile (distribute): Add allocalim.h.
2153 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2154 (__libc_tsd_address): Use correct variable name.
2155 Patch by Stefan Jones <stefan.jones@multigig.com>.
2157 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
2158 Reported by edwardsg@sgi.com [PR libc/4678].
2160 * Versions.def (libc): Add GLIBC_2.3.1.
2161 (libpthread): Add GLIBC_2.3.1.
2163 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
2165 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
2166 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
2168 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
2169 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
2171 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
2172 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
2173 and make old name an alias.
2174 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
2175 and make old name an alias.
2176 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
2179 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
2180 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
2182 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
2184 * sysdeps/posix/readv.c: Likewise
2185 * sysdeps/unix/sysv/aix/readv.c: Likewise.
2186 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2187 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
2189 * sysdeps/posix/writev.c: Likewise
2190 * sysdeps/unix/sysv/aix/writev.c: Likewise.
2191 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2193 * include/sys/wait.h: Declare __waitid.
2194 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
2195 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
2197 * sysdeps/posix/waitid.c: Likewise.
2198 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
2200 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
2202 2002-10-07 Jakub Jelinek <jakub@redhat.com>
2204 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
2206 (__MAX_ALLOCA_CUTOFF): Define.
2207 Include allocalim.h.
2208 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2209 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
2210 host_buffer depending on __libc_use_alloca.
2211 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2212 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
2213 net_buffer depending on __libc_use_alloca.
2214 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
2215 buf depending on __libc_use_alloca.
2216 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
2217 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
2218 instead of hardcoded constants.
2219 Pass proper size argument to alloca and compute end for wide char
2221 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
2222 instead of hardcoded constants.
2223 * string/strcoll.c (strcoll): Likewise.
2224 * string/strxfrm.c (strxfrm): Likewise.
2225 * sysdeps/posix/readv.c (__readv): Likewise.
2226 * sysdeps/posix/writev.c (__writev): Likewise.
2227 * sysdeps/generic/allocalim.h: New file.
2229 2002-10-08 Roland McGrath <roland@redhat.com>
2231 * configure.in (aux_missing warning): Change "too old" to
2232 "incompatible versions", since for autoconf it's "too new" right now.
2233 * configure: Regenerated.
2235 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
2236 one found doesn't work on our configure.in.
2237 * configure: Regenerated.
2238 * config.make.in (AUTOCONF): New substituted variable.
2239 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
2240 (autoconf-it): ... here, use that instead of defining conditionally.
2241 Use $(AUTOCONF) instead of literal autoconf.
2242 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
2243 with this condition.
2244 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
2246 2002-10-08 Ulrich Drepper <drepper@redhat.com>
2248 * Make-dist (dist): Cleanup a bit. We are not interested in the
2249 14 char filename limit anymore. Remove intermediate files and
2252 2002-10-05 Ulrich Drepper <drepper@redhat.com>
2254 * po/sk.po: Update from translation team.
2255 * po/tr.po: Likewise.
2256 * po/gl.po: Likewise.
2258 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2260 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
2262 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2264 * version.h (RELEASE): Change to stable.
2266 2002-10-03 Jakub Jelinek <jakub@redhat.com>
2268 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
2269 __syscall_exit_group): New prototypes.
2271 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2273 * glibc 2.3 released.
2276 See ChangeLog.13 for earlier changes.