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