1 2003-01-12 Ulrich Drepper <drepper@redhat.com>
3 * elf/dl-close.c (_dl_close): Type typo, must be == not = in
4 search for removed searchlist. Reported by Roland McGrath.
6 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
9 * io/ftw.c (ftw_startup): Use correct name in check for symlink
10 without existing target. Patch by Jim Meyering.
12 * Makerules (build-shlib-helper): Don't use -z defs linker option
13 if no-z-defs is defined either.
15 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
17 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
20 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
22 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
23 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
25 2003-01-12 Ulrich Drepper <drepper@redhat.com>
27 * io/ftwtest-sh: Add test case for relative path with /. at the end.
29 2003-01-12 Jim Meyering <jim@meyering.net>
31 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
32 use the basename if we've already chdir'd into its parent directory.
34 2003-01-12 Ulrich Drepper <drepper@redhat.com>
36 * io/ftw.c (process_entry): Use relative path when using chdir()
37 to change directory after call to ftw_dir.
38 * io/ftwtest-sh: Add test for relative path argument to nftw()
39 with FTW_CHDIR option.
41 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
43 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
45 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
47 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
48 (INTERNAL_SYSCALL): Make use of ERR parameter.
49 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
50 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
51 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
52 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
54 2002-01-09 Richard Henderson <rth@redhat.com>
56 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
57 DTPREL64 and TPREL64 without loadbase applied.
59 2002-01-09 Richard Henderson <rth@redhat.com>
61 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
64 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
65 * sysdeps/unix/alpha/sysdep.h: ... here.
66 (PSEUDO_LOADGP): Remove.
67 (PSEUDO_PROLOGUE): Load GP in non-pic case.
68 (SYSCALL_ERROR_LABEL): New.
69 (PSEUDO): Use it in error branch.
70 (PSEUDO_END): Add $syscall_error label.
72 2003-01-12 Andreas Jaeger <aj@suse.de>
74 * math/bits/mathcalls.h: Round is a const function.
76 2003-01-11 Jim Meyering <jim@meyering.net>
78 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
79 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
80 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
81 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
82 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
83 [!_LIBC] (internal_function, dirent64, MAX): Define.
84 (__set_errno): Define if not already defined.
85 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
86 the basename, not the entire file name.
87 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
88 the basename, not the entire file name.
90 2003-01-12 Ulrich Drepper <drepper@redhat.com>
92 * string/tester.c (test_strcpy): Disable last added strcpy until
95 2003-01-11 Philip Blundell <philb@gnu.org>
97 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
99 2003-01-11 Andreas Schwab <schwab@suse.de>
101 * Makerules: Add vpath for %.dynsym and %.so so that the
102 implicit rule chaining for check-abi works.
104 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
106 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
109 2003-01-11 Jakub Jelinek <jakub@redhat.com>
111 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
112 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
114 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
115 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
116 Ensure libc.so in DT_NEEDED.
117 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
118 CHECK_STATIC_TLS before l_tls_offset use.
119 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
121 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
122 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
123 Allocate TLS_PRE_TCB_SIZE bytes below result.
124 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
125 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
126 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
127 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
128 bytes below result and add tcb_offset to memsz.
129 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
130 * sysdeps/ia64/dl-machine.h: Include tls.h.
131 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
133 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
134 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
135 * sysdeps/ia64/libc-tls.c: New file.
137 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
139 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
140 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
141 Fix type. Move definition out of #if.
142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
150 ftruncate64, pread64, pwrite64, truncate64 entries.
151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
152 (INLINE_SYSCALL): New version that supports function call like
153 syscalls. Add __builtin_expect.
154 (LOADARGS_n): Add argument size safety checks.
155 (INTERNAL_SYSCALL): New Macro.
156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
157 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
158 redefinition of elf_fpreg_t and elf_fpregset_t.
160 2003-01-12 Ulrich Drepper <drepper@redhat.com>
162 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
163 simplify test for unloading. If loader of a DSO is unloaded do not
164 use its scope anymore. Fall back to own scope and adjust opencounts.
165 Fix several comments.
166 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
167 the l_searchlist, not only for l_initfini.
169 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
170 dependencies if objects cannot be removed. Remove object with the
171 definition as not unloadable if necessary.
173 * elf/reldep6.c: Create relocation dependency before closing the first
176 2003-01-10 Guido Günther <agx@sigxcpu.org>
178 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
179 * sysdeps/unix/mips/brk.S: Likewise.
180 * sysdeps/unix/mips/pipe.S: Likewise.
182 2003-01-10 Andreas Schwab <schwab@suse.de>
184 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
186 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
187 are known to have the vfork syscall.
189 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
191 * sysdeps/unix/sysv/linux/kernel-features.h
192 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
193 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
194 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
196 2003-01-09 Jakub Jelinek <jakub@redhat.com>
198 * elf/Makefile: Add rules to build and run reldep9 test.
199 * elf/reldep9.c: New file.
200 * elf/reldep9mod1.c: New file.
201 * elf/reldep9mod2.c: New file.
202 * elf/reldep9mod3.c: New file.
204 2003-01-09 Jakub Jelinek <jakub@redhat.com>
206 * elf/Makefile: Add rules to build and run nodelete2 test.
207 * elf/nodelete2.c: New file.
208 * elf/nodel2mod1.c: New file.
209 * elf/nodel2mod2.c: New file.
210 * elf/nodel2mod3.c: New file.
212 2003-01-09 Jakub Jelinek <jakub@redhat.com>
214 * posix/test-vfork.c (noop): Add __attribute_noinline__.
215 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
216 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
218 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
219 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
220 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
221 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
222 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
224 2003-01-09 Andreas Schwab <schwab@suse.de>
226 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
228 2003-01-08 Ulrich Drepper <drepper@redhat.com>
230 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
231 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
233 (INTERNAL_SYSCALL_DECL): Define.
235 2003-01-06 Jakub Jelinek <jakub@redhat.com>
237 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
238 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
240 (INTERNAL_SYSCALL_DECL): Define.
241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
242 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
243 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
244 (INLINE_SYSCALL): Adjust.
245 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
246 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
247 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
248 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
249 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
250 add err argument to INTERNAL_SYSCALL* macros.
251 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
252 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
253 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
254 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
256 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
257 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
258 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
260 2003-01-07 Ulrich Drepper <drepper@redhat.com>
262 Unify symbols in user namespace exported by libc.so and libc.a.
263 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
264 argp_fmtstream_free, and argp_fmtstream_printf.
265 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
266 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
267 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
268 argp_fmtstream_point.
269 * gmon/gmon.c: Don't define write_profiling.
270 * libio/genops.c: Don't define _cleanup.
272 * intl/explodename.c (_nl_find_language.c): Mark as static.
273 * intl/loadinfo.h: Remove _nl_find_language prototype.
275 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
276 * libio/libioP.h: Remove declaration.
278 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
279 * libio/libioP.h: Remove declaration.
281 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
282 * sysdeps/generic/framestate.c: Define STATIC before including
285 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
287 2003-01-06 Philip Blundell <philb@gnu.org>
289 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
290 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
292 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
294 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
295 (SYSCALL_ERROR): New.
296 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
298 (INTERNAL_SYSCALL): Define.
299 (INLINE_SYSCALL): Use it.
300 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
301 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
302 SYSCALL_ERROR in place of __syscall_error.
304 2003-01-07 Jakub Jelinek <jakub@redhat.com>
306 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
307 __bswap_32, __bswap_64): Put x into temporary variable
309 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
311 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
312 __bswap_32, __bswap_64): Put x into temporary variable
314 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
316 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
319 2003-01-07 Jakub Jelinek <jakub@redhat.com>
321 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
324 2003-01-07 Jakub Jelinek <jakub@redhat.com>
326 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
327 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
329 2003-01-07 Ulrich Drepper <drepper@redhat.com>
331 * math/libm-test.inc (significand_test): New function.
334 2003-01-06 Roland McGrath <roland@redhat.com>
336 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
338 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
339 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
340 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
342 * string/tester.c (test_strcpy): Add test with `void *' arguments.
344 2003-01-06 Ulrich Drepper <drepper@redhat.com>
346 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
347 return significand and not the exponent.
348 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
350 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
351 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
353 * malloc/malloc.c: Mark all _int_* functions as static.
355 2003-01-06 Jakub Jelinek <jakub@redhat.com>
357 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
358 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
360 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
362 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
364 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
368 ftruncate64, truncate64, pread64 and pwrite64 entries.
369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
370 (INLINE_SYSCALL): Add __builtin_expect.
371 (LOADARGS_n): Add argument size safety checks.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
379 2003-01-06 Jakub Jelinek <jakub@redhat.com>
381 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
382 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
383 (LIBC_CANCEL_HANDLED): Add.
385 * sysdeps/unix/sysv/linux/alpha/sysdep.h
386 (inline_syscall_r0_constraint): Rename to...
387 (inline_syscall_r0_out_constraint): ... this. Add =.
388 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
390 2003-01-06 Andreas Schwab <schwab@suse.de>
392 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
393 sure this is always inlined.
394 (elf_machine_rela): Likewise.
396 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
398 2003-01-04 Roland McGrath <roland@redhat.com>
400 * Makeconfig (+mkdep): Add -MP flag.
401 Suggested by Art Haas <ahaas@airmail.net>.
403 2003-01-05 Andreas Schwab <schwab@suse.de>
405 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
407 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
409 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
410 SYSCALL_ERROR_HANDLER.
411 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
412 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
413 Add support for cancellation handling.
414 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
415 SYSCALL_ERROR_HANDLER.
416 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
417 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
418 Add support for cancellation handling.
419 (SYSCALL_ERROR_HANDLER): Define PIC variants.
421 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
424 __syscall_pread64 and __syscall_pwrite64 cancelable.
425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
426 (INTERNAL_SYSCALL): New macro.
427 (LOADARGS_0, LOADARGS_1): Fix.
429 2003-01-05 Ulrich Drepper <drepper@redhat.com>
431 * Makerules (build-shlip-helper): Unless told otherwise, add
432 -Wl,-z,defs to linker command line.
433 * rt/Makefile (librt.so): Link with ld.so.
434 * dlfcn/Makefile (libdl.so): Likewise.
436 2003-01-05 Jakub Jelinek <jakub@redhat.com>
438 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
439 cancellation handling.
440 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
441 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
443 2003-01-04 Ulrich Drepper <drepper@redhat.com>
445 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
446 order of parameters passed to kill.
448 2003-01-04 Andreas Schwab <schwab@suse.de>
450 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
452 2002-01-03 Paul Eggert <eggert@twinsun.com>
454 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
455 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
456 when compiling Bison 1.875's `bitset bset = obstack_alloc
457 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
459 2003-01-04 Ulrich Drepper <drepper@redhat.com>
461 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
463 Correct reference counter in case SIGQUIT handler installation failed.
465 2003-01-03 Ulrich Drepper <drepper@redhat.com>
467 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
468 Define using _Pragma(weak ...).
470 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
472 * resolv/res_libc.c: Provide declaration for __res_init_weak and
473 reorder declarations.
475 2003-01-03 Art Haas <ahaas@airmail.net>
477 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
478 initializer syntax to C99.
479 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
480 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
481 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
482 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
483 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
484 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
485 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
486 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
487 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
488 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
489 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
490 * localedata/tests-mbwc/dat_mblen.c: Likewise.
491 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
492 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
493 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
494 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
495 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
496 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
497 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
498 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
499 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
500 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
501 * localedata/tests-mbwc/dat_towlower.c: Likewise.
502 * localedata/tests-mbwc/dat_towupper.c: Likewise.
503 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
504 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
505 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
506 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
507 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
508 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
509 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
510 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
511 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
512 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
513 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
514 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
515 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
516 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
517 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
518 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
519 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
520 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
521 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
522 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
523 * localedata/tests-mbwc/dat_wctob.c: Likewise.
524 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
525 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
526 * localedata/tests-mbwc/dat_wctype.c: Likewise.
527 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
529 2003-01-03 Richard Henderson <rth@redhat.com>
531 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
532 (inline_syscall_r0_constraint): New.
533 (inline_syscall[0-6]): Use them.
535 2003-01-03 Jakub Jelinek <jakub@redhat.com>
537 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
538 Add rtld_hidden_proto.
539 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
540 (_dl_allocate_tls): Likewise. Remove INTDEF.
542 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
544 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
545 Morita <toshiyasu.morita@hsa.hitachi.com>.
546 * sysdeps/sh/memcpy.S: Likewise.
548 2003-01-02 Ulrich Drepper <drepper@redhat.com>
550 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
551 any, but unify the test.
553 2003-01-02 Jakub Jelinek <jakub@redhat.com>
555 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
556 sigaction): Protect weak_alias and libc_hidden_weak with
557 #ifndef LIBC_SIGACTION.
558 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
559 sigaction): Likewise.
560 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
561 sigaction): Likewise.
562 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
563 sigaction): Likewise.
564 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
565 sigaction): Likewise.
566 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
567 sigaction): Likewise.
568 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
569 sigaction): Likewise.
570 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
571 sigaction): Likewise. Remove SIGCANCEL handling here.
572 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
575 2003-01-02 Art Haas <ahaas@airmail.net>
577 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
579 2003-01-02 Ulrich Drepper <drepper@redhat.com>
581 * posix/getconf.c: Update copyright year.
582 * nss/getent.c: Likewise.
583 * nscd/nscd_nischeck.c: Likewise.
584 * iconv/iconvconfig.c: Likewise.
585 * iconv/iconv_prog.c: Likewise.
586 * elf/ldconfig.c: Likewise.
587 * catgets/gencat.c: Likewise.
588 * csu/version.c: Likewise.
589 * elf/ldd.bash.in: Likewise.
590 * elf/sprof.c (print_version): Likewise.
591 * locale/programs/locale.c: Likewise.
592 * locale/programs/localedef.c: Likewise.
593 * nscd/nscd.c (print_version): Likewise.
594 * debug/xtrace.sh: Likewise.
595 * malloc/memusage.sh: Likewise.
596 * malloc/mtrace.pl: Likewise.
598 2003-01-01 Jakub Jelinek <jakub@redhat.com>
600 * io/sys/stat.h: Include time.h with __need_timespec even if
601 __USE_MISC is defined but __USE_XOPEN is not.
603 2003-01-01 Andreas Jaeger <aj@suse.de>
605 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
606 type to avoid strict aliasing problem.
607 (_nss_dns_gethostbyname2_r): Likewise.
608 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
609 (_nss_dns_getnetbyname_r): Likewise.
610 * resolv/gethnamaddr.c (_gethtent): Likewise.
611 (gethostbyname2): Likewise.
613 2002-12-31 Ulrich Drepper <drepper@redhat.com>
615 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
616 to avoid using the exported symbols. Define aliases with the
617 original names separately.
619 * include/time.h: Add libc_hidden_proto for __strftime_l.
620 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
621 * time/strftime.c: Always use libc_hidden_def if _LIBC.
623 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
624 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
626 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
629 * csu/Makefile (routines): Add dso_handle.
630 * csu/dso_handle.c: New file.
632 2002-12-31 Roland McGrath <roland@redhat.com>
634 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
635 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
636 (S-CPPFLAGS): Add -DASSEMBLER here instead.
637 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
639 2002-12-31 Ulrich Drepper <drepper@redhat.com>
641 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
644 2002-12-31 Andreas Jaeger <aj@suse.de>
646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
648 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
649 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
650 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
652 * sysdeps/unix/sysv/linux/kernel_stat.h
653 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
655 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
656 __unused[1-3] since they're needed by some platforms. Handle
657 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
659 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
660 for structs stat and stat64.
661 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
662 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
663 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
664 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
666 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
668 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
669 nsec resolution changes.
670 (xstat64_conv): Likewise.
671 (xstat32_conv): Likewise.
673 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
676 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
677 structs stat and stat64.
679 * time/time.h (__timespec_defined): Define for __USE_MISC.
681 2002-12-31 Ulrich Drepper <drepper@redhat.com>
683 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
684 and __libc_current_sigrtmax.
686 2002-12-31 Jakub Jelinek <jakub@redhat.com>
688 * include/errno.h (__errno_location): Add prototype.
689 Use libc_hidden_proto unconditionally.
690 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
692 * include/resolv.h (__res_state): Likewise.
694 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
695 * include/sys/socket.h (accept): Add libc_hidden_proto.
696 * include/errno.h (__errno_location): Likewise.
697 * include/netdb.h (__h_errno_location): Likewise.
698 * include/resolv.h (__res_state): Likewise.
699 * include/unistd.h (__lseek): Likewise.
700 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
701 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
702 * sysdeps/generic/res-state.c (__res_state): Likewise.
703 * sysdeps/generic/accept.c (accept): Likewise.
704 * sysdeps/generic/lseek.c (__lseek): Likewise.
705 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
706 __libc_current_sigrtmax): Likewise.
707 * sysdeps/mach/hurd/accept.c (accept): Likewise.
708 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
709 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
710 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
711 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
712 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
713 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
714 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
715 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
717 (__GI_accept): New alias to accept.
718 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
719 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
721 (__GI_accept): New alias to accept.
722 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
724 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
726 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
728 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
729 strong_alias (name, __GI_name).
730 * sysdeps/arm/bsd-_setjmp.S : Likewise.
731 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
732 * sysdeps/i386/bsd-_setjmp.S : Likewise.
733 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
734 * sysdeps/mips/bsd-_setjmp.S : Likewise.
735 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
736 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
737 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
738 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
739 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
740 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
741 * sysdeps/sh/bsd-_setjmp.S : Likewise.
742 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
743 * sysdeps/unix/arm/fork.S : Likewise.
744 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
745 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
746 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
747 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
748 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
749 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
750 * sysdeps/unix/i386/fork.S : Likewise.
751 * sysdeps/unix/mips/fork.S : Likewise.
752 * sysdeps/unix/sparc/fork.S : Likewise.
753 * sysdeps/unix/sparc/vfork.S : Likewise.
754 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
755 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
756 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
757 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
758 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
759 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
760 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
761 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
762 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
763 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
764 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
765 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
766 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
767 * sysdeps/unix/fork.S : Likewise.
768 * sysdeps/vax/bsd-_setjmp.S : Likewise.
769 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
771 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
774 2002-12-31 Ulrich Drepper <drepper@redhat.com>
776 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
777 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
778 * sysdeps/mach/hurd/fork.c: Likewise.
779 * sysdeps/unix/sysv/aix/fork.c: Likewise.
780 * sysdeps/unix/fork.S: Add __GI___fork alias.
781 * sysdeps/unix/arm/fork.S: Likewise.
782 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
783 * sysdeps/unix/i386/fork.S: Likewise.
784 * sysdeps/unix/mips/fork.S: Likewise.
785 * sysdeps/unix/sparc/fork.S: Likewise.
786 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
787 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
788 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
789 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
790 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
791 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
792 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
793 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
794 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
795 * sysdeps/unix/sparc/vfork.S: Likewise.
796 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
797 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
798 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
799 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
800 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
801 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
802 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
803 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
805 * include/time.h: Add libc_hidden_proto for __nanosleep.
806 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
807 * sysdeps/mach/nanosleep.c: Likewise.
808 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
809 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
811 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
812 _IO_list_unlock, and _IO_list_resetlock.
813 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
814 _IO_list_unlock, and _IO_list_resetlock.
816 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
817 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
818 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
819 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
821 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
822 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
823 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
824 __GI___longjmp alias.
826 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
827 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
828 * sysdeps/arm/bsd-_setjmp.S: Likewise.
829 * sysdeps/generic/bsd-_setjmp.c: Likewise.
830 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
831 * sysdeps/i386/bsd-_setjmp.S: Likewise.
832 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
833 * sysdeps/mips/bsd-_setjmp.S: Likewise.
834 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
835 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
836 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
837 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
838 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
839 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
840 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
841 * sysdeps/sh/bsd-_setjmp.S: Likewise.
842 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
843 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
844 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
845 * sysdeps/vax/bsd-_setjmp.S: Likewise.
846 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
848 2002-12-30 Ulrich Drepper <drepper@redhat.com>
850 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
852 2002-12-30 Roland McGrath <roland@redhat.com>
854 * Rules (generated): Target removed.
855 * mach/Makefile (generated): Define it here instead.
857 * math/Makefile (generated): Add m_*l and m_*f variants too.
859 2002-12-30 Ulrich Drepper <drepper@redhat.com>
861 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
862 the to-be-deleted objects right away instead of later separately.
863 The latter fails because the scope data structures of the DSO
864 might already be gone.
866 * elf/Makefile: Add rules to build and run reldep8 test.
867 * elf/reldep8.c: New file.
868 * elf/reldep8mod1.c: New file.
869 * elf/reldep8mod2.c: New file.
870 * elf/reldep8mod3.c: New file.
871 Contributed by Jakub Jelinek.
873 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
875 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
876 checking of return value ENOSYS from getdents64.
878 2002-12-28 Andreas Schwab <schwab@suse.de>
880 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
881 ($(common-objpfx)s-%.d): Generalized from
882 $(common-objpfx)s-proto.d rule.
883 (common-generated): Add s-proto-cancel.d.
884 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
885 cancellable syscalls.
886 * sysdeps/unix/s-proto-cancel.S: New file.
888 2002-12-29 Roland McGrath <roland@redhat.com>
890 * resolv/res_libc.c: Move _res defn magic after res_init defn
891 so _res macro is in effect for that code.
893 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
894 pattern for prepending $(..) so it doesn't affect $(foo).
896 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
898 2002-12-29 Jakub Jelinek <jakub@redhat.com>
900 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
903 2002-12-28 Ulrich Drepper <drepper@redhat.com>
905 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
907 2002-12-28 Andreas Jaeger <aj@suse.de>
909 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
911 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
913 2002-12-27 Jakub Jelinek <jakub@redhat.com>
915 * inet/herrno.c (__h_errno_location): Remove.
916 * inet/Makefile (routines): Add herrno-loc.
917 * resolv/res_libc.c (__res_state): Remove.
918 * resolv/Makefile (routines): Add res-state.
919 * sysdeps/generic/herrno-loc.c: New file.
920 * sysdeps/generic/res-state.c: New file.
922 2002-12-27 Jakub Jelinek <jakub@redhat.com>
924 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
925 Only define if USE_DL_SYSINFO is defined.
927 2002-12-22 Jakub Jelinek <jakub@redhat.com>
929 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
930 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
931 Define. Patch by Richard Henderson and Jes Sorensen.
932 (PSEUDO): Remove unnecessary ;;.
933 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
934 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
935 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
936 if not initializing thread pointer.
937 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
938 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
939 make it weak also if NONTLS_INIT_TP.
940 * sysdeps/unix/common/pause.c: Handle cancellation.
941 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
942 (LOADSYSCALL): Remove.
943 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
944 (SYSCALL_ERROR_HANDLER): Use it.
945 (PSEUDO): Don't jump around error handler.
946 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
947 jump around error handler.
948 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
949 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
950 to __syscall_error_handler on failure.
951 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
952 (LOADSYSCALL): Remove.
953 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
954 (SYSCALL_ERROR_HANDLER): Use it.
955 (PSEUDO): Don't jump around error handler.
956 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
957 jump around error handler.
958 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
959 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
960 to __syscall_error_handler on failure.
962 2002-12-27 Roland McGrath <roland@redhat.com>
964 * scripts/gen-as-const.awk: New file.
965 * Makefile (distribute): Add it.
966 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
967 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
969 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
971 2002-12-27 Andreas Schwab <schwab@suse.de>
973 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
975 2002-12-27 Jakub Jelinek <jakub@redhat.com>
977 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
980 2002-12-27 Andreas Schwab <schwab@suse.de>
982 * Makerules ($(common-objpfx)%.make): Filter through
983 $(sed-remove-objpfx).
985 2002-12-23 Roland McGrath <roland@redhat.com>
987 * scripts/abilist.awk: Produce a more compact format, divided into
988 stanzas for each version set, the set name listed only once.
989 * scripts/extract-abilist.awk: New file.
990 * scripts/merge-abilist.awk: New file.
991 * Makerules (check-abi-%, update-abi-%): New pattern rules.
992 (update-abi, check-abi): New targets.
993 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
995 2002-12-19 Roland McGrath <roland@redhat.com>
997 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
999 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
1002 2002-12-21 Andreas Schwab <schwab@suse.de>
1004 * elf/check-textrel.c (handle_file): Swap p_type.
1006 2002-12-21 Andreas Schwab <schwab@suse.de>
1008 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
1009 (INLINE_SYSCALL): Use it.
1010 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
1011 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
1013 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
1014 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
1016 2002-12-20 Art Haas <ahaas@airmail.net>
1018 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
1021 2002-12-21 Philip Blundell <philb@gnu.org>
1023 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
1024 top as seventh arg to __libc_start_main.
1025 Reported by paulnash@wildseed.com.
1027 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
1029 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
1030 compatibility cruft when new enough kernel is assumed.
1032 2002-12-20 Jakub Jelinek <jakub@redhat.com>
1034 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
1035 instead of INLINE_SYSCALL.
1037 2002-12-20 Ulrich Drepper <drepper@redhat.com>
1039 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
1042 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
1043 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1044 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
1045 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
1046 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
1047 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1048 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1049 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1050 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1051 Patch by William Lee Irwin <wli@holomorphy.com>.
1053 2002-12-20 Andreas Schwab <schwab@suse.de>
1055 * locale/programs/ld-measurement.c (measurement_output): Fix
1058 2002-12-20 Ulrich Drepper <drepper@redhat.com>
1060 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
1061 Redefine _IO_flockifle and _IO_funlockfile as inlines.
1063 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
1064 builds add "tls" in the search path.
1065 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
1066 (path_hwcap): Recognize "tls".
1068 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1070 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
1071 __waitpid instead of waitpid.
1073 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
1075 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1076 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1077 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1079 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
1080 information for system calls.
1082 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
1085 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
1087 2002-12-19 Roland McGrath <roland@redhat.com>
1089 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
1090 * iconvdata/ibm922.h: Likewise.
1091 * iconvdata/ibm930.h: Likewise.
1092 * iconvdata/ibm932.h: Likewise.
1093 * iconvdata/ibm933.h: Likewise.
1094 * iconvdata/ibm935.h: Likewise.
1095 * iconvdata/ibm937.h: Likewise.
1096 * iconvdata/ibm939.h: Likewise.
1097 * iconvdata/ibm943.h: Likewise.
1098 * iconvdata/isiri-3342.h: Likewise.
1100 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1102 * test-skeleton.c (main): Make sure correct value is seen as
1103 argv[0] after adjustment of argv, and argc.
1105 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
1106 RTLD_CORRECT_DYNAMIC_WEAK is defined.
1108 2002-12-19 Jakub Jelinek <jakub@redhat.com>
1110 * nscd/connections.c (nscd_run): Shut up warning.
1111 * tst-ungetc.c (assert): Undefined before redefining.
1113 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1115 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
1118 2002-12-17 Art Haas <ahaas@airmail.net>
1120 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
1121 * iconvdata/cp775.h: Likewise.
1122 * iconvdata/ibm1046.h: Likewise.
1123 * iconvdata/ibm1124.h: Likewise.
1124 * iconvdata/ibm1129.h: Likewise.
1125 * iconvdata/ibm1132.h: Likewise.
1126 * iconvdata/ibm1133.h: Likewise.
1127 * iconvdata/ibm1160.h: Likewise.
1128 * iconvdata/ibm1161.h: Likewise.
1129 * iconvdata/ibm1162.h: Likewise.
1130 * iconvdata/ibm1163.h: Likewise.
1131 * iconvdata/ibm1164.h: Likewise.
1133 2002-12-19 Ulrich Drepper <drepper@redhat.com>
1135 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
1136 __ASSUME_CLONE_THREAD_FLAGS is defined.
1137 * sysdeps/unix/sysv/linux/kernel-features.h
1138 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
1140 2002-12-18 Ulrich Drepper <drepper@redhat.com>
1142 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
1144 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1146 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
1148 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
1150 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
1152 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
1154 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
1155 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
1156 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
1159 2002-12-18 Jakub Jelinek <jakub@redhat.com>
1161 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
1163 [libc: GLIBC_PRIVATE]: ...here.
1164 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
1166 [libc: GLIBC_PRIVATE]: ...here.
1168 2002-12-18 Ulrich Drepper <drepper@redhat.com>
1170 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
1171 Use it instead of directly int $0x80.
1172 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
1173 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1174 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1175 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1176 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1177 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1179 2002-12-17 Ulrich Drepper <drepper@redhat.com>
1181 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
1183 * elf/elf.h (AT_SYSINFO): New define.
1184 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
1187 2002-12-17 Jakub Jelinek <jakub@redhat.com>
1189 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
1191 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
1193 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
1195 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
1197 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
1199 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
1201 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
1202 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
1203 available, otherwise __libc_maybe_call.
1204 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
1205 cancellation handling.
1206 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
1208 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
1210 * posix/regcomp.c (free_workarea_compile): Free the new member
1212 (analyze): Initialize ORG_INDICES.
1213 (duplicate_node_closure): Search for a existing node, which is
1214 duplicated from the node ORG_DEST and satisfies the constraint
1215 CONSTRAINT. And use it to avoid inifimite loop.
1216 (search_duplicated_node): New function.
1217 (duplicate_node): Store the index of the original node.
1218 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
1220 * posix/regex_internal.h (re_dfa_t): Add new members.
1222 2002-12-17 Ulrich Drepper <drepper@redhat.com>
1224 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
1226 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1228 * sysdeps/posix/system.c (do_system): Add support for installation
1229 of cancellation handlers.
1230 * sysdeps/unix/sysv/linux/i386/system.c: New file.
1232 * stdlib/Makefile (tests): Add tst-system.
1233 * stdlib/tst-system.c: New file.
1235 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
1236 CENABLE]: Don't lose content of %ebx.
1238 2002-12-17 Jakub Jelinek <jakub@redhat.com>
1240 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
1241 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
1243 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1245 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
1246 fails to return a function pointer don't use it.
1248 2002-12-16 Art Haas <ahaas@airmail.net>
1250 * io/ftw.c: Convert GCC extension initializer syntax to C99.
1251 * iconvdata/iso-ir-165.c: Likewise.
1252 * iconvdata/jis0208.c: Likewise.
1253 * iconvdata/jis0212.c: Likewise.
1255 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1257 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
1258 epoll_ctl, and epoll_wait.
1259 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
1260 epoll_create, epoll_ctl, and epoll_wait.
1261 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
1262 Davide Libenzi <davidel@xmailserver.org>.
1263 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
1264 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
1267 2002-12-16 Art Haas <ahaas@airmail.net>
1269 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
1271 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
1272 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
1273 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
1275 2002-12-16 Ulrich Drepper <drepper@redhat.com>
1277 * stdio-common/Makefile (routines): Remove lockfile. Add
1278 flockfile, ftrylockfile, and funlockfile.
1279 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
1280 * sysdeps/generic/flockfile.c: New file.
1281 * sysdeps/generic/ftrylockfile.c: New file.
1282 * sysdeps/generic/funlockfile.c: New file.
1284 2002-12-16 Jakub Jelinek <jakub@redhat.com>
1286 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
1287 macros instead of doing the calls directly.
1288 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
1289 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
1292 2002-12-16 Jakub Jelinek <jakub@redhat.com>
1294 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
1295 * sysdeps/ieee754/bits/nan.h: Likewise.
1297 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
1298 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
1300 2002-12-16 Roland McGrath <roland@redhat.com>
1302 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
1303 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
1304 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
1306 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
1307 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
1309 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
1310 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
1311 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
1312 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
1313 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
1314 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
1315 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
1316 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
1318 2002-12-13 Paul Eggert <eggert@twinsun.com>
1320 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
1321 is now u_int, not int.
1322 (struct XDR.x_handy): Now u_int, not int.
1323 * sunrpc/xdr_mem.c: Include <limits.h>.
1324 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
1325 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
1326 x_handy is now unsigned, not signed.
1327 Do not decrement x_handy if no change is made.
1328 (xdrmem_setpos): Check for int overflow.
1329 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
1330 (xdr_sizeof): Remove cast that is now unnecessary, now that
1331 x_handy is unsigned.
1333 2002-12-15 Art Haas <ahaas@airmail.net>
1335 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
1336 * iconvdata/gap.awk: Likewise.
1337 * iconvdata/gen-8bit-gap-1.sh: Likewise.
1338 * iconvdata/gen-8bit-gap.sh: Likewise.
1339 * locale/C-address.c: Likewise.
1340 * locale/C-collate.c: Likewise.
1341 * locale/C-ctype.c: Likewise.
1342 * locale/C-identification.c: Likewise.
1343 * locale/C-measurement.c: Likewise.
1344 * locale/C-messages.c: Likewise.
1345 * locale/C-monetary.c: Likewise.
1346 * locale/C-name.c: Likewise.
1347 * locale/C-numeric.c: Likewise.
1348 * locale/C-paper.c: Likewise.
1349 * locale/C-telephone.c: Likewise.
1350 * locale/C-time.c: Likewise.
1351 * nscd/connections.c: Likewise.
1352 * nscd/grpcache.c: Likewise.
1353 * nscd/hstcache.c: Likewise.
1354 * nscd/pwdcache.c: Likewise.
1355 * stdio-common/vfprintf.c: Likewise.
1356 * stdlib/random.c: Likewise.
1357 * sysdeps/generic/siglist.c: Likewise.
1358 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1359 * sysdeps/ieee754/bits/nan.h: Likewise.
1360 * sysdeps/posix/sprofil.c: Likewise.
1361 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
1362 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
1363 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
1365 2002-12-15 Roland McGrath <roland@redhat.com>
1367 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
1369 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
1370 <tls.h> here, no need for it.
1371 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1373 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
1374 parameter, not varargs parameter.
1376 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
1377 argument so it's not an unused variable.
1379 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
1380 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
1383 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
1385 2002-12-15 Ulrich Drepper <drepper@redhat.com>
1387 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
1388 original __libc_fcntl code. Just renamed.
1390 2002-12-15 Andreas Schwab <schwab@suse.de>
1392 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
1394 2002-12-14 Olaf Hering <olh@suse.de>
1396 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
1397 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
1399 2002-12-15 Ulrich Drepper <drepper@redhat.com>
1401 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
1403 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
1404 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
1406 * sysdeps/unix/sysv/linux/open64.c: New file.
1408 * sysdeps/generic/pselect.c: Add support for cancellation handling.
1409 * sysdeps/posix/open64.c: Likewise.
1410 * sysdeps/posix/sigpause.c: Likewise.
1411 * sysdeps/posix/sigwait.c: Likewise.
1412 * sysdeps/posix/system.c: Likewise.
1413 * sysdeps/posix/waitid.c: Likewise.
1414 * sysdeps/unix/sysv/linux/accept.S: Likewise.
1415 * sysdeps/unix/sysv/linux/connect.S: Likewise.
1416 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
1417 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1418 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
1419 * sysdeps/unix/sysv/linux/poll.c: Likewise.
1420 * sysdeps/unix/sysv/linux/pread.c: Likewise.
1421 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1422 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1423 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1424 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1425 * sysdeps/unix/sysv/linux/recv.S: Likewise.
1426 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
1427 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
1428 * sysdeps/unix/sysv/linux/send.S: Likewise.
1429 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
1430 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
1431 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1432 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
1433 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
1434 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
1435 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
1436 * sysdeps/unix/sysv/linux/wait.c: Likewise.
1437 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1438 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1439 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1440 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1442 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1444 * sysdeps/generic/sysdep-cancel.h: New file.
1445 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
1447 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
1448 recvmsg, send, sendmsg, sendto): Make cancelable.
1449 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
1450 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
1451 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1452 sendto, osf_select): Likewise.
1453 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
1454 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1455 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
1456 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1458 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
1459 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
1460 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
1461 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1463 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
1464 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
1465 sendto, select): Likewise.
1466 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
1467 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
1469 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
1470 select, fcntl): Likewise.
1471 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
1472 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
1473 read, readv, select, sigsuspend, write, writev): Likewise.
1475 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1477 * dirent/bug-readdir1.c: Include unistd.h.
1479 2002-12-13 Jakub Jelinek <jakub@redhat.com>
1481 * locale/programs/locale.c: Include locarchive.h.
1482 (ARCHIVE_NAME): Define.
1483 (write_archive_locales): New function.
1484 (write_locales): Use it. Ensure the same locale is not printed
1485 multiple times in verbose mode.
1486 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
1487 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
1489 (struct nameent): New type.
1490 (nameentcmp): New function.
1492 2002-12-14 Jakub Jelinek <jakub@redhat.com>
1494 * posix/regex_internal.c (re_string_context_at): Guard wide char
1495 code with #ifdef RE_ENABLE_I18N.
1497 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
1499 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
1501 2002-12-13 Roland McGrath <roland@redhat.com>
1503 * posix/bug-regex15.c: New file.
1504 * posix/Makefile (tests): Add it.
1506 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
1507 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
1509 2002-12-13 Ulrich Drepper <drepper@redhat.com>
1511 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
1513 * misc/syslog.c (log_cleanup): Don't use parameter in
1514 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
1515 pass NULL instead of a pointer to syslog_lock.
1517 2002-12-12 Ulrich Drepper <drepper@redhat.com>
1519 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
1520 linker map for all iconv modules.
1521 (distribute): Add gconv.map.
1522 * iconvdata/gconv.map: New file.
1524 * elf/Makefile: Also check all iconv modules for text relocations.
1526 * stdlib/Makefile: Remove code to automatically import GMP.
1528 * elf/Makefile (tests): Add rules to build and run check-textrel.
1529 * elf/check-textrel.c: New file.
1531 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
1534 2002-12-11 Jakub Jelinek <jakub@redhat.com>
1536 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
1539 2002-04-30 Bruno Haible <bruno@clisp.org>
1541 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
1542 the encoding if it already has slashes.
1543 Reported by Perry Rapp <prapp@erols.com>.
1545 2002-12-11 Roland McGrath <roland@redhat.com>
1547 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
1548 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
1549 Turn off PIC for compiling this file.
1551 2002-12-11 Ulrich Drepper <drepper@redhat.com>
1553 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
1554 definitions. Not needed.
1555 [_LIBC]: Use definitions from libc-lock.h instead of referencing
1556 pthread routines directly.
1557 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
1559 (arena_get2): Don't look at return value of mutex_lock.
1561 2002-12-11 Roland McGrath <roland@redhat.com>
1563 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
1564 elf-init.o instead of compiling a PIC version.
1566 2002-12-11 Bruno Haible <bruno@clisp.org>
1568 * intl/gettext.h: Renamed to ...
1569 * intl/gmo.h: ... here.
1570 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
1571 * intl/gettextP.h: Update.
1572 * intl/loadmsgcat.c: Update.
1574 * intl/gettextP.h (PARAMS): Make more portable.
1575 (attribute_hidden): Define as empty macro if not already defined.
1576 * intl/hash-string.h (PARAMS): Make more portable.
1577 * intl/loadinfo.h (PARAMS): Likewise.
1578 * intl/plural-exp.h (PARAMS): Likewise.
1579 (attribute_hidden): Move definition near the definition of
1582 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
1583 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
1585 2002-07-13 Bruno Haible <bruno@clisp.org>
1587 * intl/dcigettext.c (freea): New macro.
1588 (FREE_BLOCKS): Free also the registered blocks.
1589 (DCIGETTEXT): Free the 'search' variable.
1590 Reported by Andreas Fischer <a.fischer@asentics.de>.
1592 2002-04-27 Bruno Haible <bruno@clisp.org>
1594 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
1595 * intl/dcigettext.c: Likewise.
1596 * intl/dcgettext.c: Likewise.
1597 * intl/dgettext.c: Likewise.
1598 * intl/gettext.c: Likewise.
1599 * intl/dcngettext.c: Likewise.
1600 * intl/dngettext.c: Likewise.
1601 * intl/ngettext.c: Likewise.
1602 * intl/textdomain.c: Likewise.
1603 * intl/bindtextdom.c: Likewise.
1604 * intl/plural-exp.h: Likewise.
1606 2002-01-02 Bruno Haible <bruno@clisp.org>
1608 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
1610 2001-04-30 Bruno Haible <bruno@clisp.org>
1612 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
1613 default macro definitions. Needed for mingw32.
1615 2002-12-10 Ulrich Drepper <drepper@redhat.com>
1617 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
1618 __builtin_constant_p to macro parameter.
1620 * sysdeps/generic/sigpause.c: Define all functions as weak.
1621 * sysdeps/posix/sigpause.c: Likewise.
1623 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
1626 2002-12-10 Jakub Jelinek <jakub@redhat.com>
1628 * elf/tst-array1.c (preinit_array, init_array, fini_array):
1629 Explicitly align the array to sizeof (void *).
1630 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
1632 * include/libc-symbols.h: Fix a comment typo.
1634 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
1635 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
1637 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
1639 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
1640 (__libc_sigsuspend): Likewise.
1641 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
1642 (__libc_sigsuspend): Likewise.
1643 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
1644 (creat): New weak alias.
1646 2002-12-10 Roland McGrath <roland@redhat.com>
1648 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
1649 contributes a manual chapter.
1650 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
1653 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
1654 and move contents to ...
1655 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
1656 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
1657 it instead of duplicating its contents.
1658 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
1660 2002-12-09 Jakub Jelinek <jakub@redhat.com>
1662 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
1664 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
1666 (EXTRA_LD_ENVVARS): Use it.
1667 (DL_OSVERSION_INIT): Define.
1668 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
1670 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
1672 2002-12-10 Ulrich Drepper <drepper@redhat.com>
1674 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
1676 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
1677 call. It is not allowed to destroy pthread mutexes which are
1678 still in use even though it is safe for our implementations. If
1679 somebody still uses the descriptor it is a bug.
1681 2002-12-09 Richard Henderson <rth@redhat.com>
1683 * csu/abi-note.S: Use .p2align, not .align.
1685 2002-12-09 Ulrich Drepper <drepper@redhat.com>
1687 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
1688 __libc_select aliases.
1690 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
1693 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
1695 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
1697 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
1699 * sysdeps/unix/syscalls.list: Define __libc_select alias.
1701 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
1703 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
1704 __libc___xpg_sigpause aliases.
1706 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
1708 * misc/error.c: Remove use of USE_IN_LIBIO.
1710 2002-12-08 Roland McGrath <roland@redhat.com>
1712 * elf/Makefile (tests): Uncomment tst-array[123].
1713 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
1714 * csu/elf-init.c: New file.
1715 * csu/Makefile (routines, static-only-routines): Add elf-init.
1716 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
1717 and __libc_csu_fini in place of _fini.
1718 * sysdeps/arm/elf/start.S: Likewise.
1719 * sysdeps/cris/elf/start.S: Likewise.
1720 * sysdeps/hppa/elf/start.S: Likewise.
1721 * sysdeps/i386/elf/start.S: Likewise.
1722 * sysdeps/ia64/elf/start.S: Likewise.
1723 * sysdeps/m68k/elf/start.S: Likewise.
1724 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
1725 * sysdeps/mips/elf/start.S: Likewise.
1726 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1727 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1728 * sysdeps/s390/s390-32/elf/start.S: Likewise.
1729 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1730 * sysdeps/sh/elf/start.S: Likewise.
1731 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1732 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1733 * sysdeps/x86_64/elf/start.S: Likewise.
1735 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
1736 struct containing function ptr and value, free it.
1737 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
1738 It's not safe to let the new thread use the SIGEV pointer.
1740 2001-10-20 Paul Eggert <eggert@twinsun.com>
1742 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
1743 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
1744 Use strerror_r that is only a macro, even if it is not a function.
1745 (strerror): Check for HAVE_DECL_STRERROR before declaring.
1746 (private_strerror): Use prototypes, not old-style function definition.
1747 (print_errno_message): New function.
1748 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
1750 (error_tail, error, error_at_line): Use it.
1752 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
1754 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
1756 2002-12-08 Ulrich Drepper <drepper@redhat.com>
1758 * scripts/output-format.sed: Fix bug in one of the s expressions
1759 which used / for one too many things.
1761 * include/unistd.h: Declare __libc_close.
1763 2002-12-07 Ulrich Drepper <drepper@redhat.com>
1765 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
1767 2002-12-07 Roland McGrath <roland@redhat.com>
1769 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
1770 from 2002-12-06, but remove unnecessary memset call without removing
1771 necessary copy of initialization image.
1773 * Makerules ($(common-objpfx)format.lds): New target.
1774 (common-generated): Add it.
1775 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
1776 * scripts/output-format.sed: New file.
1777 * Makefile (distribute): Add it.
1779 2002-12-07 Ulrich Drepper <drepper@redhat.com>
1781 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
1782 Reported by Art Haas <ahaas@airmail.net>.
1784 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
1786 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
1788 2002-12-07 Jakub Jelinek <jakub@redhat.com>
1790 * string/test-strncpy.c (do_random_tests): Improve test coverage.
1792 2002-12-06 Ulrich Drepper <drepper@redhat.com>
1794 * test-skeleton.c (timeout_handler): Allow expected signal to be
1797 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
1799 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
1801 2002-12-07 Jakub Jelinek <jakub@redhat.com>
1803 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
1804 (SYSCALL_ERROR_HANDLER): Fix a pasto.
1805 Reported by Jeff Bailey <jbailey@nisa.net>.
1807 2002-12-06 Ulrich Drepper <drepper@redhat.com>
1809 * sysdeps/generic/libc-tls.c: Undo last patch.
1811 * include/wctype.h: Define iswalnum with libc_hidden_proto.
1813 * include/signal.h: Define raise with libc_hidden_proto.
1815 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
1816 __execve instead of snprintf and execve.
1818 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
1821 2002-12-06 Jakub Jelinek <jakub@redhat.com>
1823 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
1824 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
1826 2002-12-06 Ulrich Drepper <drepper@redhat.com>
1828 * misc/syslog.c (log_cleanup): New function.
1829 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
1830 (closelog): Likewise.
1832 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
1833 * elf/dl-iteratephdr.c: Likewise.
1834 * elf/dl-lookup.c: Likewise.
1835 * elf/dl-misc.c: Likewise.
1836 * elf/dl-open.c: Likewise.
1837 * elf/dl-support.c: Likewise.
1838 * elf/rtld.c: Likewise.
1839 * sysdeps/generic/ldsodefs.h: Likewise.
1840 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
1841 * sysdeps/mach/bits/libc-lock.h: Likewise.
1842 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1844 2002-12-06 Roland McGrath <roland@redhat.com>
1846 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
1848 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
1849 (malloc_starter, memalign_starter, free_starter): Don't define these.
1850 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
1851 Don't declare them either.
1852 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
1853 __pthread_initialize, so no need to set hooks to *_starter.
1854 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
1855 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
1856 (__libc_malloc_pthread_startup): New function.
1857 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
1859 * malloc/hooks.c (memalign_starter): New function.
1860 * malloc/malloc.c: Declare it.
1861 * malloc/arena.c (save_memalign_hook): New variable.
1862 (ptmalloc_init): Set __memalign_hook to memalign_starter.
1864 * elf/dl-minimal.c (free): Clear the memory.
1865 (calloc): Just call malloc, knowing all memory it returns is cleared.
1867 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
1868 malloc and memset; calloc can avoid the zeroing when redundant.
1869 (_dl_tls_setup): Likewise.
1870 * elf/dl-load.c (decompose_rpath): Likewise.
1871 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
1872 call, since memory from sbrk at startup is already zero.
1874 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
1875 error string for failure, null for success. Update callers.
1876 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1877 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1879 2002-12-05 Jakub Jelinek <jakub@redhat.com>
1881 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
1883 (readahead): Change args to i:iii.
1884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
1885 Change args to i:iii.
1886 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
1889 2002-12-05 Roland McGrath <roland@redhat.com>
1891 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
1892 call all functions rather than none.
1893 Reported by Mark P. Mitchell <mark@codesourcery.com>.
1895 2002-12-04 Roland McGrath <roland@redhat.com>
1897 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
1898 on _nl_current_LC_* variables.
1900 2002-12-05 Ulrich Drepper <drepper@redhat.com>
1902 * dirent/bug-readdir1.c (main): Don't call closedir, just close
1903 the file descriptor. This is testing what the bug report was about.
1905 2002-12-04 Ulrich Drepper <drepper@redhat.com>
1907 * po/be.po: New file.
1909 * argp/Makefile (tests): Add tst-argp1.
1911 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
1912 Change type of _attribute to void*.
1913 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1914 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1915 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1916 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1917 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1919 2002-12-04 Roland McGrath <roland@redhat.com>
1921 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
1922 members to the end, so a libpthread compiled with !USE_TLS will still
1923 find other members properly.
1925 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
1926 operand for DEST memory. Fix dummy input operand to use SRC.
1927 Reported by Davin McCall <davmac@ozonline.com.au>.
1929 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
1930 alignment when initializing the DTV entry.
1932 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
1933 when TLS has not been set up, try to set it up if we can.
1934 * elf/tst-tls4.c: Revert last change.
1935 * elf/tst-tls5.c: Likewise.
1936 * elf/tst-tls6.c: Likewise.
1937 * elf/tst-tls7.c: Likewise.
1938 * elf/tst-tls8.c: Likewise.
1939 * elf/tst-tls9.c: Likewise.
1941 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
1942 * sysdeps/generic/ldsodefs.h: Declare it.
1943 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1944 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
1945 function, broken out of __libc_setup_tls.
1946 (init_static_tls): Likewise.
1947 (__libc_setup_tls): Call them.
1948 (_dl_tls_setup): New function, uses new subroutines.
1950 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
1951 Clear the pointer when returning true.
1952 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
1953 first element of the slotinfo list too.
1955 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
1958 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
1959 (_dl_determine_tlsoffset): Likewise.
1961 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
1962 startup_error_tsd, made global.
1963 (dl_main): Update initialization.
1964 * elf/dl-tsd.c: Likewise.
1965 * sysdeps/generic/ldsodefs.h: Declare it.
1967 2002-12-03 Ulrich Drepper <drepper@redhat.com>
1969 * manual/texinfo.tex: Update from latest upstream version.
1971 2002-12-03 Roland McGrath <roland@redhat.com>
1973 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
1974 area surplus in calculation for sbrk call.
1976 * iconvdata/cp1125.c: New file.
1977 * iconvdata/Makefile (distribute): Add it.
1978 (modules): Add CP1125.
1979 (gen-8bit-gap-modules): Add cp1125.
1980 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
1981 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
1983 2002-12-03 Andreas Jaeger <aj@suse.de>
1985 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1987 2002-12-03 Ulrich Drepper <drepper@redhat.com>
1989 * sysdeps/posix/system.c (do_system): Make signal handler
1990 installation thread safe.
1992 2002-12-02 Roland McGrath <roland@redhat.com>
1994 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
1995 caller from EXTRA to -.
1996 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1997 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1998 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2000 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
2002 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
2003 bits of RM are cleared.
2005 2002-12-02 Roland McGrath <roland@redhat.com>
2007 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
2008 TLS setup is required.
2009 * elf/tst-tls5.c: Likewise.
2010 * elf/tst-tls6.c: Likewise.
2011 * elf/tst-tls7.c: Likewise.
2012 * elf/tst-tls8.c: Likewise.
2013 * elf/tst-tls9.c: Likewise.
2015 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
2016 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
2017 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
2018 for being null before calling free_slotinfo.
2019 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
2020 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
2022 2002-11-30 Bruno Haible <bruno@clisp.org>
2024 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
2025 (struct __gconv_step): New field __btowc_fct.
2026 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
2027 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
2029 (__gconv_btwoc_ascii): New declaration.
2030 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
2031 (__gconv_btwoc_ascii): New function.
2032 * iconv/gconv_builtin.h: Add BtowcFct argument to all
2033 BUILTIN_TRANSFORMATION invocations.
2034 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
2035 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
2036 * iconv/gconv_builtin.c (map): New field btowc_fct.
2037 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
2039 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
2040 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
2041 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
2042 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
2043 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
2044 (gconv_init): Initialize __btowc_fct field.
2045 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
2046 * iconv/loop.c: Document ONEBYTE_BODY.
2047 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
2048 Undefine ONEBYTE_BODY at the end.
2049 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
2050 * iconvdata/8bit-gap.c (NONNUL): New macro.
2051 (BODY for FROM_LOOP): Use it.
2052 (ONEBYTE_BODY): New macro.
2053 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
2054 (NONNUL): New macro.
2055 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
2056 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
2057 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
2058 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
2059 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
2060 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
2061 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
2062 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
2063 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
2064 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
2065 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
2066 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
2067 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
2068 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
2069 * iconvdata/ibm932.c: Include <stdbool.h>.
2070 (TRUE, FALSE): Remove macros.
2071 (BODY for FROM_LOOP): Remove unused variable rp1.
2072 (ONEBYTE_BODY): New macro.
2073 (BODY for TO_LOOP): Use bool.
2074 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
2075 * iconvdata/ibm943.c: Include <stdbool.h>.
2076 (TRUE, FALSE): Remove macros.
2077 (BODY for FROM_LOOP): Remove unused variable rp1.
2078 (ONEBYTE_BODY): New macro.
2079 (BODY for TO_LOOP): Use bool.
2080 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
2081 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
2082 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
2083 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
2084 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
2085 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
2086 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
2087 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
2088 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
2089 * iconvdata/gbbig5.c: Tweak comment.
2091 2002-12-02 Ulrich Drepper <drepper@redhat.com>
2093 * po/fi.po: Update from translation team.
2095 2002-12-01 Roland McGrath <roland@redhat.com>
2097 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
2098 testing getdents64 return value.
2100 * scripts/versions.awk: Don't pass -n flag to sort command.
2102 * posix/bug-regex13.c: Include <string.h>.
2104 * sysdeps/generic/libc-start.c (__libc_start_main): Do
2105 DL_SYSDEP_OSCHECK here.
2106 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
2107 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
2109 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
2110 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
2112 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
2113 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
2115 * include/link.h: Comment typo fix.
2117 2002-12-01 Roland McGrath <roland@frob.com>
2119 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
2120 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
2121 _POSIX_MEMORY_PROTECTION): Likewise.
2122 (_POSIX_POLL, _POSIX_SELECT): Removed.
2124 2002-11-28 Ulrich Drepper <drepper@redhat.com>
2126 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
2127 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
2129 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2131 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
2133 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
2136 2002-11-28 Ulrich Drepper <drepper@redhat.com>
2138 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
2139 branch prediction buffers by using unpaired call/ret.
2141 2002-11-27 Ulrich Drepper <drepper@redhat.com>
2143 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
2144 first parameters constraint string.
2145 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
2147 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
2149 * posix/regcomp.c (parse_expression): Set the bit since the back
2150 reference is used in the regular expression.
2151 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
2153 (re_node_set_init_copy): Likewise.
2154 * posix/regex_internal.h (state_array_t): New structure.
2155 (re_sub_match_last_t): Likewise.
2156 (re_sub_match_top_t): Likewise.
2157 (re_match_context_t): Add new members.
2158 (re_dfa_t): Likewise.
2159 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
2160 to check the matching is really correct, and retry if failed.
2161 Move the routin pruning the impossible nodes from here, ...
2162 (prune_impossible_nodes): To this function.
2163 (check_matching): Invoke check_subexp_matching_top, and replace
2164 redundant checking with transit_state_bkref invocation.
2165 (proceed_next_node): Replace strncmp with memcmp. Reported by
2166 Paolo Bonzini <bonzini@gnu.org>.
2167 (update_cur_sifted_state): Remove search_subexp invocation.
2168 (search_subexp): Remove this function.
2169 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
2171 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
2172 Remove unused invocation of match_ctx_add_entry.
2173 (transit_state): Invoke check_subexp_matching_top.
2174 (check_subexp_matching_top): New function.
2175 (transit_state_bkref): Remove unused array.
2176 Merge transit_state_bkref_loop.
2177 (transit_state_bkref_loop): Use get_subexp instead of
2178 sift_states_backward. Use search_cur_bkref_entry for optimization.
2179 Merge this function to transit_state_bkref.
2180 (get_subexp): New function.
2181 (get_subexp_sub): Likewise.
2182 (find_subexp_node): Likewise.
2183 (check_arrival): Likewise.
2184 (check_arrival_expand_ecl): Likewise.
2185 (check_arrival_expand_ecl_sub): Likewise.
2186 (expand_bkref_cache): Likewise.
2187 (match_ctx_init): Initialize new members.
2188 (match_ctx_clean): New function.
2189 (match_ctx_free): Release new members.
2190 (match_ctx_free_subtops): New function.
2191 (match_ctx_add_entry): Fix indent.
2192 (search_cur_bkref_entry): New function.
2193 (match_ctx_add_subtop): Likewise.
2194 (match_ctx_add_sublast): Likewise.
2196 2002-11-25 Ulrich Drepper <drepper@redhat.com>
2198 * iconv/Makefile (tests): Remove tst-iconv4.c
2199 * iconv/tst-iconv4.c: Moved to...
2200 * iconvdata/tst-iconv4.c: ...here. New file.
2201 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
2203 2002-11-25 Roland McGrath <roland@redhat.com>
2205 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
2206 Grok AF_LINK if defined.
2207 From Momchil Velikov <velco@fadata.bg>.
2209 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
2210 brdaddr, or dstaddr, just set those pointers to null and don't fail.
2211 Reported by Momchil Velikov <velco@fadata.bg>.
2213 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
2214 is > sizeof IFR->ifa_addr, advance past the whole longer length.
2215 (__ifreq): Count up NIFS that way too.
2216 Reported by Momchil Velikov <velco@fadata.bg>.
2218 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
2220 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
2221 and <fpu_control.h>.
2223 2002-11-24 Ulrich Drepper <drepper@redhat.com>
2225 * elf/elf.h (EM_ST19): Fix typo.
2227 2002-11-25 Jakub Jelinek <jakub@redhat.com>
2229 * include/errno.h (__set_errno): Define as errno = val
2232 2002-11-24 Roland McGrath <roland@redhat.com>
2234 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
2235 * sysdeps/posix/writev.c: Likewise.
2236 From Momchil Velikov <velco@fadata.bg>.
2238 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
2239 calling *GL(dl_error_catch_tsd) for a thread-local location.
2240 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
2241 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
2242 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
2244 * libio/iofflush.c: Add libc_hidden_def.
2245 * libio/iofwrite.c: Likewise.
2246 * sysdeps/generic/sigtimedwait.c: Likewise.
2247 * sysdeps/generic/sigwaitinfo.c: Likewise.
2248 * sysdeps/posix/sigwait.c: Likewise.
2249 Reported by Momchil Velikov <velco@fadata.bg>.
2251 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
2252 to match <arpa/inet.h> declaration.
2253 * inet/inet_netof.c (inet_netof): Likewise.
2254 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
2255 Reported by Momchil Velikov <velco@fadata.bg>.
2257 * configure.in: Skip AUTOCONF check under --without-cvs.
2258 * configure: Regenerated.
2260 * posix/Makefile (headers): Add bits/pthreadtypes.h.
2261 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
2262 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
2264 2002-11-24 Andreas Schwab <schwab@suse.de>
2266 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
2269 2002-11-19 Jim Meyering <jim@meyering.net>
2271 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
2273 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
2275 2002-11-23 Roland McGrath <roland@redhat.com>
2277 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
2278 Just produce hex output for datum sizes.
2280 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
2281 Reported by Luca Barbieri <ldb@ldb.ods.org>.
2283 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
2285 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
2286 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
2287 and __unused3 fields.
2288 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
2289 [__WORDSIZE == 32]: Only PPC32 requires __unused1
2290 and __unused2 fields.
2291 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
2292 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
2293 __unused3, and __unused4 fields.
2295 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
2296 obtain lowest address for profiling in __monstartup call.
2298 2002-11-21 Roland McGrath <roland@redhat.com>
2300 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
2301 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
2303 * locale/localeinfo.h (struct locale_data): Revert last change.
2305 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
2306 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2308 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
2309 __NR_pread64 if not defined.
2310 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
2311 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2313 2002-11-21 Roland McGrath <roland@frob.com>
2315 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
2316 __libc_multiple_libcs here. Call __setfpucw.
2318 2002-11-21 Ulrich Drepper <drepper@redhat.com>
2320 * elf/Makefile (tests): Don't run test-arrayX tests for now.
2322 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
2323 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
2324 CLONE_CHILD_*TID flags.
2326 2002-11-20 Andreas Jaeger <aj@suse.de>
2328 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
2329 We pass struct ucontext on x86-64.
2331 (GET_FRAME): Adjust.
2332 (GET_STACK): Adjust.
2334 2002-11-20 Roland McGrath <roland@redhat.com>
2336 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
2337 conditionalize [! DO_VERSIONING] #error.
2339 * scripts/abilist.awk: Grok function descriptor symbols.
2341 * intl/tst-gettext.c (main): Check return values from setlocale.
2342 Add necessary unsetenv's to make LANG=existing-locale check work.
2344 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
2345 so aborted prior runs don't confuse things.
2347 * locale/localeinfo.h (struct locale_data: union locale_data_value):
2348 Use uintptr_t instead of unsigned int for `word' member.
2349 (_NL_CURRENT_WORD): Cast to uint32_t.
2351 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
2354 2002-11-20 Ulrich Drepper <drepper@redhat.com>
2356 * elf/tls-macros.h: Add IA-64 definitions.
2357 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
2359 * iconv/Makefile (tests): Add tst-iconv4.
2360 * iconv/tst-iconv4.c: New file.
2362 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
2363 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
2364 __GCONV_INCOMPLETE_INPUT.
2365 (ucs4le_internal_loop): Likewise.
2366 (ucs4le_internal_loop_unaligned): Likewise.
2367 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
2368 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
2369 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
2371 * iconv/loop.c (LOOPFCT): First test for empty input then for full
2374 * inet/getnameinfo.c: Use extend_alloca where appropriate.
2375 * sysdeps/posix/getaddrinfo.c: Likewise.
2377 * include/alloca.h (extend_alloca): New define. Based on stack
2378 direction it'll try to append to the previouls allocated buffer.
2380 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
2382 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
2383 use the same service for AF_INET and AF_INET6.
2385 2002-11-19 Ulrich Drepper <drepper@redhat.com>
2387 * intl/localealias.c (read_alias_file): Use only about 400 bytes
2388 of stack space instead of 16k.
2390 2002-11-18 Wolfram Gloger <wg@malloc.de>
2393 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
2394 nothing if not initialized. Bug report from Marcus Brinkmann
2395 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2397 2002-11-19 Roland McGrath <roland@redhat.com>
2399 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
2402 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
2403 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
2404 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
2405 * configure: Regenerated.
2407 2002-11-19 Ulrich Drepper <drepper@redhat.com>
2409 * include/dlfcn.h: __libc_dlopen is now a macro calling
2410 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
2411 (__libc_dlopen_mode): New prototype.
2412 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
2413 new parameter. Store new parameter in mode field of structure passed
2415 (struct do_dlopen_args): Add new field mode.
2416 (do_dlopen): Pass mode from parameter structure to _dl_open.
2418 2002-11-11 Randolf Chung <tausq@debian.org>
2420 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
2421 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
2422 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
2424 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
2426 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
2427 Set -mdisable-fpregs for this file.
2429 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
2431 * sysdeps/unix/sysv/linux/configure.in:
2432 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
2433 from gcc-3.0 era for backwards compatibility.
2434 * sysdeps/unix/sysv/linux/configure: Regenerate.
2436 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
2437 Define mcontext_t as a sigcontext.
2439 2002-11-18 Roland McGrath <roland@redhat.com>
2441 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
2442 Free memory in `last_result' if it was used.
2444 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
2445 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
2446 Do the parsing inline instead of copying strings and calling
2447 inet_network, and properly skip all alias names not matching the form.
2449 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
2451 2002-11-17 Ulrich Drepper <drepper@redhat.com>
2453 * manual/pattern.texi (Wordexp Example): Fix sample code.
2455 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
2456 childs stack which will be loaded into the %esi register.
2458 2002-11-14 Paul Eggert <eggert@twinsun.com>
2460 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
2461 overflow when skipping the question part and when unpacking aliases.
2463 2002-11-15 Roland McGrath <roland@redhat.com>
2465 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
2466 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
2467 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
2469 2002-11-15 Jakub Jelinek <jakub@redhat.com>
2471 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
2472 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
2474 2002-11-15 Roland McGrath <roland@redhat.com>
2476 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
2477 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
2478 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
2479 (+make-include-of-dep): New canned sequence.
2481 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
2482 From Dmitry V. Levin <ldv@altlinux.org>.
2484 2002-11-14 Roland McGrath <roland@redhat.com>
2486 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
2487 * inet/herrno.c (__libc_h_errno): Likewise.
2488 * resolv/res_libc.c (__libc_res): Likewise.
2489 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
2490 (__res_state) [! USE___THREAD]: Don't define as weak.
2491 * csu/Versions: Revert last change.
2492 * resolv/Versions: Revert last change.
2494 * Makerules ($(common-objpfx)%.make): New pattern rule.
2495 * tls.make.c: New file.
2496 * Makefile (distribute): Add it.
2498 * sysdeps/generic/errno.c [! USE___THREAD]
2499 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
2500 with compat_symbol so they are not link-time visible.
2501 [! USE___THREAD] (__libc_errno): New alias for errno.
2502 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2503 Add __libc_errno here.
2504 * inet/herrno.c [USE___THREAD]: Use this conditional
2505 in place of [USE_TLS && HAVE___THREAD].
2506 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
2507 (h_errno, _h_errno): Declare these with compat_symbol so they are not
2509 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
2510 * resolv/res_libc.c [! USE___THREAD]
2511 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
2512 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
2513 (__libc_res): Define as alias for _res.
2514 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
2515 Add __libc_h_errno and __libc_res here.
2517 2002-11-14 Jakub Jelinek <jakub@redhat.com>
2519 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
2520 * resolv/Versions (h_errno, _res): Likewise.
2522 2002-11-14 Roland McGrath <roland@redhat.com>
2524 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
2525 (%.symlist): Likewise.
2527 2002-11-13 Roland McGrath <roland@redhat.com>
2529 * scripts/abilist.awk: New file.
2530 * Makefile (distribute): Add it.
2531 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
2532 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
2533 [$(subdir) = elf] (tests): Depend on libc.symlist.
2534 (generated, common-generated): Add those files.
2536 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
2537 * configure: Regenerated.
2538 * config.make.in (OBJDUMP): New variable, substituted by configure.
2540 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
2541 (mallochook, reallochook): Set them up.
2542 (checkhdr): Check HDR->magic2 value.
2543 (freehook): Reset HDR->magic2.
2544 (memalignhook): New static function.
2545 (old_memalign_hook): New static variable.
2546 (mcheck, reallochook): Set __memalign_hook to memalignhook.
2548 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
2551 2002-11-13 Andreas Jaeger <aj@suse.de>
2553 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
2555 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2557 2002-11-11 Paul Eggert <eggert@twinsun.com>
2559 * manual/crypt.texi (Cryptographic Functions): Mention that
2560 the MD5 one-way algorithm is compatible with BSD's.
2562 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
2564 * posix/regex_internal.c (re_string_skip_chars): Also return the last
2566 (re_string_reconstruct): Calculate the context by itself when the
2567 offset points out of the valid range.
2568 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
2569 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
2570 (IS_WIDE_WORD_CHAR): New macro.
2571 (IS_WIDE_NEWLINE): New macro.
2573 2002-11-12 Andreas Jaeger <aj@suse.de>
2575 * sysdeps/x86_64/strchr.S: Don't use one register for two
2576 purposes, this fixes a bug noticed by test-strchr.c.
2578 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
2581 2002-11-12 Roland McGrath <roland@redhat.com>
2583 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
2584 (_G_IO_NO_BACKWARD_COMPAT): Define it.
2586 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
2587 instead of <pt-machine.h>.
2588 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
2590 From Ian Wienand <ianw@gelato.unsw.edu.au>.
2592 2002-11-10 Roland McGrath <roland@redhat.com>
2594 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
2595 Call fputs instead of fwprintf (simpler to follow in debugger).
2597 * crypt/md5-crypt.c: Doc fix.
2599 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
2600 the beginning of generated target commands.
2602 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
2603 dependencies for these in case implicit rule search skipped the
2604 nonexistent source directory.
2605 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
2606 files with $(object-suffixes) as targets too.
2607 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
2608 and a target for it using $(make-target-directory).
2610 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
2612 2002-11-10 Roland McGrath <roland@frob.com>
2614 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
2615 * sysdeps/generic/bits/pthreadtypes.h: ... here.
2617 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
2618 l_start == 0 and l_len == 1 as we do l_len == 0.
2620 2002-11-10 Ulrich Drepper <drepper@redhat.com>
2622 * po/da.po: Update from translation team.
2624 2002-11-10 Roland McGrath <roland@redhat.com>
2626 * config.make.in (includedir): New variable, substituted by configure.
2627 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
2628 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
2630 2002-11-10 Andreas Jaeger <aj@suse.de>
2632 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
2633 REG_OLDMASK and REG_CR2 to synch with kernel header.
2636 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
2638 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
2639 * nss/getnssent_r.c (__nss_getent_r): Likewise.
2640 (__nss_setent): Likewise.
2641 (__nss_getent_r): Likewise.
2642 * inet/getnetgrent_r.c (innetgr): Likewise.
2643 (__internal_setnetgrent_reuse): Likewise.
2644 (internal_getnetgrent_r): Likewise.
2645 * inet/ether_hton.c (ether_hostton): Likewise.
2646 * inet/ether_ntoh.c (ether_ntohost): Likewise.
2647 * sunrpc/netname.c (netname2user): Likewise.
2648 * sunrpc/publickey.c (getpublickey): Likewise.
2649 (getsecretkey): Likewise.
2651 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
2653 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
2654 error in range calculation.
2656 2002-10-09 Jakub Jelinek <jakub@redhat.com>
2658 * string/test-strspn.c (do_test): Ensure zero termination.
2659 * string/test-strpbrk.c (do_test): Likewise.
2660 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
2661 * string/test-strncpy.c (stupid_strncpy): Likewise.
2662 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
2664 2002-10-08 Roland McGrath <roland@redhat.com>
2666 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
2669 2002-09-22 H.J. Lu <hjl@gnu.org>
2671 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
2672 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
2673 only if __NR_mmap2 is defined.
2675 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
2676 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
2677 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
2678 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
2680 2002-11-08 Jakub Jelinek <jakub@redhat.com>
2682 * posix/bug-regex13.c (tests): Add new test.
2684 * string/test-strchr.c (stupid_strchr): New function.
2685 (do_random_tests): Make sure the string is zero terminated.
2686 * string/test-strpbrk.c (stupid_strpbrk): New function.
2687 (do_random_tests): Make sure the string is zero terminated.
2688 * string/test-strcmp.c (stupid_strcmp): New function.
2689 (do_random_tests): Make sure the strings are zero terminated.
2690 * string/test-strspn.c (stupid_strspn): New function.
2691 (simple_strspn): Rename rej argument to acc.
2692 (do_random_tests): Make sure the string is zero terminated.
2693 * string/test-strcspn.c (stupid_strcspn): New function.
2694 * string/test-strncpy.c (stupid_strncpy): New function.
2695 * string/test-stpncpy.c (stupid_stpncpy): New function.
2696 * string/test-strncmp.c (stupid_strncmp): New function.
2697 (do_random_tests): Make sure the strings are zero terminated.
2698 * string/test-string.h (impl_t): Change test into long.
2699 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
2701 2002-11-08 Roland McGrath <roland@redhat.com>
2703 * sysdeps/ia64/elf/configure.in: Add TLS check.
2704 From Ian Wienand <ianw@cse.unsw.edu.au>.
2705 * sysdeps/ia64/elf/configure: Regenerated.
2707 2002-11-07 Roland McGrath <roland@redhat.com>
2709 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
2710 place of _IO_new_do_write.
2711 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
2712 #undef before versioned_symbol use.
2714 2002-11-07 Richard Henderson <rth@redhat.com>
2716 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
2717 * configure: Regenerated.
2718 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
2719 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
2720 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
2721 _dl_fini via gp-relative relocations.
2722 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
2724 * elf/tls-macros.h: Add alpha versions.
2725 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
2726 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
2727 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
2728 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
2729 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2730 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2731 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2732 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2733 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2734 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2735 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
2736 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2737 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2738 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2739 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2740 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2741 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2742 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2744 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
2745 Kill argument registers across the inline syscall.
2747 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
2749 * linuxthreads/sysdeps/alpha/tls.h: New file.
2750 * sysdeps/alpha/dl-tls.h: New file.
2752 2002-10-29 David Mosberger <davidm@hpl.hp.com>
2754 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
2755 (gmon_initializer): New function.
2756 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
2757 __gmon_start__ here. Call it from gmon_initializer() instead.
2759 2002-03-12 H.J. Lu <hjl@gnu.org>
2761 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
2762 tst-array2, and tst-array3.
2763 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
2764 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
2765 ($(objpfx)tst-array1.out): New target.
2766 ($(objpfx)tst-array2): Likewise.
2767 ($(objpfx)tst-array2.out): Likewise.
2768 ($(objpfx)tst-array3.out): Likewise.
2769 * elf/tst-array1.c: New file.
2770 * elf/tst-array1.exp: Likewise.
2771 * elf/tst-array2.c: Likewise.
2772 * elf/tst-array2dep.c: Likewise.
2773 * elf/tst-array2.exp: Likewise.
2774 * elf/tst-array3.c: Likewise.
2776 2002-10-28 David Mosberger <davidm@hpl.hp.com>
2778 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
2779 Don't add L->l_addr to array entry values.
2781 2002-11-07 Jakub Jelinek <jakub@redhat.com>
2783 * string/test-string.h: New file.
2784 * string/test-strlen.c: New file.
2785 * string/test-string.h: New file.
2786 * string/test-strcmp.c: New file.
2787 * string/test-strchr.c: New file.
2788 * string/test-strrchr.c: New file.
2789 * string/test-strcpy.c: New file.
2790 * string/test-stpcpy.c: New file.
2791 * string/test-strncpy.c: New file.
2792 * string/test-stpncpy.c: New file.
2793 * string/test-strpbrk.c: New file.
2794 * string/test-strcspn.c: New file.
2795 * string/test-strspn.c: New file.
2796 * string/test-strcat.c: New file.
2797 * string/test-strncmp.c: New file.
2798 * string/test-memchr.c: New file.
2799 * string/test-memcmp.c: New file.
2800 * string/test-memset.c: New file.
2801 * string/test-memcpy.c: New file.
2802 * string/test-mempcpy.c: New file.
2803 * string/test-memmove.c: New file.
2804 * string/Makefile (strop-tests): New variable.
2805 (tests): Add strop-tests.
2806 (distribute): Add test-string.h.
2808 2002-11-06 Ulrich Drepper <drepper@redhat.com>
2810 * posix/regcomp.c: Use tabs instead of spaces.
2811 * posix/regexec.c: Likewise.
2812 * posix/regex_internal.h: Likewise.
2814 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
2816 2002-11-06 Jakub Jelinek <jakub@redhat.com>
2818 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
2820 (regcomp): Don't set can_be_null here.
2821 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
2822 (re_compile_internal): Clear can_be_null, set regs_allocated.
2824 * posix/regcomp.c (re_set_fastmap): New function.
2825 (re_compile_fastmap_iter): Use it. Remove redundant type ==
2826 COMPLEX_BRACKET check.
2827 * posix/regexec.c (re_search_internal): Optimize searching with
2828 fastmap. Call re_string_reconstruct even if match_first is
2829 smaller than raw_mbs_idx.
2831 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
2833 * posix/regcomp (free_dfa_content): Use free_state.
2834 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
2835 pointers in case that realloc failed.
2836 (re_node_set_merge): Likewise.
2837 (register_state): Likewise.
2838 (create_newstate_common): Invoke memory release functions in case of
2840 (create_ci_newstate): Likewise.
2841 (create_cd_newstate): Likewise.
2842 (free_state): New function.
2843 * posix/regexec.c (re_search_internal): Invoke memory release
2844 functions in case of error conditions.
2845 (sift_states_backward): Likewise.
2846 (merge_state_array): Likewise.
2847 (add_epsilon_src_nodes): Likewise.
2848 (sub_epsilon_src_nodes): Likewise.
2849 (search_subexp): Likewise.
2850 (sift_states_bkref): Likewise.
2851 (transit_state_sb): Likewise.
2852 (transit_state_mb): Likewise.
2853 (transit_state_bkref_loop): Likewise.
2854 (group_nodes_into_DFAstates): Likewise.
2855 (push_fail_stack): Don't edit pointers in case that realloc failed.
2856 (extend_buffers): Likewise.
2857 (match_ctx_add_entry): Likewise.
2859 2002-11-06 Roland McGrath <roland@redhat.com>
2861 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
2862 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2864 * configure.in: Add checks on as and ld for binutils 2.13 or later.
2865 * configure: Regenerated.
2867 2002-11-06 Ulrich Drepper <drepper@redhat.com>
2869 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
2870 If re_compile_internal failed free fastmap buffer.
2871 (free_dfa_content): Broken out of regfree function. Frees all dfa
2873 (regfree): Add free_dfa_content.
2874 (re_compile_internal): If any of the called functions fails free
2875 all dfa related memory.
2877 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2879 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
2880 warnings from the kernel headers.
2882 2002-11-05 Roland McGrath <roland@redhat.com>
2884 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
2885 From Johannes Stezenbach <js@convergence.de>.
2887 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
2888 #errlist-compat magic comment to give 123 as size.
2889 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
2890 (libc: GLIBC_2.2): ... here.
2891 (libc: GLIBC_2.3): Likewise.
2893 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2895 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
2896 which happens at the beginning so that we can unload modules in
2899 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2901 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
2902 under [__USE_MISC || _ASM].
2904 * elf/elf.h: Remove the obsolete SH TLS relocations.
2906 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2908 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
2910 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
2913 __NR_pread64 and __NR_pwrite64.
2914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2915 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
2917 Revert change to use INLINE_SYSCALL.
2918 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2919 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2920 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2921 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
2923 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2926 Update clobber list and add a comment about the syscall ABI.
2928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
2929 s_pwrite64, s_ftruncate, s_truncate): Re-add.
2931 2002-11-05 Jakub Jelinek <jakub@redhat.com>
2933 * iconv/gconv_dl.c (free_mem): Clear loaded.
2934 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
2937 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2939 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
2941 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
2942 as old code without locking. _IO_seekoff calls this function after
2944 * libio/ioseekpos.c: Likewise for _IO_seekpos.
2945 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
2946 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
2948 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
2949 of _IO_seekoff_internal.
2950 (_IO_rewind): Likewise.
2951 * libio/ioftell.c: Likewise.
2952 * libio/ftello.c: Likewise.
2953 * libio/ftello64.c: Likewise.
2954 * libio/iofgetpos.c: Likewise.
2955 * libio/iofgetpos64.c: Likewise.
2956 * libio/oldiofgetpos.c: Likewise.
2957 * libio/oldiofgetpos64.c: Likewise.
2958 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
2959 _IO_seekpos_internal.
2960 * libio/iofsetpos64.c: Likewise.
2961 * libio/oldiofsetpos.c: Likewise.
2962 * libio/oldiofsetpos64.c: Likewise.
2964 2002-11-04 Roland McGrath <roland@redhat.com>
2966 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
2967 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2968 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2969 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
2970 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2971 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2972 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2973 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
2974 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2975 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2976 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
2977 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
2978 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
2979 Remove these, no longer used.
2981 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
2984 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
2985 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
2986 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
2987 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
2988 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
2991 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
2992 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2993 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
2995 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2996 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
2998 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
3000 2002-11-03 Roland McGrath <roland@redhat.com>
3002 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
3003 `_dl_tls_static_used'.
3004 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
3005 (__libc_setup_tls): Initialize it. Let the initial value of
3006 _dl_tls_static_size indicate some surplus space in the computed value.
3007 * elf/dl-open.c (_dl_tls_static_size): New variable.
3008 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
3009 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
3010 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
3011 (CHECK_STATIC_TLS): Use it.
3012 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
3013 closed objects occupied a trailing contiguous chunk of static TLS area.
3015 2002-10-18 Bruno Haible <bruno@clisp.org>
3017 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
3019 2002-11-04 Ulrich Drepper <drepper@redhat.com>
3021 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
3022 _wide_data->_IO_read_end if adjustment can be made in the current
3025 * sysdeps/unix/sysv/linux/fexecve.c: New file.
3027 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
3028 wide oriented streams are used.
3030 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
3031 service hasn't been used [PR libc/4744].
3033 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
3034 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
3036 * manual/examples/dir.c: Don't include <stddef.h>.
3037 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
3038 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
3040 2002-11-02 H.J. Lu <hjl@gnu.org>
3042 * stdio-common/reg-printf.c: Include <stddef.h>.
3044 2002-11-03 Ulrich Drepper <drepper@redhat.com>
3046 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
3048 * po/ca.po: Update from translation team.
3049 * po/es.po: Likewise.
3051 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
3052 is defined write out memory map.
3053 * sysdeps/unix/sysv/linux/segfault.c: New file.
3055 2002-11-02 Roland McGrath <roland@redhat.com>
3057 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
3058 pointers that can alias.
3059 Reported by Daniel Jacobowitz <drow@mvista.com>.
3061 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
3063 2002-11-02 Roland McGrath <roland@redhat.com>
3065 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
3066 description to be clearer and to say that *RESULT is set to ENTRY.
3068 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3070 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
3071 dests_ch arrays together. Alloca or malloc dest_states,
3072 dest_states_word and dest_states_nl arrays together. Free memory on
3075 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3077 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
3078 and current_saltbits.
3080 2002-11-02 Roland McGrath <roland@redhat.com>
3082 * stdio-common/reg-printf.c: Include <stdlib.h>.
3084 2002-11-02 H.J. Lu <hjl@gnu.org>
3086 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
3087 caller to EXTRA instead of execve.
3089 2002-11-01 Roland McGrath <roland@redhat.com>
3091 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
3092 in place of [!(USE_TLS && HAVE___THREAD)].
3093 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
3095 2002-10-31 Roger Sayle <roger@eyesopen.com>
3097 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
3099 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
3101 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
3102 without defining FP_ROUNDMODE.
3104 2002-10-29 Jakub Jelinek <jakub@redhat.com>
3106 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
3107 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
3109 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
3110 (OLD_SIGLIST_SIZE): Define.
3111 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
3112 (OLD_SIGLIST_SIZE): Define.
3113 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
3115 2002-11-01 Jakub Jelinek <jakub@redhat.com>
3117 * sysdeps/ia64/strncpy.S: Fix recovery code.
3119 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3121 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
3123 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
3125 * elf/dl-libc.c (free_mem): Likewise.
3126 * iconv/gconv_conf.c (free_mem): Likewise.
3127 * iconv/gconv_db.c (free_mem): Likewise.
3128 * iconv/gconv_dl.c (free_mem): Likewise.
3129 * iconv/gconv_cache.c (free_mem): Likewise.
3130 * intl/finddomain.c (free_mem): Likewise.
3131 * intl/dcigettext.c (free_mem): Likewise.
3132 * locale/setlocale.c (free_mem): Likewise.
3133 * misc/fstab.c (fstab_free): Likewise.
3134 * nss/nsswitch.c (free_mem): Likewise.
3135 * posix/regcomp.c (free_mem): Likewise.
3136 * resolv/gai_misc.c (free_res): Likewise.
3137 * stdlib/fmtmsg.c (free_mem): Likewise.
3138 * sunrpc/clnt_perr.c (free_mem): Likewise.
3139 * sysdeps/generic/setenv.c (free_mem): Likewise.
3140 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
3141 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
3142 * time/tzset.c (free_mem): Likewise.
3143 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
3144 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
3145 * malloc/set-freeres.c (__libc_freeres): Likewise.
3147 * login/getutent.c: Include stdlib.h instead of stddef.h.
3148 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
3149 (__getutent): Allocate buffer the first time it is run.
3150 * login/getutid.c: Include stdlib.h instead of stddef.h.
3151 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
3152 (__getutid): Allocate buffer the first time it is run.
3153 * login/getutline.c: Include stdlib.h instead of stddef.h.
3154 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
3155 (__getutline): Allocate buffer the first time it is run.
3156 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
3157 (mtrace): Allocate malloc_trace_buffer.
3158 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
3159 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
3160 * string/strerror.c: Include libintl.h and errno.h.
3161 (buf): New variable.
3162 (strerror): Only allocate buffer if actually needed (unknown error).
3163 * time/tzfile.c (transitions): Add libc_freeres_ptr.
3166 2002-10-25 Jakub Jelinek <jakub@redhat.com>
3168 * include/libc-symbols.h (libc_freeres_ptr): New macro.
3169 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
3171 (__libc_freeres): Free all pointers in that section.
3172 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
3173 commands when creating .lds script.
3174 (LDSEDCMD-c.so): New variable.
3175 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
3176 (rcmd_af): Use strdup to allocate ahostbuf.
3177 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
3178 (rexec_af): Use strdup to allocate ahostbuf.
3179 * stdio-common/reg-printf.c (printf_funcs): Remove.
3180 (__printf_arginfo_table): Change into printf_arginfo_function **.
3181 Add libc_freeres_ptr.
3182 (__register_printf_function): Allocate __printf_arginfo_table
3183 and __printf_function_table the first time it is called.
3184 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
3185 printf_arginfo_function **.
3186 (parse_one_spec): Add __builtin_expect.
3187 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
3189 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
3191 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
3192 (string_space, map): Add libc_freeres_ptr.
3194 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
3196 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
3198 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
3199 (buffer): Add libc_freeres_ptr.
3200 (free_mem): Remove for _LIBC.
3201 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
3203 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
3205 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
3207 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
3209 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
3211 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
3213 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
3216 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
3220 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3222 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
3223 instead of duplicating the whole function in libc.
3225 2002-10-31 Roland McGrath <roland@redhat.com>
3227 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
3228 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
3230 2002-10-30 Jakub Jelinek <jakub@redhat.com>
3232 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
3233 32bit-predefine when creating .new32 list and -U for each
3234 32bit-predefine when creating .new64 list.
3235 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
3237 2002-10-29 Andreas Schwab <schwab@suse.de>
3239 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
3240 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
3242 2002-10-25 Roland McGrath <roland@redhat.com>
3244 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
3245 * sysdeps/unix/sysv/linux/configure: Regenerated.
3247 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
3248 _dl_starting_up decl.
3250 2002-10-20 H.J. Lu <hjl@gnu.org>
3252 * sysdeps/unix/sysv/linux/configure.in: Don't check
3253 /lib/modules/`uname -r`/build/include for kernel headers if
3255 * sysdeps/unix/sysv/linux/configure: Regenerated.
3257 2002-10-25 Roland McGrath <roland@redhat.com>
3259 * math/math.h (M_LOG2El): Correct the value.
3260 From Stephen L Moshier <steve@moshier.net>.
3262 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
3263 conditional from __libc_multiple_libcs access. Remove kludge for weak
3264 symbol access with old compilers we no longer support.
3265 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
3266 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
3268 2002-10-25 Roland McGrath <roland@redhat.com>
3270 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
3271 implement SV_RESETHAND by translating it to SA_RESETHAND.
3273 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
3275 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
3276 type on ELF64 platforms.
3278 2002-10-24 Ulrich Drepper <drepper@redhat.com>
3280 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
3282 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
3284 2002-10-24 Jakub Jelinek <jakub@redhat.com>
3286 * elf/dl-misc.c: Include <sysdep.h>.
3287 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
3289 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
3290 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
3291 (INLINE_SYSCALL): Use that.
3292 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
3293 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
3294 (INLINE_SYSCALL): Use that.
3295 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
3296 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
3297 (INLINE_SYSCALL): Use that.
3298 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
3300 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
3301 (__INTERNAL_SYSCALL_STRING): Define.
3302 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
3304 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
3305 (__INTERNAL_SYSCALL_STRING): Define.
3306 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
3307 __SYSCALL_STRING to inline_syscall*.
3308 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
3310 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
3311 inline_syscall4, inline_syscall5, inline_syscall6): Add string
3314 2002-10-24 Roland McGrath <roland@redhat.com>
3316 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
3317 * sysdeps/unix/sysv/linux/init-first.c: Not here.
3318 * sysdeps/powerpc/elf/libc-start.c: Or here.
3319 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
3320 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
3321 * sysdeps/unix/sysv/aix/init-first.c: Or here.
3322 * sysdeps/generic/libc-start.c: Or here.
3323 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
3324 access with [! SHARED].
3325 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
3327 * libio/bug-wfflush.c: New file.
3328 * libio/Makefile (tests): Add bug-wfflush.
3330 2002-10-23 Roland McGrath <roland@redhat.com>
3332 * stdio-common/tst-fphex.c: New file.
3333 * stdio-common/Makefile (tests): Add tst-fphex.
3334 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
3335 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
3336 chars always before the value digits.
3337 Reported by James Antill <james.antill@redhat.com>.
3339 2002-10-24 Jakub Jelinek <jakub@redhat.com>
3341 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
3342 (free_mem): New function.
3343 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
3344 if not cross compiling.
3345 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
3346 (bug-regex14-ENV): Set.
3347 (bug-regex14-mem): New target.
3348 * posix/bug-regex14.c: New file.
3350 2002-10-23 Roland McGrath <roland@redhat.com>
3352 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
3353 target, so we don't touch it when the link fails.
3355 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
3356 Check for the result overflowing off_t and fail with EOVERFLOW.
3357 * libio/ioftell.c (_IO_ftell): Likewise.
3358 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
3360 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
3361 use a temporary timeval on the stack for gettimeofday and copy it.
3362 * login/logout.c (logout): Likewise.
3363 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
3365 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
3366 Use __SWORD_TYPE instead of int for member types.
3367 (struct statfs64): Likewise.
3368 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
3369 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
3370 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
3371 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
3372 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
3374 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
3375 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
3376 (ST_NODIRATIME): Restore fixed value of 2048.
3377 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
3378 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
3380 Rearranged <bits/types.h> definitions to reduce duplication.
3381 * sysdeps/generic/bits/types.h: Rewritten, using macros from
3382 <bits/wordsize.h> and new header <bits/typesizes.h>.
3383 * posix/Makefile (headers): Add bits/typesizes.h here.
3384 * sysdeps/generic/bits/typesizes.h: New file.
3385 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
3386 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
3387 * sysdeps/mach/hurd/bits/typesizes.h: New file.
3388 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
3389 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
3390 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
3391 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
3392 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
3393 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
3394 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
3395 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
3396 <bits/pthreadtypes.h> here, not in <bits/types.h>.
3397 * signal/signal.h: Likewise.
3399 * streams/stropts.h: Include <bits/xtitypes.h>.
3400 * streams/Makefile (headers): Add bits/xtitypes.h here.
3401 * sysdeps/generic/bits/xtitypes.h: New file.
3402 * sysdeps/s390/bits/xtitypes.h: New file.
3403 * sysdeps/ia64/bits/xtitypes.h: New file.
3404 * sysdeps/x86_64/bits/xtitypes.h: New file.
3406 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
3407 * sysdeps/generic/bits/ipctypes.h: New file.
3408 * sysdeps/mips/bits/ipctypes.h: New file.
3409 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
3410 * sysdeps/gnu/bits/msq.h: Likewise.
3411 * sysvipc/sys/ipc.h: Likewise.
3413 2002-10-22 Ulrich Drepper <drepper@redhat.com>
3415 * elf/dl-load.c (struct filebuf): For buf element to have the
3416 alignment of ElfXX_Ehdr since this is what will be stored in it.
3418 2002-10-22 Jakub Jelinek <jakub@redhat.com>
3420 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
3421 into pointer to locrec_offset.
3422 (add_locale_to_archive): Adjust callers. Free normalized_name right
3423 before returning, not immediately after add_locale, pass it to
3424 add_alias if not NULL instead of name. Rename second normalized_name
3425 occurence to nnormalized_codeset_name.
3427 * locale/programs/locarchive.c (enlarge_archive): Make sure
3428 string_size is always a multiple of 4.
3429 Reported by Andreas Schwab <schwab@suse.de>.
3431 2002-10-21 Andreas Schwab <schwab@suse.de>
3433 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
3434 caller to EXTRA instead of execve, since the latter has a
3435 higher-priority implementation in linuxthreads.
3437 2002-10-21 Roland McGrath <roland@redhat.com>
3439 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
3440 slotinfo list's len member to the proper size, not just 1.
3441 Initialize static_map.l_tls_initimage.
3443 * elf/dl-open.c (dl_open_worker): Fix loop searching for
3444 dtv_slotinfo_list element containing new modules' l_tls_modid.
3446 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
3447 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
3448 * elf/Makefile (tests): Add tst-tls9.
3449 (tests-static): Add tst-tls9-static.
3450 (tst-tls9-static-ENV): New variable.
3451 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
3453 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
3454 modids used by partially loaded modules being closed can't be known.
3456 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
3458 * posix/Makefile: Add a test case for the bug reported by Aharon
3459 Robbins <arnold@skeeve.com>.
3460 * posix/bug-regex13.c: New file.
3461 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
3463 2002-10-21 Ulrich Drepper <drepper@redhat.com>
3465 * csu/gmon-start.c: Pretty printing.
3467 2002-10-19 Art Haas <ahaas@neosoft.com>
3469 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
3470 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
3471 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
3472 * configure: Regenerated.
3474 2002-10-19 Roland McGrath <roland@redhat.com>
3476 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
3477 and then set $subdirs directly, because the new Autoconf breaks
3478 compatibility in every way imaginable and insists on whining
3479 about usage that worked since the dawn of time.
3480 * configure: Regenerated.
3482 * configure: Regenerated (using Autoconf 2.54).
3483 * sysdeps/alpha/elf/configure: Likewise.
3484 * sysdeps/generic/configure: Likewise.
3485 * sysdeps/i386/elf/configure: Likewise.
3486 * sysdeps/ia64/elf/configure: Likewise.
3487 * sysdeps/mach/hurd/configure: Likewise.
3488 * sysdeps/mach/configure: Likewise.
3489 * sysdeps/unix/configure: Likewise.
3490 * sysdeps/unix/common/configure: Likewise.
3491 * sysdeps/unix/sysv/aix/configure: Likewise.
3492 * sysdeps/unix/sysv/linux/configure: Likewise.
3493 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
3494 * sysdeps/x86_64/elf/configure: Likewise.
3496 * config.make.in: Nix completely-soft nonsense.
3497 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
3498 of machine directories instead of fpu subdirectory.
3499 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
3500 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
3501 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
3502 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
3503 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
3504 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
3505 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
3506 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
3507 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
3508 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
3509 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
3510 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
3511 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
3512 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
3513 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
3514 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
3515 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
3516 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
3517 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
3518 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
3519 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
3520 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
3521 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
3522 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
3523 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
3524 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
3525 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
3526 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
3527 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
3528 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
3529 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
3530 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
3531 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
3532 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
3533 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
3534 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
3535 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
3536 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
3537 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
3538 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
3540 2002-10-19 Bruno Haible <bruno@clisp.org>
3542 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
3544 2002-10-18 Roland McGrath <roland@redhat.com>
3546 * io/Makefile (routines): Add lchmod.
3547 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
3548 * sysdeps/generic/lchmod.c: New file.
3549 * sysdeps/mach/hurd/lchmod.c: New file.
3550 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
3552 2002-10-18 Art Haas <ahaas@neosoft.com>
3554 * configure.in: Remove remaining AC_FD_CC macros, and replace
3555 AC_FD_MSG with AS_MESSAGE_FD.
3557 2002-10-18 Roland McGrath <roland@redhat.com>
3559 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
3560 typos: VALUE -> FINALADDR.
3562 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
3563 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
3564 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
3565 (inline_syscall6): Move these macros ...
3566 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
3568 * configure.in (libc_link_dests, libc_link_sources): Remove these
3569 variables and the AC_LINK_FILES call.
3571 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
3572 change to put new symbols here instead of in GLIBC_2.2.
3573 * sysdeps/powerpc/Subdirs: Move this file ...
3574 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
3576 2002-10-07 Roland McGrath <roland@redhat.com>
3578 * sysdeps/generic/bits/time.h: Replaced with contents of the
3579 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
3580 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
3581 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
3582 macros is ok even for architectures that don't now implement them.
3583 * sysdeps/mach/hurd/bits/time.h: File removed.
3584 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
3585 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
3586 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
3587 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
3588 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
3590 2002-10-18 Jeff Bailey <jbailey@gnu.org>
3592 * configure.in: Replace obsolete AC_OUTPUT syntax with
3593 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
3595 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
3596 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
3598 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
3599 * sysdeps/alpha/elf/configure.in: Likewise.
3600 * sysdeps/i386/elf/configure.in: Likewise.
3601 * sysdeps/mach/hurd/configure.in: Likewise.
3602 * sysdeps/x86_64/elf/configure.in: Likewise.
3604 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
3606 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
3607 * sysdeps/generic/configure.in: Likewise.
3608 * sysdeps/i386/elf/configure.in: Likewise.
3609 * sysdeps/ia64/elf/configure.in: Likewise.
3610 * sysdeps/mach/configure.in: Likewise.
3611 * sysdeps/mach/hurd/configure.in: Likewise.
3612 * sysdeps/unix/configure.in: Likewise.
3613 * sysdeps/unix/common/configure.in: Likewise.
3614 * sysdeps/unix/sysv/aix/configure.in: Likewise.
3615 * sysdeps/unix/sysv/linux/configure.in: Likewise.
3616 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
3617 * sysdeps/x86_64/elf/configure.in: Likewise.
3619 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
3620 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
3621 that it's obvious when extra autoconf machinery is being dragged in.
3623 2002-10-18 Roland McGrath <roland@redhat.com>
3625 * configure.in: Remove bogus echo included in
3626 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
3627 * configure: Regenerated.
3629 2002-10-18 Jakub Jelinek <jakub@redhat.com>
3631 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
3632 (statfs_filesize_max): New function.
3633 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
3634 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
3635 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
3636 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
3637 statfs_filesize_max.
3638 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3639 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
3640 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
3642 2002-10-17 Roland McGrath <roland@redhat.com>
3644 * configure.in (MIG): Just AC_SUBST it here.
3645 * configure: Regenerated.
3646 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
3647 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
3648 * sysdeps/mach/configure: Regenerated.
3650 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
3651 and AC_PROVIDE([_AS_CR_PREPARE]).
3653 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
3654 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
3656 * elf/dl-support.c: Move _dl_tls_* variables to ...
3657 * sysdeps/generic/libc-tls.c: ... here.
3659 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
3660 allow IDX to be one past the current last slotinfo entry.
3661 (_dl_close): Pass IMAP->l_init_called for that parameter.
3663 2002-10-07 Andreas Schwab <schwab@suse.de>
3665 * aclocal.m4: Fix for autoconf 2.53.
3666 * configure.in: Likewise. Require autoconf 2.53.
3668 2002-10-08 Richard Henderson <rth@redhat.com>
3670 * soft-fp/op-4.h: Handle carry correctly in
3671 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
3672 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
3673 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
3675 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
3677 * configure.in: Compute completely-soft.
3678 * config.make.in: Make completely-soft available to sub-makes.
3679 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
3680 gcc-double-routines. Add sim-full.c. Add fenv_const and
3681 fe_nomask to libm-support.
3682 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
3683 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
3684 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
3685 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
3686 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
3687 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
3688 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
3689 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
3690 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
3691 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
3692 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
3693 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
3694 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
3695 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
3696 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
3697 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
3698 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
3699 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
3700 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
3701 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
3703 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
3704 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
3705 FP_HANDLE_EXCEPTIONS.
3706 Define FP_ROUNDMODE.
3707 Redefine FP_* macros to correspond to the FE_* bit positions.
3708 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
3709 Define externs for __sim_exceptions, __sim_disabled_exceptions,
3710 __sim_round_mode, __simulate_exceptions.
3711 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
3712 * sysdeps/powerpc/bits/fenv.h: ...to here.
3714 2002-10-06 Jakub Jelinek <jakub@redhat.com>
3716 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3717 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
3718 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
3719 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
3722 2002-10-15 Jakub Jelinek <jakub@redhat.com>
3724 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
3725 __libc_res_nsend): New prototypes.
3726 * resolv/res_query.c (QUERYSIZE): Define.
3727 (__libc_res_nquery): Renamed from res_nquery. Added answerp
3728 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
3729 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
3730 res_nsend, pass answerp.
3731 (res_nquery): Changed into wrapper around __libc_res_nquery.
3732 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
3733 argument. Call __libc_res_nquerydomain and __libc_res_nquery
3734 instead of the non-__libc_ variants, pass them answerp.
3735 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
3736 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
3737 Added answerp argument. Call __libc_res_nquery instead of
3738 res_nquery, pass answerp.
3739 (res_nquerydomain): Changed into wrapper around
3740 __libc_res_nquerydomain.
3741 * resolv/res_send.c: Include sys/ioctl.h.
3742 (MAXPACKET): Define.
3743 (send_vc): Change arguments. Reallocate answer buffer if it is
3745 (send_dg): Likewise.
3746 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
3747 Reallocate answer buffer if it is too small and hooks are in use.
3748 Adjust calls to send_vc and send_dg.
3749 (res_nsend): Changed into wrapper around __libc_res_nsend.
3750 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
3751 just 1K answer buffer on the stack, use __libc_res_nsearch instead
3753 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
3754 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3755 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
3756 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
3757 (gethostbyaddr): Similarly with __libc_res_nquery.
3758 * resolv/Versions (libresolv): Export __libc_res_nquery and
3759 __libc_res_nsearch at GLIBC_PRIVATE.
3761 2002-10-17 Roland McGrath <roland@redhat.com>
3763 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
3764 * configure: Regenerated.
3766 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
3767 before performing the reloc, not after.
3768 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3770 2002-10-17 Ulrich Drepper <drepper@redhat.com>
3772 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
3773 * locale/programs/linereader.c (lr_open): Likewise.
3774 * locale/programs/charmap-dir.c (charmap_open): Likewise.
3775 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
3777 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
3779 * posix/bug-regex11.c: Add a test case for the bug reported by
3780 Paolo Bonzini <bonzini@gnu.org>.
3781 * posix/regexec.c (sift_states_bkref): Use correct destination of
3784 2002-10-17 Roland McGrath <roland@redhat.com>
3786 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
3787 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
3788 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
3789 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
3790 Call it after performing TPOFF relocs.
3791 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3792 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3793 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
3795 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
3796 when closing a partially-initialized object.
3798 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
3799 instead of _dl_fatal_printf when we see PT_TLS.
3801 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
3802 instead of $(libof-$<).
3804 2002-10-16 Roland McGrath <roland@redhat.com>
3806 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
3807 instead of += to append, to be sure $(lib) gets expanded at defn time.
3808 (libof-$(cpp-src)): New variable, define this instead.
3809 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
3810 (lib): Don't use override.
3811 (CPPFLAGS-$(lib)): New variable, put -D's here.
3812 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
3813 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
3814 LIB found by $(libof-*) for basename, target, or source.
3815 * Makerules (CPPFLAGS-nonlib): New variable.
3816 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
3817 * locale/Makefile (lib): Likewise.
3818 * sunrpc/Makefile (lib): Likewise.
3820 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
3821 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
3822 * sysdeps/unix/sysv/linux/pathconf.h: New file.
3823 (statfs_link_max): New function, guts from fpathconf.c.
3824 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
3825 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
3826 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
3827 to use the linux/pathconf.c code by #include rather than duplication.
3828 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
3830 2002-10-16 Jakub Jelinek <jakub@redhat.com>
3832 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3833 Use __libc_errno only for libc itself.
3835 2002-10-16 Andreas Jaeger <aj@suse.de>
3837 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
3839 2002-10-16 Ulrich Drepper <drepper@redhat.com>
3841 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3842 Use __libc_errno only for libc itself.
3844 2002-10-15 Roland McGrath <roland@redhat.com>
3845 Jakub Jelinek <jakub@redhat.com>
3847 * sysdeps/unix/sysv/linux/Makefile
3848 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
3849 sparc/Makefile to produce a bi-arch file as needed.
3850 That's now parameterized by the variable $(64bit-predefine).
3851 Use LC_ALL=C for `comm' commands in that rule.
3852 No longer conditional on [$(no_syscall_list_h)].
3853 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
3854 (64bit-predefine): New variable.
3855 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
3856 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3857 * sysdeps/unix/sysv/linux/powerpc/Makefile
3858 (64bit-predefine): New variable.
3860 2002-10-15 Roland McGrath <roland@redhat.com>
3862 * sysdeps/unix/sysv/linux/Makefile
3863 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
3865 * login/utmp-private.h: Declare __libc_utmp_lock.
3866 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
3867 and call __libc_utmp_jump_table functions directly, instead of using
3870 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
3871 * sysdeps/unix/sysv/linux/configure: Regenerated.
3873 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
3874 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3875 Use int32_t for ll_time.
3876 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3877 Use int32_t instead of long int for ut_session.
3878 Use an anonymous struct with 32-bit fields for ut_tv.
3879 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
3880 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
3881 here as in utmp.h for `struct utmp'.
3882 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
3883 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
3884 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
3885 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
3886 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
3887 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
3889 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
3890 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
3891 All the following files were identical or equivalent to it.
3892 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
3893 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
3894 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
3895 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
3896 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
3897 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
3898 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
3899 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
3900 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
3901 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
3903 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
3904 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
3905 Other than the previously incorrect sign of msg_iovlen, this is a
3906 no-op on 32-bit platforms. On 64-bit platforms it makes this header
3907 match their layouts as well, so the following are now identical to it.
3908 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
3909 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
3910 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
3911 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
3912 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
3914 2002-10-15 Ulrich Drepper <drepper@redhat.com>
3916 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
3917 Define for 2.4+ kernels.
3919 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
3920 are known to have the vfork syscall. Don't confuse the CPUs
3921 branch prediction unit by jumping to the return address.
3923 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
3924 support for reiserfs and xfs.
3926 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
3928 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
3930 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
3932 2002-10-16 Jakub Jelinek <jakub@redhat.com>
3934 * include/libc-symbols.h (attribute_tls_model_ie): Define.
3935 * include/errno.h (errno): Define to __libc_errno in libc.so.
3936 Add attribute_tls_model_ie.
3937 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
3938 Add attribute_tls_model_ie.
3939 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
3940 attribute_tls_model_ie.
3941 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
3943 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
3945 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
3946 attribute_tls_model_ie.
3947 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
3949 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
3950 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
3951 __libc_errno in USE___THREAD case.
3952 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3954 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
3955 __attribute__((tls_model (""))).
3956 * configure: Rebuilt.
3957 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
3959 2002-10-15 Ulrich Drepper <drepper@redhat.com>
3961 * timezone/asia: Update from tzdata2002d.
3962 * timezone/australasia: Likewise.
3963 * timezone/iso3166.tab: Likewise.
3964 * timezone/southamerica: Likewise.
3965 * timezone/zone-tab: Likewise.
3967 2002-10-15 Roland McGrath <roland@redhat.com>
3969 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
3970 Adjust TCB pointer before calling free, so we get the whole block.
3972 2002-10-14 Roland McGrath <roland@redhat.com>
3974 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
3975 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
3976 extern using attribute_hidden instead of static, avoids warning.
3978 2002-10-09 Jakub Jelinek <jakub@redhat.com>
3980 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
3981 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3983 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3985 * po/sv.po: Update from translation team.
3987 2002-10-12 H.J. Lu <hjl@gnu.org>
3989 * sunrpc/thrsvc.c (PROCQUIT): New.
3990 (struct rpc_arg): New.
3991 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
3992 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
3993 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
3994 (main): Modified for struct rpc_arg *.
3996 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3998 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
4000 2002-10-14 Jakub Jelinek <jakub@redhat.com>
4002 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
4003 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
4004 in ld.so even if __thread is supported.
4006 2002-10-13 Jakub Jelinek <jakub@redhat.com>
4008 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
4009 Add hack to prevent the compiler from clobbering the signal context.
4010 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
4012 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
4015 2002-10-14 Andreas Jaeger <aj@suse.de>
4017 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
4018 Guido Guenther <agx@sigxcpu.org>.
4020 2002-10-14 Ulrich Drepper <drepper@redhat.com>
4022 * po/sk.po: Update from translation team.
4024 2002-09-26 Roland McGrath <roland@redhat.com>
4026 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
4028 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
4029 DL_DST_LIB based on $(slibdir).
4031 2002-10-13 Roland McGrath <roland@frob.com>
4033 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
4035 * sysdeps/mach/hurd/getresuid.c: New file.
4036 * sysdeps/mach/hurd/getresgid.c: New file.
4037 * sysdeps/mach/hurd/setresuid.c: New file.
4038 * sysdeps/mach/hurd/setresgid.c: New file.
4040 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
4041 setresgid): Declare them.
4044 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
4045 add libc_hidden_proto.
4046 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
4047 getresuid, getresgid, setresuid, setresgid here.
4048 * Versions.def (libc): Define GLIBC_2.3.2 set.
4049 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
4050 Add libc_hidden_def.
4051 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
4052 * sysdeps/generic/setresgid.c: New file.
4053 * sysdeps/generic/setresuid.c: New file.
4054 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4055 (sysdep_routines): Don't add getresuid and getresgid here.
4056 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
4057 (sysdep_routines): Don't add setresuid and setresgid here.
4058 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
4059 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
4060 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4061 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
4062 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4063 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4064 * posix/Makefile (routines): Add them all here instead.
4065 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
4066 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
4067 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
4068 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
4069 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
4070 [! __NR_setresuid]: Include generic file.
4071 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
4072 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
4073 [! __NR_setresuid]: Include generic file.
4074 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
4075 Caller is - now, not EXTRA.
4076 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
4077 (setresuid, setresgid, getresuid, getresgid): Likewise.
4078 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
4079 Add these calls here.
4080 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
4081 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4082 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4083 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4084 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
4086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4087 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4088 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4090 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4091 (sysdep_routines): Add setfsuid and setfsgid here.
4092 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
4093 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
4094 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
4095 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
4096 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4097 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
4098 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4099 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4101 * hurd/errno.c: Renamed to ...
4102 * hurd/errno-loc.c: ... this.
4103 * hurd/Makefile (routines): errno -> errno-loc
4105 2002-10-13 Ulrich Drepper <drepper@redhat.com>
4107 * po/de.po: Update from translation team.
4109 * MakeTAGS: Add -E flag to xgettext runs.
4111 2002-10-12 Ulrich Drepper <drepper@redhat.com>
4113 * po/fr.po: Update from translation team.
4115 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
4116 Optimize a bit for use in glibc.
4118 2002-10-12 Roland McGrath <roland@redhat.com>
4120 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
4121 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
4123 2002-10-12 Ulrich Drepper <drepper@redhat.com>
4125 * po/sv.po: Update from translation team.
4127 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
4129 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
4131 (regfree): Likewise.
4132 (create_initial_state): Likewise.
4133 (analyze): Remove the substitutions which became useless.
4134 (calc_first): Likewise.
4135 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
4136 epsilon destination.
4137 (duplicate_node_closure): New function.
4138 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
4139 (calc_inveclosure): Likewise.
4140 (calc_eclosure): Likewise.
4141 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
4142 direct invocation of duplicate_node.
4143 (parse): Don't use comma operator in the return to avoid compiler
4145 (parse_reg_exp): Likewise.
4146 (parse_branch): Likewise.
4147 (parse_expression): Likewise.
4148 (parse_sub_exp): Likewise.
4149 (parse_dup_op): Likewise.
4150 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
4151 which became useless.
4152 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
4153 (create_cd_newstate): Likewise.
4154 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
4155 (re_token_t): Likewise.
4156 (re_dfa_t): Likewise.
4157 (re_node_set_remove): New macro.
4158 * posix/regexec.c (check_matching): Remove the handling
4160 (check_halt_node_context): Likewise.
4161 (proceed_next_node): Likewise.
4162 (pop_fail_stack): Fix the memory leak.
4163 (set_regs): Likewise.
4164 (free_fail_stack_return): New function.
4165 (sift_states_backward): Fix the memory leak. Remove the handling
4167 (update_cur_sifted_state): Append some if clause to avoid redundant
4169 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
4171 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
4172 (check_subexp_limits): Likewise.
4173 (search_subexp): Likewise.
4174 (sift_states_bkref): Likewise.
4175 (transit_state_mb): Likewise.
4176 (transit_state_bkref_loop): Likewise.
4177 (transit_state_bkref_loop): Likewise.
4178 (group_nodes_into_DFAstates): Likewise.
4179 (check_node_accept): Likewise.
4180 (sift_ctx_init): Add initializing.
4182 2002-10-12 Ulrich Drepper <drepper@redhat.com>
4184 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
4187 2002-10-11 Ulrich Drepper <drepper@redhat.com>
4189 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
4190 duplicated variable c.
4192 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
4195 * sysdeps/unix/sysv/linux/i386/sysdep.h
4196 (INTERNAL_SYSCALL_ERROR_P): New define.
4197 (INTERNAL_SYSCALL_ERRNO): Likewise.
4199 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
4200 Add hack to prevent the compiler from clobbering the signal context.
4202 2002-10-11 Roland McGrath <roland@redhat.com>
4204 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4207 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
4208 * sysdeps/sh/dl-lookupcfg.h: File removed.
4209 * sysdeps/i386/dl-lookupcfg.h: File removed.
4211 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
4212 missing labels and ; from last change.
4214 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
4215 number literals, so they are doubles instead of ints.
4217 2002-10-09 Roland McGrath <roland@redhat.com>
4219 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
4220 changed from [USE_TLS && HAVE___THREAD].
4222 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
4223 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
4224 * sysdeps/x86_64/dl-machine.h
4225 (elf_machine_type_class, elf_machine_rela): Likewise.
4226 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
4229 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
4230 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
4231 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
4233 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
4234 instead of ___tls_get_addr.
4235 (___tls_get_addr_internal): Add attribute_hidden to decl.
4237 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
4238 _dl_error_catch_tsd.
4239 * elf/rtld.c (startup_error_tsd): New function.
4240 (dl_main): Point _dl_error_catch_tsd at that.
4241 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
4242 use new function pointer instead.
4243 * elf/dl-tsd.c: New file.
4244 * elf/Makefile (routines): Add it.
4246 2002-10-07 Roland McGrath <roland@redhat.com>
4248 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
4249 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
4250 take _dl_load_lock around calling __writev.
4252 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
4253 (INLINE_SYSCALL): Use that.
4255 * sysdeps/generic/dl-sysdep.h: New file.
4256 * sysdeps/mach/hurd/dl-sysdep.h: New file.
4257 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
4258 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
4259 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
4261 * elf/dl-minimal.c (__errno_location): Removed.
4262 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
4263 Use GOTOFF access for errno.
4264 * sysdeps/unix/sysv/linux/i386/sysdep.h
4265 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
4267 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
4268 Use PC-relative access for errno.
4269 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
4270 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
4272 * include/tls.h: New file.
4273 (USE___THREAD): New macro.
4274 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
4276 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
4277 changed from [USE_TLS && HAVE___THREAD].
4278 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4279 * sysdeps/unix/i386/sysdep.S: Likewise.
4280 * sysdeps/unix/x86_64/sysdep.S: Likewise.
4281 * include/errno.h: Likewise.
4282 * include/netdb.h: Likewise.
4283 * include/resolv.h: Likewise.
4285 * sysdeps/generic/errno.c: New file.
4286 * csu/Makefile (aux): New variable, list errno.
4287 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
4288 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
4289 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
4290 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
4291 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
4292 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
4293 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
4294 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
4295 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
4296 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
4297 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
4298 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
4299 * sysdeps/unix/alpha/sysdep.S: Likewise.
4300 * sysdeps/generic/start.c: Likewise.
4301 * sysdeps/unix/start.c: Likewise.
4302 * sysdeps/unix/arm/start.c: Likewise.
4303 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
4304 * sysdeps/unix/sparc/start.c: Likewise.
4305 * sysdeps/unix/sysv/irix4/start.c: Likewise.
4306 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
4308 * manual/search.texi (Tree Search Function, Hash Search Function):
4309 Mention search.h clearly.
4311 2002-10-05 Roland McGrath <roland@redhat.com>
4313 * elf/dl-fxstat64.c: File removed.
4314 * elf/dl-xstat64.c: File removed.
4315 * elf/Makefile (rtld-routines): Remove them.
4316 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
4317 Instead, use strong_alias instead of versioned_symbol in the
4319 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4320 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4322 * include/shlib-compat.h
4323 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
4324 [! NOT_IN_libc] (IS_IN_libc): Define it.
4325 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
4326 * elf/Makefile (CPPFLAGS-.os): Likewise.
4328 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
4329 Return the status instead of calling exit.
4331 * Makeconfig (CFLAGS): Prepend -std=gnu99.
4332 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
4333 Remove superfluous rm command, whose @ plus make bugs hid
4334 all these commands from the make output.
4336 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
4337 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
4338 Use that file's contents instead of literal echo's for the prologue.
4339 * include/features.h: Include <gnu/stubs.h> unconditionally.
4340 * include/gnu/stubs.h: New file.
4342 2002-09-30 Roland McGrath <roland@redhat.com>
4344 * elf/rtld-Rules: New file.
4345 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
4346 $(objpfx)rtld-libc.a): New targets.
4347 (generated): Add them.
4348 (reloc-link): Remove -o $@ from the variable.
4349 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
4350 (distribute): Add rtld-Rules.
4351 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
4352 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
4353 (common-mostlyclean, common-clean): Clean up rtld-* files.
4354 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
4356 2002-10-11 Roland McGrath <roland@redhat.com>
4358 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
4359 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
4361 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
4362 proper set of no-op insn prefixes.
4364 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
4366 2002-10-11 Ulrich Drepper <drepper@redhat.com>
4368 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
4369 __pthread_kill_other_threads_np.
4371 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
4373 2002-10-08 Roland McGrath <roland@redhat.com>
4375 * locale/newlocale.c (__newlocale): If setting all categories to "C",
4376 just return &_nl_C_locobj instead of copying it.
4377 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
4378 * locale/duplocale.c (__duplocale): Likewise.
4380 2002-10-07 Roland McGrath <roland@frob.com>
4382 * config.h.in (HAVE_I386_SET_GDT): New #undef.
4383 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
4384 * sysdeps/mach/configure: Regenerated.
4386 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
4389 Add all necessary register outputs for syscall-clobbered registers.
4391 2002-10-02 David Mosberger <davidm@hpl.hp.com>
4393 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
4394 Itanium 2 (and Itanium).
4395 Fix unwind directives and make it fit in 80 columns.
4396 * sysdeps/ia64/memset.S: Likewise.
4397 * sysdeps/ia64/memcpy.S: Likewise.
4398 Move jump table to .rodata section.
4400 2002-10-03 Roland McGrath <roland@frob.com>
4402 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
4405 2002-10-10 Andreas Jaeger <aj@suse.de>
4407 * sysdeps/x86_64/_mcount.S: Restore correct registers.
4409 2002-10-10 Ulrich Drepper <drepper@redhat.com>
4411 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
4413 2002-10-09 Ulrich Drepper <drepper@redhat.com>
4415 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
4416 _dl_allocate_tls_init. Add rtld_hidden_proto.
4417 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
4419 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
4421 * version.h (VERSION): Bump to 2.3.1.
4423 * Make-dist: Add back one of the tar invocations removed before.
4425 * stdlib/Makefile (distribute): Add allocalim.h.
4427 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
4428 (__libc_tsd_address): Use correct variable name.
4429 Patch by Stefan Jones <stefan.jones@multigig.com>.
4431 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
4432 Reported by edwardsg@sgi.com [PR libc/4678].
4434 * Versions.def (libc): Add GLIBC_2.3.1.
4435 (libpthread): Add GLIBC_2.3.1.
4437 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
4439 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
4440 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
4442 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
4443 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
4445 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
4446 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
4447 and make old name an alias.
4448 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
4449 and make old name an alias.
4450 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
4453 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
4454 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
4456 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
4458 * sysdeps/posix/readv.c: Likewise
4459 * sysdeps/unix/sysv/aix/readv.c: Likewise.
4460 * sysdeps/unix/sysv/linux/readv.c: Likewise.
4461 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
4463 * sysdeps/posix/writev.c: Likewise
4464 * sysdeps/unix/sysv/aix/writev.c: Likewise.
4465 * sysdeps/unix/sysv/linux/writev.c: Likewise.
4467 * include/sys/wait.h: Declare __waitid.
4468 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
4469 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
4471 * sysdeps/posix/waitid.c: Likewise.
4472 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
4474 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
4476 2002-10-07 Jakub Jelinek <jakub@redhat.com>
4478 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
4480 (__MAX_ALLOCA_CUTOFF): Define.
4481 Include allocalim.h.
4482 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
4483 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
4484 host_buffer depending on __libc_use_alloca.
4485 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
4486 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
4487 net_buffer depending on __libc_use_alloca.
4488 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
4489 buf depending on __libc_use_alloca.
4490 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
4491 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
4492 instead of hardcoded constants.
4493 Pass proper size argument to alloca and compute end for wide char
4495 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
4496 instead of hardcoded constants.
4497 * string/strcoll.c (strcoll): Likewise.
4498 * string/strxfrm.c (strxfrm): Likewise.
4499 * sysdeps/posix/readv.c (__readv): Likewise.
4500 * sysdeps/posix/writev.c (__writev): Likewise.
4501 * sysdeps/generic/allocalim.h: New file.
4503 2002-10-08 Roland McGrath <roland@redhat.com>
4505 * configure.in (aux_missing warning): Change "too old" to
4506 "incompatible versions", since for autoconf it's "too new" right now.
4507 * configure: Regenerated.
4509 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
4510 one found doesn't work on our configure.in.
4511 * configure: Regenerated.
4512 * config.make.in (AUTOCONF): New substituted variable.
4513 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
4514 (autoconf-it): ... here, use that instead of defining conditionally.
4515 Use $(AUTOCONF) instead of literal autoconf.
4516 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
4517 with this condition.
4518 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
4520 2002-10-08 Ulrich Drepper <drepper@redhat.com>
4522 * Make-dist (dist): Cleanup a bit. We are not interested in the
4523 14 char filename limit anymore. Remove intermediate files and
4526 2002-10-05 Ulrich Drepper <drepper@redhat.com>
4528 * po/sk.po: Update from translation team.
4529 * po/tr.po: Likewise.
4530 * po/gl.po: Likewise.
4532 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4534 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
4536 2002-10-03 Ulrich Drepper <drepper@redhat.com>
4538 * version.h (RELEASE): Change to stable.
4540 2002-10-03 Jakub Jelinek <jakub@redhat.com>
4542 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
4543 __syscall_exit_group): New prototypes.
4545 2002-10-03 Ulrich Drepper <drepper@redhat.com>
4547 * glibc 2.3 released.
4550 See ChangeLog.13 for earlier changes.