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