1 2002-11-21 Ulrich Drepper <drepper@redhat.com>
3 * elf/Makefile (tests): Don't run test-arrayX tests for now.
5 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
6 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
7 CLONE_CHILD_*TID flags.
9 2002-11-20 Andreas Jaeger <aj@suse.de>
11 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
12 We pass struct ucontext on x86-64.
17 2002-11-20 Roland McGrath <roland@redhat.com>
19 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
20 conditionalize [! DO_VERSIONING] #error.
22 * scripts/abilist.awk: Grok function descriptor symbols.
24 * intl/tst-gettext.c (main): Check return values from setlocale.
25 Add necessary unsetenv's to make LANG=existing-locale check work.
27 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
28 so aborted prior runs don't confuse things.
30 * locale/localeinfo.h (struct locale_data: union locale_data_value):
31 Use uintptr_t instead of unsigned int for `word' member.
32 (_NL_CURRENT_WORD): Cast to uint32_t.
34 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
37 2002-11-20 Ulrich Drepper <drepper@redhat.com>
39 * elf/tls-macros.h: Add IA-64 definitions.
40 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
42 * iconv/Makefile (tests): Add tst-iconv4.
43 * iconv/tst-iconv4.c: New file.
45 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
46 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
47 __GCONV_INCOMPLETE_INPUT.
48 (ucs4le_internal_loop): Likewise.
49 (ucs4le_internal_loop_unaligned): Likewise.
50 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
51 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
52 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
54 * iconv/loop.c (LOOPFCT): First test for empty input then for full
57 * inet/getnameinfo.c: Use extend_alloca where appropriate.
58 * sysdeps/posix/getaddrinfo.c: Likewise.
60 * include/alloca.h (extend_alloca): New define. Based on stack
61 direction it'll try to append to the previouls allocated buffer.
63 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
65 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
66 use the same service for AF_INET and AF_INET6.
68 2002-11-19 Ulrich Drepper <drepper@redhat.com>
70 * intl/localealias.c (read_alias_file): Use only about 400 bytes
71 of stack space instead of 16k.
73 2002-11-18 Wolfram Gloger <wg@malloc.de>
76 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
77 nothing if not initialized. Bug report from Marcus Brinkmann
78 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
80 2002-11-19 Roland McGrath <roland@redhat.com>
82 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
85 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
86 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
87 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
88 * configure: Regenerated.
90 2002-11-19 Ulrich Drepper <drepper@redhat.com>
92 * include/dlfcn.h: __libc_dlopen is now a macro calling
93 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
94 (__libc_dlopen_mode): New prototype.
95 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
96 new parameter. Store new parameter in mode field of structure passed
98 (struct do_dlopen_args): Add new field mode.
99 (do_dlopen): Pass mode from parameter structure to _dl_open.
101 2002-11-11 Randolf Chung <tausq@debian.org>
103 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
104 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
105 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
107 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
109 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
110 Set -mdisable-fpregs for this file.
112 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
114 * sysdeps/unix/sysv/linux/configure.in:
115 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
116 from gcc-3.0 era for backwards compatibility.
117 * sysdeps/unix/sysv/linux/configure: Regenerate.
119 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
120 Define mcontext_t as a sigcontext.
122 2002-11-18 Roland McGrath <roland@redhat.com>
124 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
125 Free memory in `last_result' if it was used.
127 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
128 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
129 Do the parsing inline instead of copying strings and calling
130 inet_network, and properly skip all alias names not matching the form.
132 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
134 2002-11-17 Ulrich Drepper <drepper@redhat.com>
136 * manual/pattern.texi (Wordexp Example): Fix sample code.
138 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
139 childs stack which will be loaded into the %esi register.
141 2002-11-14 Paul Eggert <eggert@twinsun.com>
143 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
144 overflow when skipping the question part and when unpacking aliases.
146 2002-11-15 Roland McGrath <roland@redhat.com>
148 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
149 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
150 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
152 2002-11-15 Jakub Jelinek <jakub@redhat.com>
154 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
155 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
157 2002-11-15 Roland McGrath <roland@redhat.com>
159 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
160 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
161 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
162 (+make-include-of-dep): New canned sequence.
164 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
165 From Dmitry V. Levin <ldv@altlinux.org>.
167 2002-11-14 Roland McGrath <roland@redhat.com>
169 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
170 * inet/herrno.c (__libc_h_errno): Likewise.
171 * resolv/res_libc.c (__libc_res): Likewise.
172 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
173 (__res_state) [! USE___THREAD]: Don't define as weak.
174 * csu/Versions: Revert last change.
175 * resolv/Versions: Revert last change.
177 * Makerules ($(common-objpfx)%.make): New pattern rule.
178 * tls.make.c: New file.
179 * Makefile (distribute): Add it.
181 * sysdeps/generic/errno.c [! USE___THREAD]
182 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
183 with compat_symbol so they are not link-time visible.
184 [! USE___THREAD] (__libc_errno): New alias for errno.
185 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
186 Add __libc_errno here.
187 * inet/herrno.c [USE___THREAD]: Use this conditional
188 in place of [USE_TLS && HAVE___THREAD].
189 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
190 (h_errno, _h_errno): Declare these with compat_symbol so they are not
192 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
193 * resolv/res_libc.c [! USE___THREAD]
194 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
195 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
196 (__libc_res): Define as alias for _res.
197 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
198 Add __libc_h_errno and __libc_res here.
200 2002-11-14 Jakub Jelinek <jakub@redhat.com>
202 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
203 * resolv/Versions (h_errno, _res): Likewise.
205 2002-11-14 Roland McGrath <roland@redhat.com>
207 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
208 (%.symlist): Likewise.
210 2002-11-13 Roland McGrath <roland@redhat.com>
212 * scripts/abilist.awk: New file.
213 * Makefile (distribute): Add it.
214 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
215 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
216 [$(subdir) = elf] (tests): Depend on libc.symlist.
217 (generated, common-generated): Add those files.
219 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
220 * configure: Regenerated.
221 * config.make.in (OBJDUMP): New variable, substituted by configure.
223 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
224 (mallochook, reallochook): Set them up.
225 (checkhdr): Check HDR->magic2 value.
226 (freehook): Reset HDR->magic2.
227 (memalignhook): New static function.
228 (old_memalign_hook): New static variable.
229 (mcheck, reallochook): Set __memalign_hook to memalignhook.
231 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
234 2002-11-13 Andreas Jaeger <aj@suse.de>
236 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
238 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
240 2002-11-11 Paul Eggert <eggert@twinsun.com>
242 * manual/crypt.texi (Cryptographic Functions): Mention that
243 the MD5 one-way algorithm is compatible with BSD's.
245 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
247 * posix/regex_internal.c (re_string_skip_chars): Also return the last
249 (re_string_reconstruct): Calculate the context by itself when the
250 offset points out of the valid range.
251 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
252 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
253 (IS_WIDE_WORD_CHAR): New macro.
254 (IS_WIDE_NEWLINE): New macro.
256 2002-11-12 Andreas Jaeger <aj@suse.de>
258 * sysdeps/x86_64/strchr.S: Don't use one register for two
259 purposes, this fixes a bug noticed by test-strchr.c.
261 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
264 2002-11-12 Roland McGrath <roland@redhat.com>
266 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
267 (_G_IO_NO_BACKWARD_COMPAT): Define it.
269 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
270 instead of <pt-machine.h>.
271 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
273 From Ian Wienand <ianw@gelato.unsw.edu.au>.
275 2002-11-10 Roland McGrath <roland@redhat.com>
277 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
278 Call fputs instead of fwprintf (simpler to follow in debugger).
280 * crypt/md5-crypt.c: Doc fix.
282 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
283 the beginning of generated target commands.
285 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
286 dependencies for these in case implicit rule search skipped the
287 nonexistent source directory.
288 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
289 files with $(object-suffixes) as targets too.
290 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
291 and a target for it using $(make-target-directory).
293 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
295 2002-11-10 Roland McGrath <roland@frob.com>
297 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
298 * sysdeps/generic/bits/pthreadtypes.h: ... here.
300 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
301 l_start == 0 and l_len == 1 as we do l_len == 0.
303 2002-11-10 Ulrich Drepper <drepper@redhat.com>
305 * po/da.po: Update from translation team.
307 2002-11-10 Roland McGrath <roland@redhat.com>
309 * config.make.in (includedir): New variable, substituted by configure.
310 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
311 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
313 2002-11-10 Andreas Jaeger <aj@suse.de>
315 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
316 REG_OLDMASK and REG_CR2 to synch with kernel header.
319 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
321 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
322 * nss/getnssent_r.c (__nss_getent_r): Likewise.
323 (__nss_setent): Likewise.
324 (__nss_getent_r): Likewise.
325 * inet/getnetgrent_r.c (innetgr): Likewise.
326 (__internal_setnetgrent_reuse): Likewise.
327 (internal_getnetgrent_r): Likewise.
328 * inet/ether_hton.c (ether_hostton): Likewise.
329 * inet/ether_ntoh.c (ether_ntohost): Likewise.
330 * sunrpc/netname.c (netname2user): Likewise.
331 * sunrpc/publickey.c (getpublickey): Likewise.
332 (getsecretkey): Likewise.
334 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
336 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
337 error in range calculation.
339 2002-10-09 Jakub Jelinek <jakub@redhat.com>
341 * string/test-strspn.c (do_test): Ensure zero termination.
342 * string/test-strpbrk.c (do_test): Likewise.
343 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
344 * string/test-strncpy.c (stupid_strncpy): Likewise.
345 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
347 2002-10-08 Roland McGrath <roland@redhat.com>
349 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
352 2002-09-22 H.J. Lu <hjl@gnu.org>
354 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
355 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
356 only if __NR_mmap2 is defined.
358 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
359 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
360 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
361 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
363 2002-11-08 Jakub Jelinek <jakub@redhat.com>
365 * posix/bug-regex13.c (tests): Add new test.
367 * string/test-strchr.c (stupid_strchr): New function.
368 (do_random_tests): Make sure the string is zero terminated.
369 * string/test-strpbrk.c (stupid_strpbrk): New function.
370 (do_random_tests): Make sure the string is zero terminated.
371 * string/test-strcmp.c (stupid_strcmp): New function.
372 (do_random_tests): Make sure the strings are zero terminated.
373 * string/test-strspn.c (stupid_strspn): New function.
374 (simple_strspn): Rename rej argument to acc.
375 (do_random_tests): Make sure the string is zero terminated.
376 * string/test-strcspn.c (stupid_strcspn): New function.
377 * string/test-strncpy.c (stupid_strncpy): New function.
378 * string/test-stpncpy.c (stupid_stpncpy): New function.
379 * string/test-strncmp.c (stupid_strncmp): New function.
380 (do_random_tests): Make sure the strings are zero terminated.
381 * string/test-string.h (impl_t): Change test into long.
382 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
384 2002-11-08 Roland McGrath <roland@redhat.com>
386 * sysdeps/ia64/elf/configure.in: Add TLS check.
387 From Ian Wienand <ianw@cse.unsw.edu.au>.
388 * sysdeps/ia64/elf/configure: Regenerated.
390 2002-11-07 Roland McGrath <roland@redhat.com>
392 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
393 place of _IO_new_do_write.
394 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
395 #undef before versioned_symbol use.
397 2002-11-07 Richard Henderson <rth@redhat.com>
399 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
400 * configure: Regenerated.
401 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
402 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
403 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
404 _dl_fini via gp-relative relocations.
405 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
407 * elf/tls-macros.h: Add alpha versions.
408 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
409 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
410 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
411 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
412 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
413 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
414 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
415 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
416 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
417 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
418 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
419 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
420 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
421 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
422 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
423 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
424 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
425 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
427 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
428 Kill argument registers across the inline syscall.
430 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
432 * linuxthreads/sysdeps/alpha/tls.h: New file.
433 * sysdeps/alpha/dl-tls.h: New file.
435 2002-10-29 David Mosberger <davidm@hpl.hp.com>
437 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
438 (gmon_initializer): New function.
439 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
440 __gmon_start__ here. Call it from gmon_initializer() instead.
442 2002-03-12 H.J. Lu <hjl@gnu.org>
444 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
445 tst-array2, and tst-array3.
446 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
447 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
448 ($(objpfx)tst-array1.out): New target.
449 ($(objpfx)tst-array2): Likewise.
450 ($(objpfx)tst-array2.out): Likewise.
451 ($(objpfx)tst-array3.out): Likewise.
452 * elf/tst-array1.c: New file.
453 * elf/tst-array1.exp: Likewise.
454 * elf/tst-array2.c: Likewise.
455 * elf/tst-array2dep.c: Likewise.
456 * elf/tst-array2.exp: Likewise.
457 * elf/tst-array3.c: Likewise.
459 2002-10-28 David Mosberger <davidm@hpl.hp.com>
461 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
462 Don't add L->l_addr to array entry values.
464 2002-11-07 Jakub Jelinek <jakub@redhat.com>
466 * string/test-string.h: New file.
467 * string/test-strlen.c: New file.
468 * string/test-string.h: New file.
469 * string/test-strcmp.c: New file.
470 * string/test-strchr.c: New file.
471 * string/test-strrchr.c: New file.
472 * string/test-strcpy.c: New file.
473 * string/test-stpcpy.c: New file.
474 * string/test-strncpy.c: New file.
475 * string/test-stpncpy.c: New file.
476 * string/test-strpbrk.c: New file.
477 * string/test-strcspn.c: New file.
478 * string/test-strspn.c: New file.
479 * string/test-strcat.c: New file.
480 * string/test-strncmp.c: New file.
481 * string/test-memchr.c: New file.
482 * string/test-memcmp.c: New file.
483 * string/test-memset.c: New file.
484 * string/test-memcpy.c: New file.
485 * string/test-mempcpy.c: New file.
486 * string/test-memmove.c: New file.
487 * string/Makefile (strop-tests): New variable.
488 (tests): Add strop-tests.
489 (distribute): Add test-string.h.
491 2002-11-06 Ulrich Drepper <drepper@redhat.com>
493 * posix/regcomp.c: Use tabs instead of spaces.
494 * posix/regexec.c: Likewise.
495 * posix/regex_internal.h: Likewise.
497 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
499 2002-11-06 Jakub Jelinek <jakub@redhat.com>
501 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
503 (regcomp): Don't set can_be_null here.
504 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
505 (re_compile_internal): Clear can_be_null, set regs_allocated.
507 * posix/regcomp.c (re_set_fastmap): New function.
508 (re_compile_fastmap_iter): Use it. Remove redundant type ==
509 COMPLEX_BRACKET check.
510 * posix/regexec.c (re_search_internal): Optimize searching with
511 fastmap. Call re_string_reconstruct even if match_first is
512 smaller than raw_mbs_idx.
514 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
516 * posix/regcomp (free_dfa_content): Use free_state.
517 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
518 pointers in case that realloc failed.
519 (re_node_set_merge): Likewise.
520 (register_state): Likewise.
521 (create_newstate_common): Invoke memory release functions in case of
523 (create_ci_newstate): Likewise.
524 (create_cd_newstate): Likewise.
525 (free_state): New function.
526 * posix/regexec.c (re_search_internal): Invoke memory release
527 functions in case of error conditions.
528 (sift_states_backward): Likewise.
529 (merge_state_array): Likewise.
530 (add_epsilon_src_nodes): Likewise.
531 (sub_epsilon_src_nodes): Likewise.
532 (search_subexp): Likewise.
533 (sift_states_bkref): Likewise.
534 (transit_state_sb): Likewise.
535 (transit_state_mb): Likewise.
536 (transit_state_bkref_loop): Likewise.
537 (group_nodes_into_DFAstates): Likewise.
538 (push_fail_stack): Don't edit pointers in case that realloc failed.
539 (extend_buffers): Likewise.
540 (match_ctx_add_entry): Likewise.
542 2002-11-06 Roland McGrath <roland@redhat.com>
544 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
545 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
547 * configure.in: Add checks on as and ld for binutils 2.13 or later.
548 * configure: Regenerated.
550 2002-11-06 Ulrich Drepper <drepper@redhat.com>
552 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
553 If re_compile_internal failed free fastmap buffer.
554 (free_dfa_content): Broken out of regfree function. Frees all dfa
556 (regfree): Add free_dfa_content.
557 (re_compile_internal): If any of the called functions fails free
558 all dfa related memory.
560 2002-11-05 Ulrich Drepper <drepper@redhat.com>
562 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
563 warnings from the kernel headers.
565 2002-11-05 Roland McGrath <roland@redhat.com>
567 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
568 From Johannes Stezenbach <js@convergence.de>.
570 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
571 #errlist-compat magic comment to give 123 as size.
572 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
573 (libc: GLIBC_2.2): ... here.
574 (libc: GLIBC_2.3): Likewise.
576 2002-11-05 Ulrich Drepper <drepper@redhat.com>
578 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
579 which happens at the beginning so that we can unload modules in
582 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
584 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
585 under [__USE_MISC || _ASM].
587 * elf/elf.h: Remove the obsolete SH TLS relocations.
589 2002-11-05 Ulrich Drepper <drepper@redhat.com>
591 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
593 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
596 __NR_pread64 and __NR_pwrite64.
597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
598 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
600 Revert change to use INLINE_SYSCALL.
601 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
602 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
603 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
604 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
606 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
609 Update clobber list and add a comment about the syscall ABI.
611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
612 s_pwrite64, s_ftruncate, s_truncate): Re-add.
614 2002-11-05 Jakub Jelinek <jakub@redhat.com>
616 * iconv/gconv_dl.c (free_mem): Clear loaded.
617 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
620 2002-11-05 Ulrich Drepper <drepper@redhat.com>
622 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
624 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
625 as old code without locking. _IO_seekoff calls this function after
627 * libio/ioseekpos.c: Likewise for _IO_seekpos.
628 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
629 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
631 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
632 of _IO_seekoff_internal.
633 (_IO_rewind): Likewise.
634 * libio/ioftell.c: Likewise.
635 * libio/ftello.c: Likewise.
636 * libio/ftello64.c: Likewise.
637 * libio/iofgetpos.c: Likewise.
638 * libio/iofgetpos64.c: Likewise.
639 * libio/oldiofgetpos.c: Likewise.
640 * libio/oldiofgetpos64.c: Likewise.
641 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
642 _IO_seekpos_internal.
643 * libio/iofsetpos64.c: Likewise.
644 * libio/oldiofsetpos.c: Likewise.
645 * libio/oldiofsetpos64.c: Likewise.
647 2002-11-04 Roland McGrath <roland@redhat.com>
649 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
650 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
651 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
652 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
653 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
654 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
655 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
656 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
657 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
658 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
660 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
661 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
662 Remove these, no longer used.
664 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
667 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
668 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
669 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
670 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
671 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
674 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
675 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
676 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
678 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
679 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
681 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
683 2002-11-03 Roland McGrath <roland@redhat.com>
685 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
686 `_dl_tls_static_used'.
687 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
688 (__libc_setup_tls): Initialize it. Let the initial value of
689 _dl_tls_static_size indicate some surplus space in the computed value.
690 * elf/dl-open.c (_dl_tls_static_size): New variable.
691 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
692 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
693 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
694 (CHECK_STATIC_TLS): Use it.
695 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
696 closed objects occupied a trailing contiguous chunk of static TLS area.
698 2002-10-18 Bruno Haible <bruno@clisp.org>
700 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
702 2002-11-04 Ulrich Drepper <drepper@redhat.com>
704 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
705 _wide_data->_IO_read_end if adjustment can be made in the current
708 * sysdeps/unix/sysv/linux/fexecve.c: New file.
710 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
711 wide oriented streams are used.
713 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
714 service hasn't been used [PR libc/4744].
716 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
717 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
719 * manual/examples/dir.c: Don't include <stddef.h>.
720 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
721 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
723 2002-11-02 H.J. Lu <hjl@gnu.org>
725 * stdio-common/reg-printf.c: Include <stddef.h>.
727 2002-11-03 Ulrich Drepper <drepper@redhat.com>
729 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
731 * po/ca.po: Update from translation team.
732 * po/es.po: Likewise.
734 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
735 is defined write out memory map.
736 * sysdeps/unix/sysv/linux/segfault.c: New file.
738 2002-11-02 Roland McGrath <roland@redhat.com>
740 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
741 pointers that can alias.
742 Reported by Daniel Jacobowitz <drow@mvista.com>.
744 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
746 2002-11-02 Roland McGrath <roland@redhat.com>
748 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
749 description to be clearer and to say that *RESULT is set to ENTRY.
751 2002-10-30 Jakub Jelinek <jakub@redhat.com>
753 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
754 dests_ch arrays together. Alloca or malloc dest_states,
755 dest_states_word and dest_states_nl arrays together. Free memory on
758 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
760 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
761 and current_saltbits.
763 2002-11-02 Roland McGrath <roland@redhat.com>
765 * stdio-common/reg-printf.c: Include <stdlib.h>.
767 2002-11-02 H.J. Lu <hjl@gnu.org>
769 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
770 caller to EXTRA instead of execve.
772 2002-11-01 Roland McGrath <roland@redhat.com>
774 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
775 in place of [!(USE_TLS && HAVE___THREAD)].
776 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
778 2002-10-31 Roger Sayle <roger@eyesopen.com>
780 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
782 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
784 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
785 without defining FP_ROUNDMODE.
787 2002-10-29 Jakub Jelinek <jakub@redhat.com>
789 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
790 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
792 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
793 (OLD_SIGLIST_SIZE): Define.
794 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
795 (OLD_SIGLIST_SIZE): Define.
796 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
798 2002-11-01 Jakub Jelinek <jakub@redhat.com>
800 * sysdeps/ia64/strncpy.S: Fix recovery code.
802 2002-10-30 Jakub Jelinek <jakub@redhat.com>
804 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
806 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
808 * elf/dl-libc.c (free_mem): Likewise.
809 * iconv/gconv_conf.c (free_mem): Likewise.
810 * iconv/gconv_db.c (free_mem): Likewise.
811 * iconv/gconv_dl.c (free_mem): Likewise.
812 * iconv/gconv_cache.c (free_mem): Likewise.
813 * intl/finddomain.c (free_mem): Likewise.
814 * intl/dcigettext.c (free_mem): Likewise.
815 * locale/setlocale.c (free_mem): Likewise.
816 * misc/fstab.c (fstab_free): Likewise.
817 * nss/nsswitch.c (free_mem): Likewise.
818 * posix/regcomp.c (free_mem): Likewise.
819 * resolv/gai_misc.c (free_res): Likewise.
820 * stdlib/fmtmsg.c (free_mem): Likewise.
821 * sunrpc/clnt_perr.c (free_mem): Likewise.
822 * sysdeps/generic/setenv.c (free_mem): Likewise.
823 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
824 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
825 * time/tzset.c (free_mem): Likewise.
826 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
827 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
828 * malloc/set-freeres.c (__libc_freeres): Likewise.
830 * login/getutent.c: Include stdlib.h instead of stddef.h.
831 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
832 (__getutent): Allocate buffer the first time it is run.
833 * login/getutid.c: Include stdlib.h instead of stddef.h.
834 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
835 (__getutid): Allocate buffer the first time it is run.
836 * login/getutline.c: Include stdlib.h instead of stddef.h.
837 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
838 (__getutline): Allocate buffer the first time it is run.
839 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
840 (mtrace): Allocate malloc_trace_buffer.
841 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
842 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
843 * string/strerror.c: Include libintl.h and errno.h.
845 (strerror): Only allocate buffer if actually needed (unknown error).
846 * time/tzfile.c (transitions): Add libc_freeres_ptr.
849 2002-10-25 Jakub Jelinek <jakub@redhat.com>
851 * include/libc-symbols.h (libc_freeres_ptr): New macro.
852 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
854 (__libc_freeres): Free all pointers in that section.
855 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
856 commands when creating .lds script.
857 (LDSEDCMD-c.so): New variable.
858 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
859 (rcmd_af): Use strdup to allocate ahostbuf.
860 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
861 (rexec_af): Use strdup to allocate ahostbuf.
862 * stdio-common/reg-printf.c (printf_funcs): Remove.
863 (__printf_arginfo_table): Change into printf_arginfo_function **.
864 Add libc_freeres_ptr.
865 (__register_printf_function): Allocate __printf_arginfo_table
866 and __printf_function_table the first time it is called.
867 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
868 printf_arginfo_function **.
869 (parse_one_spec): Add __builtin_expect.
870 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
872 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
874 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
875 (string_space, map): Add libc_freeres_ptr.
877 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
879 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
881 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
882 (buffer): Add libc_freeres_ptr.
883 (free_mem): Remove for _LIBC.
884 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
886 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
888 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
890 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
892 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
894 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
896 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
899 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
903 2002-10-30 Jakub Jelinek <jakub@redhat.com>
905 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
906 instead of duplicating the whole function in libc.
908 2002-10-31 Roland McGrath <roland@redhat.com>
910 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
911 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
913 2002-10-30 Jakub Jelinek <jakub@redhat.com>
915 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
916 32bit-predefine when creating .new32 list and -U for each
917 32bit-predefine when creating .new64 list.
918 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
920 2002-10-29 Andreas Schwab <schwab@suse.de>
922 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
923 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
925 2002-10-25 Roland McGrath <roland@redhat.com>
927 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
928 * sysdeps/unix/sysv/linux/configure: Regenerated.
930 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
931 _dl_starting_up decl.
933 2002-10-20 H.J. Lu <hjl@gnu.org>
935 * sysdeps/unix/sysv/linux/configure.in: Don't check
936 /lib/modules/`uname -r`/build/include for kernel headers if
938 * sysdeps/unix/sysv/linux/configure: Regenerated.
940 2002-10-25 Roland McGrath <roland@redhat.com>
942 * math/math.h (M_LOG2El): Correct the value.
943 From Stephen L Moshier <steve@moshier.net>.
945 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
946 conditional from __libc_multiple_libcs access. Remove kludge for weak
947 symbol access with old compilers we no longer support.
948 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
949 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
951 2002-10-25 Roland McGrath <roland@redhat.com>
953 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
954 implement SV_RESETHAND by translating it to SA_RESETHAND.
956 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
958 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
959 type on ELF64 platforms.
961 2002-10-24 Ulrich Drepper <drepper@redhat.com>
963 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
965 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
967 2002-10-24 Jakub Jelinek <jakub@redhat.com>
969 * elf/dl-misc.c: Include <sysdep.h>.
970 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
972 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
973 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
974 (INLINE_SYSCALL): Use that.
975 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
976 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
977 (INLINE_SYSCALL): Use that.
978 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
979 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
980 (INLINE_SYSCALL): Use that.
981 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
983 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
984 (__INTERNAL_SYSCALL_STRING): Define.
985 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
987 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
988 (__INTERNAL_SYSCALL_STRING): Define.
989 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
990 __SYSCALL_STRING to inline_syscall*.
991 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
993 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
994 inline_syscall4, inline_syscall5, inline_syscall6): Add string
997 2002-10-24 Roland McGrath <roland@redhat.com>
999 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
1000 * sysdeps/unix/sysv/linux/init-first.c: Not here.
1001 * sysdeps/powerpc/elf/libc-start.c: Or here.
1002 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
1003 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
1004 * sysdeps/unix/sysv/aix/init-first.c: Or here.
1005 * sysdeps/generic/libc-start.c: Or here.
1006 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
1007 access with [! SHARED].
1008 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
1010 * libio/bug-wfflush.c: New file.
1011 * libio/Makefile (tests): Add bug-wfflush.
1013 2002-10-23 Roland McGrath <roland@redhat.com>
1015 * stdio-common/tst-fphex.c: New file.
1016 * stdio-common/Makefile (tests): Add tst-fphex.
1017 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
1018 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
1019 chars always before the value digits.
1020 Reported by James Antill <james.antill@redhat.com>.
1022 2002-10-24 Jakub Jelinek <jakub@redhat.com>
1024 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
1025 (free_mem): New function.
1026 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
1027 if not cross compiling.
1028 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
1029 (bug-regex14-ENV): Set.
1030 (bug-regex14-mem): New target.
1031 * posix/bug-regex14.c: New file.
1033 2002-10-23 Roland McGrath <roland@redhat.com>
1035 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
1036 target, so we don't touch it when the link fails.
1038 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
1039 Check for the result overflowing off_t and fail with EOVERFLOW.
1040 * libio/ioftell.c (_IO_ftell): Likewise.
1041 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1043 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
1044 use a temporary timeval on the stack for gettimeofday and copy it.
1045 * login/logout.c (logout): Likewise.
1046 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
1048 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
1049 Use __SWORD_TYPE instead of int for member types.
1050 (struct statfs64): Likewise.
1051 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
1052 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
1053 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
1054 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
1055 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
1057 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
1058 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
1059 (ST_NODIRATIME): Restore fixed value of 2048.
1060 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
1061 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
1063 Rearranged <bits/types.h> definitions to reduce duplication.
1064 * sysdeps/generic/bits/types.h: Rewritten, using macros from
1065 <bits/wordsize.h> and new header <bits/typesizes.h>.
1066 * posix/Makefile (headers): Add bits/typesizes.h here.
1067 * sysdeps/generic/bits/typesizes.h: New file.
1068 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
1069 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
1070 * sysdeps/mach/hurd/bits/typesizes.h: New file.
1071 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
1072 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
1073 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
1074 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
1075 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
1076 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
1077 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
1078 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
1079 <bits/pthreadtypes.h> here, not in <bits/types.h>.
1080 * signal/signal.h: Likewise.
1082 * streams/stropts.h: Include <bits/xtitypes.h>.
1083 * streams/Makefile (headers): Add bits/xtitypes.h here.
1084 * sysdeps/generic/bits/xtitypes.h: New file.
1085 * sysdeps/s390/bits/xtitypes.h: New file.
1086 * sysdeps/ia64/bits/xtitypes.h: New file.
1087 * sysdeps/x86_64/bits/xtitypes.h: New file.
1089 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
1090 * sysdeps/generic/bits/ipctypes.h: New file.
1091 * sysdeps/mips/bits/ipctypes.h: New file.
1092 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
1093 * sysdeps/gnu/bits/msq.h: Likewise.
1094 * sysvipc/sys/ipc.h: Likewise.
1096 2002-10-22 Ulrich Drepper <drepper@redhat.com>
1098 * elf/dl-load.c (struct filebuf): For buf element to have the
1099 alignment of ElfXX_Ehdr since this is what will be stored in it.
1101 2002-10-22 Jakub Jelinek <jakub@redhat.com>
1103 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
1104 into pointer to locrec_offset.
1105 (add_locale_to_archive): Adjust callers. Free normalized_name right
1106 before returning, not immediately after add_locale, pass it to
1107 add_alias if not NULL instead of name. Rename second normalized_name
1108 occurence to nnormalized_codeset_name.
1110 * locale/programs/locarchive.c (enlarge_archive): Make sure
1111 string_size is always a multiple of 4.
1112 Reported by Andreas Schwab <schwab@suse.de>.
1114 2002-10-21 Andreas Schwab <schwab@suse.de>
1116 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
1117 caller to EXTRA instead of execve, since the latter has a
1118 higher-priority implementation in linuxthreads.
1120 2002-10-21 Roland McGrath <roland@redhat.com>
1122 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
1123 slotinfo list's len member to the proper size, not just 1.
1124 Initialize static_map.l_tls_initimage.
1126 * elf/dl-open.c (dl_open_worker): Fix loop searching for
1127 dtv_slotinfo_list element containing new modules' l_tls_modid.
1129 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
1130 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
1131 * elf/Makefile (tests): Add tst-tls9.
1132 (tests-static): Add tst-tls9-static.
1133 (tst-tls9-static-ENV): New variable.
1134 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
1136 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
1137 modids used by partially loaded modules being closed can't be known.
1139 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
1141 * posix/Makefile: Add a test case for the bug reported by Aharon
1142 Robbins <arnold@skeeve.com>.
1143 * posix/bug-regex13.c: New file.
1144 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
1146 2002-10-21 Ulrich Drepper <drepper@redhat.com>
1148 * csu/gmon-start.c: Pretty printing.
1150 2002-10-19 Art Haas <ahaas@neosoft.com>
1152 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
1153 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
1154 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
1155 * configure: Regenerated.
1157 2002-10-19 Roland McGrath <roland@redhat.com>
1159 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
1160 and then set $subdirs directly, because the new Autoconf breaks
1161 compatibility in every way imaginable and insists on whining
1162 about usage that worked since the dawn of time.
1163 * configure: Regenerated.
1165 * configure: Regenerated (using Autoconf 2.54).
1166 * sysdeps/alpha/elf/configure: Likewise.
1167 * sysdeps/generic/configure: Likewise.
1168 * sysdeps/i386/elf/configure: Likewise.
1169 * sysdeps/ia64/elf/configure: Likewise.
1170 * sysdeps/mach/hurd/configure: Likewise.
1171 * sysdeps/mach/configure: Likewise.
1172 * sysdeps/unix/configure: Likewise.
1173 * sysdeps/unix/common/configure: Likewise.
1174 * sysdeps/unix/sysv/aix/configure: Likewise.
1175 * sysdeps/unix/sysv/linux/configure: Likewise.
1176 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
1177 * sysdeps/x86_64/elf/configure: Likewise.
1179 * config.make.in: Nix completely-soft nonsense.
1180 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
1181 of machine directories instead of fpu subdirectory.
1182 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
1183 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
1184 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
1185 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
1186 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
1187 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
1188 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
1189 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
1190 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
1191 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
1192 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
1193 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
1194 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
1195 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
1196 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
1197 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
1198 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
1199 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
1200 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
1201 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
1202 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
1203 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
1204 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
1205 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
1206 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
1207 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
1208 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
1209 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
1210 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
1211 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
1212 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
1213 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
1214 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
1215 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
1216 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
1217 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
1218 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
1219 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
1220 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
1221 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
1223 2002-10-19 Bruno Haible <bruno@clisp.org>
1225 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
1227 2002-10-18 Roland McGrath <roland@redhat.com>
1229 * io/Makefile (routines): Add lchmod.
1230 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
1231 * sysdeps/generic/lchmod.c: New file.
1232 * sysdeps/mach/hurd/lchmod.c: New file.
1233 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
1235 2002-10-18 Art Haas <ahaas@neosoft.com>
1237 * configure.in: Remove remaining AC_FD_CC macros, and replace
1238 AC_FD_MSG with AS_MESSAGE_FD.
1240 2002-10-18 Roland McGrath <roland@redhat.com>
1242 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
1243 typos: VALUE -> FINALADDR.
1245 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
1246 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
1247 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
1248 (inline_syscall6): Move these macros ...
1249 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
1251 * configure.in (libc_link_dests, libc_link_sources): Remove these
1252 variables and the AC_LINK_FILES call.
1254 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
1255 change to put new symbols here instead of in GLIBC_2.2.
1256 * sysdeps/powerpc/Subdirs: Move this file ...
1257 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
1259 2002-10-07 Roland McGrath <roland@redhat.com>
1261 * sysdeps/generic/bits/time.h: Replaced with contents of the
1262 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
1263 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
1264 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
1265 macros is ok even for architectures that don't now implement them.
1266 * sysdeps/mach/hurd/bits/time.h: File removed.
1267 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
1268 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
1269 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
1270 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
1271 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
1273 2002-10-18 Jeff Bailey <jbailey@gnu.org>
1275 * configure.in: Replace obsolete AC_OUTPUT syntax with
1276 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
1278 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
1279 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
1281 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
1282 * sysdeps/alpha/elf/configure.in: Likewise.
1283 * sysdeps/i386/elf/configure.in: Likewise.
1284 * sysdeps/mach/hurd/configure.in: Likewise.
1285 * sysdeps/x86_64/elf/configure.in: Likewise.
1287 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
1289 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
1290 * sysdeps/generic/configure.in: Likewise.
1291 * sysdeps/i386/elf/configure.in: Likewise.
1292 * sysdeps/ia64/elf/configure.in: Likewise.
1293 * sysdeps/mach/configure.in: Likewise.
1294 * sysdeps/mach/hurd/configure.in: Likewise.
1295 * sysdeps/unix/configure.in: Likewise.
1296 * sysdeps/unix/common/configure.in: Likewise.
1297 * sysdeps/unix/sysv/aix/configure.in: Likewise.
1298 * sysdeps/unix/sysv/linux/configure.in: Likewise.
1299 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
1300 * sysdeps/x86_64/elf/configure.in: Likewise.
1302 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
1303 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
1304 that it's obvious when extra autoconf machinery is being dragged in.
1306 2002-10-18 Roland McGrath <roland@redhat.com>
1308 * configure.in: Remove bogus echo included in
1309 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
1310 * configure: Regenerated.
1312 2002-10-18 Jakub Jelinek <jakub@redhat.com>
1314 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
1315 (statfs_filesize_max): New function.
1316 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
1317 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
1318 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
1319 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
1320 statfs_filesize_max.
1321 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1322 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
1323 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
1325 2002-10-17 Roland McGrath <roland@redhat.com>
1327 * configure.in (MIG): Just AC_SUBST it here.
1328 * configure: Regenerated.
1329 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
1330 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
1331 * sysdeps/mach/configure: Regenerated.
1333 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
1334 and AC_PROVIDE([_AS_CR_PREPARE]).
1336 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
1337 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
1339 * elf/dl-support.c: Move _dl_tls_* variables to ...
1340 * sysdeps/generic/libc-tls.c: ... here.
1342 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
1343 allow IDX to be one past the current last slotinfo entry.
1344 (_dl_close): Pass IMAP->l_init_called for that parameter.
1346 2002-10-07 Andreas Schwab <schwab@suse.de>
1348 * aclocal.m4: Fix for autoconf 2.53.
1349 * configure.in: Likewise. Require autoconf 2.53.
1351 2002-10-08 Richard Henderson <rth@redhat.com>
1353 * soft-fp/op-4.h: Handle carry correctly in
1354 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
1355 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
1356 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
1358 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
1360 * configure.in: Compute completely-soft.
1361 * config.make.in: Make completely-soft available to sub-makes.
1362 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
1363 gcc-double-routines. Add sim-full.c. Add fenv_const and
1364 fe_nomask to libm-support.
1365 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
1366 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
1367 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
1368 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
1369 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
1370 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
1371 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
1372 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
1373 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
1374 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
1375 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
1376 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
1377 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
1378 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
1379 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
1380 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
1381 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
1382 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
1383 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
1384 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
1386 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
1387 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
1388 FP_HANDLE_EXCEPTIONS.
1389 Define FP_ROUNDMODE.
1390 Redefine FP_* macros to correspond to the FE_* bit positions.
1391 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
1392 Define externs for __sim_exceptions, __sim_disabled_exceptions,
1393 __sim_round_mode, __simulate_exceptions.
1394 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
1395 * sysdeps/powerpc/bits/fenv.h: ...to here.
1397 2002-10-06 Jakub Jelinek <jakub@redhat.com>
1399 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1400 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
1401 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
1402 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
1405 2002-10-15 Jakub Jelinek <jakub@redhat.com>
1407 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
1408 __libc_res_nsend): New prototypes.
1409 * resolv/res_query.c (QUERYSIZE): Define.
1410 (__libc_res_nquery): Renamed from res_nquery. Added answerp
1411 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
1412 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
1413 res_nsend, pass answerp.
1414 (res_nquery): Changed into wrapper around __libc_res_nquery.
1415 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
1416 argument. Call __libc_res_nquerydomain and __libc_res_nquery
1417 instead of the non-__libc_ variants, pass them answerp.
1418 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
1419 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
1420 Added answerp argument. Call __libc_res_nquery instead of
1421 res_nquery, pass answerp.
1422 (res_nquerydomain): Changed into wrapper around
1423 __libc_res_nquerydomain.
1424 * resolv/res_send.c: Include sys/ioctl.h.
1425 (MAXPACKET): Define.
1426 (send_vc): Change arguments. Reallocate answer buffer if it is
1428 (send_dg): Likewise.
1429 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
1430 Reallocate answer buffer if it is too small and hooks are in use.
1431 Adjust calls to send_vc and send_dg.
1432 (res_nsend): Changed into wrapper around __libc_res_nsend.
1433 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
1434 just 1K answer buffer on the stack, use __libc_res_nsearch instead
1436 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
1437 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1438 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
1439 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
1440 (gethostbyaddr): Similarly with __libc_res_nquery.
1441 * resolv/Versions (libresolv): Export __libc_res_nquery and
1442 __libc_res_nsearch at GLIBC_PRIVATE.
1444 2002-10-17 Roland McGrath <roland@redhat.com>
1446 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
1447 * configure: Regenerated.
1449 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
1450 before performing the reloc, not after.
1451 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1453 2002-10-17 Ulrich Drepper <drepper@redhat.com>
1455 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
1456 * locale/programs/linereader.c (lr_open): Likewise.
1457 * locale/programs/charmap-dir.c (charmap_open): Likewise.
1458 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
1460 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
1462 * posix/bug-regex11.c: Add a test case for the bug reported by
1463 Paolo Bonzini <bonzini@gnu.org>.
1464 * posix/regexec.c (sift_states_bkref): Use correct destination of
1467 2002-10-17 Roland McGrath <roland@redhat.com>
1469 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
1470 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
1471 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
1472 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1473 Call it after performing TPOFF relocs.
1474 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1475 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1476 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
1478 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
1479 when closing a partially-initialized object.
1481 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
1482 instead of _dl_fatal_printf when we see PT_TLS.
1484 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
1485 instead of $(libof-$<).
1487 2002-10-16 Roland McGrath <roland@redhat.com>
1489 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
1490 instead of += to append, to be sure $(lib) gets expanded at defn time.
1491 (libof-$(cpp-src)): New variable, define this instead.
1492 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
1493 (lib): Don't use override.
1494 (CPPFLAGS-$(lib)): New variable, put -D's here.
1495 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
1496 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
1497 LIB found by $(libof-*) for basename, target, or source.
1498 * Makerules (CPPFLAGS-nonlib): New variable.
1499 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
1500 * locale/Makefile (lib): Likewise.
1501 * sunrpc/Makefile (lib): Likewise.
1503 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
1504 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
1505 * sysdeps/unix/sysv/linux/pathconf.h: New file.
1506 (statfs_link_max): New function, guts from fpathconf.c.
1507 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
1508 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1509 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
1510 to use the linux/pathconf.c code by #include rather than duplication.
1511 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
1513 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1515 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1516 Use __libc_errno only for libc itself.
1518 2002-10-16 Andreas Jaeger <aj@suse.de>
1520 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
1522 2002-10-16 Ulrich Drepper <drepper@redhat.com>
1524 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1525 Use __libc_errno only for libc itself.
1527 2002-10-15 Roland McGrath <roland@redhat.com>
1528 Jakub Jelinek <jakub@redhat.com>
1530 * sysdeps/unix/sysv/linux/Makefile
1531 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
1532 sparc/Makefile to produce a bi-arch file as needed.
1533 That's now parameterized by the variable $(64bit-predefine).
1534 Use LC_ALL=C for `comm' commands in that rule.
1535 No longer conditional on [$(no_syscall_list_h)].
1536 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
1537 (64bit-predefine): New variable.
1538 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
1539 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
1540 * sysdeps/unix/sysv/linux/powerpc/Makefile
1541 (64bit-predefine): New variable.
1543 2002-10-15 Roland McGrath <roland@redhat.com>
1545 * sysdeps/unix/sysv/linux/Makefile
1546 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
1548 * login/utmp-private.h: Declare __libc_utmp_lock.
1549 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
1550 and call __libc_utmp_jump_table functions directly, instead of using
1553 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
1554 * sysdeps/unix/sysv/linux/configure: Regenerated.
1556 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
1557 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
1558 Use int32_t for ll_time.
1559 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
1560 Use int32_t instead of long int for ut_session.
1561 Use an anonymous struct with 32-bit fields for ut_tv.
1562 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
1563 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
1564 here as in utmp.h for `struct utmp'.
1565 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
1566 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
1567 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
1568 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
1569 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
1570 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
1572 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
1573 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
1574 All the following files were identical or equivalent to it.
1575 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
1576 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
1577 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
1578 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
1579 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
1580 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
1581 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
1582 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
1583 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
1584 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
1586 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
1587 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
1588 Other than the previously incorrect sign of msg_iovlen, this is a
1589 no-op on 32-bit platforms. On 64-bit platforms it makes this header
1590 match their layouts as well, so the following are now identical to it.
1591 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
1592 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
1593 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
1594 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
1595 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
1597 2002-10-15 Ulrich Drepper <drepper@redhat.com>
1599 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1600 Define for 2.4+ kernels.
1602 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
1603 are known to have the vfork syscall. Don't confuse the CPUs
1604 branch prediction unit by jumping to the return address.
1606 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
1607 support for reiserfs and xfs.
1609 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
1611 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
1613 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
1615 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1617 * include/libc-symbols.h (attribute_tls_model_ie): Define.
1618 * include/errno.h (errno): Define to __libc_errno in libc.so.
1619 Add attribute_tls_model_ie.
1620 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
1621 Add attribute_tls_model_ie.
1622 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
1623 attribute_tls_model_ie.
1624 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
1626 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
1628 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
1629 attribute_tls_model_ie.
1630 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
1632 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
1633 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
1634 __libc_errno in USE___THREAD case.
1635 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1637 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
1638 __attribute__((tls_model (""))).
1639 * configure: Rebuilt.
1640 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
1642 2002-10-15 Ulrich Drepper <drepper@redhat.com>
1644 * timezone/asia: Update from tzdata2002d.
1645 * timezone/australasia: Likewise.
1646 * timezone/iso3166.tab: Likewise.
1647 * timezone/southamerica: Likewise.
1648 * timezone/zone-tab: Likewise.
1650 2002-10-15 Roland McGrath <roland@redhat.com>
1652 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
1653 Adjust TCB pointer before calling free, so we get the whole block.
1655 2002-10-14 Roland McGrath <roland@redhat.com>
1657 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
1658 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
1659 extern using attribute_hidden instead of static, avoids warning.
1661 2002-10-09 Jakub Jelinek <jakub@redhat.com>
1663 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
1664 * sysdeps/unix/sysv/linux/configure: Rebuilt.
1666 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1668 * po/sv.po: Update from translation team.
1670 2002-10-12 H.J. Lu <hjl@gnu.org>
1672 * sunrpc/thrsvc.c (PROCQUIT): New.
1673 (struct rpc_arg): New.
1674 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
1675 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
1676 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
1677 (main): Modified for struct rpc_arg *.
1679 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1681 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
1683 2002-10-14 Jakub Jelinek <jakub@redhat.com>
1685 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
1686 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
1687 in ld.so even if __thread is supported.
1689 2002-10-13 Jakub Jelinek <jakub@redhat.com>
1691 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1692 Add hack to prevent the compiler from clobbering the signal context.
1693 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
1695 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
1698 2002-10-14 Andreas Jaeger <aj@suse.de>
1700 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
1701 Guido Guenther <agx@sigxcpu.org>.
1703 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1705 * po/sk.po: Update from translation team.
1707 2002-09-26 Roland McGrath <roland@redhat.com>
1709 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
1711 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
1712 DL_DST_LIB based on $(slibdir).
1714 2002-10-13 Roland McGrath <roland@frob.com>
1716 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
1718 * sysdeps/mach/hurd/getresuid.c: New file.
1719 * sysdeps/mach/hurd/getresgid.c: New file.
1720 * sysdeps/mach/hurd/setresuid.c: New file.
1721 * sysdeps/mach/hurd/setresgid.c: New file.
1723 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
1724 setresgid): Declare them.
1727 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
1728 add libc_hidden_proto.
1729 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
1730 getresuid, getresgid, setresuid, setresgid here.
1731 * Versions.def (libc): Define GLIBC_2.3.2 set.
1732 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
1733 Add libc_hidden_def.
1734 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
1735 * sysdeps/generic/setresgid.c: New file.
1736 * sysdeps/generic/setresuid.c: New file.
1737 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1738 (sysdep_routines): Don't add getresuid and getresgid here.
1739 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
1740 (sysdep_routines): Don't add setresuid and setresgid here.
1741 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1742 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1743 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1744 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1745 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1746 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1747 * posix/Makefile (routines): Add them all here instead.
1748 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
1749 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
1750 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
1751 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
1752 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
1753 [! __NR_setresuid]: Include generic file.
1754 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
1755 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
1756 [! __NR_setresuid]: Include generic file.
1757 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
1758 Caller is - now, not EXTRA.
1759 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
1760 (setresuid, setresgid, getresuid, getresgid): Likewise.
1761 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
1762 Add these calls here.
1763 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
1764 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1765 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1766 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1767 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1770 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1771 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1773 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1774 (sysdep_routines): Add setfsuid and setfsgid here.
1775 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
1776 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
1777 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1778 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1779 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1780 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1781 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1782 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1784 * hurd/errno.c: Renamed to ...
1785 * hurd/errno-loc.c: ... this.
1786 * hurd/Makefile (routines): errno -> errno-loc
1788 2002-10-13 Ulrich Drepper <drepper@redhat.com>
1790 * po/de.po: Update from translation team.
1792 * MakeTAGS: Add -E flag to xgettext runs.
1794 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1796 * po/fr.po: Update from translation team.
1798 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
1799 Optimize a bit for use in glibc.
1801 2002-10-12 Roland McGrath <roland@redhat.com>
1803 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
1804 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
1806 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1808 * po/sv.po: Update from translation team.
1810 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1812 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
1814 (regfree): Likewise.
1815 (create_initial_state): Likewise.
1816 (analyze): Remove the substitutions which became useless.
1817 (calc_first): Likewise.
1818 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
1819 epsilon destination.
1820 (duplicate_node_closure): New function.
1821 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
1822 (calc_inveclosure): Likewise.
1823 (calc_eclosure): Likewise.
1824 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
1825 direct invocation of duplicate_node.
1826 (parse): Don't use comma operator in the return to avoid compiler
1828 (parse_reg_exp): Likewise.
1829 (parse_branch): Likewise.
1830 (parse_expression): Likewise.
1831 (parse_sub_exp): Likewise.
1832 (parse_dup_op): Likewise.
1833 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
1834 which became useless.
1835 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
1836 (create_cd_newstate): Likewise.
1837 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
1838 (re_token_t): Likewise.
1839 (re_dfa_t): Likewise.
1840 (re_node_set_remove): New macro.
1841 * posix/regexec.c (check_matching): Remove the handling
1843 (check_halt_node_context): Likewise.
1844 (proceed_next_node): Likewise.
1845 (pop_fail_stack): Fix the memory leak.
1846 (set_regs): Likewise.
1847 (free_fail_stack_return): New function.
1848 (sift_states_backward): Fix the memory leak. Remove the handling
1850 (update_cur_sifted_state): Append some if clause to avoid redundant
1852 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
1854 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
1855 (check_subexp_limits): Likewise.
1856 (search_subexp): Likewise.
1857 (sift_states_bkref): Likewise.
1858 (transit_state_mb): Likewise.
1859 (transit_state_bkref_loop): Likewise.
1860 (transit_state_bkref_loop): Likewise.
1861 (group_nodes_into_DFAstates): Likewise.
1862 (check_node_accept): Likewise.
1863 (sift_ctx_init): Add initializing.
1865 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1867 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
1870 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1872 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
1873 duplicated variable c.
1875 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
1878 * sysdeps/unix/sysv/linux/i386/sysdep.h
1879 (INTERNAL_SYSCALL_ERROR_P): New define.
1880 (INTERNAL_SYSCALL_ERRNO): Likewise.
1882 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
1883 Add hack to prevent the compiler from clobbering the signal context.
1885 2002-10-11 Roland McGrath <roland@redhat.com>
1887 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1890 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
1891 * sysdeps/sh/dl-lookupcfg.h: File removed.
1892 * sysdeps/i386/dl-lookupcfg.h: File removed.
1894 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
1895 missing labels and ; from last change.
1897 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
1898 number literals, so they are doubles instead of ints.
1900 2002-10-09 Roland McGrath <roland@redhat.com>
1902 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
1903 changed from [USE_TLS && HAVE___THREAD].
1905 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
1906 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
1907 * sysdeps/x86_64/dl-machine.h
1908 (elf_machine_type_class, elf_machine_rela): Likewise.
1909 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
1912 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
1913 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
1914 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
1916 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
1917 instead of ___tls_get_addr.
1918 (___tls_get_addr_internal): Add attribute_hidden to decl.
1920 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
1921 _dl_error_catch_tsd.
1922 * elf/rtld.c (startup_error_tsd): New function.
1923 (dl_main): Point _dl_error_catch_tsd at that.
1924 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
1925 use new function pointer instead.
1926 * elf/dl-tsd.c: New file.
1927 * elf/Makefile (routines): Add it.
1929 2002-10-07 Roland McGrath <roland@redhat.com>
1931 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
1932 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
1933 take _dl_load_lock around calling __writev.
1935 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
1936 (INLINE_SYSCALL): Use that.
1938 * sysdeps/generic/dl-sysdep.h: New file.
1939 * sysdeps/mach/hurd/dl-sysdep.h: New file.
1940 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
1941 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
1942 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
1944 * elf/dl-minimal.c (__errno_location): Removed.
1945 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1946 Use GOTOFF access for errno.
1947 * sysdeps/unix/sysv/linux/i386/sysdep.h
1948 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1950 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1951 Use PC-relative access for errno.
1952 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1953 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1955 * include/tls.h: New file.
1956 (USE___THREAD): New macro.
1957 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
1959 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
1960 changed from [USE_TLS && HAVE___THREAD].
1961 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1962 * sysdeps/unix/i386/sysdep.S: Likewise.
1963 * sysdeps/unix/x86_64/sysdep.S: Likewise.
1964 * include/errno.h: Likewise.
1965 * include/netdb.h: Likewise.
1966 * include/resolv.h: Likewise.
1968 * sysdeps/generic/errno.c: New file.
1969 * csu/Makefile (aux): New variable, list errno.
1970 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
1971 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1972 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1973 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1974 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1975 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
1976 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
1977 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
1978 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1979 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
1980 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
1981 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
1982 * sysdeps/unix/alpha/sysdep.S: Likewise.
1983 * sysdeps/generic/start.c: Likewise.
1984 * sysdeps/unix/start.c: Likewise.
1985 * sysdeps/unix/arm/start.c: Likewise.
1986 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1987 * sysdeps/unix/sparc/start.c: Likewise.
1988 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1989 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
1991 * manual/search.texi (Tree Search Function, Hash Search Function):
1992 Mention search.h clearly.
1994 2002-10-05 Roland McGrath <roland@redhat.com>
1996 * elf/dl-fxstat64.c: File removed.
1997 * elf/dl-xstat64.c: File removed.
1998 * elf/Makefile (rtld-routines): Remove them.
1999 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
2000 Instead, use strong_alias instead of versioned_symbol in the
2002 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2003 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2005 * include/shlib-compat.h
2006 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
2007 [! NOT_IN_libc] (IS_IN_libc): Define it.
2008 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
2009 * elf/Makefile (CPPFLAGS-.os): Likewise.
2011 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
2012 Return the status instead of calling exit.
2014 * Makeconfig (CFLAGS): Prepend -std=gnu99.
2015 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
2016 Remove superfluous rm command, whose @ plus make bugs hid
2017 all these commands from the make output.
2019 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
2020 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
2021 Use that file's contents instead of literal echo's for the prologue.
2022 * include/features.h: Include <gnu/stubs.h> unconditionally.
2023 * include/gnu/stubs.h: New file.
2025 2002-09-30 Roland McGrath <roland@redhat.com>
2027 * elf/rtld-Rules: New file.
2028 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
2029 $(objpfx)rtld-libc.a): New targets.
2030 (generated): Add them.
2031 (reloc-link): Remove -o $@ from the variable.
2032 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
2033 (distribute): Add rtld-Rules.
2034 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
2035 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
2036 (common-mostlyclean, common-clean): Clean up rtld-* files.
2037 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
2039 2002-10-11 Roland McGrath <roland@redhat.com>
2041 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
2042 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
2044 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
2045 proper set of no-op insn prefixes.
2047 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
2049 2002-10-11 Ulrich Drepper <drepper@redhat.com>
2051 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
2052 __pthread_kill_other_threads_np.
2054 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
2056 2002-10-08 Roland McGrath <roland@redhat.com>
2058 * locale/newlocale.c (__newlocale): If setting all categories to "C",
2059 just return &_nl_C_locobj instead of copying it.
2060 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
2061 * locale/duplocale.c (__duplocale): Likewise.
2063 2002-10-07 Roland McGrath <roland@frob.com>
2065 * config.h.in (HAVE_I386_SET_GDT): New #undef.
2066 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
2067 * sysdeps/mach/configure: Regenerated.
2069 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2072 Add all necessary register outputs for syscall-clobbered registers.
2074 2002-10-02 David Mosberger <davidm@hpl.hp.com>
2076 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
2077 Itanium 2 (and Itanium).
2078 Fix unwind directives and make it fit in 80 columns.
2079 * sysdeps/ia64/memset.S: Likewise.
2080 * sysdeps/ia64/memcpy.S: Likewise.
2081 Move jump table to .rodata section.
2083 2002-10-03 Roland McGrath <roland@frob.com>
2085 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
2088 2002-10-10 Andreas Jaeger <aj@suse.de>
2090 * sysdeps/x86_64/_mcount.S: Restore correct registers.
2092 2002-10-10 Ulrich Drepper <drepper@redhat.com>
2094 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
2096 2002-10-09 Ulrich Drepper <drepper@redhat.com>
2098 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
2099 _dl_allocate_tls_init. Add rtld_hidden_proto.
2100 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
2102 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
2104 * version.h (VERSION): Bump to 2.3.1.
2106 * Make-dist: Add back one of the tar invocations removed before.
2108 * stdlib/Makefile (distribute): Add allocalim.h.
2110 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
2111 (__libc_tsd_address): Use correct variable name.
2112 Patch by Stefan Jones <stefan.jones@multigig.com>.
2114 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
2115 Reported by edwardsg@sgi.com [PR libc/4678].
2117 * Versions.def (libc): Add GLIBC_2.3.1.
2118 (libpthread): Add GLIBC_2.3.1.
2120 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
2122 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
2123 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
2125 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
2126 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
2128 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
2129 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
2130 and make old name an alias.
2131 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
2132 and make old name an alias.
2133 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
2136 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
2137 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
2139 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
2141 * sysdeps/posix/readv.c: Likewise
2142 * sysdeps/unix/sysv/aix/readv.c: Likewise.
2143 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2144 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
2146 * sysdeps/posix/writev.c: Likewise
2147 * sysdeps/unix/sysv/aix/writev.c: Likewise.
2148 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2150 * include/sys/wait.h: Declare __waitid.
2151 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
2152 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
2154 * sysdeps/posix/waitid.c: Likewise.
2155 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
2157 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
2159 2002-10-07 Jakub Jelinek <jakub@redhat.com>
2161 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
2163 (__MAX_ALLOCA_CUTOFF): Define.
2164 Include allocalim.h.
2165 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2166 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
2167 host_buffer depending on __libc_use_alloca.
2168 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2169 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
2170 net_buffer depending on __libc_use_alloca.
2171 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
2172 buf depending on __libc_use_alloca.
2173 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
2174 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
2175 instead of hardcoded constants.
2176 Pass proper size argument to alloca and compute end for wide char
2178 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
2179 instead of hardcoded constants.
2180 * string/strcoll.c (strcoll): Likewise.
2181 * string/strxfrm.c (strxfrm): Likewise.
2182 * sysdeps/posix/readv.c (__readv): Likewise.
2183 * sysdeps/posix/writev.c (__writev): Likewise.
2184 * sysdeps/generic/allocalim.h: New file.
2186 2002-10-08 Roland McGrath <roland@redhat.com>
2188 * configure.in (aux_missing warning): Change "too old" to
2189 "incompatible versions", since for autoconf it's "too new" right now.
2190 * configure: Regenerated.
2192 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
2193 one found doesn't work on our configure.in.
2194 * configure: Regenerated.
2195 * config.make.in (AUTOCONF): New substituted variable.
2196 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
2197 (autoconf-it): ... here, use that instead of defining conditionally.
2198 Use $(AUTOCONF) instead of literal autoconf.
2199 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
2200 with this condition.
2201 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
2203 2002-10-08 Ulrich Drepper <drepper@redhat.com>
2205 * Make-dist (dist): Cleanup a bit. We are not interested in the
2206 14 char filename limit anymore. Remove intermediate files and
2209 2002-10-05 Ulrich Drepper <drepper@redhat.com>
2211 * po/sk.po: Update from translation team.
2212 * po/tr.po: Likewise.
2213 * po/gl.po: Likewise.
2215 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2217 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
2219 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2221 * version.h (RELEASE): Change to stable.
2223 2002-10-03 Jakub Jelinek <jakub@redhat.com>
2225 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
2226 __syscall_exit_group): New prototypes.
2228 2002-10-03 Ulrich Drepper <drepper@redhat.com>
2230 * glibc 2.3 released.
2233 See ChangeLog.13 for earlier changes.