Update.
[glibc.git] / ChangeLog
blob2714b51d52000a204d85e44831c268bf61f6d725
1 2002-11-05  Ulrich Drepper  <drepper@redhat.com>
3         * libio/ioseekoff.c: Remove INTDEF.  Define _IO_seekoff_unlocked.  Same
4         as old code without locking.  _IO_seekoff calls this function after
5         locking the stream.
6         * libio/ioseekpos.c: Likewise for _IO_seekpos.
7         * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
8         prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
9         prototypes.
10         * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
11         of _IO_seekoff_internal.
12         (_IO_rewind): Likewise.
13         * libio/ioftell.c: Likewise.
14         * libio/ftello.c: Likewise.
15         * libio/ftello64.c: Likewise.
16         * libio/iofgetpos.c: Likewise.
17         * libio/iofgetpos64.c: Likewise.
18         * libio/oldiofgetpos.c: Likewise.
19         * libio/oldiofgetpos64.c: Likewise.
20         * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
21         _IO_seekpos_internal.
22         * libio/iofsetpos64.c: Likewise.
23         * libio/oldiofsetpos.c: Likewise.
24         * libio/oldiofsetpos64.c: Likewise.
26 2002-11-04  Roland McGrath  <roland@redhat.com>
28         * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
29         * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
30         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
31         * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
32         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
33         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
34         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
35         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
36         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
37         * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
38         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
39         s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
40         sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
41         Remove these, no longer used.
43 2002-11-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
45         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
46         s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
47         s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
48         s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
49         s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
50         s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
51         syscall stubs.
53         * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
54         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
55         * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
56         and __NR_pread.
57         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
58         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
59         and __NR_pwrite.
60         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
62 2002-11-03  Roland McGrath  <roland@redhat.com>
64         * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
65         `_dl_tls_static_used'.
66         * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
67         (__libc_setup_tls): Initialize it.  Let the initial value of
68         _dl_tls_static_size indicate some surplus space in the computed value.
69         * elf/dl-open.c (_dl_tls_static_size): New variable.
70         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
71         _dl_tls_static_used.  Add some surplus space into _dl_tls_static_size.
72         * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
73         (CHECK_STATIC_TLS): Use it.
74         * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
75         closed objects occupied a trailing contiguous chunk of static TLS area.
77 2002-10-18  Bruno Haible  <bruno@clisp.org>
79         * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
81 2002-11-04  Ulrich Drepper  <drepper@redhat.com>
83         * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
84         _wide_data->_IO_read_end if adjustment can be made in the current
85         buffer.
87         * sysdeps/unix/sysv/linux/fexecve.c: New file.
89         * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
90         wide oriented streams are used.
92         * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
93         service hasn't been used [PR libc/4744].
95         * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
96         Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
98         * manual/examples/dir.c: Don't include <stddef.h>.
99         * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
100         Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
102 2002-11-02  H.J. Lu  <hjl@gnu.org>
104         * stdio-common/reg-printf.c: Include <stddef.h>.
106 2002-11-03  Ulrich Drepper  <drepper@redhat.com>
108         * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
110         * po/ca.po: Update from translation team.
111         * po/es.po: Likewise.
113         * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
114         is defined write out memory map.
115         * sysdeps/unix/sysv/linux/segfault.c: New file.
117 2002-11-02  Roland McGrath  <roland@redhat.com>
119         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
120         pointers that can alias.
121         Reported by Daniel Jacobowitz <drow@mvista.com>.
123         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
125 2002-11-02  Roland McGrath  <roland@redhat.com>
127         * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
128         description to be clearer and to say that *RESULT is set to ENTRY.
130 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
132         * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
133         dests_ch arrays together.  Alloca or malloc dest_states,
134         dest_states_word and dest_states_nl arrays together.  Free memory on
135         error exit.
137 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
139         * crypt/crypt_util.c (__init_des_r): Initialize current_salt
140         and current_saltbits.
142 2002-11-02  Roland McGrath  <roland@redhat.com>
144         * stdio-common/reg-printf.c: Include <stdlib.h>.
146 2002-11-02  H.J. Lu  <hjl@gnu.org>
148         * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
149         caller to EXTRA instead of execve.
151 2002-11-01  Roland McGrath  <roland@redhat.com>
153         * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
154         in place of [!(USE_TLS && HAVE___THREAD)].
155         (__errno_location) [! USE___THREAD]: Define as strong, not weak.
157 2002-10-31  Roger Sayle  <roger@eyesopen.com>
159         * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
160         New macros.
161         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
163         * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
164         without defining FP_ROUNDMODE.
166 2002-10-29  Jakub Jelinek  <jakub@redhat.com>
168         * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
169         (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
170         declare_symbol.
171         * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
172         (OLD_SIGLIST_SIZE): Define.
173         * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
174         (OLD_SIGLIST_SIZE): Define.
175         * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
177 2002-11-01  Jakub Jelinek  <jakub@redhat.com>
179         * sysdeps/ia64/strncpy.S: Fix recovery code.
181 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
183         * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
184         New macros.
185         * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
186         text_set_element.
187         * elf/dl-libc.c (free_mem): Likewise.
188         * iconv/gconv_conf.c (free_mem): Likewise.
189         * iconv/gconv_db.c (free_mem): Likewise.
190         * iconv/gconv_dl.c (free_mem): Likewise.
191         * iconv/gconv_cache.c (free_mem): Likewise.
192         * intl/finddomain.c (free_mem): Likewise.
193         * intl/dcigettext.c (free_mem): Likewise.
194         * locale/setlocale.c (free_mem): Likewise.
195         * misc/fstab.c (fstab_free): Likewise.
196         * nss/nsswitch.c (free_mem): Likewise.
197         * posix/regcomp.c (free_mem): Likewise.
198         * resolv/gai_misc.c (free_res): Likewise.
199         * stdlib/fmtmsg.c (free_mem): Likewise.
200         * sunrpc/clnt_perr.c (free_mem): Likewise.
201         * sysdeps/generic/setenv.c (free_mem): Likewise.
202         * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
203         * sysdeps/pthread/aio_misc.c (free_res): Likewise.
204         * time/tzset.c (free_mem): Likewise.
205         * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
206         * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
207         * malloc/set-freeres.c (__libc_freeres): Likewise.
209         * login/getutent.c: Include stdlib.h instead of stddef.h.
210         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
211         (__getutent): Allocate buffer the first time it is run.
212         * login/getutid.c: Include stdlib.h instead of stddef.h.
213         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
214         (__getutid): Allocate buffer the first time it is run.
215         * login/getutline.c: Include stdlib.h instead of stddef.h.
216         (buffer): Change into pointer to utmp, add libc_freeres_ptr.
217         (__getutline): Allocate buffer the first time it is run.
218         * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
219         (mtrace): Allocate malloc_trace_buffer.
220         * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
221         * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
222         * string/strerror.c: Include libintl.h and errno.h.
223         (buf): New variable.
224         (strerror): Only allocate buffer if actually needed (unknown error).
225         * time/tzfile.c (transitions): Add libc_freeres_ptr.
226         (freeres): Remove.
228 2002-10-25  Jakub Jelinek  <jakub@redhat.com>
230         * include/libc-symbols.h (libc_freeres_ptr): New macro.
231         * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
232         symbol_set_define.
233         (__libc_freeres): Free all pointers in that section.
234         * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
235         commands when creating .lds script.
236         (LDSEDCMD-c.so): New variable.
237         * inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
238         (rcmd_af): Use strdup to allocate ahostbuf.
239         * inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
240         (rexec_af): Use strdup to allocate ahostbuf.
241         * stdio-common/reg-printf.c (printf_funcs): Remove.
242         (__printf_arginfo_table): Change into printf_arginfo_function **.
243         Add libc_freeres_ptr.
244         (__register_printf_function): Allocate __printf_arginfo_table
245         and __printf_function_table the first time it is called.
246         * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
247         printf_arginfo_function **.
248         (parse_one_spec): Add __builtin_expect.
249         * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
250         (free_mem): Remove.
251         * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
252         (free_mem): Remove.
253         * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
254         (string_space, map): Add libc_freeres_ptr.
255         (free_mem): Remove.
256         * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
257         (free_mem): Remove.
258         * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
259         (free_mem): Remove.
260         * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
261         (buffer): Add libc_freeres_ptr.
262         (free_mem): Remove for _LIBC.
263         * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
264         (free_mem): Remove.
265         * nss/getXXent.c (buffer): Add libc_freeres_ptr.
266         (free_mem): Remove.
267         * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
268         (free_mem): Remove.
269         * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
270         (free_mem): Remove.
271         * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
272         (free_mem): Remove.
273         * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
274         (free_mem): Remove.
275         * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
276         libc_freeres_ptr.
277         (free_mem): Remove.
278         * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
279         libc_freeres_ptr.
280         (free_mem): Remove.
282 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
284         * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
285         instead of duplicating the whole function in libc.
287 2002-10-31  Roland McGrath  <roland@redhat.com>
289         * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
290         Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.
292 2002-10-30  Jakub Jelinek  <jakub@redhat.com>
294         * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
295         32bit-predefine when creating .new32 list and -U for each
296         32bit-predefine when creating .new64 list.
297         * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
299 2002-10-29  Andreas Schwab  <schwab@suse.de>
301         * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
302         "testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.
304 2002-10-25  Roland McGrath  <roland@redhat.com>
306         * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
307         * sysdeps/unix/sysv/linux/configure: Regenerated.
309         * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
310         _dl_starting_up decl.
312 2002-10-20  H.J. Lu  <hjl@gnu.org>
314         * sysdeps/unix/sysv/linux/configure.in: Don't check
315         /lib/modules/`uname -r`/build/include for kernel headers if
316         cross compiling.
317         * sysdeps/unix/sysv/linux/configure: Regenerated.
319 2002-10-25  Roland McGrath  <roland@redhat.com>
321         * math/math.h (M_LOG2El): Correct the value.
322         From Stephen L Moshier <steve@moshier.net>.
324         * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
325         conditional from __libc_multiple_libcs access.  Remove kludge for weak
326         symbol access with old compilers we no longer support.
327         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
328         * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
330 2002-10-25  Roland McGrath  <roland@redhat.com>
332         * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
333         implement SV_RESETHAND by translating it to SA_RESETHAND.
335 2002-10-23  Alexandre Oliva  <aoliva@redhat.com>
337         * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
338         type on ELF64 platforms.
340 2002-10-24  Ulrich Drepper  <drepper@redhat.com>
342         * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
344         * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
346 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
348         * elf/dl-misc.c: Include <sysdep.h>.
349         (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
351         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
352         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
353         (INLINE_SYSCALL): Use that.
354         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
355         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
356         (INLINE_SYSCALL): Use that.
357         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
358         INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
359         (INLINE_SYSCALL): Use that.
360         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
361         dl-sysdep.h.
362         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
363         (__INTERNAL_SYSCALL_STRING): Define.
364         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
365         dl-sysdep.h.
366         (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
367         (__INTERNAL_SYSCALL_STRING): Define.
368         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
369         __SYSCALL_STRING to inline_syscall*.
370         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
371         New macros.
372         (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
373         inline_syscall4, inline_syscall5, inline_syscall6): Add string
374         argument.
376 2002-10-24  Roland McGrath  <roland@redhat.com>
378         * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
379         * sysdeps/unix/sysv/linux/init-first.c: Not here.
380         * sysdeps/powerpc/elf/libc-start.c: Or here.
381         * sysdeps/unix/sysv/aix/libc-start.c: Or here.
382         * sysdeps/unix/sysv/aix/start-libc.c: Or here.
383         * sysdeps/unix/sysv/aix/init-first.c: Or here.
384         * sysdeps/generic/libc-start.c: Or here.
385         * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
386         access with [! SHARED].
387         * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
389         * libio/bug-wfflush.c: New file.
390         * libio/Makefile (tests): Add bug-wfflush.
392 2002-10-23  Roland McGrath  <roland@redhat.com>
394         * stdio-common/tst-fphex.c: New file.
395         * stdio-common/Makefile (tests): Add tst-fphex.
396         * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
397         of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
398         chars always before the value digits.
399         Reported by James Antill <james.antill@redhat.com>.
401 2002-10-24  Jakub Jelinek  <jakub@redhat.com>
403         * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
404         (free_mem): New function.
405         * posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
406         if not cross compiling.
407         (generated): Add bug-regex14-mem and bug-regex14.mtrace.
408         (bug-regex14-ENV): Set.
409         (bug-regex14-mem): New target.
410         * posix/bug-regex14.c: New file.
412 2002-10-23  Roland McGrath  <roland@redhat.com>
414         * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
415         target, so we don't touch it when the link fails.
417         * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
418         Check for the result overflowing off_t and fail with EOVERFLOW.
419         * libio/ioftell.c (_IO_ftell): Likewise.
420         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
422         * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
423         use a temporary timeval on the stack for gettimeofday and copy it.
424         * login/logout.c (logout): Likewise.
425         Reported by Steven Munroe <sjmunroe@us.ibm.com>.
427         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
428         Use __SWORD_TYPE instead of int for member types.
429         (struct statfs64): Likewise.
430         * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
431         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
432         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
433         * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
434         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
436         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
437         * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
438         (ST_NODIRATIME): Restore fixed value of 2048.
439         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
440         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
442         Rearranged <bits/types.h> definitions to reduce duplication.
443         * sysdeps/generic/bits/types.h: Rewritten, using macros from
444         <bits/wordsize.h> and new header <bits/typesizes.h>.
445         * posix/Makefile (headers): Add bits/typesizes.h here.
446         * sysdeps/generic/bits/typesizes.h: New file.
447         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
448         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
449         * sysdeps/mach/hurd/bits/typesizes.h: New file.
450         * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
451         * sysdeps/unix/sysv/linux/bits/types.h: File removed.
452         * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
453         * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
454         * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
455         * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
456         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
457         * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
458         <bits/pthreadtypes.h> here, not in <bits/types.h>.
459         * signal/signal.h: Likewise.
461         * streams/stropts.h: Include <bits/xtitypes.h>.
462         * streams/Makefile (headers): Add bits/xtitypes.h here.
463         * sysdeps/generic/bits/xtitypes.h: New file.
464         * sysdeps/s390/bits/xtitypes.h: New file.
465         * sysdeps/ia64/bits/xtitypes.h: New file.
466         * sysdeps/x86_64/bits/xtitypes.h: New file.
468         * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
469         * sysdeps/generic/bits/ipctypes.h: New file.
470         * sysdeps/mips/bits/ipctypes.h: New file.
471         * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
472         * sysdeps/gnu/bits/msq.h: Likewise.
473         * sysvipc/sys/ipc.h: Likewise.
475 2002-10-22  Ulrich Drepper  <drepper@redhat.com>
477         * elf/dl-load.c (struct filebuf): For buf element to have the
478         alignment of ElfXX_Ehdr since this is what will be stored in it.
480 2002-10-22  Jakub Jelinek  <jakub@redhat.com>
482         * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
483         into pointer to locrec_offset.
484         (add_locale_to_archive): Adjust callers.  Free normalized_name right
485         before returning, not immediately after add_locale, pass it to
486         add_alias if not NULL instead of name.  Rename second normalized_name
487         occurence to nnormalized_codeset_name.
489         * locale/programs/locarchive.c (enlarge_archive): Make sure
490         string_size is always a multiple of 4.
491         Reported by Andreas Schwab <schwab@suse.de>.
493 2002-10-21  Andreas Schwab  <schwab@suse.de>
495         * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
496         caller to EXTRA instead of execve, since the latter has a
497         higher-priority implementation in linuxthreads.
499 2002-10-21  Roland McGrath  <roland@redhat.com>
501         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
502         slotinfo list's len member to the proper size, not just 1.
503         Initialize static_map.l_tls_initimage.
505         * elf/dl-open.c (dl_open_worker): Fix loop searching for
506         dtv_slotinfo_list element containing new modules' l_tls_modid.
508         * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
509         * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
510         * elf/Makefile (tests): Add tst-tls9.
511         (tests-static): Add tst-tls9-static.
512         (tst-tls9-static-ENV): New variable.
513         ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
515         * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
516         modids used by partially loaded modules being closed can't be known.
518 2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
520         * posix/Makefile: Add a test case for the bug reported by Aharon
521         Robbins <arnold@skeeve.com>.
522         * posix/bug-regex13.c: New file.
523         * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
525 2002-10-21  Ulrich Drepper  <drepper@redhat.com>
527         * csu/gmon-start.c: Pretty printing.
529 2002-10-19  Art Haas  <ahaas@neosoft.com>
531         * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
532         add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
533         add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
534         * configure: Regenerated.
536 2002-10-19  Roland McGrath  <roland@redhat.com>
538         * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
539         and then set $subdirs directly, because the new Autoconf breaks
540         compatibility in every way imaginable and insists on whining
541         about usage that worked since the dawn of time.
542         * configure: Regenerated.
544         * configure: Regenerated (using Autoconf 2.54).
545         * sysdeps/alpha/elf/configure: Likewise.
546         * sysdeps/generic/configure: Likewise.
547         * sysdeps/i386/elf/configure: Likewise.
548         * sysdeps/ia64/elf/configure: Likewise.
549         * sysdeps/mach/hurd/configure: Likewise.
550         * sysdeps/mach/configure: Likewise.
551         * sysdeps/unix/configure: Likewise.
552         * sysdeps/unix/common/configure: Likewise.
553         * sysdeps/unix/sysv/aix/configure: Likewise.
554         * sysdeps/unix/sysv/linux/configure: Likewise.
555         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
556         * sysdeps/x86_64/elf/configure: Likewise.
558         * config.make.in: Nix completely-soft nonsense.
559         * configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
560         of machine directories instead of fpu subdirectory.
561         * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
562         * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
563         * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
564         * sysdeps/powerpc/nofpu/sim-full.c: ... here.
565         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
566         * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
567         * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
568         * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
569         * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
570         * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
571         * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
572         * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
573         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
574         * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
575         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
576         * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
577         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
578         * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
579         * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
580         * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
581         * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
582         * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
583         * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
584         * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
585         * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
586         * sysdeps/powerpc/nofpu/fegetround.c: ... here.
587         * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
588         * sysdeps/powerpc/nofpu/fesetround.c: ... here.
589         * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
590         * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
591         * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
592         * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
593         * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
594         * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
595         * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
596         * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
597         * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
598         * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
599         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
600         * sysdeps/powerpc/nofpu/Versions: ... here, new file.
602 2002-10-19  Bruno Haible  <bruno@clisp.org>
604         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
606 2002-10-18  Roland McGrath  <roland@redhat.com>
608         * io/Makefile (routines): Add lchmod.
609         * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
610         * sysdeps/generic/lchmod.c: New file.
611         * sysdeps/mach/hurd/lchmod.c: New file.
612         * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
614 2002-10-18  Art Haas  <ahaas@neosoft.com>
616         * configure.in: Remove remaining AC_FD_CC macros, and replace
617         AC_FD_MSG with AS_MESSAGE_FD.
619 2002-10-18  Roland McGrath  <roland@redhat.com>
621         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
622         typos: VALUE -> FINALADDR.
624         * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
625         (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
626         (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
627         (inline_syscall6): Move these macros ...
628         * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
630         * configure.in (libc_link_dests, libc_link_sources): Remove these
631         variables and the AC_LINK_FILES call.
633         * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
634         change to put new symbols here instead of in GLIBC_2.2.
635         * sysdeps/powerpc/Subdirs: Move this file ...
636         * sysdeps/powerpc/soft-fp/Subdirs: ... here.
638 2002-10-07  Roland McGrath  <roland@redhat.com>
640         * sysdeps/generic/bits/time.h: Replaced with contents of the
641         sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
642         files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
643         and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
644         macros is ok even for architectures that don't now implement them.
645         * sysdeps/mach/hurd/bits/time.h: File removed.
646         * sysdeps/unix/sysv/linux/bits/time.h: File removed.
647         * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
648         * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
649         * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
650         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
652 2002-10-18  Jeff Bailey  <jbailey@gnu.org>
654         * configure.in: Replace obsolete AC_OUTPUT syntax with
655         AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
657         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
658         _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
660         * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
661         * sysdeps/alpha/elf/configure.in: Likewise.
662         * sysdeps/i386/elf/configure.in: Likewise.
663         * sysdeps/mach/hurd/configure.in: Likewise.
664         * sysdeps/x86_64/elf/configure.in: Likewise.
666         * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
668         * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
669         * sysdeps/generic/configure.in: Likewise.
670         * sysdeps/i386/elf/configure.in: Likewise.
671         * sysdeps/ia64/elf/configure.in: Likewise.
672         * sysdeps/mach/configure.in: Likewise.
673         * sysdeps/mach/hurd/configure.in: Likewise.
674         * sysdeps/unix/configure.in: Likewise.
675         * sysdeps/unix/common/configure.in: Likewise.
676         * sysdeps/unix/sysv/aix/configure.in: Likewise.
677         * sysdeps/unix/sysv/linux/configure.in: Likewise.
678         * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
679         * sysdeps/x86_64/elf/configure.in: Likewise.
681         * aclocal.m4: Use just the bits from AS_INIT that are needed for the
682         GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
683         that it's obvious when extra autoconf machinery is being dragged in.
685 2002-10-18  Roland McGrath  <roland@redhat.com>
687         * configure.in: Remove bogus echo included in
688         2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
689         * configure: Regenerated.
691 2002-10-18  Jakub Jelinek  <jakub@redhat.com>
693         * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
694         (statfs_filesize_max): New function.
695         * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
696         JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
697         ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
698         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
699         statfs_filesize_max.
700         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
701         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
702         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
704 2002-10-17  Roland McGrath  <roland@redhat.com>
706         * configure.in (MIG): Just AC_SUBST it here.
707         * configure: Regenerated.
708         * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
709         Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
710         * sysdeps/mach/configure: Regenerated.
712         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
713         and AC_PROVIDE([_AS_CR_PREPARE]).
715         * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
716         Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
718         * elf/dl-support.c: Move _dl_tls_* variables to ...
719         * sysdeps/generic/libc-tls.c: ... here.
721         * elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
722         allow IDX to be one past the current last slotinfo entry.
723         (_dl_close): Pass IMAP->l_init_called for that parameter.
725 2002-10-07  Andreas Schwab  <schwab@suse.de>
727         * aclocal.m4: Fix for autoconf 2.53.
728         * configure.in: Likewise.  Require autoconf 2.53.
730 2002-10-08  Richard Henderson  <rth@redhat.com>
732         * soft-fp/op-4.h: Handle carry correctly in
733         __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
734         __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
735         * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
737 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
739         * configure.in: Compute completely-soft.
740         * config.make.in: Make completely-soft available to sub-makes.
741         * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
742         gcc-double-routines.  Add sim-full.c.  Add fenv_const and
743         fe_nomask to libm-support.
744         * sysdeps/powerpc/soft-fp/sim-full.c: New file.
745         * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
746         * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
747         * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
748         * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
749         * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
750         * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
751         * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
752         * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
753         * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
754         * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
755         * sysdeps/powerpc/soft-fp/fegetround.c: New file.
756         * sysdeps/powerpc/soft-fp/fesetround.c: New file.
757         * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
758         * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
759         * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
760         * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
761         * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
762         * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
763         symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
764         __sim_round_mode.
765         * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
766         * sysdeps/powerpc/soft-float/sfp-machine.h: Define
767         FP_HANDLE_EXCEPTIONS.
768         Define FP_ROUNDMODE.
769         Redefine FP_* macros to correspond to the FE_* bit positions.
770         Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
771         Define externs for __sim_exceptions, __sim_disabled_exceptions,
772         __sim_round_mode, __simulate_exceptions.
773         * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
774         * sysdeps/powerpc/bits/fenv.h: ...to here.
776 2002-10-06  Jakub Jelinek  <jakub@redhat.com>
778         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
779         Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
780         Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
781         R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
782         __builtin_expect.
784 2002-10-15  Jakub Jelinek  <jakub@redhat.com>
786         * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
787         __libc_res_nsend): New prototypes.
788         * resolv/res_query.c (QUERYSIZE): Define.
789         (__libc_res_nquery): Renamed from res_nquery.  Added answerp
790         argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
791         fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
792         res_nsend, pass answerp.
793         (res_nquery): Changed into wrapper around __libc_res_nquery.
794         (__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
795         argument.  Call __libc_res_nquerydomain and __libc_res_nquery
796         instead of the non-__libc_ variants, pass them answerp.
797         (res_nsearch): Changed into wrapper around __libc_res_nsearch.
798         (__libc_res_nquerydomain): Renamed from res_nquerydomain.
799         Added answerp argument.  Call __libc_res_nquery instead of
800         res_nquery, pass answerp.
801         (res_nquerydomain): Changed into wrapper around
802         __libc_res_nquerydomain.
803         * resolv/res_send.c: Include sys/ioctl.h.
804         (MAXPACKET): Define.
805         (send_vc): Change arguments.  Reallocate answer buffer if it is
806         too small.
807         (send_dg): Likewise.
808         (__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
809         Reallocate answer buffer if it is too small and hooks are in use.
810         Adjust calls to send_vc and send_dg.
811         (res_nsend): Changed into wrapper around __libc_res_nsend.
812         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
813         just 1K answer buffer on the stack, use __libc_res_nsearch instead
814         of res_nsearch.
815         (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
816         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
817         (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
818         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
819         (gethostbyaddr): Similarly with __libc_res_nquery.
820         * resolv/Versions (libresolv): Export __libc_res_nquery and
821         __libc_res_nsearch at GLIBC_PRIVATE.
823 2002-10-17  Roland McGrath  <roland@redhat.com>
825         * configure.in: Grok --without-__thread and disable HAVE___THREAD.
826         * configure: Regenerated.
828         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
829         before performing the reloc, not after.
830         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
832 2002-10-17  Ulrich Drepper  <drepper@redhat.com>
834         * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
835         * locale/programs/linereader.c (lr_open): Likewise.
836         * locale/programs/charmap-dir.c (charmap_open): Likewise.
837         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
839 2002-10-17  Isamu Hasegawa  <isamu@yamato.ibm.com>
841         * posix/bug-regex11.c: Add a test case for the bug reported by
842         Paolo Bonzini <bonzini@gnu.org>.
843         * posix/regexec.c (sift_states_bkref): Use correct destination of
844         the back reference.
846 2002-10-17  Roland McGrath  <roland@redhat.com>
848         * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
849         * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
850         to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
851         * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
852         Call it after performing TPOFF relocs.
853         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
854         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
855         * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
857         * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
858         when closing a partially-initialized object.
860         * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
861         instead of _dl_fatal_printf when we see PT_TLS.
863         * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
864         instead of $(libof-$<).
866 2002-10-16  Roland McGrath  <roland@redhat.com>
868         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
869         instead of += to append, to be sure $(lib) gets expanded at defn time.
870         (libof-$(cpp-src)): New variable, define this instead.
871         * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
872         (lib): Don't use override.
873         (CPPFLAGS-$(lib)): New variable, put -D's here.
874         * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
875         Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
876         LIB found by $(libof-*) for basename, target, or source.
877         * Makerules (CPPFLAGS-nonlib): New variable.
878         * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
879         * locale/Makefile (lib): Likewise.
880         * sunrpc/Makefile (lib): Likewise.
882         * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
883         * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
884         * sysdeps/unix/sysv/linux/pathconf.h: New file.
885         (statfs_link_max): New function, guts from fpathconf.c.
886         * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
887         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
888         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
889         to use the linux/pathconf.c code by #include rather than duplication.
890         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
892 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
894         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
895         Use __libc_errno only for libc itself.
897 2002-10-16  Andreas Jaeger  <aj@suse.de>
899         * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
901 2002-10-16  Ulrich Drepper  <drepper@redhat.com>
903         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
904         Use __libc_errno only for libc itself.
906 2002-10-15  Roland McGrath  <roland@redhat.com>
907             Jakub Jelinek  <jakub@redhat.com>
909         * sysdeps/unix/sysv/linux/Makefile
910         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
911         sparc/Makefile to produce a bi-arch file as needed.
912         That's now parameterized by the variable $(64bit-predefine).
913         Use LC_ALL=C for `comm' commands in that rule.
914         No longer conditional on [$(no_syscall_list_h)].
915         * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
916         (64bit-predefine): New variable.
917         * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
918         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
919         * sysdeps/unix/sysv/linux/powerpc/Makefile
920         (64bit-predefine): New variable.
922 2002-10-15  Roland McGrath  <roland@redhat.com>
924         * sysdeps/unix/sysv/linux/Makefile
925         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
927         * login/utmp-private.h: Declare __libc_utmp_lock.
928         * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
929         and call __libc_utmp_jump_table functions directly, instead of using
930         __setutent et al.
932         * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
933         * sysdeps/unix/sysv/linux/configure: Regenerated.
935         * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
936         (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
937         Use int32_t for ll_time.
938         (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
939         Use int32_t instead of long int for ut_session.
940         Use an anonymous struct with 32-bit fields for ut_tv.
941         * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
942         (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
943         here as in utmp.h for `struct utmp'.
944         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
945         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
946         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
947         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
948         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
949         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
951         * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
952         of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
953         All the following files were identical or equivalent to it.
954         * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
955         * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
956         * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
957         * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
958         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
959         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
960         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
961         * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
962         * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
963         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
965         * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
966         instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
967         Other than the previously incorrect sign of msg_iovlen, this is a
968         no-op on 32-bit platforms.  On 64-bit platforms it makes this header
969         match their layouts as well, so the following are now identical to it.
970         * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
971         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
972         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
973         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
974         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
976 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
978         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
979         Define for 2.4+ kernels.
981         * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
982         are known to have the vfork syscall.  Don't confuse the CPUs
983         branch prediction unit by jumping to the return address.
985         * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
986         support for reiserfs and xfs.
988         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
989         XFS link count.
990         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
991         and XFS_LINK_MAX.
992         Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
994 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
996         * include/libc-symbols.h (attribute_tls_model_ie): Define.
997         * include/errno.h (errno): Define to __libc_errno in libc.so.
998         Add attribute_tls_model_ie.
999         * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
1000         Add attribute_tls_model_ie.
1001         * include/resolv.h (_res): Define to __libc_res in libc.so.  Add
1002         attribute_tls_model_ie.
1003         * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
1004         (h_errno): Define.
1005         * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
1006         (_res): Define.
1007         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
1008         attribute_tls_model_ie.
1009         * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
1010         __thread.
1011         * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
1012         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
1013         __libc_errno in USE___THREAD case.
1014         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1015         Likewise.
1016         * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
1017         __attribute__((tls_model (""))).
1018         * configure: Rebuilt.
1019         * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
1021 2002-10-15  Ulrich Drepper  <drepper@redhat.com>
1023         * timezone/asia: Update from tzdata2002d.
1024         * timezone/australasia: Likewise.
1025         * timezone/iso3166.tab: Likewise.
1026         * timezone/southamerica: Likewise.
1027         * timezone/zone-tab: Likewise.
1029 2002-10-15  Roland McGrath  <roland@redhat.com>
1031         * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
1032         Adjust TCB pointer before calling free, so we get the whole block.
1034 2002-10-14  Roland McGrath  <roland@redhat.com>
1036         * sysdeps/unix/sysv/linux/x86_64/sigaction.c
1037         [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
1038         extern using attribute_hidden instead of static, avoids warning.
1040 2002-10-09  Jakub Jelinek  <jakub@redhat.com>
1042         * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
1043         * sysdeps/unix/sysv/linux/configure: Rebuilt.
1045 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
1047         * po/sv.po: Update from translation team.
1049 2002-10-12  H.J. Lu  <hjl@gnu.org>
1051         * sunrpc/thrsvc.c (PROCQUIT): New.
1052         (struct rpc_arg): New.
1053         (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
1054         (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
1055         (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
1056         (main): Modified for struct rpc_arg *.
1058 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
1060         * dirent/scandir.c: Rearrange code a bit to reduce binary size.
1062 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
1064         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
1065         (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
1066         in ld.so even if __thread is supported.
1068 2002-10-13  Jakub Jelinek  <jakub@redhat.com>
1070         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1071         Add hack to prevent the compiler from clobbering the signal context.
1072         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
1073         Likewise.
1074         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
1075         Likewise.
1077 2002-10-14  Andreas Jaeger  <aj@suse.de>
1079         * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
1080         Guido Guenther <agx@sigxcpu.org>.
1082 2002-10-14  Ulrich Drepper  <drepper@redhat.com>
1084         * po/sk.po: Update from translation team.
1086 2002-09-26  Roland McGrath  <roland@redhat.com>
1088         * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
1089         dynamic string tag.
1090         * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
1091         DL_DST_LIB based on $(slibdir).
1093 2002-10-13  Roland McGrath  <roland@frob.com>
1095         * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
1097         * sysdeps/mach/hurd/getresuid.c: New file.
1098         * sysdeps/mach/hurd/getresgid.c: New file.
1099         * sysdeps/mach/hurd/setresuid.c: New file.
1100         * sysdeps/mach/hurd/setresgid.c: New file.
1102         * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
1103         setresgid): Declare them.
1104         * NEWS: Mention it.
1105         * include/unistd.h
1106         (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
1107         add libc_hidden_proto.
1108         * posix/Versions (libc: GLIBC_2.3.2): New set.  Add
1109         getresuid, getresgid, setresuid, setresgid here.
1110         * Versions.def (libc): Define GLIBC_2.3.2 set.
1111         * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
1112         Add libc_hidden_def.
1113         * sysdeps/generic/getresgid.c (__getresgid): Likewise.
1114         * sysdeps/generic/setresgid.c: New file.
1115         * sysdeps/generic/setresuid.c: New file.
1116         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1117         (sysdep_routines): Don't add getresuid and getresgid here.
1118         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
1119         (sysdep_routines): Don't add setresuid and setresgid here.
1120         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1121         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1122         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1123         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1124         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1125         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1126         * posix/Makefile (routines): Add them all here instead.
1127         * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
1128         __getresuid.  Add libc_hidden_def for that, and weak alias to old name.
1129         * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
1130         __getresgid.  Add libc_hidden_def for that, and weak alias to old name.
1131         * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
1132         [! __NR_setresuid]: Include generic file.
1133         * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
1134         __setresgid.  Add libc_hidden_def for that, and weak alias to old name.
1135         [! __NR_setresuid]: Include generic file.
1136         * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
1137         Caller is - now, not EXTRA.
1138         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
1139         (setresuid, setresgid, getresuid, getresgid): Likewise.
1140         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
1141         Add these calls here.
1142         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
1143         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1144         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1145         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1146         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1149         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1150         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1152         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1153         (sysdep_routines): Add setfsuid and setfsgid here.
1154         * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
1155         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
1156         * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1157         * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1158         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1159         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1160         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1161         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1163         * hurd/errno.c: Renamed to ...
1164         * hurd/errno-loc.c: ... this.
1165         * hurd/Makefile (routines): errno -> errno-loc
1167 2002-10-13  Ulrich Drepper  <drepper@redhat.com>
1169         * po/de.po: Update from translation team.
1171         * MakeTAGS: Add -E flag to xgettext runs.
1173 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
1175         * po/fr.po: Update from translation team.
1177         * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
1178         Optimize a bit for use in glibc.
1180 2002-10-12  Roland McGrath  <roland@redhat.com>
1182         * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
1183         Some machines are slow.  Guido Guenther <agx@sigxcpu.org> has one.
1185 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
1187         * po/sv.po: Update from translation team.
1189 2002-10-11  Isamu Hasegawa  <isamu@yamato.ibm.com>
1191         * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
1192         OP_CONTEXT_NODE.
1193         (regfree): Likewise.
1194         (create_initial_state): Likewise.
1195         (analyze): Remove the substitutions which became useless.
1196         (calc_first): Likewise.
1197         (calc_epsdest): Use edests of OP_BACK_REF in case that it has
1198         epsilon destination.
1199         (duplicate_node_closure): New function.
1200         (duplicate_node): Remove the handling OP_CONTEXT_NODE.
1201         (calc_inveclosure): Likewise.
1202         (calc_eclosure): Likewise.
1203         (calc_eclosure_iter): Invoke duplicate_node_closure instead of
1204         direct invocation of duplicate_node.
1205         (parse): Don't use comma operator in the return to avoid compiler
1206         warning.
1207         (parse_reg_exp): Likewise.
1208         (parse_branch): Likewise.
1209         (parse_expression): Likewise.
1210         (parse_sub_exp): Likewise.
1211         (parse_dup_op): Likewise.
1212         * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
1213         which became useless.
1214         (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
1215         (create_cd_newstate): Likewise.
1216         * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
1217         (re_token_t): Likewise.
1218         (re_dfa_t): Likewise.
1219         (re_node_set_remove): New macro.
1220         * posix/regexec.c (check_matching): Remove the handling
1221         OP_CONTEXT_NODE.
1222         (check_halt_node_context): Likewise.
1223         (proceed_next_node): Likewise.
1224         (pop_fail_stack): Fix the memory leak.
1225         (set_regs): Likewise.
1226         (free_fail_stack_return): New function.
1227         (sift_states_backward): Fix the memory leak.  Remove the handling
1228         OP_CONTEXT_NODE.
1229         (update_cur_sifted_state): Append some if clause to avoid redundant
1230         call.
1231         (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
1232         back reference.
1233         (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
1234         (check_subexp_limits): Likewise.
1235         (search_subexp): Likewise.
1236         (sift_states_bkref): Likewise.
1237         (transit_state_mb): Likewise.
1238         (transit_state_bkref_loop): Likewise.
1239         (transit_state_bkref_loop): Likewise.
1240         (group_nodes_into_DFAstates): Likewise.
1241         (check_node_accept): Likewise.
1242         (sift_ctx_init): Add initializing.
1244 2002-10-12  Ulrich Drepper  <drepper@redhat.com>
1246         * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
1247         __builtin_expect.
1249 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
1251         * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
1252         duplicated variable c.
1254         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
1255         if possible.
1257         * sysdeps/unix/sysv/linux/i386/sysdep.h
1258         (INTERNAL_SYSCALL_ERROR_P): New define.
1259         (INTERNAL_SYSCALL_ERRNO): Likewise.
1261         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
1262         Add hack to prevent the compiler from clobbering the signal context.
1264 2002-10-11  Roland McGrath  <roland@redhat.com>
1266         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1267         Fix typos.
1269         * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
1270         * sysdeps/sh/dl-lookupcfg.h: File removed.
1271         * sysdeps/i386/dl-lookupcfg.h: File removed.
1273         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
1274         missing labels and ; from last change.
1276         * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
1277         number literals, so they are doubles instead of ints.
1279 2002-10-09  Roland McGrath  <roland@redhat.com>
1281         * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
1282         changed from [USE_TLS && HAVE___THREAD].
1284         * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
1285         Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
1286         * sysdeps/x86_64/dl-machine.h
1287         (elf_machine_type_class, elf_machine_rela): Likewise.
1288         * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
1289         Likewise.
1291         * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
1292         * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
1293         (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
1295         * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
1296         instead of ___tls_get_addr.
1297         (___tls_get_addr_internal): Add attribute_hidden to decl.
1299         * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
1300         _dl_error_catch_tsd.
1301         * elf/rtld.c (startup_error_tsd): New function.
1302         (dl_main): Point _dl_error_catch_tsd at that.
1303         * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
1304         use new function pointer instead.
1305         * elf/dl-tsd.c: New file.
1306         * elf/Makefile (routines): Add it.
1308 2002-10-07  Roland McGrath  <roland@redhat.com>
1310         * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
1311         writev if it's available.  Otherwise if [RTLD_PRIVATE_ERRNO] then
1312         take _dl_load_lock around calling __writev.
1314         * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
1315         (INLINE_SYSCALL): Use that.
1317         * sysdeps/generic/dl-sysdep.h: New file.
1318         * sysdeps/mach/hurd/dl-sysdep.h: New file.
1319         * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
1320         * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
1321         [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
1322         access it directly.
1323         * elf/dl-minimal.c (__errno_location): Removed.
1324         * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1325         Use GOTOFF access for errno.
1326         * sysdeps/unix/sysv/linux/i386/sysdep.h
1327         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1329         * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1330         Use PC-relative access for errno.
1331         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1332         [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1334         * include/tls.h: New file.
1335         (USE___THREAD): New macro.
1336         Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
1337         libc or libpthread.
1338         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
1339         changed from [USE_TLS && HAVE___THREAD].
1340         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1341         * sysdeps/unix/i386/sysdep.S: Likewise.
1342         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1343         * include/errno.h: Likewise.
1344         * include/netdb.h: Likewise.
1345         * include/resolv.h: Likewise.
1347         * sysdeps/generic/errno.c: New file.
1348         * csu/Makefile (aux): New variable, list errno.
1349         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
1350         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1351         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1352         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1353         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1354         * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
1355         * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
1356         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
1357         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1358         * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
1359         * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
1360         * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
1361         * sysdeps/unix/alpha/sysdep.S: Likewise.
1362         * sysdeps/generic/start.c: Likewise.
1363         * sysdeps/unix/start.c: Likewise.
1364         * sysdeps/unix/arm/start.c: Likewise.
1365         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1366         * sysdeps/unix/sparc/start.c: Likewise.
1367         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1368         * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
1370         * manual/search.texi (Tree Search Function, Hash Search Function):
1371         Mention search.h clearly.
1373 2002-10-05  Roland McGrath  <roland@redhat.com>
1375         * elf/dl-fxstat64.c: File removed.
1376         * elf/dl-xstat64.c: File removed.
1377         * elf/Makefile (rtld-routines): Remove them.
1378         * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
1379         Instead, use strong_alias instead of versioned_symbol in the
1380         !SHLIB_COMPAT case.
1381         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1382         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1384         * include/shlib-compat.h
1385         (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
1386         [! NOT_IN_libc] (IS_IN_libc): Define it.
1387         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
1388         * elf/Makefile (CPPFLAGS-.os): Likewise.
1390         * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
1391         Return the status instead of calling exit.
1393         * Makeconfig (CFLAGS): Prepend -std=gnu99.
1394         * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
1395         Remove superfluous rm command, whose @ plus make bugs hid
1396         all these commands from the make output.
1398         * include/stubs-prologue.h: New file.  Give #error under #ifdef _LIBC.
1399         * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
1400         Use that file's contents instead of literal echo's for the prologue.
1401         * include/features.h: Include <gnu/stubs.h> unconditionally.
1402         * include/gnu/stubs.h: New file.
1404 2002-09-30  Roland McGrath  <roland@redhat.com>
1406         * elf/rtld-Rules: New file.
1407         * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
1408         $(objpfx)rtld-libc.a): New targets.
1409         (generated): Add them.
1410         (reloc-link): Remove -o $@ from the variable.
1411         ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
1412         (distribute): Add rtld-Rules.
1413         (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
1414         * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
1415         (common-mostlyclean, common-clean): Clean up rtld-* files.
1416         * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
1418 2002-10-11  Roland McGrath  <roland@redhat.com>
1420         * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
1421         now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
1423         * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
1424         proper set of no-op insn prefixes.
1426         * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
1428 2002-10-11  Ulrich Drepper  <drepper@redhat.com>
1430         * sysdeps/unix/sysv/linux/execve.c: Don't try calling
1431         __pthread_kill_other_threads_np.
1433         * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
1435 2002-10-08  Roland McGrath  <roland@redhat.com>
1437         * locale/newlocale.c (__newlocale): If setting all categories to "C",
1438         just return &_nl_C_locobj instead of copying it.
1439         * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
1440         * locale/duplocale.c (__duplocale): Likewise.
1442 2002-10-07  Roland McGrath  <roland@frob.com>
1444         * config.h.in (HAVE_I386_SET_GDT): New #undef.
1445         * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
1446         * sysdeps/mach/configure: Regenerated.
1448 2002-10-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1451         Add all necessary register outputs for syscall-clobbered registers.
1453 2002-10-02  David Mosberger  <davidm@hpl.hp.com>
1455         * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
1456         Itanium 2 (and Itanium).
1457         Fix unwind directives and make it fit in 80 columns.
1458         * sysdeps/ia64/memset.S: Likewise.
1459         * sysdeps/ia64/memcpy.S: Likewise.
1460         Move jump table to .rodata section.
1462 2002-10-03  Roland McGrath  <roland@frob.com>
1464         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
1465         clobbers to asm.
1467 2002-10-10  Andreas Jaeger  <aj@suse.de>
1469         * sysdeps/x86_64/_mcount.S: Restore correct registers.
1471 2002-10-10  Ulrich Drepper  <drepper@redhat.com>
1473         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
1475 2002-10-09  Ulrich Drepper  <drepper@redhat.com>
1477         * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
1478         _dl_allocate_tls_init.  Add rtld_hidden_proto.
1479         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
1480         rtld_hidden_def.
1481         * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
1483         * version.h (VERSION): Bump to 2.3.1.
1485         * Make-dist: Add back one of the tar invocations removed before.
1487         * stdlib/Makefile (distribute): Add allocalim.h.
1489         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1490         (__libc_tsd_address): Use correct variable name.
1491         Patch by Stefan Jones <stefan.jones@multigig.com>.
1493         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
1494         Reported by edwardsg@sgi.com [PR libc/4678].
1496         * Versions.def (libc): Add GLIBC_2.3.1.
1497         (libpthread): Add GLIBC_2.3.1.
1499         * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
1500         and __sigtimedwait.
1501         * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
1502         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
1503         libc_hidden_def.
1504         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
1505         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1507         * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
1508         * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
1509         and make old name an alias.
1510         * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
1511         and make old name an alias.
1512         * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
1513         __libc_msgsnd.
1515         * include/sys/uio.h: Declare __libc_readv and __libc_writev.
1516         * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
1517         __libc_writev.
1518         * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
1519         old name an alias.
1520         * sysdeps/posix/readv.c: Likewise
1521         * sysdeps/unix/sysv/aix/readv.c: Likewise.
1522         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1523         * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
1524         old name an alias.
1525         * sysdeps/posix/writev.c: Likewise
1526         * sysdeps/unix/sysv/aix/writev.c: Likewise.
1527         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1529         * include/sys/wait.h: Declare __waitid.
1530         * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
1531         * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
1532         name an alias.
1533         * sysdeps/posix/waitid.c: Likewise.
1534         * sysdeps/unix/sysv/aix/waitid.c: Likewise.
1536         * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
1538 2002-10-07  Jakub Jelinek  <jakub@redhat.com>
1540         * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
1541         prototypes.
1542         (__MAX_ALLOCA_CUTOFF): Define.
1543         Include allocalim.h.
1544         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1545         _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
1546         host_buffer depending on __libc_use_alloca.
1547         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1548         _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
1549         net_buffer depending on __libc_use_alloca.
1550         * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
1551         buf depending on __libc_use_alloca.
1552         * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
1553         * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
1554         instead of hardcoded constants.
1555         Pass proper size argument to alloca and compute end for wide char
1556         version.
1557         * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
1558         instead of hardcoded constants.
1559         * string/strcoll.c (strcoll): Likewise.
1560         * string/strxfrm.c (strxfrm): Likewise.
1561         * sysdeps/posix/readv.c (__readv): Likewise.
1562         * sysdeps/posix/writev.c (__writev): Likewise.
1563         * sysdeps/generic/allocalim.h: New file.
1565 2002-10-08  Roland McGrath  <roland@redhat.com>
1567         * configure.in (aux_missing warning): Change "too old" to
1568         "incompatible versions", since for autoconf it's "too new" right now.
1569         * configure: Regenerated.
1571         * configure.in (AUTOCONF): New check to set it.  Set to "no" if the
1572         one found doesn't work on our configure.in.
1573         * configure: Regenerated.
1574         * config.make.in (AUTOCONF): New substituted variable.
1575         * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
1576         (autoconf-it): ... here, use that instead of defining conditionally.
1577         Use $(AUTOCONF) instead of literal autoconf.
1578         [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
1579         with this condition.
1580         * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
1582 2002-10-08  Ulrich Drepper  <drepper@redhat.com>
1584         * Make-dist (dist): Cleanup a bit.  We are not interested in the
1585         14 char filename limit anymore.  Remove intermediate files and
1586         symlinks.
1588 2002-10-05  Ulrich Drepper  <drepper@redhat.com>
1590         * po/sk.po: Update from translation team.
1591         * po/tr.po: Likewise.
1592         * po/gl.po: Likewise.
1594 2002-10-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1596         * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
1598 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
1600         * version.h (RELEASE): Change to stable.
1602 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
1604         * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
1605         __syscall_exit_group): New prototypes.
1607 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
1609         * glibc 2.3 released.
1612 See ChangeLog.13 for earlier changes.