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