1 2002-11-02 H.J. Lu <hjl@gnu.org>
3 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
4 caller to EXTRA instead of execve.
6 2002-11-01 Roland McGrath <roland@redhat.com>
8 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
9 in place of [!(USE_TLS && HAVE___THREAD)].
10 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
12 2002-10-31 Roger Sayle <roger@eyesopen.com>
14 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
16 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
18 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
19 without defining FP_ROUNDMODE.
21 2002-10-29 Jakub Jelinek <jakub@redhat.com>
23 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
24 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
26 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
27 (OLD_SIGLIST_SIZE): Define.
28 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
29 (OLD_SIGLIST_SIZE): Define.
30 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
32 2002-11-01 Jakub Jelinek <jakub@redhat.com>
34 * sysdeps/ia64/strncpy.S: Fix recovery code.
36 2002-10-30 Jakub Jelinek <jakub@redhat.com>
38 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
40 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
42 * elf/dl-libc.c (free_mem): Likewise.
43 * iconv/gconv_conf.c (free_mem): Likewise.
44 * iconv/gconv_db.c (free_mem): Likewise.
45 * iconv/gconv_dl.c (free_mem): Likewise.
46 * iconv/gconv_cache.c (free_mem): Likewise.
47 * intl/finddomain.c (free_mem): Likewise.
48 * intl/dcigettext.c (free_mem): Likewise.
49 * locale/setlocale.c (free_mem): Likewise.
50 * misc/fstab.c (fstab_free): Likewise.
51 * nss/nsswitch.c (free_mem): Likewise.
52 * posix/regcomp.c (free_mem): Likewise.
53 * resolv/gai_misc.c (free_res): Likewise.
54 * stdlib/fmtmsg.c (free_mem): Likewise.
55 * sunrpc/clnt_perr.c (free_mem): Likewise.
56 * sysdeps/generic/setenv.c (free_mem): Likewise.
57 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
58 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
59 * time/tzset.c (free_mem): Likewise.
60 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
61 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
62 * malloc/set-freeres.c (__libc_freeres): Likewise.
64 * login/getutent.c: Include stdlib.h instead of stddef.h.
65 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
66 (__getutent): Allocate buffer the first time it is run.
67 * login/getutid.c: Include stdlib.h instead of stddef.h.
68 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
69 (__getutid): Allocate buffer the first time it is run.
70 * login/getutline.c: Include stdlib.h instead of stddef.h.
71 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
72 (__getutline): Allocate buffer the first time it is run.
73 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
74 (mtrace): Allocate malloc_trace_buffer.
75 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
76 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
77 * string/strerror.c: Include libintl.h and errno.h.
79 (strerror): Only allocate buffer if actually needed (unknown error).
80 * time/tzfile.c (transitions): Add libc_freeres_ptr.
83 2002-10-25 Jakub Jelinek <jakub@redhat.com>
85 * include/libc-symbols.h (libc_freeres_ptr): New macro.
86 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
88 (__libc_freeres): Free all pointers in that section.
89 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
90 commands when creating .lds script.
91 (LDSEDCMD-c.so): New variable.
92 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
93 (rcmd_af): Use strdup to allocate ahostbuf.
94 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
95 (rexec_af): Use strdup to allocate ahostbuf.
96 * stdio-common/reg-printf.c (printf_funcs): Remove.
97 (__printf_arginfo_table): Change into printf_arginfo_function **.
99 (__register_printf_function): Allocate __printf_arginfo_table
100 and __printf_function_table the first time it is called.
101 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
102 printf_arginfo_function **.
103 (parse_one_spec): Add __builtin_expect.
104 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
106 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
108 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
109 (string_space, map): Add libc_freeres_ptr.
111 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
113 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
115 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
116 (buffer): Add libc_freeres_ptr.
117 (free_mem): Remove for _LIBC.
118 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
120 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
122 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
124 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
126 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
128 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
130 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
133 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
137 2002-10-30 Jakub Jelinek <jakub@redhat.com>
139 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
140 instead of duplicating the whole function in libc.
142 2002-10-31 Roland McGrath <roland@redhat.com>
144 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
145 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
147 2002-10-30 Jakub Jelinek <jakub@redhat.com>
149 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
150 32bit-predefine when creating .new32 list and -U for each
151 32bit-predefine when creating .new64 list.
152 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
154 2002-10-29 Andreas Schwab <schwab@suse.de>
156 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
157 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
159 2002-10-25 Roland McGrath <roland@redhat.com>
161 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
162 * sysdeps/unix/sysv/linux/configure: Regenerated.
164 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
165 _dl_starting_up decl.
167 2002-10-20 H.J. Lu <hjl@gnu.org>
169 * sysdeps/unix/sysv/linux/configure.in: Don't check
170 /lib/modules/`uname -r`/build/include for kernel headers if
172 * sysdeps/unix/sysv/linux/configure: Regenerated.
174 2002-10-25 Roland McGrath <roland@redhat.com>
176 * math/math.h (M_LOG2El): Correct the value.
177 From Stephen L Moshier <steve@moshier.net>.
179 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
180 conditional from __libc_multiple_libcs access. Remove kludge for weak
181 symbol access with old compilers we no longer support.
182 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
183 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
185 2002-10-25 Roland McGrath <roland@redhat.com>
187 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
188 implement SV_RESETHAND by translating it to SA_RESETHAND.
190 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
192 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
193 type on ELF64 platforms.
195 2002-10-24 Ulrich Drepper <drepper@redhat.com>
197 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
199 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
201 2002-10-24 Jakub Jelinek <jakub@redhat.com>
203 * elf/dl-misc.c: Include <sysdep.h>.
204 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
206 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
207 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
208 (INLINE_SYSCALL): Use that.
209 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
210 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
211 (INLINE_SYSCALL): Use that.
212 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
213 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
214 (INLINE_SYSCALL): Use that.
215 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
217 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
218 (__INTERNAL_SYSCALL_STRING): Define.
219 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
221 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
222 (__INTERNAL_SYSCALL_STRING): Define.
223 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
224 __SYSCALL_STRING to inline_syscall*.
225 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
227 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
228 inline_syscall4, inline_syscall5, inline_syscall6): Add string
231 2002-10-24 Roland McGrath <roland@redhat.com>
233 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
234 * sysdeps/unix/sysv/linux/init-first.c: Not here.
235 * sysdeps/powerpc/elf/libc-start.c: Or here.
236 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
237 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
238 * sysdeps/unix/sysv/aix/init-first.c: Or here.
239 * sysdeps/generic/libc-start.c: Or here.
240 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
241 access with [! SHARED].
242 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
244 * libio/bug-wfflush.c: New file.
245 * libio/Makefile (tests): Add bug-wfflush.
247 2002-10-23 Roland McGrath <roland@redhat.com>
249 * stdio-common/tst-fphex.c: New file.
250 * stdio-common/Makefile (tests): Add tst-fphex.
251 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
252 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
253 chars always before the value digits.
254 Reported by James Antill <james.antill@redhat.com>.
256 2002-10-24 Jakub Jelinek <jakub@redhat.com>
258 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
259 (free_mem): New function.
260 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
261 if not cross compiling.
262 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
263 (bug-regex14-ENV): Set.
264 (bug-regex14-mem): New target.
265 * posix/bug-regex14.c: New file.
267 2002-10-23 Roland McGrath <roland@redhat.com>
269 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
270 target, so we don't touch it when the link fails.
272 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
273 Check for the result overflowing off_t and fail with EOVERFLOW.
274 * libio/ioftell.c (_IO_ftell): Likewise.
275 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
277 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
278 use a temporary timeval on the stack for gettimeofday and copy it.
279 * login/logout.c (logout): Likewise.
280 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
282 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
283 Use __SWORD_TYPE instead of int for member types.
284 (struct statfs64): Likewise.
285 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
286 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
287 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
288 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
289 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
291 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
292 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
293 (ST_NODIRATIME): Restore fixed value of 2048.
294 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
295 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
297 Rearranged <bits/types.h> definitions to reduce duplication.
298 * sysdeps/generic/bits/types.h: Rewritten, using macros from
299 <bits/wordsize.h> and new header <bits/typesizes.h>.
300 * posix/Makefile (headers): Add bits/typesizes.h here.
301 * sysdeps/generic/bits/typesizes.h: New file.
302 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
303 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
304 * sysdeps/mach/hurd/bits/typesizes.h: New file.
305 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
306 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
307 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
308 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
309 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
310 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
311 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
312 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
313 <bits/pthreadtypes.h> here, not in <bits/types.h>.
314 * signal/signal.h: Likewise.
316 * streams/stropts.h: Include <bits/xtitypes.h>.
317 * streams/Makefile (headers): Add bits/xtitypes.h here.
318 * sysdeps/generic/bits/xtitypes.h: New file.
319 * sysdeps/s390/bits/xtitypes.h: New file.
320 * sysdeps/ia64/bits/xtitypes.h: New file.
321 * sysdeps/x86_64/bits/xtitypes.h: New file.
323 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
324 * sysdeps/generic/bits/ipctypes.h: New file.
325 * sysdeps/mips/bits/ipctypes.h: New file.
326 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
327 * sysdeps/gnu/bits/msq.h: Likewise.
328 * sysvipc/sys/ipc.h: Likewise.
330 2002-10-22 Ulrich Drepper <drepper@redhat.com>
332 * elf/dl-load.c (struct filebuf): For buf element to have the
333 alignment of ElfXX_Ehdr since this is what will be stored in it.
335 2002-10-22 Jakub Jelinek <jakub@redhat.com>
337 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
338 into pointer to locrec_offset.
339 (add_locale_to_archive): Adjust callers. Free normalized_name right
340 before returning, not immediately after add_locale, pass it to
341 add_alias if not NULL instead of name. Rename second normalized_name
342 occurence to nnormalized_codeset_name.
344 * locale/programs/locarchive.c (enlarge_archive): Make sure
345 string_size is always a multiple of 4.
346 Reported by Andreas Schwab <schwab@suse.de>.
348 2002-10-21 Andreas Schwab <schwab@suse.de>
350 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
351 caller to EXTRA instead of execve, since the latter has a
352 higher-priority implementation in linuxthreads.
354 2002-10-21 Roland McGrath <roland@redhat.com>
356 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
357 slotinfo list's len member to the proper size, not just 1.
358 Initialize static_map.l_tls_initimage.
360 * elf/dl-open.c (dl_open_worker): Fix loop searching for
361 dtv_slotinfo_list element containing new modules' l_tls_modid.
363 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
364 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
365 * elf/Makefile (tests): Add tst-tls9.
366 (tests-static): Add tst-tls9-static.
367 (tst-tls9-static-ENV): New variable.
368 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
370 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
371 modids used by partially loaded modules being closed can't be known.
373 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
375 * posix/Makefile: Add a test case for the bug reported by Aharon
376 Robbins <arnold@skeeve.com>.
377 * posix/bug-regex13.c: New file.
378 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
380 2002-10-21 Ulrich Drepper <drepper@redhat.com>
382 * csu/gmon-start.c: Pretty printing.
384 2002-10-19 Art Haas <ahaas@neosoft.com>
386 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
387 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
388 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
389 * configure: Regenerated.
391 2002-10-19 Roland McGrath <roland@redhat.com>
393 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
394 and then set $subdirs directly, because the new Autoconf breaks
395 compatibility in every way imaginable and insists on whining
396 about usage that worked since the dawn of time.
397 * configure: Regenerated.
399 * configure: Regenerated (using Autoconf 2.54).
400 * sysdeps/alpha/elf/configure: Likewise.
401 * sysdeps/generic/configure: Likewise.
402 * sysdeps/i386/elf/configure: Likewise.
403 * sysdeps/ia64/elf/configure: Likewise.
404 * sysdeps/mach/hurd/configure: Likewise.
405 * sysdeps/mach/configure: Likewise.
406 * sysdeps/unix/configure: Likewise.
407 * sysdeps/unix/common/configure: Likewise.
408 * sysdeps/unix/sysv/aix/configure: Likewise.
409 * sysdeps/unix/sysv/linux/configure: Likewise.
410 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
411 * sysdeps/x86_64/elf/configure: Likewise.
413 * config.make.in: Nix completely-soft nonsense.
414 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
415 of machine directories instead of fpu subdirectory.
416 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
417 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
418 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
419 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
420 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
421 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
422 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
423 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
424 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
425 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
426 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
427 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
428 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
429 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
430 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
431 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
432 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
433 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
434 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
435 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
436 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
437 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
438 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
439 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
440 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
441 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
442 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
443 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
444 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
445 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
446 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
447 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
448 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
449 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
450 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
451 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
452 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
453 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
454 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
455 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
457 2002-10-19 Bruno Haible <bruno@clisp.org>
459 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
461 2002-10-18 Roland McGrath <roland@redhat.com>
463 * io/Makefile (routines): Add lchmod.
464 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
465 * sysdeps/generic/lchmod.c: New file.
466 * sysdeps/mach/hurd/lchmod.c: New file.
467 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
469 2002-10-18 Art Haas <ahaas@neosoft.com>
471 * configure.in: Remove remaining AC_FD_CC macros, and replace
472 AC_FD_MSG with AS_MESSAGE_FD.
474 2002-10-18 Roland McGrath <roland@redhat.com>
476 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
477 typos: VALUE -> FINALADDR.
479 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
480 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
481 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
482 (inline_syscall6): Move these macros ...
483 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
485 * configure.in (libc_link_dests, libc_link_sources): Remove these
486 variables and the AC_LINK_FILES call.
488 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
489 change to put new symbols here instead of in GLIBC_2.2.
490 * sysdeps/powerpc/Subdirs: Move this file ...
491 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
493 2002-10-07 Roland McGrath <roland@redhat.com>
495 * sysdeps/generic/bits/time.h: Replaced with contents of the
496 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
497 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
498 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
499 macros is ok even for architectures that don't now implement them.
500 * sysdeps/mach/hurd/bits/time.h: File removed.
501 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
502 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
503 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
504 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
505 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
507 2002-10-18 Jeff Bailey <jbailey@gnu.org>
509 * configure.in: Replace obsolete AC_OUTPUT syntax with
510 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
512 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
513 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
515 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
516 * sysdeps/alpha/elf/configure.in: Likewise.
517 * sysdeps/i386/elf/configure.in: Likewise.
518 * sysdeps/mach/hurd/configure.in: Likewise.
519 * sysdeps/x86_64/elf/configure.in: Likewise.
521 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
523 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
524 * sysdeps/generic/configure.in: Likewise.
525 * sysdeps/i386/elf/configure.in: Likewise.
526 * sysdeps/ia64/elf/configure.in: Likewise.
527 * sysdeps/mach/configure.in: Likewise.
528 * sysdeps/mach/hurd/configure.in: Likewise.
529 * sysdeps/unix/configure.in: Likewise.
530 * sysdeps/unix/common/configure.in: Likewise.
531 * sysdeps/unix/sysv/aix/configure.in: Likewise.
532 * sysdeps/unix/sysv/linux/configure.in: Likewise.
533 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
534 * sysdeps/x86_64/elf/configure.in: Likewise.
536 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
537 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
538 that it's obvious when extra autoconf machinery is being dragged in.
540 2002-10-18 Roland McGrath <roland@redhat.com>
542 * configure.in: Remove bogus echo included in
543 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
544 * configure: Regenerated.
546 2002-10-18 Jakub Jelinek <jakub@redhat.com>
548 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
549 (statfs_filesize_max): New function.
550 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
551 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
552 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
553 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
555 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
556 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
557 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
559 2002-10-17 Roland McGrath <roland@redhat.com>
561 * configure.in (MIG): Just AC_SUBST it here.
562 * configure: Regenerated.
563 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
564 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
565 * sysdeps/mach/configure: Regenerated.
567 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
568 and AC_PROVIDE([_AS_CR_PREPARE]).
570 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
571 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
573 * elf/dl-support.c: Move _dl_tls_* variables to ...
574 * sysdeps/generic/libc-tls.c: ... here.
576 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
577 allow IDX to be one past the current last slotinfo entry.
578 (_dl_close): Pass IMAP->l_init_called for that parameter.
580 2002-10-07 Andreas Schwab <schwab@suse.de>
582 * aclocal.m4: Fix for autoconf 2.53.
583 * configure.in: Likewise. Require autoconf 2.53.
585 2002-10-08 Richard Henderson <rth@redhat.com>
587 * soft-fp/op-4.h: Handle carry correctly in
588 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
589 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
590 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
592 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
594 * configure.in: Compute completely-soft.
595 * config.make.in: Make completely-soft available to sub-makes.
596 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
597 gcc-double-routines. Add sim-full.c. Add fenv_const and
598 fe_nomask to libm-support.
599 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
600 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
601 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
602 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
603 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
604 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
605 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
606 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
607 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
608 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
609 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
610 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
611 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
612 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
613 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
614 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
615 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
616 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
617 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
618 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
620 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
621 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
622 FP_HANDLE_EXCEPTIONS.
624 Redefine FP_* macros to correspond to the FE_* bit positions.
625 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
626 Define externs for __sim_exceptions, __sim_disabled_exceptions,
627 __sim_round_mode, __simulate_exceptions.
628 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
629 * sysdeps/powerpc/bits/fenv.h: ...to here.
631 2002-10-06 Jakub Jelinek <jakub@redhat.com>
633 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
634 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
635 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
636 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
639 2002-10-15 Jakub Jelinek <jakub@redhat.com>
641 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
642 __libc_res_nsend): New prototypes.
643 * resolv/res_query.c (QUERYSIZE): Define.
644 (__libc_res_nquery): Renamed from res_nquery. Added answerp
645 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
646 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
647 res_nsend, pass answerp.
648 (res_nquery): Changed into wrapper around __libc_res_nquery.
649 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
650 argument. Call __libc_res_nquerydomain and __libc_res_nquery
651 instead of the non-__libc_ variants, pass them answerp.
652 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
653 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
654 Added answerp argument. Call __libc_res_nquery instead of
655 res_nquery, pass answerp.
656 (res_nquerydomain): Changed into wrapper around
657 __libc_res_nquerydomain.
658 * resolv/res_send.c: Include sys/ioctl.h.
660 (send_vc): Change arguments. Reallocate answer buffer if it is
663 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
664 Reallocate answer buffer if it is too small and hooks are in use.
665 Adjust calls to send_vc and send_dg.
666 (res_nsend): Changed into wrapper around __libc_res_nsend.
667 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
668 just 1K answer buffer on the stack, use __libc_res_nsearch instead
670 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
671 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
672 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
673 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
674 (gethostbyaddr): Similarly with __libc_res_nquery.
675 * resolv/Versions (libresolv): Export __libc_res_nquery and
676 __libc_res_nsearch at GLIBC_PRIVATE.
678 2002-10-17 Roland McGrath <roland@redhat.com>
680 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
681 * configure: Regenerated.
683 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
684 before performing the reloc, not after.
685 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
687 2002-10-17 Ulrich Drepper <drepper@redhat.com>
689 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
690 * locale/programs/linereader.c (lr_open): Likewise.
691 * locale/programs/charmap-dir.c (charmap_open): Likewise.
692 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
694 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
696 * posix/bug-regex11.c: Add a test case for the bug reported by
697 Paolo Bonzini <bonzini@gnu.org>.
698 * posix/regexec.c (sift_states_bkref): Use correct destination of
701 2002-10-17 Roland McGrath <roland@redhat.com>
703 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
704 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
705 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
706 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
707 Call it after performing TPOFF relocs.
708 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
709 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
710 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
712 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
713 when closing a partially-initialized object.
715 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
716 instead of _dl_fatal_printf when we see PT_TLS.
718 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
719 instead of $(libof-$<).
721 2002-10-16 Roland McGrath <roland@redhat.com>
723 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
724 instead of += to append, to be sure $(lib) gets expanded at defn time.
725 (libof-$(cpp-src)): New variable, define this instead.
726 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
727 (lib): Don't use override.
728 (CPPFLAGS-$(lib)): New variable, put -D's here.
729 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
730 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
731 LIB found by $(libof-*) for basename, target, or source.
732 * Makerules (CPPFLAGS-nonlib): New variable.
733 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
734 * locale/Makefile (lib): Likewise.
735 * sunrpc/Makefile (lib): Likewise.
737 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
738 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
739 * sysdeps/unix/sysv/linux/pathconf.h: New file.
740 (statfs_link_max): New function, guts from fpathconf.c.
741 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
742 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
743 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
744 to use the linux/pathconf.c code by #include rather than duplication.
745 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
747 2002-10-16 Jakub Jelinek <jakub@redhat.com>
749 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
750 Use __libc_errno only for libc itself.
752 2002-10-16 Andreas Jaeger <aj@suse.de>
754 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
756 2002-10-16 Ulrich Drepper <drepper@redhat.com>
758 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
759 Use __libc_errno only for libc itself.
761 2002-10-15 Roland McGrath <roland@redhat.com>
762 Jakub Jelinek <jakub@redhat.com>
764 * sysdeps/unix/sysv/linux/Makefile
765 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
766 sparc/Makefile to produce a bi-arch file as needed.
767 That's now parameterized by the variable $(64bit-predefine).
768 Use LC_ALL=C for `comm' commands in that rule.
769 No longer conditional on [$(no_syscall_list_h)].
770 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
771 (64bit-predefine): New variable.
772 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
773 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
774 * sysdeps/unix/sysv/linux/powerpc/Makefile
775 (64bit-predefine): New variable.
777 2002-10-15 Roland McGrath <roland@redhat.com>
779 * sysdeps/unix/sysv/linux/Makefile
780 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
782 * login/utmp-private.h: Declare __libc_utmp_lock.
783 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
784 and call __libc_utmp_jump_table functions directly, instead of using
787 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
788 * sysdeps/unix/sysv/linux/configure: Regenerated.
790 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
791 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
792 Use int32_t for ll_time.
793 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
794 Use int32_t instead of long int for ut_session.
795 Use an anonymous struct with 32-bit fields for ut_tv.
796 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
797 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
798 here as in utmp.h for `struct utmp'.
799 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
800 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
801 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
802 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
803 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
804 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
806 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
807 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
808 All the following files were identical or equivalent to it.
809 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
810 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
811 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
812 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
813 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
814 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
815 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
816 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
817 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
818 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
820 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
821 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
822 Other than the previously incorrect sign of msg_iovlen, this is a
823 no-op on 32-bit platforms. On 64-bit platforms it makes this header
824 match their layouts as well, so the following are now identical to it.
825 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
826 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
827 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
828 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
829 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
831 2002-10-15 Ulrich Drepper <drepper@redhat.com>
833 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
834 Define for 2.4+ kernels.
836 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
837 are known to have the vfork syscall. Don't confuse the CPUs
838 branch prediction unit by jumping to the return address.
840 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
841 support for reiserfs and xfs.
843 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
845 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
847 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
849 2002-10-16 Jakub Jelinek <jakub@redhat.com>
851 * include/libc-symbols.h (attribute_tls_model_ie): Define.
852 * include/errno.h (errno): Define to __libc_errno in libc.so.
853 Add attribute_tls_model_ie.
854 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
855 Add attribute_tls_model_ie.
856 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
857 attribute_tls_model_ie.
858 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
860 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
862 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
863 attribute_tls_model_ie.
864 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
866 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
867 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
868 __libc_errno in USE___THREAD case.
869 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
871 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
872 __attribute__((tls_model (""))).
873 * configure: Rebuilt.
874 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
876 2002-10-15 Ulrich Drepper <drepper@redhat.com>
878 * timezone/asia: Update from tzdata2002d.
879 * timezone/australasia: Likewise.
880 * timezone/iso3166.tab: Likewise.
881 * timezone/southamerica: Likewise.
882 * timezone/zone-tab: Likewise.
884 2002-10-15 Roland McGrath <roland@redhat.com>
886 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
887 Adjust TCB pointer before calling free, so we get the whole block.
889 2002-10-14 Roland McGrath <roland@redhat.com>
891 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
892 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
893 extern using attribute_hidden instead of static, avoids warning.
895 2002-10-09 Jakub Jelinek <jakub@redhat.com>
897 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
898 * sysdeps/unix/sysv/linux/configure: Rebuilt.
900 2002-10-14 Ulrich Drepper <drepper@redhat.com>
902 * po/sv.po: Update from translation team.
904 2002-10-12 H.J. Lu <hjl@gnu.org>
906 * sunrpc/thrsvc.c (PROCQUIT): New.
907 (struct rpc_arg): New.
908 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
909 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
910 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
911 (main): Modified for struct rpc_arg *.
913 2002-10-14 Ulrich Drepper <drepper@redhat.com>
915 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
917 2002-10-14 Jakub Jelinek <jakub@redhat.com>
919 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
920 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
921 in ld.so even if __thread is supported.
923 2002-10-13 Jakub Jelinek <jakub@redhat.com>
925 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
926 Add hack to prevent the compiler from clobbering the signal context.
927 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
929 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
932 2002-10-14 Andreas Jaeger <aj@suse.de>
934 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
935 Guido Guenther <agx@sigxcpu.org>.
937 2002-10-14 Ulrich Drepper <drepper@redhat.com>
939 * po/sk.po: Update from translation team.
941 2002-09-26 Roland McGrath <roland@redhat.com>
943 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
945 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
946 DL_DST_LIB based on $(slibdir).
948 2002-10-13 Roland McGrath <roland@frob.com>
950 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
952 * sysdeps/mach/hurd/getresuid.c: New file.
953 * sysdeps/mach/hurd/getresgid.c: New file.
954 * sysdeps/mach/hurd/setresuid.c: New file.
955 * sysdeps/mach/hurd/setresgid.c: New file.
957 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
958 setresgid): Declare them.
961 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
962 add libc_hidden_proto.
963 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
964 getresuid, getresgid, setresuid, setresgid here.
965 * Versions.def (libc): Define GLIBC_2.3.2 set.
966 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
968 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
969 * sysdeps/generic/setresgid.c: New file.
970 * sysdeps/generic/setresuid.c: New file.
971 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
972 (sysdep_routines): Don't add getresuid and getresgid here.
973 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
974 (sysdep_routines): Don't add setresuid and setresgid here.
975 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
976 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
977 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
978 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
979 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
980 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
981 * posix/Makefile (routines): Add them all here instead.
982 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
983 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
984 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
985 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
986 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
987 [! __NR_setresuid]: Include generic file.
988 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
989 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
990 [! __NR_setresuid]: Include generic file.
991 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
992 Caller is - now, not EXTRA.
993 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
994 (setresuid, setresgid, getresuid, getresgid): Likewise.
995 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
996 Add these calls here.
997 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
998 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
999 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1000 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1001 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1004 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1005 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1007 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1008 (sysdep_routines): Add setfsuid and setfsgid here.
1009 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
1010 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
1011 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
1012 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
1013 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1014 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
1015 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1016 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1018 * hurd/errno.c: Renamed to ...
1019 * hurd/errno-loc.c: ... this.
1020 * hurd/Makefile (routines): errno -> errno-loc
1022 2002-10-13 Ulrich Drepper <drepper@redhat.com>
1024 * po/de.po: Update from translation team.
1026 * MakeTAGS: Add -E flag to xgettext runs.
1028 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1030 * po/fr.po: Update from translation team.
1032 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
1033 Optimize a bit for use in glibc.
1035 2002-10-12 Roland McGrath <roland@redhat.com>
1037 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
1038 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
1040 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1042 * po/sv.po: Update from translation team.
1044 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1046 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
1048 (regfree): Likewise.
1049 (create_initial_state): Likewise.
1050 (analyze): Remove the substitutions which became useless.
1051 (calc_first): Likewise.
1052 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
1053 epsilon destination.
1054 (duplicate_node_closure): New function.
1055 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
1056 (calc_inveclosure): Likewise.
1057 (calc_eclosure): Likewise.
1058 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
1059 direct invocation of duplicate_node.
1060 (parse): Don't use comma operator in the return to avoid compiler
1062 (parse_reg_exp): Likewise.
1063 (parse_branch): Likewise.
1064 (parse_expression): Likewise.
1065 (parse_sub_exp): Likewise.
1066 (parse_dup_op): Likewise.
1067 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
1068 which became useless.
1069 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
1070 (create_cd_newstate): Likewise.
1071 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
1072 (re_token_t): Likewise.
1073 (re_dfa_t): Likewise.
1074 (re_node_set_remove): New macro.
1075 * posix/regexec.c (check_matching): Remove the handling
1077 (check_halt_node_context): Likewise.
1078 (proceed_next_node): Likewise.
1079 (pop_fail_stack): Fix the memory leak.
1080 (set_regs): Likewise.
1081 (free_fail_stack_return): New function.
1082 (sift_states_backward): Fix the memory leak. Remove the handling
1084 (update_cur_sifted_state): Append some if clause to avoid redundant
1086 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
1088 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
1089 (check_subexp_limits): Likewise.
1090 (search_subexp): Likewise.
1091 (sift_states_bkref): Likewise.
1092 (transit_state_mb): Likewise.
1093 (transit_state_bkref_loop): Likewise.
1094 (transit_state_bkref_loop): Likewise.
1095 (group_nodes_into_DFAstates): Likewise.
1096 (check_node_accept): Likewise.
1097 (sift_ctx_init): Add initializing.
1099 2002-10-12 Ulrich Drepper <drepper@redhat.com>
1101 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
1104 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1106 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
1107 duplicated variable c.
1109 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
1112 * sysdeps/unix/sysv/linux/i386/sysdep.h
1113 (INTERNAL_SYSCALL_ERROR_P): New define.
1114 (INTERNAL_SYSCALL_ERRNO): Likewise.
1116 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
1117 Add hack to prevent the compiler from clobbering the signal context.
1119 2002-10-11 Roland McGrath <roland@redhat.com>
1121 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1124 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
1125 * sysdeps/sh/dl-lookupcfg.h: File removed.
1126 * sysdeps/i386/dl-lookupcfg.h: File removed.
1128 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
1129 missing labels and ; from last change.
1131 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
1132 number literals, so they are doubles instead of ints.
1134 2002-10-09 Roland McGrath <roland@redhat.com>
1136 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
1137 changed from [USE_TLS && HAVE___THREAD].
1139 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
1140 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
1141 * sysdeps/x86_64/dl-machine.h
1142 (elf_machine_type_class, elf_machine_rela): Likewise.
1143 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
1146 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
1147 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
1148 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
1150 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
1151 instead of ___tls_get_addr.
1152 (___tls_get_addr_internal): Add attribute_hidden to decl.
1154 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
1155 _dl_error_catch_tsd.
1156 * elf/rtld.c (startup_error_tsd): New function.
1157 (dl_main): Point _dl_error_catch_tsd at that.
1158 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
1159 use new function pointer instead.
1160 * elf/dl-tsd.c: New file.
1161 * elf/Makefile (routines): Add it.
1163 2002-10-07 Roland McGrath <roland@redhat.com>
1165 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
1166 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
1167 take _dl_load_lock around calling __writev.
1169 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
1170 (INLINE_SYSCALL): Use that.
1172 * sysdeps/generic/dl-sysdep.h: New file.
1173 * sysdeps/mach/hurd/dl-sysdep.h: New file.
1174 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
1175 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
1176 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
1178 * elf/dl-minimal.c (__errno_location): Removed.
1179 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1180 Use GOTOFF access for errno.
1181 * sysdeps/unix/sysv/linux/i386/sysdep.h
1182 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1184 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
1185 Use PC-relative access for errno.
1186 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1187 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
1189 * include/tls.h: New file.
1190 (USE___THREAD): New macro.
1191 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
1193 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
1194 changed from [USE_TLS && HAVE___THREAD].
1195 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1196 * sysdeps/unix/i386/sysdep.S: Likewise.
1197 * sysdeps/unix/x86_64/sysdep.S: Likewise.
1198 * include/errno.h: Likewise.
1199 * include/netdb.h: Likewise.
1200 * include/resolv.h: Likewise.
1202 * sysdeps/generic/errno.c: New file.
1203 * csu/Makefile (aux): New variable, list errno.
1204 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
1205 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1206 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
1207 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1208 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1209 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
1210 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
1211 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
1212 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1213 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
1214 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
1215 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
1216 * sysdeps/unix/alpha/sysdep.S: Likewise.
1217 * sysdeps/generic/start.c: Likewise.
1218 * sysdeps/unix/start.c: Likewise.
1219 * sysdeps/unix/arm/start.c: Likewise.
1220 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1221 * sysdeps/unix/sparc/start.c: Likewise.
1222 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1223 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
1225 * manual/search.texi (Tree Search Function, Hash Search Function):
1226 Mention search.h clearly.
1228 2002-10-05 Roland McGrath <roland@redhat.com>
1230 * elf/dl-fxstat64.c: File removed.
1231 * elf/dl-xstat64.c: File removed.
1232 * elf/Makefile (rtld-routines): Remove them.
1233 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
1234 Instead, use strong_alias instead of versioned_symbol in the
1236 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
1237 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1239 * include/shlib-compat.h
1240 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
1241 [! NOT_IN_libc] (IS_IN_libc): Define it.
1242 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
1243 * elf/Makefile (CPPFLAGS-.os): Likewise.
1245 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
1246 Return the status instead of calling exit.
1248 * Makeconfig (CFLAGS): Prepend -std=gnu99.
1249 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
1250 Remove superfluous rm command, whose @ plus make bugs hid
1251 all these commands from the make output.
1253 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
1254 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
1255 Use that file's contents instead of literal echo's for the prologue.
1256 * include/features.h: Include <gnu/stubs.h> unconditionally.
1257 * include/gnu/stubs.h: New file.
1259 2002-09-30 Roland McGrath <roland@redhat.com>
1261 * elf/rtld-Rules: New file.
1262 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
1263 $(objpfx)rtld-libc.a): New targets.
1264 (generated): Add them.
1265 (reloc-link): Remove -o $@ from the variable.
1266 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
1267 (distribute): Add rtld-Rules.
1268 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
1269 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
1270 (common-mostlyclean, common-clean): Clean up rtld-* files.
1271 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
1273 2002-10-11 Roland McGrath <roland@redhat.com>
1275 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
1276 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
1278 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
1279 proper set of no-op insn prefixes.
1281 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
1283 2002-10-11 Ulrich Drepper <drepper@redhat.com>
1285 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
1286 __pthread_kill_other_threads_np.
1288 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
1290 2002-10-08 Roland McGrath <roland@redhat.com>
1292 * locale/newlocale.c (__newlocale): If setting all categories to "C",
1293 just return &_nl_C_locobj instead of copying it.
1294 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
1295 * locale/duplocale.c (__duplocale): Likewise.
1297 2002-10-07 Roland McGrath <roland@frob.com>
1299 * config.h.in (HAVE_I386_SET_GDT): New #undef.
1300 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
1301 * sysdeps/mach/configure: Regenerated.
1303 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
1306 Add all necessary register outputs for syscall-clobbered registers.
1308 2002-10-02 David Mosberger <davidm@hpl.hp.com>
1310 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
1311 Itanium 2 (and Itanium).
1312 Fix unwind directives and make it fit in 80 columns.
1313 * sysdeps/ia64/memset.S: Likewise.
1314 * sysdeps/ia64/memcpy.S: Likewise.
1315 Move jump table to .rodata section.
1317 2002-10-03 Roland McGrath <roland@frob.com>
1319 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
1322 2002-10-10 Andreas Jaeger <aj@suse.de>
1324 * sysdeps/x86_64/_mcount.S: Restore correct registers.
1326 2002-10-10 Ulrich Drepper <drepper@redhat.com>
1328 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
1330 2002-10-09 Ulrich Drepper <drepper@redhat.com>
1332 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
1333 _dl_allocate_tls_init. Add rtld_hidden_proto.
1334 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
1336 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
1338 * version.h (VERSION): Bump to 2.3.1.
1340 * Make-dist: Add back one of the tar invocations removed before.
1342 * stdlib/Makefile (distribute): Add allocalim.h.
1344 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
1345 (__libc_tsd_address): Use correct variable name.
1346 Patch by Stefan Jones <stefan.jones@multigig.com>.
1348 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
1349 Reported by edwardsg@sgi.com [PR libc/4678].
1351 * Versions.def (libc): Add GLIBC_2.3.1.
1352 (libpthread): Add GLIBC_2.3.1.
1354 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
1356 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
1357 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
1359 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
1360 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
1362 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
1363 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
1364 and make old name an alias.
1365 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
1366 and make old name an alias.
1367 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
1370 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
1371 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
1373 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
1375 * sysdeps/posix/readv.c: Likewise
1376 * sysdeps/unix/sysv/aix/readv.c: Likewise.
1377 * sysdeps/unix/sysv/linux/readv.c: Likewise.
1378 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
1380 * sysdeps/posix/writev.c: Likewise
1381 * sysdeps/unix/sysv/aix/writev.c: Likewise.
1382 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1384 * include/sys/wait.h: Declare __waitid.
1385 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
1386 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
1388 * sysdeps/posix/waitid.c: Likewise.
1389 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
1391 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
1393 2002-10-07 Jakub Jelinek <jakub@redhat.com>
1395 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
1397 (__MAX_ALLOCA_CUTOFF): Define.
1398 Include allocalim.h.
1399 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1400 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
1401 host_buffer depending on __libc_use_alloca.
1402 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1403 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
1404 net_buffer depending on __libc_use_alloca.
1405 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
1406 buf depending on __libc_use_alloca.
1407 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
1408 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
1409 instead of hardcoded constants.
1410 Pass proper size argument to alloca and compute end for wide char
1412 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
1413 instead of hardcoded constants.
1414 * string/strcoll.c (strcoll): Likewise.
1415 * string/strxfrm.c (strxfrm): Likewise.
1416 * sysdeps/posix/readv.c (__readv): Likewise.
1417 * sysdeps/posix/writev.c (__writev): Likewise.
1418 * sysdeps/generic/allocalim.h: New file.
1420 2002-10-08 Roland McGrath <roland@redhat.com>
1422 * configure.in (aux_missing warning): Change "too old" to
1423 "incompatible versions", since for autoconf it's "too new" right now.
1424 * configure: Regenerated.
1426 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
1427 one found doesn't work on our configure.in.
1428 * configure: Regenerated.
1429 * config.make.in (AUTOCONF): New substituted variable.
1430 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
1431 (autoconf-it): ... here, use that instead of defining conditionally.
1432 Use $(AUTOCONF) instead of literal autoconf.
1433 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
1434 with this condition.
1435 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
1437 2002-10-08 Ulrich Drepper <drepper@redhat.com>
1439 * Make-dist (dist): Cleanup a bit. We are not interested in the
1440 14 char filename limit anymore. Remove intermediate files and
1443 2002-10-05 Ulrich Drepper <drepper@redhat.com>
1445 * po/sk.po: Update from translation team.
1446 * po/tr.po: Likewise.
1447 * po/gl.po: Likewise.
1449 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1451 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
1453 2002-10-03 Ulrich Drepper <drepper@redhat.com>
1455 * version.h (RELEASE): Change to stable.
1457 2002-10-03 Jakub Jelinek <jakub@redhat.com>
1459 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
1460 __syscall_exit_group): New prototypes.
1462 2002-10-03 Ulrich Drepper <drepper@redhat.com>
1464 * glibc 2.3 released.
1467 See ChangeLog.13 for earlier changes.