1 2002-10-28 David Mosberger <davidm@hpl.hp.com>
3 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
4 Don't add L->l_addr to array entry values.
6 2002-11-07 Jakub Jelinek <jakub@redhat.com>
8 * string/test-string.h: New file.
9 * string/test-strlen.c: New file.
10 * string/test-string.h: New file.
11 * string/test-strcmp.c: New file.
12 * string/test-strchr.c: New file.
13 * string/test-strrchr.c: New file.
14 * string/test-strcpy.c: New file.
15 * string/test-stpcpy.c: New file.
16 * string/test-strncpy.c: New file.
17 * string/test-stpncpy.c: New file.
18 * string/test-strpbrk.c: New file.
19 * string/test-strcspn.c: New file.
20 * string/test-strspn.c: New file.
21 * string/test-strcat.c: New file.
22 * string/test-strncmp.c: New file.
23 * string/test-memchr.c: New file.
24 * string/test-memcmp.c: New file.
25 * string/test-memset.c: New file.
26 * string/test-memcpy.c: New file.
27 * string/test-mempcpy.c: New file.
28 * string/test-memmove.c: New file.
29 * string/Makefile (strop-tests): New variable.
30 (tests): Add strop-tests.
31 (distribute): Add test-string.h.
33 2002-11-06 Ulrich Drepper <drepper@redhat.com>
35 * posix/regcomp.c: Use tabs instead of spaces.
36 * posix/regexec.c: Likewise.
37 * posix/regex_internal.h: Likewise.
39 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
41 2002-11-06 Jakub Jelinek <jakub@redhat.com>
43 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
45 (regcomp): Don't set can_be_null here.
46 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
47 (re_compile_internal): Clear can_be_null, set regs_allocated.
49 * posix/regcomp.c (re_set_fastmap): New function.
50 (re_compile_fastmap_iter): Use it. Remove redundant type ==
51 COMPLEX_BRACKET check.
52 * posix/regexec.c (re_search_internal): Optimize searching with
53 fastmap. Call re_string_reconstruct even if match_first is
54 smaller than raw_mbs_idx.
56 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
58 * posix/regcomp (free_dfa_content): Use free_state.
59 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
60 pointers in case that realloc failed.
61 (re_node_set_merge): Likewise.
62 (register_state): Likewise.
63 (create_newstate_common): Invoke memory release functions in case of
65 (create_ci_newstate): Likewise.
66 (create_cd_newstate): Likewise.
67 (free_state): New function.
68 * posix/regexec.c (re_search_internal): Invoke memory release
69 functions in case of error conditions.
70 (sift_states_backward): Likewise.
71 (merge_state_array): Likewise.
72 (add_epsilon_src_nodes): Likewise.
73 (sub_epsilon_src_nodes): Likewise.
74 (search_subexp): Likewise.
75 (sift_states_bkref): Likewise.
76 (transit_state_sb): Likewise.
77 (transit_state_mb): Likewise.
78 (transit_state_bkref_loop): Likewise.
79 (group_nodes_into_DFAstates): Likewise.
80 (push_fail_stack): Don't edit pointers in case that realloc failed.
81 (extend_buffers): Likewise.
82 (match_ctx_add_entry): Likewise.
84 2002-11-06 Roland McGrath <roland@redhat.com>
86 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
87 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
89 * configure.in: Add checks on as and ld for binutils 2.13 or later.
90 * configure: Regenerated.
92 2002-11-06 Ulrich Drepper <drepper@redhat.com>
94 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
95 If re_compile_internal failed free fastmap buffer.
96 (free_dfa_content): Broken out of regfree function. Frees all dfa
98 (regfree): Add free_dfa_content.
99 (re_compile_internal): If any of the called functions fails free
100 all dfa related memory.
102 2002-11-05 Ulrich Drepper <drepper@redhat.com>
104 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
105 warnings from the kernel headers.
107 2002-11-05 Roland McGrath <roland@redhat.com>
109 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
110 From Johannes Stezenbach <js@convergence.de>.
112 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
113 #errlist-compat magic comment to give 123 as size.
114 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
115 (libc: GLIBC_2.2): ... here.
116 (libc: GLIBC_2.3): Likewise.
118 2002-11-05 Ulrich Drepper <drepper@redhat.com>
120 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
121 which happens at the beginning so that we can unload modules in
124 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
126 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
127 under [__USE_MISC || _ASM].
129 * elf/elf.h: Remove the obsolete SH TLS relocations.
131 2002-11-05 Ulrich Drepper <drepper@redhat.com>
133 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
135 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
137 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
138 __NR_pread64 and __NR_pwrite64.
139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
140 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
142 Revert change to use INLINE_SYSCALL.
143 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
144 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
145 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
146 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
148 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
151 Update clobber list and add a comment about the syscall ABI.
153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
154 s_pwrite64, s_ftruncate, s_truncate): Re-add.
156 2002-11-05 Jakub Jelinek <jakub@redhat.com>
158 * iconv/gconv_dl.c (free_mem): Clear loaded.
159 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
162 2002-11-05 Ulrich Drepper <drepper@redhat.com>
164 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
166 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
167 as old code without locking. _IO_seekoff calls this function after
169 * libio/ioseekpos.c: Likewise for _IO_seekpos.
170 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
171 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
173 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
174 of _IO_seekoff_internal.
175 (_IO_rewind): Likewise.
176 * libio/ioftell.c: Likewise.
177 * libio/ftello.c: Likewise.
178 * libio/ftello64.c: Likewise.
179 * libio/iofgetpos.c: Likewise.
180 * libio/iofgetpos64.c: Likewise.
181 * libio/oldiofgetpos.c: Likewise.
182 * libio/oldiofgetpos64.c: Likewise.
183 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
184 _IO_seekpos_internal.
185 * libio/iofsetpos64.c: Likewise.
186 * libio/oldiofsetpos.c: Likewise.
187 * libio/oldiofsetpos64.c: Likewise.
189 2002-11-04 Roland McGrath <roland@redhat.com>
191 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
192 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
193 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
194 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
195 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
196 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
197 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
198 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
199 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
200 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
202 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
203 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
204 Remove these, no longer used.
206 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
209 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
210 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
211 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
212 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
213 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
216 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
217 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
218 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
220 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
221 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
223 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
225 2002-11-03 Roland McGrath <roland@redhat.com>
227 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
228 `_dl_tls_static_used'.
229 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
230 (__libc_setup_tls): Initialize it. Let the initial value of
231 _dl_tls_static_size indicate some surplus space in the computed value.
232 * elf/dl-open.c (_dl_tls_static_size): New variable.
233 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
234 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
235 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
236 (CHECK_STATIC_TLS): Use it.
237 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
238 closed objects occupied a trailing contiguous chunk of static TLS area.
240 2002-10-18 Bruno Haible <bruno@clisp.org>
242 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
244 2002-11-04 Ulrich Drepper <drepper@redhat.com>
246 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
247 _wide_data->_IO_read_end if adjustment can be made in the current
250 * sysdeps/unix/sysv/linux/fexecve.c: New file.
252 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
253 wide oriented streams are used.
255 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
256 service hasn't been used [PR libc/4744].
258 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
259 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
261 * manual/examples/dir.c: Don't include <stddef.h>.
262 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
263 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
265 2002-11-02 H.J. Lu <hjl@gnu.org>
267 * stdio-common/reg-printf.c: Include <stddef.h>.
269 2002-11-03 Ulrich Drepper <drepper@redhat.com>
271 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
273 * po/ca.po: Update from translation team.
274 * po/es.po: Likewise.
276 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
277 is defined write out memory map.
278 * sysdeps/unix/sysv/linux/segfault.c: New file.
280 2002-11-02 Roland McGrath <roland@redhat.com>
282 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
283 pointers that can alias.
284 Reported by Daniel Jacobowitz <drow@mvista.com>.
286 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
288 2002-11-02 Roland McGrath <roland@redhat.com>
290 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
291 description to be clearer and to say that *RESULT is set to ENTRY.
293 2002-10-30 Jakub Jelinek <jakub@redhat.com>
295 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
296 dests_ch arrays together. Alloca or malloc dest_states,
297 dest_states_word and dest_states_nl arrays together. Free memory on
300 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
302 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
303 and current_saltbits.
305 2002-11-02 Roland McGrath <roland@redhat.com>
307 * stdio-common/reg-printf.c: Include <stdlib.h>.
309 2002-11-02 H.J. Lu <hjl@gnu.org>
311 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
312 caller to EXTRA instead of execve.
314 2002-11-01 Roland McGrath <roland@redhat.com>
316 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
317 in place of [!(USE_TLS && HAVE___THREAD)].
318 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
320 2002-10-31 Roger Sayle <roger@eyesopen.com>
322 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
324 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
326 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
327 without defining FP_ROUNDMODE.
329 2002-10-29 Jakub Jelinek <jakub@redhat.com>
331 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
332 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
334 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
335 (OLD_SIGLIST_SIZE): Define.
336 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
337 (OLD_SIGLIST_SIZE): Define.
338 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
340 2002-11-01 Jakub Jelinek <jakub@redhat.com>
342 * sysdeps/ia64/strncpy.S: Fix recovery code.
344 2002-10-30 Jakub Jelinek <jakub@redhat.com>
346 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
348 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
350 * elf/dl-libc.c (free_mem): Likewise.
351 * iconv/gconv_conf.c (free_mem): Likewise.
352 * iconv/gconv_db.c (free_mem): Likewise.
353 * iconv/gconv_dl.c (free_mem): Likewise.
354 * iconv/gconv_cache.c (free_mem): Likewise.
355 * intl/finddomain.c (free_mem): Likewise.
356 * intl/dcigettext.c (free_mem): Likewise.
357 * locale/setlocale.c (free_mem): Likewise.
358 * misc/fstab.c (fstab_free): Likewise.
359 * nss/nsswitch.c (free_mem): Likewise.
360 * posix/regcomp.c (free_mem): Likewise.
361 * resolv/gai_misc.c (free_res): Likewise.
362 * stdlib/fmtmsg.c (free_mem): Likewise.
363 * sunrpc/clnt_perr.c (free_mem): Likewise.
364 * sysdeps/generic/setenv.c (free_mem): Likewise.
365 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
366 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
367 * time/tzset.c (free_mem): Likewise.
368 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
369 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
370 * malloc/set-freeres.c (__libc_freeres): Likewise.
372 * login/getutent.c: Include stdlib.h instead of stddef.h.
373 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
374 (__getutent): Allocate buffer the first time it is run.
375 * login/getutid.c: Include stdlib.h instead of stddef.h.
376 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
377 (__getutid): Allocate buffer the first time it is run.
378 * login/getutline.c: Include stdlib.h instead of stddef.h.
379 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
380 (__getutline): Allocate buffer the first time it is run.
381 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
382 (mtrace): Allocate malloc_trace_buffer.
383 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
384 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
385 * string/strerror.c: Include libintl.h and errno.h.
387 (strerror): Only allocate buffer if actually needed (unknown error).
388 * time/tzfile.c (transitions): Add libc_freeres_ptr.
391 2002-10-25 Jakub Jelinek <jakub@redhat.com>
393 * include/libc-symbols.h (libc_freeres_ptr): New macro.
394 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
396 (__libc_freeres): Free all pointers in that section.
397 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
398 commands when creating .lds script.
399 (LDSEDCMD-c.so): New variable.
400 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
401 (rcmd_af): Use strdup to allocate ahostbuf.
402 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
403 (rexec_af): Use strdup to allocate ahostbuf.
404 * stdio-common/reg-printf.c (printf_funcs): Remove.
405 (__printf_arginfo_table): Change into printf_arginfo_function **.
406 Add libc_freeres_ptr.
407 (__register_printf_function): Allocate __printf_arginfo_table
408 and __printf_function_table the first time it is called.
409 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
410 printf_arginfo_function **.
411 (parse_one_spec): Add __builtin_expect.
412 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
414 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
416 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
417 (string_space, map): Add libc_freeres_ptr.
419 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
421 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
423 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
424 (buffer): Add libc_freeres_ptr.
425 (free_mem): Remove for _LIBC.
426 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
428 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
430 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
432 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
434 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
436 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
438 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
441 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
445 2002-10-30 Jakub Jelinek <jakub@redhat.com>
447 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
448 instead of duplicating the whole function in libc.
450 2002-10-31 Roland McGrath <roland@redhat.com>
452 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
453 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
455 2002-10-30 Jakub Jelinek <jakub@redhat.com>
457 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
458 32bit-predefine when creating .new32 list and -U for each
459 32bit-predefine when creating .new64 list.
460 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
462 2002-10-29 Andreas Schwab <schwab@suse.de>
464 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
465 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
467 2002-10-25 Roland McGrath <roland@redhat.com>
469 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
470 * sysdeps/unix/sysv/linux/configure: Regenerated.
472 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
473 _dl_starting_up decl.
475 2002-10-20 H.J. Lu <hjl@gnu.org>
477 * sysdeps/unix/sysv/linux/configure.in: Don't check
478 /lib/modules/`uname -r`/build/include for kernel headers if
480 * sysdeps/unix/sysv/linux/configure: Regenerated.
482 2002-10-25 Roland McGrath <roland@redhat.com>
484 * math/math.h (M_LOG2El): Correct the value.
485 From Stephen L Moshier <steve@moshier.net>.
487 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
488 conditional from __libc_multiple_libcs access. Remove kludge for weak
489 symbol access with old compilers we no longer support.
490 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
491 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
493 2002-10-25 Roland McGrath <roland@redhat.com>
495 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
496 implement SV_RESETHAND by translating it to SA_RESETHAND.
498 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
500 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
501 type on ELF64 platforms.
503 2002-10-24 Ulrich Drepper <drepper@redhat.com>
505 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
507 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
509 2002-10-24 Jakub Jelinek <jakub@redhat.com>
511 * elf/dl-misc.c: Include <sysdep.h>.
512 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
514 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
515 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
516 (INLINE_SYSCALL): Use that.
517 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
518 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
519 (INLINE_SYSCALL): Use that.
520 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
521 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
522 (INLINE_SYSCALL): Use that.
523 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
525 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
526 (__INTERNAL_SYSCALL_STRING): Define.
527 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
529 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
530 (__INTERNAL_SYSCALL_STRING): Define.
531 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
532 __SYSCALL_STRING to inline_syscall*.
533 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
535 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
536 inline_syscall4, inline_syscall5, inline_syscall6): Add string
539 2002-10-24 Roland McGrath <roland@redhat.com>
541 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
542 * sysdeps/unix/sysv/linux/init-first.c: Not here.
543 * sysdeps/powerpc/elf/libc-start.c: Or here.
544 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
545 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
546 * sysdeps/unix/sysv/aix/init-first.c: Or here.
547 * sysdeps/generic/libc-start.c: Or here.
548 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
549 access with [! SHARED].
550 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
552 * libio/bug-wfflush.c: New file.
553 * libio/Makefile (tests): Add bug-wfflush.
555 2002-10-23 Roland McGrath <roland@redhat.com>
557 * stdio-common/tst-fphex.c: New file.
558 * stdio-common/Makefile (tests): Add tst-fphex.
559 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
560 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
561 chars always before the value digits.
562 Reported by James Antill <james.antill@redhat.com>.
564 2002-10-24 Jakub Jelinek <jakub@redhat.com>
566 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
567 (free_mem): New function.
568 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
569 if not cross compiling.
570 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
571 (bug-regex14-ENV): Set.
572 (bug-regex14-mem): New target.
573 * posix/bug-regex14.c: New file.
575 2002-10-23 Roland McGrath <roland@redhat.com>
577 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
578 target, so we don't touch it when the link fails.
580 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
581 Check for the result overflowing off_t and fail with EOVERFLOW.
582 * libio/ioftell.c (_IO_ftell): Likewise.
583 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
585 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
586 use a temporary timeval on the stack for gettimeofday and copy it.
587 * login/logout.c (logout): Likewise.
588 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
590 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
591 Use __SWORD_TYPE instead of int for member types.
592 (struct statfs64): Likewise.
593 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
594 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
595 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
596 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
597 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
599 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
600 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
601 (ST_NODIRATIME): Restore fixed value of 2048.
602 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
603 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
605 Rearranged <bits/types.h> definitions to reduce duplication.
606 * sysdeps/generic/bits/types.h: Rewritten, using macros from
607 <bits/wordsize.h> and new header <bits/typesizes.h>.
608 * posix/Makefile (headers): Add bits/typesizes.h here.
609 * sysdeps/generic/bits/typesizes.h: New file.
610 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
611 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
612 * sysdeps/mach/hurd/bits/typesizes.h: New file.
613 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
614 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
615 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
616 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
617 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
618 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
619 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
620 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
621 <bits/pthreadtypes.h> here, not in <bits/types.h>.
622 * signal/signal.h: Likewise.
624 * streams/stropts.h: Include <bits/xtitypes.h>.
625 * streams/Makefile (headers): Add bits/xtitypes.h here.
626 * sysdeps/generic/bits/xtitypes.h: New file.
627 * sysdeps/s390/bits/xtitypes.h: New file.
628 * sysdeps/ia64/bits/xtitypes.h: New file.
629 * sysdeps/x86_64/bits/xtitypes.h: New file.
631 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
632 * sysdeps/generic/bits/ipctypes.h: New file.
633 * sysdeps/mips/bits/ipctypes.h: New file.
634 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
635 * sysdeps/gnu/bits/msq.h: Likewise.
636 * sysvipc/sys/ipc.h: Likewise.
638 2002-10-22 Ulrich Drepper <drepper@redhat.com>
640 * elf/dl-load.c (struct filebuf): For buf element to have the
641 alignment of ElfXX_Ehdr since this is what will be stored in it.
643 2002-10-22 Jakub Jelinek <jakub@redhat.com>
645 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
646 into pointer to locrec_offset.
647 (add_locale_to_archive): Adjust callers. Free normalized_name right
648 before returning, not immediately after add_locale, pass it to
649 add_alias if not NULL instead of name. Rename second normalized_name
650 occurence to nnormalized_codeset_name.
652 * locale/programs/locarchive.c (enlarge_archive): Make sure
653 string_size is always a multiple of 4.
654 Reported by Andreas Schwab <schwab@suse.de>.
656 2002-10-21 Andreas Schwab <schwab@suse.de>
658 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
659 caller to EXTRA instead of execve, since the latter has a
660 higher-priority implementation in linuxthreads.
662 2002-10-21 Roland McGrath <roland@redhat.com>
664 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
665 slotinfo list's len member to the proper size, not just 1.
666 Initialize static_map.l_tls_initimage.
668 * elf/dl-open.c (dl_open_worker): Fix loop searching for
669 dtv_slotinfo_list element containing new modules' l_tls_modid.
671 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
672 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
673 * elf/Makefile (tests): Add tst-tls9.
674 (tests-static): Add tst-tls9-static.
675 (tst-tls9-static-ENV): New variable.
676 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
678 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
679 modids used by partially loaded modules being closed can't be known.
681 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
683 * posix/Makefile: Add a test case for the bug reported by Aharon
684 Robbins <arnold@skeeve.com>.
685 * posix/bug-regex13.c: New file.
686 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
688 2002-10-21 Ulrich Drepper <drepper@redhat.com>
690 * csu/gmon-start.c: Pretty printing.
692 2002-10-19 Art Haas <ahaas@neosoft.com>
694 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
695 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
696 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
697 * configure: Regenerated.
699 2002-10-19 Roland McGrath <roland@redhat.com>
701 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
702 and then set $subdirs directly, because the new Autoconf breaks
703 compatibility in every way imaginable and insists on whining
704 about usage that worked since the dawn of time.
705 * configure: Regenerated.
707 * configure: Regenerated (using Autoconf 2.54).
708 * sysdeps/alpha/elf/configure: Likewise.
709 * sysdeps/generic/configure: Likewise.
710 * sysdeps/i386/elf/configure: Likewise.
711 * sysdeps/ia64/elf/configure: Likewise.
712 * sysdeps/mach/hurd/configure: Likewise.
713 * sysdeps/mach/configure: Likewise.
714 * sysdeps/unix/configure: Likewise.
715 * sysdeps/unix/common/configure: Likewise.
716 * sysdeps/unix/sysv/aix/configure: Likewise.
717 * sysdeps/unix/sysv/linux/configure: Likewise.
718 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
719 * sysdeps/x86_64/elf/configure: Likewise.
721 * config.make.in: Nix completely-soft nonsense.
722 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
723 of machine directories instead of fpu subdirectory.
724 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
725 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
726 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
727 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
728 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
729 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
730 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
731 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
732 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
733 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
734 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
735 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
736 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
737 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
738 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
739 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
740 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
741 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
742 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
743 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
744 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
745 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
746 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
747 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
748 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
749 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
750 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
751 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
752 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
753 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
754 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
755 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
756 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
757 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
758 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
759 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
760 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
761 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
762 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
763 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
765 2002-10-19 Bruno Haible <bruno@clisp.org>
767 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
769 2002-10-18 Roland McGrath <roland@redhat.com>
771 * io/Makefile (routines): Add lchmod.
772 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
773 * sysdeps/generic/lchmod.c: New file.
774 * sysdeps/mach/hurd/lchmod.c: New file.
775 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
777 2002-10-18 Art Haas <ahaas@neosoft.com>
779 * configure.in: Remove remaining AC_FD_CC macros, and replace
780 AC_FD_MSG with AS_MESSAGE_FD.
782 2002-10-18 Roland McGrath <roland@redhat.com>
784 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
785 typos: VALUE -> FINALADDR.
787 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
788 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
789 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
790 (inline_syscall6): Move these macros ...
791 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
793 * configure.in (libc_link_dests, libc_link_sources): Remove these
794 variables and the AC_LINK_FILES call.
796 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
797 change to put new symbols here instead of in GLIBC_2.2.
798 * sysdeps/powerpc/Subdirs: Move this file ...
799 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
801 2002-10-07 Roland McGrath <roland@redhat.com>
803 * sysdeps/generic/bits/time.h: Replaced with contents of the
804 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
805 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
806 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
807 macros is ok even for architectures that don't now implement them.
808 * sysdeps/mach/hurd/bits/time.h: File removed.
809 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
810 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
811 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
812 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
813 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
815 2002-10-18 Jeff Bailey <jbailey@gnu.org>
817 * configure.in: Replace obsolete AC_OUTPUT syntax with
818 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
820 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
821 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
823 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
824 * sysdeps/alpha/elf/configure.in: Likewise.
825 * sysdeps/i386/elf/configure.in: Likewise.
826 * sysdeps/mach/hurd/configure.in: Likewise.
827 * sysdeps/x86_64/elf/configure.in: Likewise.
829 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
831 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
832 * sysdeps/generic/configure.in: Likewise.
833 * sysdeps/i386/elf/configure.in: Likewise.
834 * sysdeps/ia64/elf/configure.in: Likewise.
835 * sysdeps/mach/configure.in: Likewise.
836 * sysdeps/mach/hurd/configure.in: Likewise.
837 * sysdeps/unix/configure.in: Likewise.
838 * sysdeps/unix/common/configure.in: Likewise.
839 * sysdeps/unix/sysv/aix/configure.in: Likewise.
840 * sysdeps/unix/sysv/linux/configure.in: Likewise.
841 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
842 * sysdeps/x86_64/elf/configure.in: Likewise.
844 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
845 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
846 that it's obvious when extra autoconf machinery is being dragged in.
848 2002-10-18 Roland McGrath <roland@redhat.com>
850 * configure.in: Remove bogus echo included in
851 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
852 * configure: Regenerated.
854 2002-10-18 Jakub Jelinek <jakub@redhat.com>
856 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
857 (statfs_filesize_max): New function.
858 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
859 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
860 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
861 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
863 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
864 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
865 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
867 2002-10-17 Roland McGrath <roland@redhat.com>
869 * configure.in (MIG): Just AC_SUBST it here.
870 * configure: Regenerated.
871 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
872 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
873 * sysdeps/mach/configure: Regenerated.
875 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
876 and AC_PROVIDE([_AS_CR_PREPARE]).
878 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
879 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
881 * elf/dl-support.c: Move _dl_tls_* variables to ...
882 * sysdeps/generic/libc-tls.c: ... here.
884 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
885 allow IDX to be one past the current last slotinfo entry.
886 (_dl_close): Pass IMAP->l_init_called for that parameter.
888 2002-10-07 Andreas Schwab <schwab@suse.de>
890 * aclocal.m4: Fix for autoconf 2.53.
891 * configure.in: Likewise. Require autoconf 2.53.
893 2002-10-08 Richard Henderson <rth@redhat.com>
895 * soft-fp/op-4.h: Handle carry correctly in
896 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
897 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
898 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
900 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
902 * configure.in: Compute completely-soft.
903 * config.make.in: Make completely-soft available to sub-makes.
904 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
905 gcc-double-routines. Add sim-full.c. Add fenv_const and
906 fe_nomask to libm-support.
907 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
908 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
909 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
910 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
911 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
912 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
913 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
914 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
915 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
916 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
917 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
918 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
919 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
920 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
921 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
922 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
923 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
924 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
925 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
926 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
928 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
929 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
930 FP_HANDLE_EXCEPTIONS.
932 Redefine FP_* macros to correspond to the FE_* bit positions.
933 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
934 Define externs for __sim_exceptions, __sim_disabled_exceptions,
935 __sim_round_mode, __simulate_exceptions.
936 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
937 * sysdeps/powerpc/bits/fenv.h: ...to here.
939 2002-10-06 Jakub Jelinek <jakub@redhat.com>
941 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
942 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
943 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
944 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
947 2002-10-15 Jakub Jelinek <jakub@redhat.com>
949 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
950 __libc_res_nsend): New prototypes.
951 * resolv/res_query.c (QUERYSIZE): Define.
952 (__libc_res_nquery): Renamed from res_nquery. Added answerp
953 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
954 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
955 res_nsend, pass answerp.
956 (res_nquery): Changed into wrapper around __libc_res_nquery.
957 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
958 argument. Call __libc_res_nquerydomain and __libc_res_nquery
959 instead of the non-__libc_ variants, pass them answerp.
960 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
961 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
962 Added answerp argument. Call __libc_res_nquery instead of
963 res_nquery, pass answerp.
964 (res_nquerydomain): Changed into wrapper around
965 __libc_res_nquerydomain.
966 * resolv/res_send.c: Include sys/ioctl.h.
968 (send_vc): Change arguments. Reallocate answer buffer if it is
971 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
972 Reallocate answer buffer if it is too small and hooks are in use.
973 Adjust calls to send_vc and send_dg.
974 (res_nsend): Changed into wrapper around __libc_res_nsend.
975 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
976 just 1K answer buffer on the stack, use __libc_res_nsearch instead
978 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
979 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
980 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
981 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
982 (gethostbyaddr): Similarly with __libc_res_nquery.
983 * resolv/Versions (libresolv): Export __libc_res_nquery and
984 __libc_res_nsearch at GLIBC_PRIVATE.
986 2002-10-17 Roland McGrath <roland@redhat.com>
988 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
989 * configure: Regenerated.
991 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
992 before performing the reloc, not after.
993 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
995 2002-10-17 Ulrich Drepper <drepper@redhat.com>
997 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
998 * locale/programs/linereader.c (lr_open): Likewise.
999 * locale/programs/charmap-dir.c (charmap_open): Likewise.
1000 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
1002 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
1004 * posix/bug-regex11.c: Add a test case for the bug reported by
1005 Paolo Bonzini <bonzini@gnu.org>.
1006 * posix/regexec.c (sift_states_bkref): Use correct destination of
1009 2002-10-17 Roland McGrath <roland@redhat.com>
1011 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
1012 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
1013 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
1014 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1015 Call it after performing TPOFF relocs.
1016 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1017 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1018 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
1020 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
1021 when closing a partially-initialized object.
1023 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
1024 instead of _dl_fatal_printf when we see PT_TLS.
1026 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
1027 instead of $(libof-$<).
1029 2002-10-16 Roland McGrath <roland@redhat.com>
1031 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
1032 instead of += to append, to be sure $(lib) gets expanded at defn time.
1033 (libof-$(cpp-src)): New variable, define this instead.
1034 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
1035 (lib): Don't use override.
1036 (CPPFLAGS-$(lib)): New variable, put -D's here.
1037 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
1038 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
1039 LIB found by $(libof-*) for basename, target, or source.
1040 * Makerules (CPPFLAGS-nonlib): New variable.
1041 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
1042 * locale/Makefile (lib): Likewise.
1043 * sunrpc/Makefile (lib): Likewise.
1045 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
1046 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
1047 * sysdeps/unix/sysv/linux/pathconf.h: New file.
1048 (statfs_link_max): New function, guts from fpathconf.c.
1049 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
1050 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1051 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
1052 to use the linux/pathconf.c code by #include rather than duplication.
1053 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
1055 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1057 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1058 Use __libc_errno only for libc itself.
1060 2002-10-16 Andreas Jaeger <aj@suse.de>
1062 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
1064 2002-10-16 Ulrich Drepper <drepper@redhat.com>
1066 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1067 Use __libc_errno only for libc itself.
1069 2002-10-15 Roland McGrath <roland@redhat.com>
1070 Jakub Jelinek <jakub@redhat.com>
1072 * sysdeps/unix/sysv/linux/Makefile
1073 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
1074 sparc/Makefile to produce a bi-arch file as needed.
1075 That's now parameterized by the variable $(64bit-predefine).
1076 Use LC_ALL=C for `comm' commands in that rule.
1077 No longer conditional on [$(no_syscall_list_h)].
1078 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
1079 (64bit-predefine): New variable.
1080 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
1081 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
1082 * sysdeps/unix/sysv/linux/powerpc/Makefile
1083 (64bit-predefine): New variable.
1085 2002-10-15 Roland McGrath <roland@redhat.com>
1087 * sysdeps/unix/sysv/linux/Makefile
1088 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
1090 * login/utmp-private.h: Declare __libc_utmp_lock.
1091 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
1092 and call __libc_utmp_jump_table functions directly, instead of using
1095 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
1096 * sysdeps/unix/sysv/linux/configure: Regenerated.
1098 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
1099 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
1100 Use int32_t for ll_time.
1101 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
1102 Use int32_t instead of long int for ut_session.
1103 Use an anonymous struct with 32-bit fields for ut_tv.
1104 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
1105 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
1106 here as in utmp.h for `struct utmp'.
1107 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
1108 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
1109 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
1110 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
1111 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
1112 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
1114 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
1115 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
1116 All the following files were identical or equivalent to it.
1117 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
1118 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
1119 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
1120 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
1121 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
1122 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
1123 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
1124 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
1125 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
1126 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
1128 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
1129 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
1130 Other than the previously incorrect sign of msg_iovlen, this is a
1131 no-op on 32-bit platforms. On 64-bit platforms it makes this header
1132 match their layouts as well, so the following are now identical to it.
1133 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
1134 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
1135 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
1136 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
1137 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
1139 2002-10-15 Ulrich Drepper <drepper@redhat.com>
1141 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1142 Define for 2.4+ kernels.
1144 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
1145 are known to have the vfork syscall. Don't confuse the CPUs
1146 branch prediction unit by jumping to the return address.
1148 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
1149 support for reiserfs and xfs.
1151 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
1153 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
1155 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
1157 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1159 * include/libc-symbols.h (attribute_tls_model_ie): Define.
1160 * include/errno.h (errno): Define to __libc_errno in libc.so.
1161 Add attribute_tls_model_ie.
1162 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
1163 Add attribute_tls_model_ie.
1164 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
1165 attribute_tls_model_ie.
1166 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
1168 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
1170 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
1171 attribute_tls_model_ie.
1172 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
1174 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
1175 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
1176 __libc_errno in USE___THREAD case.
1177 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1179 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
1180 __attribute__((tls_model (""))).
1181 * configure: Rebuilt.
1182 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
1184 2002-10-15 Ulrich Drepper <drepper@redhat.com>
1186 * timezone/asia: Update from tzdata2002d.
1187 * timezone/australasia: Likewise.
1188 * timezone/iso3166.tab: Likewise.
1189 * timezone/southamerica: Likewise.
1190 * timezone/zone-tab: Likewise.
1192 2002-10-15 Roland McGrath <roland@redhat.com>
1194 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
1195 Adjust TCB pointer before calling free, so we get the whole block.
1197 2002-10-14 Roland McGrath <roland@redhat.com>
1199 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
1200 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
1201 extern using attribute_hidden instead of static, avoids warning.
1203 2002-10-09 Jakub Jelinek <jakub@redhat.com>
1205 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
1206 * sysdeps/unix/sysv/linux/configure: Rebuilt.
1208 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1210 * po/sv.po: Update from translation team.
1212 2002-10-12 H.J. Lu <hjl@gnu.org>
1214 * sunrpc/thrsvc.c (PROCQUIT): New.
1215 (struct rpc_arg): New.
1216 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
1217 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
1218 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
1219 (main): Modified for struct rpc_arg *.
1221 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1223 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
1225 2002-10-14 Jakub Jelinek <jakub@redhat.com>
1227 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
1228 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
1229 in ld.so even if __thread is supported.
1231 2002-10-13 Jakub Jelinek <jakub@redhat.com>
1233 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1234 Add hack to prevent the compiler from clobbering the signal context.
1235 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
1237 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
1240 2002-10-14 Andreas Jaeger <aj@suse.de>
1242 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
1243 Guido Guenther <agx@sigxcpu.org>.
1245 2002-10-14 Ulrich Drepper <drepper@redhat.com>
1247 * po/sk.po: Update from translation team.
1249 2002-09-26 Roland McGrath <roland@redhat.com>
1251 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
1253 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
1254 DL_DST_LIB based on $(slibdir).
1256 2002-10-13 Roland McGrath <roland@frob.com>
1258 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
1260 * sysdeps/mach/hurd/getresuid.c: New file.
1261 * sysdeps/mach/hurd/getresgid.c: New file.
1262 * sysdeps/mach/hurd/setresuid.c: New file.
1263 * sysdeps/mach/hurd/setresgid.c: New file.
1265 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
1266 setresgid): Declare them.
1269 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
1270 add libc_hidden_proto.
1271 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
1272 getresuid, getresgid, setresuid, setresgid here.
1273 * Versions.def (libc): Define GLIBC_2.3.2 set.
1274 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
1275 Add libc_hidden_def.
1276 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
1277 * sysdeps/generic/setresgid.c: New file.
1278 * sysdeps/generic/setresuid.c: New file.
1279 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1280 (sysdep_routines): Don't add getresuid and getresgid here.
1281 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
1282 (sysdep_routines): Don't add setresuid and setresgid here.
1283 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1284 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1285 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1286 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1287 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1288 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1289 * posix/Makefile (routines): Add them all here instead.
1290 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
1291 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
1292 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
1293 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
1294 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
1295 [! __NR_setresuid]: Include generic file.
1296 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
1297 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
1298 [! __NR_setresuid]: Include generic file.
1299 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
1300 Caller is - now, not EXTRA.
1301 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
1302 (setresuid, setresgid, getresuid, getresgid): Likewise.
1303 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
1304 Add these calls here.
1305 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
1306 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1307 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1308 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1309 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1312 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1313 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1315 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1316 (sysdep_routines): Add setfsuid and setfsgid here.
1317 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
1318 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
1319 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1320 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1321 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1322 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1323 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1324 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1326 * hurd/errno.c: Renamed to ...
1327 * hurd/errno-loc.c: ... this.
1328 * hurd/Makefile (routines): errno -> errno-loc
1330 2002-10-13 Ulrich Drepper <drepper@redhat.com>
1332 * po/de.po: Update from translation team.
1334 * MakeTAGS: Add -E flag to xgettext runs.
1336 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1338 * po/fr.po: Update from translation team.
1340 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
1341 Optimize a bit for use in glibc.
1343 2002-10-12 Roland McGrath <roland@redhat.com>
1345 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
1346 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
1348 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1350 * po/sv.po: Update from translation team.
1352 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1354 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
1356 (regfree): Likewise.
1357 (create_initial_state): Likewise.
1358 (analyze): Remove the substitutions which became useless.
1359 (calc_first): Likewise.
1360 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
1361 epsilon destination.
1362 (duplicate_node_closure): New function.
1363 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
1364 (calc_inveclosure): Likewise.
1365 (calc_eclosure): Likewise.
1366 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
1367 direct invocation of duplicate_node.
1368 (parse): Don't use comma operator in the return to avoid compiler
1370 (parse_reg_exp): Likewise.
1371 (parse_branch): Likewise.
1372 (parse_expression): Likewise.
1373 (parse_sub_exp): Likewise.
1374 (parse_dup_op): Likewise.
1375 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
1376 which became useless.
1377 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
1378 (create_cd_newstate): Likewise.
1379 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
1380 (re_token_t): Likewise.
1381 (re_dfa_t): Likewise.
1382 (re_node_set_remove): New macro.
1383 * posix/regexec.c (check_matching): Remove the handling
1385 (check_halt_node_context): Likewise.
1386 (proceed_next_node): Likewise.
1387 (pop_fail_stack): Fix the memory leak.
1388 (set_regs): Likewise.
1389 (free_fail_stack_return): New function.
1390 (sift_states_backward): Fix the memory leak. Remove the handling
1392 (update_cur_sifted_state): Append some if clause to avoid redundant
1394 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
1396 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
1397 (check_subexp_limits): Likewise.
1398 (search_subexp): Likewise.
1399 (sift_states_bkref): Likewise.
1400 (transit_state_mb): Likewise.
1401 (transit_state_bkref_loop): Likewise.
1402 (transit_state_bkref_loop): Likewise.
1403 (group_nodes_into_DFAstates): Likewise.
1404 (check_node_accept): Likewise.
1405 (sift_ctx_init): Add initializing.
1407 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1409 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
1412 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1414 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
1415 duplicated variable c.
1417 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
1420 * sysdeps/unix/sysv/linux/i386/sysdep.h
1421 (INTERNAL_SYSCALL_ERROR_P): New define.
1422 (INTERNAL_SYSCALL_ERRNO): Likewise.
1424 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
1425 Add hack to prevent the compiler from clobbering the signal context.
1427 2002-10-11 Roland McGrath <roland@redhat.com>
1429 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1432 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
1433 * sysdeps/sh/dl-lookupcfg.h: File removed.
1434 * sysdeps/i386/dl-lookupcfg.h: File removed.
1436 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
1437 missing labels and ; from last change.
1439 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
1440 number literals, so they are doubles instead of ints.
1442 2002-10-09 Roland McGrath <roland@redhat.com>
1444 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
1445 changed from [USE_TLS && HAVE___THREAD].
1447 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
1448 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
1449 * sysdeps/x86_64/dl-machine.h
1450 (elf_machine_type_class, elf_machine_rela): Likewise.
1451 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
1454 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
1455 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
1456 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
1458 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
1459 instead of ___tls_get_addr.
1460 (___tls_get_addr_internal): Add attribute_hidden to decl.
1462 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
1463 _dl_error_catch_tsd.
1464 * elf/rtld.c (startup_error_tsd): New function.
1465 (dl_main): Point _dl_error_catch_tsd at that.
1466 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
1467 use new function pointer instead.
1468 * elf/dl-tsd.c: New file.
1469 * elf/Makefile (routines): Add it.
1471 2002-10-07 Roland McGrath <roland@redhat.com>
1473 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
1474 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
1475 take _dl_load_lock around calling __writev.
1477 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
1478 (INLINE_SYSCALL): Use that.
1480 * sysdeps/generic/dl-sysdep.h: New file.
1481 * sysdeps/mach/hurd/dl-sysdep.h: New file.
1482 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
1483 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
1484 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
1486 * elf/dl-minimal.c (__errno_location): Removed.
1487 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1488 Use GOTOFF access for errno.
1489 * sysdeps/unix/sysv/linux/i386/sysdep.h
1490 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1492 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1493 Use PC-relative access for errno.
1494 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1495 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1497 * include/tls.h: New file.
1498 (USE___THREAD): New macro.
1499 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
1501 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
1502 changed from [USE_TLS && HAVE___THREAD].
1503 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1504 * sysdeps/unix/i386/sysdep.S: Likewise.
1505 * sysdeps/unix/x86_64/sysdep.S: Likewise.
1506 * include/errno.h: Likewise.
1507 * include/netdb.h: Likewise.
1508 * include/resolv.h: Likewise.
1510 * sysdeps/generic/errno.c: New file.
1511 * csu/Makefile (aux): New variable, list errno.
1512 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
1513 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1514 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1515 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1516 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1517 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
1518 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
1519 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
1520 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1521 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
1522 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
1523 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
1524 * sysdeps/unix/alpha/sysdep.S: Likewise.
1525 * sysdeps/generic/start.c: Likewise.
1526 * sysdeps/unix/start.c: Likewise.
1527 * sysdeps/unix/arm/start.c: Likewise.
1528 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1529 * sysdeps/unix/sparc/start.c: Likewise.
1530 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1531 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
1533 * manual/search.texi (Tree Search Function, Hash Search Function):
1534 Mention search.h clearly.
1536 2002-10-05 Roland McGrath <roland@redhat.com>
1538 * elf/dl-fxstat64.c: File removed.
1539 * elf/dl-xstat64.c: File removed.
1540 * elf/Makefile (rtld-routines): Remove them.
1541 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
1542 Instead, use strong_alias instead of versioned_symbol in the
1544 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1545 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1547 * include/shlib-compat.h
1548 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
1549 [! NOT_IN_libc] (IS_IN_libc): Define it.
1550 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
1551 * elf/Makefile (CPPFLAGS-.os): Likewise.
1553 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
1554 Return the status instead of calling exit.
1556 * Makeconfig (CFLAGS): Prepend -std=gnu99.
1557 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
1558 Remove superfluous rm command, whose @ plus make bugs hid
1559 all these commands from the make output.
1561 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
1562 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
1563 Use that file's contents instead of literal echo's for the prologue.
1564 * include/features.h: Include <gnu/stubs.h> unconditionally.
1565 * include/gnu/stubs.h: New file.
1567 2002-09-30 Roland McGrath <roland@redhat.com>
1569 * elf/rtld-Rules: New file.
1570 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
1571 $(objpfx)rtld-libc.a): New targets.
1572 (generated): Add them.
1573 (reloc-link): Remove -o $@ from the variable.
1574 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
1575 (distribute): Add rtld-Rules.
1576 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
1577 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
1578 (common-mostlyclean, common-clean): Clean up rtld-* files.
1579 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
1581 2002-10-11 Roland McGrath <roland@redhat.com>
1583 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
1584 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
1586 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
1587 proper set of no-op insn prefixes.
1589 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
1591 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1593 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
1594 __pthread_kill_other_threads_np.
1596 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
1598 2002-10-08 Roland McGrath <roland@redhat.com>
1600 * locale/newlocale.c (__newlocale): If setting all categories to "C",
1601 just return &_nl_C_locobj instead of copying it.
1602 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
1603 * locale/duplocale.c (__duplocale): Likewise.
1605 2002-10-07 Roland McGrath <roland@frob.com>
1607 * config.h.in (HAVE_I386_SET_GDT): New #undef.
1608 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
1609 * sysdeps/mach/configure: Regenerated.
1611 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1614 Add all necessary register outputs for syscall-clobbered registers.
1616 2002-10-02 David Mosberger <davidm@hpl.hp.com>
1618 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
1619 Itanium 2 (and Itanium).
1620 Fix unwind directives and make it fit in 80 columns.
1621 * sysdeps/ia64/memset.S: Likewise.
1622 * sysdeps/ia64/memcpy.S: Likewise.
1623 Move jump table to .rodata section.
1625 2002-10-03 Roland McGrath <roland@frob.com>
1627 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
1630 2002-10-10 Andreas Jaeger <aj@suse.de>
1632 * sysdeps/x86_64/_mcount.S: Restore correct registers.
1634 2002-10-10 Ulrich Drepper <drepper@redhat.com>
1636 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
1638 2002-10-09 Ulrich Drepper <drepper@redhat.com>
1640 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
1641 _dl_allocate_tls_init. Add rtld_hidden_proto.
1642 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
1644 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
1646 * version.h (VERSION): Bump to 2.3.1.
1648 * Make-dist: Add back one of the tar invocations removed before.
1650 * stdlib/Makefile (distribute): Add allocalim.h.
1652 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1653 (__libc_tsd_address): Use correct variable name.
1654 Patch by Stefan Jones <stefan.jones@multigig.com>.
1656 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
1657 Reported by edwardsg@sgi.com [PR libc/4678].
1659 * Versions.def (libc): Add GLIBC_2.3.1.
1660 (libpthread): Add GLIBC_2.3.1.
1662 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
1664 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
1665 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
1667 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
1668 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1670 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
1671 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
1672 and make old name an alias.
1673 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
1674 and make old name an alias.
1675 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
1678 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
1679 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
1681 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
1683 * sysdeps/posix/readv.c: Likewise
1684 * sysdeps/unix/sysv/aix/readv.c: Likewise.
1685 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1686 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
1688 * sysdeps/posix/writev.c: Likewise
1689 * sysdeps/unix/sysv/aix/writev.c: Likewise.
1690 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1692 * include/sys/wait.h: Declare __waitid.
1693 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
1694 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
1696 * sysdeps/posix/waitid.c: Likewise.
1697 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
1699 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
1701 2002-10-07 Jakub Jelinek <jakub@redhat.com>
1703 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
1705 (__MAX_ALLOCA_CUTOFF): Define.
1706 Include allocalim.h.
1707 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1708 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
1709 host_buffer depending on __libc_use_alloca.
1710 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1711 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
1712 net_buffer depending on __libc_use_alloca.
1713 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
1714 buf depending on __libc_use_alloca.
1715 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
1716 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
1717 instead of hardcoded constants.
1718 Pass proper size argument to alloca and compute end for wide char
1720 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
1721 instead of hardcoded constants.
1722 * string/strcoll.c (strcoll): Likewise.
1723 * string/strxfrm.c (strxfrm): Likewise.
1724 * sysdeps/posix/readv.c (__readv): Likewise.
1725 * sysdeps/posix/writev.c (__writev): Likewise.
1726 * sysdeps/generic/allocalim.h: New file.
1728 2002-10-08 Roland McGrath <roland@redhat.com>
1730 * configure.in (aux_missing warning): Change "too old" to
1731 "incompatible versions", since for autoconf it's "too new" right now.
1732 * configure: Regenerated.
1734 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
1735 one found doesn't work on our configure.in.
1736 * configure: Regenerated.
1737 * config.make.in (AUTOCONF): New substituted variable.
1738 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
1739 (autoconf-it): ... here, use that instead of defining conditionally.
1740 Use $(AUTOCONF) instead of literal autoconf.
1741 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
1742 with this condition.
1743 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
1745 2002-10-08 Ulrich Drepper <drepper@redhat.com>
1747 * Make-dist (dist): Cleanup a bit. We are not interested in the
1748 14 char filename limit anymore. Remove intermediate files and
1751 2002-10-05 Ulrich Drepper <drepper@redhat.com>
1753 * po/sk.po: Update from translation team.
1754 * po/tr.po: Likewise.
1755 * po/gl.po: Likewise.
1757 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1759 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
1761 2002-10-03 Ulrich Drepper <drepper@redhat.com>
1763 * version.h (RELEASE): Change to stable.
1765 2002-10-03 Jakub Jelinek <jakub@redhat.com>
1767 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
1768 __syscall_exit_group): New prototypes.
1770 2002-10-03 Ulrich Drepper <drepper@redhat.com>
1772 * glibc 2.3 released.
1775 See ChangeLog.13 for earlier changes.