1 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
3 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
4 type on ELF64 platforms.
6 2002-10-24 Ulrich Drepper <drepper@redhat.com>
8 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
10 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
12 2002-10-24 Jakub Jelinek <jakub@redhat.com>
14 * elf/dl-misc.c: Include <sysdep.h>.
15 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
17 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
18 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
19 (INLINE_SYSCALL): Use that.
20 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
21 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
22 (INLINE_SYSCALL): Use that.
23 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
24 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
25 (INLINE_SYSCALL): Use that.
26 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
28 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
29 (__INTERNAL_SYSCALL_STRING): Define.
30 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
32 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
33 (__INTERNAL_SYSCALL_STRING): Define.
34 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
35 __SYSCALL_STRING to inline_syscall*.
36 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
38 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
39 inline_syscall4, inline_syscall5, inline_syscall6): Add string
42 2002-10-24 Roland McGrath <roland@redhat.com>
44 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
45 * sysdeps/unix/sysv/linux/init-first.c: Not here.
46 * sysdeps/powerpc/elf/libc-start.c: Or here.
47 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
48 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
49 * sysdeps/unix/sysv/aix/init-first.c: Or here.
50 * sysdeps/generic/libc-start.c: Or here.
51 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
52 access with [! SHARED].
53 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
55 * libio/bug-wfflush.c: New file.
56 * libio/Makefile (tests): Add bug-wfflush.
58 2002-10-23 Roland McGrath <roland@redhat.com>
60 * stdio-common/tst-fphex.c: New file.
61 * stdio-common/Makefile (tests): Add tst-fphex.
62 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
63 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
64 chars always before the value digits.
65 Reported by James Antill <james.antill@redhat.com>.
67 2002-10-24 Jakub Jelinek <jakub@redhat.com>
69 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
70 (free_mem): New function.
71 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
72 if not cross compiling.
73 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
74 (bug-regex14-ENV): Set.
75 (bug-regex14-mem): New target.
76 * posix/bug-regex14.c: New file.
78 2002-10-23 Roland McGrath <roland@redhat.com>
80 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
81 target, so we don't touch it when the link fails.
83 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
84 Check for the result overflowing off_t and fail with EOVERFLOW.
85 * libio/ioftell.c (_IO_ftell): Likewise.
86 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
88 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
89 use a temporary timeval on the stack for gettimeofday and copy it.
90 * login/logout.c (logout): Likewise.
91 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
93 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
94 Use __SWORD_TYPE instead of int for member types.
95 (struct statfs64): Likewise.
96 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
97 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
98 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
99 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
100 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
102 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
103 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
104 (ST_NODIRATIME): Restore fixed value of 2048.
105 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
106 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
108 Rearranged <bits/types.h> definitions to reduce duplication.
109 * sysdeps/generic/bits/types.h: Rewritten, using macros from
110 <bits/wordsize.h> and new header <bits/typesizes.h>.
111 * posix/Makefile (headers): Add bits/typesizes.h here.
112 * sysdeps/generic/bits/typesizes.h: New file.
113 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
114 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
115 * sysdeps/mach/hurd/bits/typesizes.h: New file.
116 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
117 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
118 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
119 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
120 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
121 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
122 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
123 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
124 <bits/pthreadtypes.h> here, not in <bits/types.h>.
125 * signal/signal.h: Likewise.
127 * streams/stropts.h: Include <bits/xtitypes.h>.
128 * streams/Makefile (headers): Add bits/xtitypes.h here.
129 * sysdeps/generic/bits/xtitypes.h: New file.
130 * sysdeps/s390/bits/xtitypes.h: New file.
131 * sysdeps/ia64/bits/xtitypes.h: New file.
132 * sysdeps/x86_64/bits/xtitypes.h: New file.
134 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
135 * sysdeps/generic/bits/ipctypes.h: New file.
136 * sysdeps/mips/bits/ipctypes.h: New file.
137 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
138 * sysdeps/gnu/bits/msq.h: Likewise.
139 * sysvipc/sys/ipc.h: Likewise.
141 2002-10-22 Ulrich Drepper <drepper@redhat.com>
143 * elf/dl-load.c (struct filebuf): For buf element to have the
144 alignment of ElfXX_Ehdr since this is what will be stored in it.
146 2002-10-22 Jakub Jelinek <jakub@redhat.com>
148 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
149 into pointer to locrec_offset.
150 (add_locale_to_archive): Adjust callers. Free normalized_name right
151 before returning, not immediately after add_locale, pass it to
152 add_alias if not NULL instead of name. Rename second normalized_name
153 occurence to nnormalized_codeset_name.
155 * locale/programs/locarchive.c (enlarge_archive): Make sure
156 string_size is always a multiple of 4.
157 Reported by Andreas Schwab <schwab@suse.de>.
159 2002-10-21 Andreas Schwab <schwab@suse.de>
161 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
162 caller to EXTRA instead of execve, since the latter has a
163 higher-priority implementation in linuxthreads.
165 2002-10-21 Roland McGrath <roland@redhat.com>
167 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
168 slotinfo list's len member to the proper size, not just 1.
169 Initialize static_map.l_tls_initimage.
171 * elf/dl-open.c (dl_open_worker): Fix loop searching for
172 dtv_slotinfo_list element containing new modules' l_tls_modid.
174 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
175 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
176 * elf/Makefile (tests): Add tst-tls9.
177 (tests-static): Add tst-tls9-static.
178 (tst-tls9-static-ENV): New variable.
179 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
181 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
182 modids used by partially loaded modules being closed can't be known.
184 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
186 * posix/Makefile: Add a test case for the bug reported by Aharon
187 Robbins <arnold@skeeve.com>.
188 * posix/bug-regex13.c: New file.
189 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
191 2002-10-21 Ulrich Drepper <drepper@redhat.com>
193 * csu/gmon-start.c: Pretty printing.
195 2002-10-19 Art Haas <ahaas@neosoft.com>
197 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
198 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
199 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
200 * configure: Regenerated.
202 2002-10-19 Roland McGrath <roland@redhat.com>
204 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
205 and then set $subdirs directly, because the new Autoconf breaks
206 compatibility in every way imaginable and insists on whining
207 about usage that worked since the dawn of time.
208 * configure: Regenerated.
210 * configure: Regenerated (using Autoconf 2.54).
211 * sysdeps/alpha/elf/configure: Likewise.
212 * sysdeps/generic/configure: Likewise.
213 * sysdeps/i386/elf/configure: Likewise.
214 * sysdeps/ia64/elf/configure: Likewise.
215 * sysdeps/mach/hurd/configure: Likewise.
216 * sysdeps/mach/configure: Likewise.
217 * sysdeps/unix/configure: Likewise.
218 * sysdeps/unix/common/configure: Likewise.
219 * sysdeps/unix/sysv/aix/configure: Likewise.
220 * sysdeps/unix/sysv/linux/configure: Likewise.
221 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
222 * sysdeps/x86_64/elf/configure: Likewise.
224 * config.make.in: Nix completely-soft nonsense.
225 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
226 of machine directories instead of fpu subdirectory.
227 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
228 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
229 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
230 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
231 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
232 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
233 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
234 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
235 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
236 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
237 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
238 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
239 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
240 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
241 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
242 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
243 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
244 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
245 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
246 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
247 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
248 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
249 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
250 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
251 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
252 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
253 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
254 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
255 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
256 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
257 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
258 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
259 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
260 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
261 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
262 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
263 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
264 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
265 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
266 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
268 2002-10-19 Bruno Haible <bruno@clisp.org>
270 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
272 2002-10-18 Roland McGrath <roland@redhat.com>
274 * io/Makefile (routines): Add lchmod.
275 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
276 * sysdeps/generic/lchmod.c: New file.
277 * sysdeps/mach/hurd/lchmod.c: New file.
278 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
280 2002-10-18 Art Haas <ahaas@neosoft.com>
282 * configure.in: Remove remaining AC_FD_CC macros, and replace
283 AC_FD_MSG with AS_MESSAGE_FD.
285 2002-10-18 Roland McGrath <roland@redhat.com>
287 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
288 typos: VALUE -> FINALADDR.
290 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
291 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
292 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
293 (inline_syscall6): Move these macros ...
294 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
296 * configure.in (libc_link_dests, libc_link_sources): Remove these
297 variables and the AC_LINK_FILES call.
299 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
300 change to put new symbols here instead of in GLIBC_2.2.
301 * sysdeps/powerpc/Subdirs: Move this file ...
302 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
304 2002-10-07 Roland McGrath <roland@redhat.com>
306 * sysdeps/generic/bits/time.h: Replaced with contents of the
307 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
308 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
309 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
310 macros is ok even for architectures that don't now implement them.
311 * sysdeps/mach/hurd/bits/time.h: File removed.
312 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
313 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
314 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
315 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
316 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
318 2002-10-18 Jeff Bailey <jbailey@gnu.org>
320 * configure.in: Replace obsolete AC_OUTPUT syntax with
321 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
323 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
324 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
326 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
327 * sysdeps/alpha/elf/configure.in: Likewise.
328 * sysdeps/i386/elf/configure.in: Likewise.
329 * sysdeps/mach/hurd/configure.in: Likewise.
330 * sysdeps/x86_64/elf/configure.in: Likewise.
332 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
334 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
335 * sysdeps/generic/configure.in: Likewise.
336 * sysdeps/i386/elf/configure.in: Likewise.
337 * sysdeps/ia64/elf/configure.in: Likewise.
338 * sysdeps/mach/configure.in: Likewise.
339 * sysdeps/mach/hurd/configure.in: Likewise.
340 * sysdeps/unix/configure.in: Likewise.
341 * sysdeps/unix/common/configure.in: Likewise.
342 * sysdeps/unix/sysv/aix/configure.in: Likewise.
343 * sysdeps/unix/sysv/linux/configure.in: Likewise.
344 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
345 * sysdeps/x86_64/elf/configure.in: Likewise.
347 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
348 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
349 that it's obvious when extra autoconf machinery is being dragged in.
351 2002-10-18 Roland McGrath <roland@redhat.com>
353 * configure.in: Remove bogus echo included in
354 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
355 * configure: Regenerated.
357 2002-10-18 Jakub Jelinek <jakub@redhat.com>
359 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
360 (statfs_filesize_max): New function.
361 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
362 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
363 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
364 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
366 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
367 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
368 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
370 2002-10-17 Roland McGrath <roland@redhat.com>
372 * configure.in (MIG): Just AC_SUBST it here.
373 * configure: Regenerated.
374 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
375 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
376 * sysdeps/mach/configure: Regenerated.
378 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
379 and AC_PROVIDE([_AS_CR_PREPARE]).
381 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
382 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
384 * elf/dl-support.c: Move _dl_tls_* variables to ...
385 * sysdeps/generic/libc-tls.c: ... here.
387 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
388 allow IDX to be one past the current last slotinfo entry.
389 (_dl_close): Pass IMAP->l_init_called for that parameter.
391 2002-10-07 Andreas Schwab <schwab@suse.de>
393 * aclocal.m4: Fix for autoconf 2.53.
394 * configure.in: Likewise. Require autoconf 2.53.
396 2002-10-08 Richard Henderson <rth@redhat.com>
398 * soft-fp/op-4.h: Handle carry correctly in
399 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
400 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
401 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
403 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
405 * configure.in: Compute completely-soft.
406 * config.make.in: Make completely-soft available to sub-makes.
407 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
408 gcc-double-routines. Add sim-full.c. Add fenv_const and
409 fe_nomask to libm-support.
410 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
411 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
412 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
413 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
414 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
415 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
416 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
417 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
418 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
419 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
420 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
421 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
422 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
423 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
424 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
425 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
426 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
427 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
428 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
429 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
431 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
432 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
433 FP_HANDLE_EXCEPTIONS.
435 Redefine FP_* macros to correspond to the FE_* bit positions.
436 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
437 Define externs for __sim_exceptions, __sim_disabled_exceptions,
438 __sim_round_mode, __simulate_exceptions.
439 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
440 * sysdeps/powerpc/bits/fenv.h: ...to here.
442 2002-10-06 Jakub Jelinek <jakub@redhat.com>
444 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
445 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
446 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
447 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
450 2002-10-15 Jakub Jelinek <jakub@redhat.com>
452 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
453 __libc_res_nsend): New prototypes.
454 * resolv/res_query.c (QUERYSIZE): Define.
455 (__libc_res_nquery): Renamed from res_nquery. Added answerp
456 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
457 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
458 res_nsend, pass answerp.
459 (res_nquery): Changed into wrapper around __libc_res_nquery.
460 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
461 argument. Call __libc_res_nquerydomain and __libc_res_nquery
462 instead of the non-__libc_ variants, pass them answerp.
463 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
464 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
465 Added answerp argument. Call __libc_res_nquery instead of
466 res_nquery, pass answerp.
467 (res_nquerydomain): Changed into wrapper around
468 __libc_res_nquerydomain.
469 * resolv/res_send.c: Include sys/ioctl.h.
471 (send_vc): Change arguments. Reallocate answer buffer if it is
474 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
475 Reallocate answer buffer if it is too small and hooks are in use.
476 Adjust calls to send_vc and send_dg.
477 (res_nsend): Changed into wrapper around __libc_res_nsend.
478 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
479 just 1K answer buffer on the stack, use __libc_res_nsearch instead
481 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
482 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
483 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
484 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
485 (gethostbyaddr): Similarly with __libc_res_nquery.
486 * resolv/Versions (libresolv): Export __libc_res_nquery and
487 __libc_res_nsearch at GLIBC_PRIVATE.
489 2002-10-17 Roland McGrath <roland@redhat.com>
491 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
492 * configure: Regenerated.
494 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
495 before performing the reloc, not after.
496 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
498 2002-10-17 Ulrich Drepper <drepper@redhat.com>
500 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
501 * locale/programs/linereader.c (lr_open): Likewise.
502 * locale/programs/charmap-dir.c (charmap_open): Likewise.
503 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
505 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
507 * posix/bug-regex11.c: Add a test case for the bug reported by
508 Paolo Bonzini <bonzini@gnu.org>.
509 * posix/regexec.c (sift_states_bkref): Use correct destination of
512 2002-10-17 Roland McGrath <roland@redhat.com>
514 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
515 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
516 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
517 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
518 Call it after performing TPOFF relocs.
519 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
520 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
521 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
523 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
524 when closing a partially-initialized object.
526 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
527 instead of _dl_fatal_printf when we see PT_TLS.
529 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
530 instead of $(libof-$<).
532 2002-10-16 Roland McGrath <roland@redhat.com>
534 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
535 instead of += to append, to be sure $(lib) gets expanded at defn time.
536 (libof-$(cpp-src)): New variable, define this instead.
537 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
538 (lib): Don't use override.
539 (CPPFLAGS-$(lib)): New variable, put -D's here.
540 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
541 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
542 LIB found by $(libof-*) for basename, target, or source.
543 * Makerules (CPPFLAGS-nonlib): New variable.
544 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
545 * locale/Makefile (lib): Likewise.
546 * sunrpc/Makefile (lib): Likewise.
548 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
549 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
550 * sysdeps/unix/sysv/linux/pathconf.h: New file.
551 (statfs_link_max): New function, guts from fpathconf.c.
552 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
553 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
554 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
555 to use the linux/pathconf.c code by #include rather than duplication.
556 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
558 2002-10-16 Jakub Jelinek <jakub@redhat.com>
560 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
561 Use __libc_errno only for libc itself.
563 2002-10-16 Andreas Jaeger <aj@suse.de>
565 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
567 2002-10-16 Ulrich Drepper <drepper@redhat.com>
569 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
570 Use __libc_errno only for libc itself.
572 2002-10-15 Roland McGrath <roland@redhat.com>
573 Jakub Jelinek <jakub@redhat.com>
575 * sysdeps/unix/sysv/linux/Makefile
576 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
577 sparc/Makefile to produce a bi-arch file as needed.
578 That's now parameterized by the variable $(64bit-predefine).
579 Use LC_ALL=C for `comm' commands in that rule.
580 No longer conditional on [$(no_syscall_list_h)].
581 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
582 (64bit-predefine): New variable.
583 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
584 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
585 * sysdeps/unix/sysv/linux/powerpc/Makefile
586 (64bit-predefine): New variable.
588 2002-10-15 Roland McGrath <roland@redhat.com>
590 * sysdeps/unix/sysv/linux/Makefile
591 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
593 * login/utmp-private.h: Declare __libc_utmp_lock.
594 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
595 and call __libc_utmp_jump_table functions directly, instead of using
598 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
599 * sysdeps/unix/sysv/linux/configure: Regenerated.
601 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
602 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
603 Use int32_t for ll_time.
604 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
605 Use int32_t instead of long int for ut_session.
606 Use an anonymous struct with 32-bit fields for ut_tv.
607 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
608 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
609 here as in utmp.h for `struct utmp'.
610 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
611 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
612 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
613 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
614 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
615 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
617 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
618 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
619 All the following files were identical or equivalent to it.
620 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
621 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
622 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
623 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
624 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
625 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
626 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
627 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
628 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
629 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
631 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
632 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
633 Other than the previously incorrect sign of msg_iovlen, this is a
634 no-op on 32-bit platforms. On 64-bit platforms it makes this header
635 match their layouts as well, so the following are now identical to it.
636 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
637 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
638 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
639 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
640 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
642 2002-10-15 Ulrich Drepper <drepper@redhat.com>
644 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
645 Define for 2.4+ kernels.
647 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
648 are known to have the vfork syscall. Don't confuse the CPUs
649 branch prediction unit by jumping to the return address.
651 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
652 support for reiserfs and xfs.
654 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
656 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
658 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
660 2002-10-16 Jakub Jelinek <jakub@redhat.com>
662 * include/libc-symbols.h (attribute_tls_model_ie): Define.
663 * include/errno.h (errno): Define to __libc_errno in libc.so.
664 Add attribute_tls_model_ie.
665 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
666 Add attribute_tls_model_ie.
667 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
668 attribute_tls_model_ie.
669 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
671 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
673 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
674 attribute_tls_model_ie.
675 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
677 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
678 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
679 __libc_errno in USE___THREAD case.
680 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
682 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
683 __attribute__((tls_model (""))).
684 * configure: Rebuilt.
685 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
687 2002-10-15 Ulrich Drepper <drepper@redhat.com>
689 * timezone/asia: Update from tzdata2002d.
690 * timezone/australasia: Likewise.
691 * timezone/iso3166.tab: Likewise.
692 * timezone/southamerica: Likewise.
693 * timezone/zone-tab: Likewise.
695 2002-10-15 Roland McGrath <roland@redhat.com>
697 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
698 Adjust TCB pointer before calling free, so we get the whole block.
700 2002-10-14 Roland McGrath <roland@redhat.com>
702 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
703 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
704 extern using attribute_hidden instead of static, avoids warning.
706 2002-10-09 Jakub Jelinek <jakub@redhat.com>
708 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
709 * sysdeps/unix/sysv/linux/configure: Rebuilt.
711 2002-10-14 Ulrich Drepper <drepper@redhat.com>
713 * po/sv.po: Update from translation team.
715 2002-10-12 H.J. Lu <hjl@gnu.org>
717 * sunrpc/thrsvc.c (PROCQUIT): New.
718 (struct rpc_arg): New.
719 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
720 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
721 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
722 (main): Modified for struct rpc_arg *.
724 2002-10-14 Ulrich Drepper <drepper@redhat.com>
726 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
728 2002-10-14 Jakub Jelinek <jakub@redhat.com>
730 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
731 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
732 in ld.so even if __thread is supported.
734 2002-10-13 Jakub Jelinek <jakub@redhat.com>
736 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
737 Add hack to prevent the compiler from clobbering the signal context.
738 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
740 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
743 2002-10-14 Andreas Jaeger <aj@suse.de>
745 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
746 Guido Guenther <agx@sigxcpu.org>.
748 2002-10-14 Ulrich Drepper <drepper@redhat.com>
750 * po/sk.po: Update from translation team.
752 2002-09-26 Roland McGrath <roland@redhat.com>
754 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
756 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
757 DL_DST_LIB based on $(slibdir).
759 2002-10-13 Roland McGrath <roland@frob.com>
761 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
763 * sysdeps/mach/hurd/getresuid.c: New file.
764 * sysdeps/mach/hurd/getresgid.c: New file.
765 * sysdeps/mach/hurd/setresuid.c: New file.
766 * sysdeps/mach/hurd/setresgid.c: New file.
768 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
769 setresgid): Declare them.
772 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
773 add libc_hidden_proto.
774 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
775 getresuid, getresgid, setresuid, setresgid here.
776 * Versions.def (libc): Define GLIBC_2.3.2 set.
777 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
779 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
780 * sysdeps/generic/setresgid.c: New file.
781 * sysdeps/generic/setresuid.c: New file.
782 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
783 (sysdep_routines): Don't add getresuid and getresgid here.
784 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
785 (sysdep_routines): Don't add setresuid and setresgid here.
786 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
787 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
788 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
789 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
790 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
791 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
792 * posix/Makefile (routines): Add them all here instead.
793 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
794 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
795 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
796 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
797 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
798 [! __NR_setresuid]: Include generic file.
799 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
800 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
801 [! __NR_setresuid]: Include generic file.
802 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
803 Caller is - now, not EXTRA.
804 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
805 (setresuid, setresgid, getresuid, getresgid): Likewise.
806 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
807 Add these calls here.
808 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
809 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
810 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
811 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
812 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
815 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
816 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
818 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
819 (sysdep_routines): Add setfsuid and setfsgid here.
820 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
821 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
822 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
823 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
824 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
825 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
826 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
827 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
829 * hurd/errno.c: Renamed to ...
830 * hurd/errno-loc.c: ... this.
831 * hurd/Makefile (routines): errno -> errno-loc
833 2002-10-13 Ulrich Drepper <drepper@redhat.com>
835 * po/de.po: Update from translation team.
837 * MakeTAGS: Add -E flag to xgettext runs.
839 2002-10-12 Ulrich Drepper <drepper@redhat.com>
841 * po/fr.po: Update from translation team.
843 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
844 Optimize a bit for use in glibc.
846 2002-10-12 Roland McGrath <roland@redhat.com>
848 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
849 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
851 2002-10-12 Ulrich Drepper <drepper@redhat.com>
853 * po/sv.po: Update from translation team.
855 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
857 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
860 (create_initial_state): Likewise.
861 (analyze): Remove the substitutions which became useless.
862 (calc_first): Likewise.
863 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
865 (duplicate_node_closure): New function.
866 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
867 (calc_inveclosure): Likewise.
868 (calc_eclosure): Likewise.
869 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
870 direct invocation of duplicate_node.
871 (parse): Don't use comma operator in the return to avoid compiler
873 (parse_reg_exp): Likewise.
874 (parse_branch): Likewise.
875 (parse_expression): Likewise.
876 (parse_sub_exp): Likewise.
877 (parse_dup_op): Likewise.
878 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
879 which became useless.
880 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
881 (create_cd_newstate): Likewise.
882 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
883 (re_token_t): Likewise.
884 (re_dfa_t): Likewise.
885 (re_node_set_remove): New macro.
886 * posix/regexec.c (check_matching): Remove the handling
888 (check_halt_node_context): Likewise.
889 (proceed_next_node): Likewise.
890 (pop_fail_stack): Fix the memory leak.
891 (set_regs): Likewise.
892 (free_fail_stack_return): New function.
893 (sift_states_backward): Fix the memory leak. Remove the handling
895 (update_cur_sifted_state): Append some if clause to avoid redundant
897 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
899 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
900 (check_subexp_limits): Likewise.
901 (search_subexp): Likewise.
902 (sift_states_bkref): Likewise.
903 (transit_state_mb): Likewise.
904 (transit_state_bkref_loop): Likewise.
905 (transit_state_bkref_loop): Likewise.
906 (group_nodes_into_DFAstates): Likewise.
907 (check_node_accept): Likewise.
908 (sift_ctx_init): Add initializing.
910 2002-10-12 Ulrich Drepper <drepper@redhat.com>
912 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
915 2002-10-11 Ulrich Drepper <drepper@redhat.com>
917 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
918 duplicated variable c.
920 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
923 * sysdeps/unix/sysv/linux/i386/sysdep.h
924 (INTERNAL_SYSCALL_ERROR_P): New define.
925 (INTERNAL_SYSCALL_ERRNO): Likewise.
927 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
928 Add hack to prevent the compiler from clobbering the signal context.
930 2002-10-11 Roland McGrath <roland@redhat.com>
932 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
935 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
936 * sysdeps/sh/dl-lookupcfg.h: File removed.
937 * sysdeps/i386/dl-lookupcfg.h: File removed.
939 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
940 missing labels and ; from last change.
942 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
943 number literals, so they are doubles instead of ints.
945 2002-10-09 Roland McGrath <roland@redhat.com>
947 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
948 changed from [USE_TLS && HAVE___THREAD].
950 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
951 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
952 * sysdeps/x86_64/dl-machine.h
953 (elf_machine_type_class, elf_machine_rela): Likewise.
954 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
957 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
958 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
959 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
961 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
962 instead of ___tls_get_addr.
963 (___tls_get_addr_internal): Add attribute_hidden to decl.
965 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
967 * elf/rtld.c (startup_error_tsd): New function.
968 (dl_main): Point _dl_error_catch_tsd at that.
969 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
970 use new function pointer instead.
971 * elf/dl-tsd.c: New file.
972 * elf/Makefile (routines): Add it.
974 2002-10-07 Roland McGrath <roland@redhat.com>
976 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
977 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
978 take _dl_load_lock around calling __writev.
980 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
981 (INLINE_SYSCALL): Use that.
983 * sysdeps/generic/dl-sysdep.h: New file.
984 * sysdeps/mach/hurd/dl-sysdep.h: New file.
985 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
986 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
987 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
989 * elf/dl-minimal.c (__errno_location): Removed.
990 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
991 Use GOTOFF access for errno.
992 * sysdeps/unix/sysv/linux/i386/sysdep.h
993 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
995 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
996 Use PC-relative access for errno.
997 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
998 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1000 * include/tls.h: New file.
1001 (USE___THREAD): New macro.
1002 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
1004 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
1005 changed from [USE_TLS && HAVE___THREAD].
1006 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1007 * sysdeps/unix/i386/sysdep.S: Likewise.
1008 * sysdeps/unix/x86_64/sysdep.S: Likewise.
1009 * include/errno.h: Likewise.
1010 * include/netdb.h: Likewise.
1011 * include/resolv.h: Likewise.
1013 * sysdeps/generic/errno.c: New file.
1014 * csu/Makefile (aux): New variable, list errno.
1015 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
1016 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1017 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1018 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1019 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1020 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
1021 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
1022 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
1023 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1024 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
1025 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
1026 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
1027 * sysdeps/unix/alpha/sysdep.S: Likewise.
1028 * sysdeps/generic/start.c: Likewise.
1029 * sysdeps/unix/start.c: Likewise.
1030 * sysdeps/unix/arm/start.c: Likewise.
1031 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1032 * sysdeps/unix/sparc/start.c: Likewise.
1033 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1034 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
1036 * manual/search.texi (Tree Search Function, Hash Search Function):
1037 Mention search.h clearly.
1039 2002-10-05 Roland McGrath <roland@redhat.com>
1041 * elf/dl-fxstat64.c: File removed.
1042 * elf/dl-xstat64.c: File removed.
1043 * elf/Makefile (rtld-routines): Remove them.
1044 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
1045 Instead, use strong_alias instead of versioned_symbol in the
1047 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1048 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1050 * include/shlib-compat.h
1051 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
1052 [! NOT_IN_libc] (IS_IN_libc): Define it.
1053 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
1054 * elf/Makefile (CPPFLAGS-.os): Likewise.
1056 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
1057 Return the status instead of calling exit.
1059 * Makeconfig (CFLAGS): Prepend -std=gnu99.
1060 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
1061 Remove superfluous rm command, whose @ plus make bugs hid
1062 all these commands from the make output.
1064 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
1065 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
1066 Use that file's contents instead of literal echo's for the prologue.
1067 * include/features.h: Include <gnu/stubs.h> unconditionally.
1068 * include/gnu/stubs.h: New file.
1070 2002-09-30 Roland McGrath <roland@redhat.com>
1072 * elf/rtld-Rules: New file.
1073 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
1074 $(objpfx)rtld-libc.a): New targets.
1075 (generated): Add them.
1076 (reloc-link): Remove -o $@ from the variable.
1077 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
1078 (distribute): Add rtld-Rules.
1079 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
1080 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
1081 (common-mostlyclean, common-clean): Clean up rtld-* files.
1082 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
1084 2002-10-11 Roland McGrath <roland@redhat.com>
1086 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
1087 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
1089 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
1090 proper set of no-op insn prefixes.
1092 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
1094 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1096 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
1097 __pthread_kill_other_threads_np.
1099 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
1101 2002-10-08 Roland McGrath <roland@redhat.com>
1103 * locale/newlocale.c (__newlocale): If setting all categories to "C",
1104 just return &_nl_C_locobj instead of copying it.
1105 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
1106 * locale/duplocale.c (__duplocale): Likewise.
1108 2002-10-07 Roland McGrath <roland@frob.com>
1110 * config.h.in (HAVE_I386_SET_GDT): New #undef.
1111 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
1112 * sysdeps/mach/configure: Regenerated.
1114 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1117 Add all necessary register outputs for syscall-clobbered registers.
1119 2002-10-02 David Mosberger <davidm@hpl.hp.com>
1121 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
1122 Itanium 2 (and Itanium).
1123 Fix unwind directives and make it fit in 80 columns.
1124 * sysdeps/ia64/memset.S: Likewise.
1125 * sysdeps/ia64/memcpy.S: Likewise.
1126 Move jump table to .rodata section.
1128 2002-10-03 Roland McGrath <roland@frob.com>
1130 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
1133 2002-10-10 Andreas Jaeger <aj@suse.de>
1135 * sysdeps/x86_64/_mcount.S: Restore correct registers.
1137 2002-10-10 Ulrich Drepper <drepper@redhat.com>
1139 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
1141 2002-10-09 Ulrich Drepper <drepper@redhat.com>
1143 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
1144 _dl_allocate_tls_init. Add rtld_hidden_proto.
1145 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
1147 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
1149 * version.h (VERSION): Bump to 2.3.1.
1151 * Make-dist: Add back one of the tar invocations removed before.
1153 * stdlib/Makefile (distribute): Add allocalim.h.
1155 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1156 (__libc_tsd_address): Use correct variable name.
1157 Patch by Stefan Jones <stefan.jones@multigig.com>.
1159 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
1160 Reported by edwardsg@sgi.com [PR libc/4678].
1162 * Versions.def (libc): Add GLIBC_2.3.1.
1163 (libpthread): Add GLIBC_2.3.1.
1165 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
1167 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
1168 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
1170 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
1171 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1173 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
1174 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
1175 and make old name an alias.
1176 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
1177 and make old name an alias.
1178 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
1181 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
1182 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
1184 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
1186 * sysdeps/posix/readv.c: Likewise
1187 * sysdeps/unix/sysv/aix/readv.c: Likewise.
1188 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1189 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
1191 * sysdeps/posix/writev.c: Likewise
1192 * sysdeps/unix/sysv/aix/writev.c: Likewise.
1193 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1195 * include/sys/wait.h: Declare __waitid.
1196 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
1197 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
1199 * sysdeps/posix/waitid.c: Likewise.
1200 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
1202 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
1204 2002-10-07 Jakub Jelinek <jakub@redhat.com>
1206 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
1208 (__MAX_ALLOCA_CUTOFF): Define.
1209 Include allocalim.h.
1210 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1211 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
1212 host_buffer depending on __libc_use_alloca.
1213 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1214 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
1215 net_buffer depending on __libc_use_alloca.
1216 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
1217 buf depending on __libc_use_alloca.
1218 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
1219 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
1220 instead of hardcoded constants.
1221 Pass proper size argument to alloca and compute end for wide char
1223 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
1224 instead of hardcoded constants.
1225 * string/strcoll.c (strcoll): Likewise.
1226 * string/strxfrm.c (strxfrm): Likewise.
1227 * sysdeps/posix/readv.c (__readv): Likewise.
1228 * sysdeps/posix/writev.c (__writev): Likewise.
1229 * sysdeps/generic/allocalim.h: New file.
1231 2002-10-08 Roland McGrath <roland@redhat.com>
1233 * configure.in (aux_missing warning): Change "too old" to
1234 "incompatible versions", since for autoconf it's "too new" right now.
1235 * configure: Regenerated.
1237 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
1238 one found doesn't work on our configure.in.
1239 * configure: Regenerated.
1240 * config.make.in (AUTOCONF): New substituted variable.
1241 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
1242 (autoconf-it): ... here, use that instead of defining conditionally.
1243 Use $(AUTOCONF) instead of literal autoconf.
1244 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
1245 with this condition.
1246 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
1248 2002-10-08 Ulrich Drepper <drepper@redhat.com>
1250 * Make-dist (dist): Cleanup a bit. We are not interested in the
1251 14 char filename limit anymore. Remove intermediate files and
1254 2002-10-05 Ulrich Drepper <drepper@redhat.com>
1256 * po/sk.po: Update from translation team.
1257 * po/tr.po: Likewise.
1258 * po/gl.po: Likewise.
1260 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1262 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
1264 2002-10-03 Ulrich Drepper <drepper@redhat.com>
1266 * version.h (RELEASE): Change to stable.
1268 2002-10-03 Jakub Jelinek <jakub@redhat.com>
1270 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
1271 __syscall_exit_group): New prototypes.
1273 2002-10-03 Ulrich Drepper <drepper@redhat.com>
1275 * glibc 2.3 released.
1278 See ChangeLog.13 for earlier changes.