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