1 2002-12-30 Ulrich Drepper <drepper@redhat.com>
3 * elf/Makefile: Add rules to build and run reldep8 test.
4 * elf/reldep8.c: New file.
5 * elf/reldep8mod1.c: New file.
6 * elf/reldep8mod2.c: New file.
7 * elf/reldep8mod3.c: New file.
8 Contributed by Jakub Jelinek.
10 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
12 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
13 checking of return value ENOSYS from getdents64.
15 2002-12-28 Andreas Schwab <schwab@suse.de>
17 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
18 ($(common-objpfx)s-%.d): Generalized from
19 $(common-objpfx)s-proto.d rule.
20 (common-generated): Add s-proto-cancel.d.
21 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
23 * sysdeps/unix/s-proto-cancel.S: New file.
25 2002-12-29 Roland McGrath <roland@redhat.com>
27 * resolv/res_libc.c: Move _res defn magic after res_init defn
28 so _res macro is in effect for that code.
30 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
31 pattern for prepending $(..) so it doesn't affect $(foo).
33 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
35 2002-12-29 Jakub Jelinek <jakub@redhat.com>
37 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
40 2002-12-28 Ulrich Drepper <drepper@redhat.com>
42 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
44 2002-12-28 Andreas Jaeger <aj@suse.de>
46 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
48 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
50 2002-12-27 Jakub Jelinek <jakub@redhat.com>
52 * inet/herrno.c (__h_errno_location): Remove.
53 * inet/Makefile (routines): Add herrno-loc.
54 * resolv/res_libc.c (__res_state): Remove.
55 * resolv/Makefile (routines): Add res-state.
56 * sysdeps/generic/herrno-loc.c: New file.
57 * sysdeps/generic/res-state.c: New file.
59 2002-12-27 Jakub Jelinek <jakub@redhat.com>
61 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
62 Only define if USE_DL_SYSINFO is defined.
64 2002-12-22 Jakub Jelinek <jakub@redhat.com>
66 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
67 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
68 Define. Patch by Richard Henderson and Jes Sorensen.
69 (PSEUDO): Remove unnecessary ;;.
70 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
71 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
72 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
73 if not initializing thread pointer.
74 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
75 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
76 make it weak also if NONTLS_INIT_TP.
77 * sysdeps/unix/common/pause.c: Handle cancellation.
78 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
79 (LOADSYSCALL): Remove.
80 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
81 (SYSCALL_ERROR_HANDLER): Use it.
82 (PSEUDO): Don't jump around error handler.
83 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
84 jump around error handler.
85 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
86 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
87 to __syscall_error_handler on failure.
88 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
89 (LOADSYSCALL): Remove.
90 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
91 (SYSCALL_ERROR_HANDLER): Use it.
92 (PSEUDO): Don't jump around error handler.
93 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
94 jump around error handler.
95 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
96 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
97 to __syscall_error_handler on failure.
99 2002-12-27 Roland McGrath <roland@redhat.com>
101 * scripts/gen-as-const.awk: New file.
102 * Makefile (distribute): Add it.
103 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
104 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
106 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
108 2002-12-27 Andreas Schwab <schwab@suse.de>
110 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
112 2002-12-27 Jakub Jelinek <jakub@redhat.com>
114 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
117 2002-12-27 Andreas Schwab <schwab@suse.de>
119 * Makerules ($(common-objpfx)%.make): Filter through
120 $(sed-remove-objpfx).
122 2002-12-23 Roland McGrath <roland@redhat.com>
124 * scripts/abilist.awk: Produce a more compact format, divided into
125 stanzas for each version set, the set name listed only once.
126 * scripts/extract-abilist.awk: New file.
127 * scripts/merge-abilist.awk: New file.
128 * Makerules (check-abi-%, update-abi-%): New pattern rules.
129 (update-abi, check-abi): New targets.
130 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
132 2002-12-19 Roland McGrath <roland@redhat.com>
134 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
136 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
139 2002-12-21 Andreas Schwab <schwab@suse.de>
141 * elf/check-textrel.c (handle_file): Swap p_type.
143 2002-12-21 Andreas Schwab <schwab@suse.de>
145 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
146 (INLINE_SYSCALL): Use it.
147 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
148 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
150 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
151 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
153 2002-12-20 Art Haas <ahaas@airmail.net>
155 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
158 2002-12-21 Philip Blundell <philb@gnu.org>
160 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
161 top as seventh arg to __libc_start_main.
162 Reported by paulnash@wildseed.com.
164 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
166 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
167 compatibility cruft when new enough kernel is assumed.
169 2002-12-20 Jakub Jelinek <jakub@redhat.com>
171 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
172 instead of INLINE_SYSCALL.
174 2002-12-20 Ulrich Drepper <drepper@redhat.com>
176 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
179 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
180 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
181 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
182 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
183 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
184 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
185 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
186 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
187 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
188 Patch by William Lee Irwin <wli@holomorphy.com>.
190 2002-12-20 Andreas Schwab <schwab@suse.de>
192 * locale/programs/ld-measurement.c (measurement_output): Fix
195 2002-12-20 Ulrich Drepper <drepper@redhat.com>
197 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
198 Redefine _IO_flockifle and _IO_funlockfile as inlines.
200 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
201 builds add "tls" in the search path.
202 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
203 (path_hwcap): Recognize "tls".
205 2002-12-19 Ulrich Drepper <drepper@redhat.com>
207 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
208 __waitpid instead of waitpid.
210 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
212 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
213 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
214 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
216 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
217 information for system calls.
219 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
222 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
224 2002-12-19 Roland McGrath <roland@redhat.com>
226 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
227 * iconvdata/ibm922.h: Likewise.
228 * iconvdata/ibm930.h: Likewise.
229 * iconvdata/ibm932.h: Likewise.
230 * iconvdata/ibm933.h: Likewise.
231 * iconvdata/ibm935.h: Likewise.
232 * iconvdata/ibm937.h: Likewise.
233 * iconvdata/ibm939.h: Likewise.
234 * iconvdata/ibm943.h: Likewise.
235 * iconvdata/isiri-3342.h: Likewise.
237 2002-12-19 Ulrich Drepper <drepper@redhat.com>
239 * test-skeleton.c (main): Make sure correct value is seen as
240 argv[0] after adjustment of argv, and argc.
242 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
243 RTLD_CORRECT_DYNAMIC_WEAK is defined.
245 2002-12-19 Jakub Jelinek <jakub@redhat.com>
247 * nscd/connections.c (nscd_run): Shut up warning.
248 * tst-ungetc.c (assert): Undefined before redefining.
250 2002-12-19 Ulrich Drepper <drepper@redhat.com>
252 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
255 2002-12-17 Art Haas <ahaas@airmail.net>
257 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
258 * iconvdata/cp775.h: Likewise.
259 * iconvdata/ibm1046.h: Likewise.
260 * iconvdata/ibm1124.h: Likewise.
261 * iconvdata/ibm1129.h: Likewise.
262 * iconvdata/ibm1132.h: Likewise.
263 * iconvdata/ibm1133.h: Likewise.
264 * iconvdata/ibm1160.h: Likewise.
265 * iconvdata/ibm1161.h: Likewise.
266 * iconvdata/ibm1162.h: Likewise.
267 * iconvdata/ibm1163.h: Likewise.
268 * iconvdata/ibm1164.h: Likewise.
270 2002-12-19 Ulrich Drepper <drepper@redhat.com>
272 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
273 __ASSUME_CLONE_THREAD_FLAGS is defined.
274 * sysdeps/unix/sysv/linux/kernel-features.h
275 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
277 2002-12-18 Ulrich Drepper <drepper@redhat.com>
279 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
281 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
283 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
285 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
287 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
289 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
291 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
292 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
293 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
296 2002-12-18 Jakub Jelinek <jakub@redhat.com>
298 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
300 [libc: GLIBC_PRIVATE]: ...here.
301 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
303 [libc: GLIBC_PRIVATE]: ...here.
305 2002-12-18 Ulrich Drepper <drepper@redhat.com>
307 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
308 Use it instead of directly int $0x80.
309 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
310 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
311 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
312 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
313 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
314 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
316 2002-12-17 Ulrich Drepper <drepper@redhat.com>
318 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
320 * elf/elf.h (AT_SYSINFO): New define.
321 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
324 2002-12-17 Jakub Jelinek <jakub@redhat.com>
326 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
328 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
330 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
332 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
334 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
336 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
338 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
339 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
340 available, otherwise __libc_maybe_call.
341 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
342 cancellation handling.
343 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
345 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
347 * posix/regcomp.c (free_workarea_compile): Free the new member
349 (analyze): Initialize ORG_INDICES.
350 (duplicate_node_closure): Search for a existing node, which is
351 duplicated from the node ORG_DEST and satisfies the constraint
352 CONSTRAINT. And use it to avoid inifimite loop.
353 (search_duplicated_node): New function.
354 (duplicate_node): Store the index of the original node.
355 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
357 * posix/regex_internal.h (re_dfa_t): Add new members.
359 2002-12-17 Ulrich Drepper <drepper@redhat.com>
361 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
363 2002-12-16 Ulrich Drepper <drepper@redhat.com>
365 * sysdeps/posix/system.c (do_system): Add support for installation
366 of cancellation handlers.
367 * sysdeps/unix/sysv/linux/i386/system.c: New file.
369 * stdlib/Makefile (tests): Add tst-system.
370 * stdlib/tst-system.c: New file.
372 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
373 CENABLE]: Don't lose content of %ebx.
375 2002-12-17 Jakub Jelinek <jakub@redhat.com>
377 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
378 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
380 2002-12-16 Ulrich Drepper <drepper@redhat.com>
382 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
383 fails to return a function pointer don't use it.
385 2002-12-16 Art Haas <ahaas@airmail.net>
387 * io/ftw.c: Convert GCC extension initializer syntax to C99.
388 * iconvdata/iso-ir-165.c: Likewise.
389 * iconvdata/jis0208.c: Likewise.
390 * iconvdata/jis0212.c: Likewise.
392 2002-12-16 Ulrich Drepper <drepper@redhat.com>
394 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
395 epoll_ctl, and epoll_wait.
396 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
397 epoll_create, epoll_ctl, and epoll_wait.
398 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
399 Davide Libenzi <davidel@xmailserver.org>.
400 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
401 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
404 2002-12-16 Art Haas <ahaas@airmail.net>
406 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
408 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
409 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
410 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
412 2002-12-16 Ulrich Drepper <drepper@redhat.com>
414 * stdio-common/Makefile (routines): Remove lockfile. Add
415 flockfile, ftrylockfile, and funlockfile.
416 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
417 * sysdeps/generic/flockfile.c: New file.
418 * sysdeps/generic/ftrylockfile.c: New file.
419 * sysdeps/generic/funlockfile.c: New file.
421 2002-12-16 Jakub Jelinek <jakub@redhat.com>
423 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
424 macros instead of doing the calls directly.
425 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
426 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
429 2002-12-16 Jakub Jelinek <jakub@redhat.com>
431 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
432 * sysdeps/ieee754/bits/nan.h: Likewise.
434 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
435 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
437 2002-12-16 Roland McGrath <roland@redhat.com>
439 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
440 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
441 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
443 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
444 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
446 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
447 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
448 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
449 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
450 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
451 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
452 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
453 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
455 2002-12-13 Paul Eggert <eggert@twinsun.com>
457 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
458 is now u_int, not int.
459 (struct XDR.x_handy): Now u_int, not int.
460 * sunrpc/xdr_mem.c: Include <limits.h>.
461 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
462 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
463 x_handy is now unsigned, not signed.
464 Do not decrement x_handy if no change is made.
465 (xdrmem_setpos): Check for int overflow.
466 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
467 (xdr_sizeof): Remove cast that is now unnecessary, now that
470 2002-12-15 Art Haas <ahaas@airmail.net>
472 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
473 * iconvdata/gap.awk: Likewise.
474 * iconvdata/gen-8bit-gap-1.sh: Likewise.
475 * iconvdata/gen-8bit-gap.sh: Likewise.
476 * locale/C-address.c: Likewise.
477 * locale/C-collate.c: Likewise.
478 * locale/C-ctype.c: Likewise.
479 * locale/C-identification.c: Likewise.
480 * locale/C-measurement.c: Likewise.
481 * locale/C-messages.c: Likewise.
482 * locale/C-monetary.c: Likewise.
483 * locale/C-name.c: Likewise.
484 * locale/C-numeric.c: Likewise.
485 * locale/C-paper.c: Likewise.
486 * locale/C-telephone.c: Likewise.
487 * locale/C-time.c: Likewise.
488 * nscd/connections.c: Likewise.
489 * nscd/grpcache.c: Likewise.
490 * nscd/hstcache.c: Likewise.
491 * nscd/pwdcache.c: Likewise.
492 * stdio-common/vfprintf.c: Likewise.
493 * stdlib/random.c: Likewise.
494 * sysdeps/generic/siglist.c: Likewise.
495 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
496 * sysdeps/ieee754/bits/nan.h: Likewise.
497 * sysdeps/posix/sprofil.c: Likewise.
498 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
499 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
500 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
502 2002-12-15 Roland McGrath <roland@redhat.com>
504 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
506 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
507 <tls.h> here, no need for it.
508 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
510 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
511 parameter, not varargs parameter.
513 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
514 argument so it's not an unused variable.
516 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
517 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
520 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
522 2002-12-15 Ulrich Drepper <drepper@redhat.com>
524 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
525 original __libc_fcntl code. Just renamed.
527 2002-12-15 Andreas Schwab <schwab@suse.de>
529 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
531 2002-12-14 Olaf Hering <olh@suse.de>
533 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
534 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
536 2002-12-15 Ulrich Drepper <drepper@redhat.com>
538 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
540 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
541 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
543 * sysdeps/unix/sysv/linux/open64.c: New file.
545 * sysdeps/generic/pselect.c: Add support for cancellation handling.
546 * sysdeps/posix/open64.c: Likewise.
547 * sysdeps/posix/sigpause.c: Likewise.
548 * sysdeps/posix/sigwait.c: Likewise.
549 * sysdeps/posix/system.c: Likewise.
550 * sysdeps/posix/waitid.c: Likewise.
551 * sysdeps/unix/sysv/linux/accept.S: Likewise.
552 * sysdeps/unix/sysv/linux/connect.S: Likewise.
553 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
554 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
555 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
556 * sysdeps/unix/sysv/linux/poll.c: Likewise.
557 * sysdeps/unix/sysv/linux/pread.c: Likewise.
558 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
559 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
560 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
561 * sysdeps/unix/sysv/linux/readv.c: Likewise.
562 * sysdeps/unix/sysv/linux/recv.S: Likewise.
563 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
564 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
565 * sysdeps/unix/sysv/linux/send.S: Likewise.
566 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
567 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
568 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
569 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
570 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
571 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
572 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
573 * sysdeps/unix/sysv/linux/wait.c: Likewise.
574 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
575 * sysdeps/unix/sysv/linux/writev.c: Likewise.
576 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
577 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
579 2002-12-14 Jakub Jelinek <jakub@redhat.com>
581 * sysdeps/generic/sysdep-cancel.h: New file.
582 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
584 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
585 recvmsg, send, sendmsg, sendto): Make cancelable.
586 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
587 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
588 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
589 sendto, osf_select): Likewise.
590 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
591 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
592 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
593 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
595 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
596 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
597 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
598 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
600 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
601 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
602 sendto, select): Likewise.
603 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
604 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
606 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
607 select, fcntl): Likewise.
608 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
609 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
610 read, readv, select, sigsuspend, write, writev): Likewise.
612 2002-12-14 Jakub Jelinek <jakub@redhat.com>
614 * dirent/bug-readdir1.c: Include unistd.h.
616 2002-12-13 Jakub Jelinek <jakub@redhat.com>
618 * locale/programs/locale.c: Include locarchive.h.
619 (ARCHIVE_NAME): Define.
620 (write_archive_locales): New function.
621 (write_locales): Use it. Ensure the same locale is not printed
622 multiple times in verbose mode.
623 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
624 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
626 (struct nameent): New type.
627 (nameentcmp): New function.
629 2002-12-14 Jakub Jelinek <jakub@redhat.com>
631 * posix/regex_internal.c (re_string_context_at): Guard wide char
632 code with #ifdef RE_ENABLE_I18N.
634 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
636 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
638 2002-12-13 Roland McGrath <roland@redhat.com>
640 * posix/bug-regex15.c: New file.
641 * posix/Makefile (tests): Add it.
643 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
644 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
646 2002-12-13 Ulrich Drepper <drepper@redhat.com>
648 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
650 * misc/syslog.c (log_cleanup): Don't use parameter in
651 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
652 pass NULL instead of a pointer to syslog_lock.
654 2002-12-12 Ulrich Drepper <drepper@redhat.com>
656 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
657 linker map for all iconv modules.
658 (distribute): Add gconv.map.
659 * iconvdata/gconv.map: New file.
661 * elf/Makefile: Also check all iconv modules for text relocations.
663 * stdlib/Makefile: Remove code to automatically import GMP.
665 * elf/Makefile (tests): Add rules to build and run check-textrel.
666 * elf/check-textrel.c: New file.
668 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
671 2002-12-11 Jakub Jelinek <jakub@redhat.com>
673 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
676 2002-04-30 Bruno Haible <bruno@clisp.org>
678 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
679 the encoding if it already has slashes.
680 Reported by Perry Rapp <prapp@erols.com>.
682 2002-12-11 Roland McGrath <roland@redhat.com>
684 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
685 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
686 Turn off PIC for compiling this file.
688 2002-12-11 Ulrich Drepper <drepper@redhat.com>
690 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
691 definitions. Not needed.
692 [_LIBC]: Use definitions from libc-lock.h instead of referencing
693 pthread routines directly.
694 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
696 (arena_get2): Don't look at return value of mutex_lock.
698 2002-12-11 Roland McGrath <roland@redhat.com>
700 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
701 elf-init.o instead of compiling a PIC version.
703 2002-12-11 Bruno Haible <bruno@clisp.org>
705 * intl/gettext.h: Renamed to ...
706 * intl/gmo.h: ... here.
707 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
708 * intl/gettextP.h: Update.
709 * intl/loadmsgcat.c: Update.
711 * intl/gettextP.h (PARAMS): Make more portable.
712 (attribute_hidden): Define as empty macro if not already defined.
713 * intl/hash-string.h (PARAMS): Make more portable.
714 * intl/loadinfo.h (PARAMS): Likewise.
715 * intl/plural-exp.h (PARAMS): Likewise.
716 (attribute_hidden): Move definition near the definition of
719 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
720 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
722 2002-07-13 Bruno Haible <bruno@clisp.org>
724 * intl/dcigettext.c (freea): New macro.
725 (FREE_BLOCKS): Free also the registered blocks.
726 (DCIGETTEXT): Free the 'search' variable.
727 Reported by Andreas Fischer <a.fischer@asentics.de>.
729 2002-04-27 Bruno Haible <bruno@clisp.org>
731 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
732 * intl/dcigettext.c: Likewise.
733 * intl/dcgettext.c: Likewise.
734 * intl/dgettext.c: Likewise.
735 * intl/gettext.c: Likewise.
736 * intl/dcngettext.c: Likewise.
737 * intl/dngettext.c: Likewise.
738 * intl/ngettext.c: Likewise.
739 * intl/textdomain.c: Likewise.
740 * intl/bindtextdom.c: Likewise.
741 * intl/plural-exp.h: Likewise.
743 2002-01-02 Bruno Haible <bruno@clisp.org>
745 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
747 2001-04-30 Bruno Haible <bruno@clisp.org>
749 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
750 default macro definitions. Needed for mingw32.
752 2002-12-10 Ulrich Drepper <drepper@redhat.com>
754 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
755 __builtin_constant_p to macro parameter.
757 * sysdeps/generic/sigpause.c: Define all functions as weak.
758 * sysdeps/posix/sigpause.c: Likewise.
760 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
763 2002-12-10 Jakub Jelinek <jakub@redhat.com>
765 * elf/tst-array1.c (preinit_array, init_array, fini_array):
766 Explicitly align the array to sizeof (void *).
767 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
769 * include/libc-symbols.h: Fix a comment typo.
771 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
772 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
774 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
776 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
777 (__libc_sigsuspend): Likewise.
778 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
779 (__libc_sigsuspend): Likewise.
780 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
781 (creat): New weak alias.
783 2002-12-10 Roland McGrath <roland@redhat.com>
785 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
786 contributes a manual chapter.
787 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
790 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
791 and move contents to ...
792 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
793 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
794 it instead of duplicating its contents.
795 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
797 2002-12-09 Jakub Jelinek <jakub@redhat.com>
799 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
801 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
803 (EXTRA_LD_ENVVARS): Use it.
804 (DL_OSVERSION_INIT): Define.
805 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
807 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
809 2002-12-10 Ulrich Drepper <drepper@redhat.com>
811 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
813 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
814 call. It is not allowed to destroy pthread mutexes which are
815 still in use even though it is safe for our implementations. If
816 somebody still uses the descriptor it is a bug.
818 2002-12-09 Richard Henderson <rth@redhat.com>
820 * csu/abi-note.S: Use .p2align, not .align.
822 2002-12-09 Ulrich Drepper <drepper@redhat.com>
824 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
825 __libc_select aliases.
827 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
830 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
832 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
834 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
836 * sysdeps/unix/syscalls.list: Define __libc_select alias.
838 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
840 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
841 __libc___xpg_sigpause aliases.
843 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
845 * misc/error.c: Remove use of USE_IN_LIBIO.
847 2002-12-08 Roland McGrath <roland@redhat.com>
849 * elf/Makefile (tests): Uncomment tst-array[123].
850 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
851 * csu/elf-init.c: New file.
852 * csu/Makefile (routines, static-only-routines): Add elf-init.
853 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
854 and __libc_csu_fini in place of _fini.
855 * sysdeps/arm/elf/start.S: Likewise.
856 * sysdeps/cris/elf/start.S: Likewise.
857 * sysdeps/hppa/elf/start.S: Likewise.
858 * sysdeps/i386/elf/start.S: Likewise.
859 * sysdeps/ia64/elf/start.S: Likewise.
860 * sysdeps/m68k/elf/start.S: Likewise.
861 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
862 * sysdeps/mips/elf/start.S: Likewise.
863 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
864 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
865 * sysdeps/s390/s390-32/elf/start.S: Likewise.
866 * sysdeps/s390/s390-64/elf/start.S: Likewise.
867 * sysdeps/sh/elf/start.S: Likewise.
868 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
869 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
870 * sysdeps/x86_64/elf/start.S: Likewise.
872 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
873 struct containing function ptr and value, free it.
874 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
875 It's not safe to let the new thread use the SIGEV pointer.
877 2001-10-20 Paul Eggert <eggert@twinsun.com>
879 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
880 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
881 Use strerror_r that is only a macro, even if it is not a function.
882 (strerror): Check for HAVE_DECL_STRERROR before declaring.
883 (private_strerror): Use prototypes, not old-style function definition.
884 (print_errno_message): New function.
885 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
887 (error_tail, error, error_at_line): Use it.
889 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
891 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
893 2002-12-08 Ulrich Drepper <drepper@redhat.com>
895 * scripts/output-format.sed: Fix bug in one of the s expressions
896 which used / for one too many things.
898 * include/unistd.h: Declare __libc_close.
900 2002-12-07 Ulrich Drepper <drepper@redhat.com>
902 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
904 2002-12-07 Roland McGrath <roland@redhat.com>
906 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
907 from 2002-12-06, but remove unnecessary memset call without removing
908 necessary copy of initialization image.
910 * Makerules ($(common-objpfx)format.lds): New target.
911 (common-generated): Add it.
912 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
913 * scripts/output-format.sed: New file.
914 * Makefile (distribute): Add it.
916 2002-12-07 Ulrich Drepper <drepper@redhat.com>
918 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
919 Reported by Art Haas <ahaas@airmail.net>.
921 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
923 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
925 2002-12-07 Jakub Jelinek <jakub@redhat.com>
927 * string/test-strncpy.c (do_random_tests): Improve test coverage.
929 2002-12-06 Ulrich Drepper <drepper@redhat.com>
931 * test-skeleton.c (timeout_handler): Allow expected signal to be
934 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
936 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
938 2002-12-07 Jakub Jelinek <jakub@redhat.com>
940 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
941 (SYSCALL_ERROR_HANDLER): Fix a pasto.
942 Reported by Jeff Bailey <jbailey@nisa.net>.
944 2002-12-06 Ulrich Drepper <drepper@redhat.com>
946 * sysdeps/generic/libc-tls.c: Undo last patch.
948 * include/wctype.h: Define iswalnum with libc_hidden_proto.
950 * include/signal.h: Define raise with libc_hidden_proto.
952 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
953 __execve instead of snprintf and execve.
955 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
958 2002-12-06 Jakub Jelinek <jakub@redhat.com>
960 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
961 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
963 2002-12-06 Ulrich Drepper <drepper@redhat.com>
965 * misc/syslog.c (log_cleanup): New function.
966 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
967 (closelog): Likewise.
969 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
970 * elf/dl-iteratephdr.c: Likewise.
971 * elf/dl-lookup.c: Likewise.
972 * elf/dl-misc.c: Likewise.
973 * elf/dl-open.c: Likewise.
974 * elf/dl-support.c: Likewise.
975 * elf/rtld.c: Likewise.
976 * sysdeps/generic/ldsodefs.h: Likewise.
977 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
978 * sysdeps/mach/bits/libc-lock.h: Likewise.
979 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
981 2002-12-06 Roland McGrath <roland@redhat.com>
983 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
985 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
986 (malloc_starter, memalign_starter, free_starter): Don't define these.
987 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
988 Don't declare them either.
989 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
990 __pthread_initialize, so no need to set hooks to *_starter.
991 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
992 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
993 (__libc_malloc_pthread_startup): New function.
994 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
996 * malloc/hooks.c (memalign_starter): New function.
997 * malloc/malloc.c: Declare it.
998 * malloc/arena.c (save_memalign_hook): New variable.
999 (ptmalloc_init): Set __memalign_hook to memalign_starter.
1001 * elf/dl-minimal.c (free): Clear the memory.
1002 (calloc): Just call malloc, knowing all memory it returns is cleared.
1004 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
1005 malloc and memset; calloc can avoid the zeroing when redundant.
1006 (_dl_tls_setup): Likewise.
1007 * elf/dl-load.c (decompose_rpath): Likewise.
1008 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
1009 call, since memory from sbrk at startup is already zero.
1011 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
1012 error string for failure, null for success. Update callers.
1013 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1014 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1016 2002-12-05 Jakub Jelinek <jakub@redhat.com>
1018 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
1020 (readahead): Change args to i:iii.
1021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
1022 Change args to i:iii.
1023 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
1026 2002-12-05 Roland McGrath <roland@redhat.com>
1028 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
1029 call all functions rather than none.
1030 Reported by Mark P. Mitchell <mark@codesourcery.com>.
1032 2002-12-04 Roland McGrath <roland@redhat.com>
1034 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
1035 on _nl_current_LC_* variables.
1037 2002-12-05 Ulrich Drepper <drepper@redhat.com>
1039 * dirent/bug-readdir1.c (main): Don't call closedir, just close
1040 the file descriptor. This is testing what the bug report was about.
1042 2002-12-04 Ulrich Drepper <drepper@redhat.com>
1044 * po/be.po: New file.
1046 * argp/Makefile (tests): Add tst-argp1.
1048 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
1049 Change type of _attribute to void*.
1050 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1051 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1052 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
1053 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1054 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1056 2002-12-04 Roland McGrath <roland@redhat.com>
1058 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
1059 members to the end, so a libpthread compiled with !USE_TLS will still
1060 find other members properly.
1062 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
1063 operand for DEST memory. Fix dummy input operand to use SRC.
1064 Reported by Davin McCall <davmac@ozonline.com.au>.
1066 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
1067 alignment when initializing the DTV entry.
1069 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
1070 when TLS has not been set up, try to set it up if we can.
1071 * elf/tst-tls4.c: Revert last change.
1072 * elf/tst-tls5.c: Likewise.
1073 * elf/tst-tls6.c: Likewise.
1074 * elf/tst-tls7.c: Likewise.
1075 * elf/tst-tls8.c: Likewise.
1076 * elf/tst-tls9.c: Likewise.
1078 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
1079 * sysdeps/generic/ldsodefs.h: Declare it.
1080 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
1081 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
1082 function, broken out of __libc_setup_tls.
1083 (init_static_tls): Likewise.
1084 (__libc_setup_tls): Call them.
1085 (_dl_tls_setup): New function, uses new subroutines.
1087 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
1088 Clear the pointer when returning true.
1089 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
1090 first element of the slotinfo list too.
1092 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
1095 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
1096 (_dl_determine_tlsoffset): Likewise.
1098 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
1099 startup_error_tsd, made global.
1100 (dl_main): Update initialization.
1101 * elf/dl-tsd.c: Likewise.
1102 * sysdeps/generic/ldsodefs.h: Declare it.
1104 2002-12-03 Ulrich Drepper <drepper@redhat.com>
1106 * manual/texinfo.tex: Update from latest upstream version.
1108 2002-12-03 Roland McGrath <roland@redhat.com>
1110 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
1111 area surplus in calculation for sbrk call.
1113 * iconvdata/cp1125.c: New file.
1114 * iconvdata/Makefile (distribute): Add it.
1115 (modules): Add CP1125.
1116 (gen-8bit-gap-modules): Add cp1125.
1117 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
1118 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
1120 2002-12-03 Andreas Jaeger <aj@suse.de>
1122 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1124 2002-12-03 Ulrich Drepper <drepper@redhat.com>
1126 * sysdeps/posix/system.c (do_system): Make signal handler
1127 installation thread safe.
1129 2002-12-02 Roland McGrath <roland@redhat.com>
1131 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
1132 caller from EXTRA to -.
1133 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1134 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1135 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1137 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
1139 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
1140 bits of RM are cleared.
1142 2002-12-02 Roland McGrath <roland@redhat.com>
1144 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
1145 TLS setup is required.
1146 * elf/tst-tls5.c: Likewise.
1147 * elf/tst-tls6.c: Likewise.
1148 * elf/tst-tls7.c: Likewise.
1149 * elf/tst-tls8.c: Likewise.
1150 * elf/tst-tls9.c: Likewise.
1152 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
1153 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
1154 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
1155 for being null before calling free_slotinfo.
1156 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
1157 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
1159 2002-11-30 Bruno Haible <bruno@clisp.org>
1161 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
1162 (struct __gconv_step): New field __btowc_fct.
1163 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
1164 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
1166 (__gconv_btwoc_ascii): New declaration.
1167 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1168 (__gconv_btwoc_ascii): New function.
1169 * iconv/gconv_builtin.h: Add BtowcFct argument to all
1170 BUILTIN_TRANSFORMATION invocations.
1171 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
1172 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
1173 * iconv/gconv_builtin.c (map): New field btowc_fct.
1174 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
1176 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
1177 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
1178 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
1179 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
1180 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
1181 (gconv_init): Initialize __btowc_fct field.
1182 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
1183 * iconv/loop.c: Document ONEBYTE_BODY.
1184 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
1185 Undefine ONEBYTE_BODY at the end.
1186 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
1187 * iconvdata/8bit-gap.c (NONNUL): New macro.
1188 (BODY for FROM_LOOP): Use it.
1189 (ONEBYTE_BODY): New macro.
1190 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
1191 (NONNUL): New macro.
1192 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
1193 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
1194 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
1195 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
1196 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
1197 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
1198 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
1199 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
1200 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
1201 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
1202 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
1203 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
1204 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
1205 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
1206 * iconvdata/ibm932.c: Include <stdbool.h>.
1207 (TRUE, FALSE): Remove macros.
1208 (BODY for FROM_LOOP): Remove unused variable rp1.
1209 (ONEBYTE_BODY): New macro.
1210 (BODY for TO_LOOP): Use bool.
1211 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
1212 * iconvdata/ibm943.c: Include <stdbool.h>.
1213 (TRUE, FALSE): Remove macros.
1214 (BODY for FROM_LOOP): Remove unused variable rp1.
1215 (ONEBYTE_BODY): New macro.
1216 (BODY for TO_LOOP): Use bool.
1217 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
1218 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
1219 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
1220 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
1221 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
1222 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
1223 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
1224 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
1225 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
1226 * iconvdata/gbbig5.c: Tweak comment.
1228 2002-12-02 Ulrich Drepper <drepper@redhat.com>
1230 * po/fi.po: Update from translation team.
1232 2002-12-01 Roland McGrath <roland@redhat.com>
1234 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
1235 testing getdents64 return value.
1237 * scripts/versions.awk: Don't pass -n flag to sort command.
1239 * posix/bug-regex13.c: Include <string.h>.
1241 * sysdeps/generic/libc-start.c (__libc_start_main): Do
1242 DL_SYSDEP_OSCHECK here.
1243 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
1244 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
1246 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
1247 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
1249 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
1250 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
1252 * include/link.h: Comment typo fix.
1254 2002-12-01 Roland McGrath <roland@frob.com>
1256 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
1257 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
1258 _POSIX_MEMORY_PROTECTION): Likewise.
1259 (_POSIX_POLL, _POSIX_SELECT): Removed.
1261 2002-11-28 Ulrich Drepper <drepper@redhat.com>
1263 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
1264 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
1266 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1268 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
1270 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
1273 2002-11-28 Ulrich Drepper <drepper@redhat.com>
1275 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
1276 branch prediction buffers by using unpaired call/ret.
1278 2002-11-27 Ulrich Drepper <drepper@redhat.com>
1280 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
1281 first parameters constraint string.
1282 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
1284 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
1286 * posix/regcomp.c (parse_expression): Set the bit since the back
1287 reference is used in the regular expression.
1288 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
1290 (re_node_set_init_copy): Likewise.
1291 * posix/regex_internal.h (state_array_t): New structure.
1292 (re_sub_match_last_t): Likewise.
1293 (re_sub_match_top_t): Likewise.
1294 (re_match_context_t): Add new members.
1295 (re_dfa_t): Likewise.
1296 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
1297 to check the matching is really correct, and retry if failed.
1298 Move the routin pruning the impossible nodes from here, ...
1299 (prune_impossible_nodes): To this function.
1300 (check_matching): Invoke check_subexp_matching_top, and replace
1301 redundant checking with transit_state_bkref invocation.
1302 (proceed_next_node): Replace strncmp with memcmp. Reported by
1303 Paolo Bonzini <bonzini@gnu.org>.
1304 (update_cur_sifted_state): Remove search_subexp invocation.
1305 (search_subexp): Remove this function.
1306 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
1308 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
1309 Remove unused invocation of match_ctx_add_entry.
1310 (transit_state): Invoke check_subexp_matching_top.
1311 (check_subexp_matching_top): New function.
1312 (transit_state_bkref): Remove unused array.
1313 Merge transit_state_bkref_loop.
1314 (transit_state_bkref_loop): Use get_subexp instead of
1315 sift_states_backward. Use search_cur_bkref_entry for optimization.
1316 Merge this function to transit_state_bkref.
1317 (get_subexp): New function.
1318 (get_subexp_sub): Likewise.
1319 (find_subexp_node): Likewise.
1320 (check_arrival): Likewise.
1321 (check_arrival_expand_ecl): Likewise.
1322 (check_arrival_expand_ecl_sub): Likewise.
1323 (expand_bkref_cache): Likewise.
1324 (match_ctx_init): Initialize new members.
1325 (match_ctx_clean): New function.
1326 (match_ctx_free): Release new members.
1327 (match_ctx_free_subtops): New function.
1328 (match_ctx_add_entry): Fix indent.
1329 (search_cur_bkref_entry): New function.
1330 (match_ctx_add_subtop): Likewise.
1331 (match_ctx_add_sublast): Likewise.
1333 2002-11-25 Ulrich Drepper <drepper@redhat.com>
1335 * iconv/Makefile (tests): Remove tst-iconv4.c
1336 * iconv/tst-iconv4.c: Moved to...
1337 * iconvdata/tst-iconv4.c: ...here. New file.
1338 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
1340 2002-11-25 Roland McGrath <roland@redhat.com>
1342 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
1343 Grok AF_LINK if defined.
1344 From Momchil Velikov <velco@fadata.bg>.
1346 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
1347 brdaddr, or dstaddr, just set those pointers to null and don't fail.
1348 Reported by Momchil Velikov <velco@fadata.bg>.
1350 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
1351 is > sizeof IFR->ifa_addr, advance past the whole longer length.
1352 (__ifreq): Count up NIFS that way too.
1353 Reported by Momchil Velikov <velco@fadata.bg>.
1355 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
1357 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
1358 and <fpu_control.h>.
1360 2002-11-24 Ulrich Drepper <drepper@redhat.com>
1362 * elf/elf.h (EM_ST19): Fix typo.
1364 2002-11-25 Jakub Jelinek <jakub@redhat.com>
1366 * include/errno.h (__set_errno): Define as errno = val
1369 2002-11-24 Roland McGrath <roland@redhat.com>
1371 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
1372 * sysdeps/posix/writev.c: Likewise.
1373 From Momchil Velikov <velco@fadata.bg>.
1375 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
1376 calling *GL(dl_error_catch_tsd) for a thread-local location.
1377 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
1378 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
1379 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
1381 * libio/iofflush.c: Add libc_hidden_def.
1382 * libio/iofwrite.c: Likewise.
1383 * sysdeps/generic/sigtimedwait.c: Likewise.
1384 * sysdeps/generic/sigwaitinfo.c: Likewise.
1385 * sysdeps/posix/sigwait.c: Likewise.
1386 Reported by Momchil Velikov <velco@fadata.bg>.
1388 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
1389 to match <arpa/inet.h> declaration.
1390 * inet/inet_netof.c (inet_netof): Likewise.
1391 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
1392 Reported by Momchil Velikov <velco@fadata.bg>.
1394 * configure.in: Skip AUTOCONF check under --without-cvs.
1395 * configure: Regenerated.
1397 * posix/Makefile (headers): Add bits/pthreadtypes.h.
1398 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
1399 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
1401 2002-11-24 Andreas Schwab <schwab@suse.de>
1403 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
1406 2002-11-19 Jim Meyering <jim@meyering.net>
1408 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
1410 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
1412 2002-11-23 Roland McGrath <roland@redhat.com>
1414 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
1415 Just produce hex output for datum sizes.
1417 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
1418 Reported by Luca Barbieri <ldb@ldb.ods.org>.
1420 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
1422 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
1423 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1424 and __unused3 fields.
1425 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
1426 [__WORDSIZE == 32]: Only PPC32 requires __unused1
1427 and __unused2 fields.
1428 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
1429 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
1430 __unused3, and __unused4 fields.
1432 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
1433 obtain lowest address for profiling in __monstartup call.
1435 2002-11-21 Roland McGrath <roland@redhat.com>
1437 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
1438 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
1440 * locale/localeinfo.h (struct locale_data): Revert last change.
1442 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
1443 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1445 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
1446 __NR_pread64 if not defined.
1447 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
1448 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1450 2002-11-21 Roland McGrath <roland@frob.com>
1452 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
1453 __libc_multiple_libcs here. Call __setfpucw.
1455 2002-11-21 Ulrich Drepper <drepper@redhat.com>
1457 * elf/Makefile (tests): Don't run test-arrayX tests for now.
1459 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
1460 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
1461 CLONE_CHILD_*TID flags.
1463 2002-11-20 Andreas Jaeger <aj@suse.de>
1465 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
1466 We pass struct ucontext on x86-64.
1468 (GET_FRAME): Adjust.
1469 (GET_STACK): Adjust.
1471 2002-11-20 Roland McGrath <roland@redhat.com>
1473 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
1474 conditionalize [! DO_VERSIONING] #error.
1476 * scripts/abilist.awk: Grok function descriptor symbols.
1478 * intl/tst-gettext.c (main): Check return values from setlocale.
1479 Add necessary unsetenv's to make LANG=existing-locale check work.
1481 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
1482 so aborted prior runs don't confuse things.
1484 * locale/localeinfo.h (struct locale_data: union locale_data_value):
1485 Use uintptr_t instead of unsigned int for `word' member.
1486 (_NL_CURRENT_WORD): Cast to uint32_t.
1488 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
1491 2002-11-20 Ulrich Drepper <drepper@redhat.com>
1493 * elf/tls-macros.h: Add IA-64 definitions.
1494 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
1496 * iconv/Makefile (tests): Add tst-iconv4.
1497 * iconv/tst-iconv4.c: New file.
1499 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
1500 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
1501 __GCONV_INCOMPLETE_INPUT.
1502 (ucs4le_internal_loop): Likewise.
1503 (ucs4le_internal_loop_unaligned): Likewise.
1504 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
1505 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
1506 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
1508 * iconv/loop.c (LOOPFCT): First test for empty input then for full
1511 * inet/getnameinfo.c: Use extend_alloca where appropriate.
1512 * sysdeps/posix/getaddrinfo.c: Likewise.
1514 * include/alloca.h (extend_alloca): New define. Based on stack
1515 direction it'll try to append to the previouls allocated buffer.
1517 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
1519 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
1520 use the same service for AF_INET and AF_INET6.
1522 2002-11-19 Ulrich Drepper <drepper@redhat.com>
1524 * intl/localealias.c (read_alias_file): Use only about 400 bytes
1525 of stack space instead of 16k.
1527 2002-11-18 Wolfram Gloger <wg@malloc.de>
1530 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
1531 nothing if not initialized. Bug report from Marcus Brinkmann
1532 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1534 2002-11-19 Roland McGrath <roland@redhat.com>
1536 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
1539 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
1540 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
1541 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
1542 * configure: Regenerated.
1544 2002-11-19 Ulrich Drepper <drepper@redhat.com>
1546 * include/dlfcn.h: __libc_dlopen is now a macro calling
1547 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
1548 (__libc_dlopen_mode): New prototype.
1549 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
1550 new parameter. Store new parameter in mode field of structure passed
1552 (struct do_dlopen_args): Add new field mode.
1553 (do_dlopen): Pass mode from parameter structure to _dl_open.
1555 2002-11-11 Randolf Chung <tausq@debian.org>
1557 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
1558 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
1559 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
1561 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
1563 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
1564 Set -mdisable-fpregs for this file.
1566 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
1568 * sysdeps/unix/sysv/linux/configure.in:
1569 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
1570 from gcc-3.0 era for backwards compatibility.
1571 * sysdeps/unix/sysv/linux/configure: Regenerate.
1573 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
1574 Define mcontext_t as a sigcontext.
1576 2002-11-18 Roland McGrath <roland@redhat.com>
1578 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
1579 Free memory in `last_result' if it was used.
1581 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
1582 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
1583 Do the parsing inline instead of copying strings and calling
1584 inet_network, and properly skip all alias names not matching the form.
1586 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
1588 2002-11-17 Ulrich Drepper <drepper@redhat.com>
1590 * manual/pattern.texi (Wordexp Example): Fix sample code.
1592 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
1593 childs stack which will be loaded into the %esi register.
1595 2002-11-14 Paul Eggert <eggert@twinsun.com>
1597 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
1598 overflow when skipping the question part and when unpacking aliases.
1600 2002-11-15 Roland McGrath <roland@redhat.com>
1602 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
1603 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
1604 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
1606 2002-11-15 Jakub Jelinek <jakub@redhat.com>
1608 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
1609 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
1611 2002-11-15 Roland McGrath <roland@redhat.com>
1613 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
1614 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
1615 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
1616 (+make-include-of-dep): New canned sequence.
1618 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
1619 From Dmitry V. Levin <ldv@altlinux.org>.
1621 2002-11-14 Roland McGrath <roland@redhat.com>
1623 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
1624 * inet/herrno.c (__libc_h_errno): Likewise.
1625 * resolv/res_libc.c (__libc_res): Likewise.
1626 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
1627 (__res_state) [! USE___THREAD]: Don't define as weak.
1628 * csu/Versions: Revert last change.
1629 * resolv/Versions: Revert last change.
1631 * Makerules ($(common-objpfx)%.make): New pattern rule.
1632 * tls.make.c: New file.
1633 * Makefile (distribute): Add it.
1635 * sysdeps/generic/errno.c [! USE___THREAD]
1636 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
1637 with compat_symbol so they are not link-time visible.
1638 [! USE___THREAD] (__libc_errno): New alias for errno.
1639 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
1640 Add __libc_errno here.
1641 * inet/herrno.c [USE___THREAD]: Use this conditional
1642 in place of [USE_TLS && HAVE___THREAD].
1643 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
1644 (h_errno, _h_errno): Declare these with compat_symbol so they are not
1646 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
1647 * resolv/res_libc.c [! USE___THREAD]
1648 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
1649 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
1650 (__libc_res): Define as alias for _res.
1651 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
1652 Add __libc_h_errno and __libc_res here.
1654 2002-11-14 Jakub Jelinek <jakub@redhat.com>
1656 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
1657 * resolv/Versions (h_errno, _res): Likewise.
1659 2002-11-14 Roland McGrath <roland@redhat.com>
1661 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
1662 (%.symlist): Likewise.
1664 2002-11-13 Roland McGrath <roland@redhat.com>
1666 * scripts/abilist.awk: New file.
1667 * Makefile (distribute): Add it.
1668 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
1669 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
1670 [$(subdir) = elf] (tests): Depend on libc.symlist.
1671 (generated, common-generated): Add those files.
1673 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
1674 * configure: Regenerated.
1675 * config.make.in (OBJDUMP): New variable, substituted by configure.
1677 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
1678 (mallochook, reallochook): Set them up.
1679 (checkhdr): Check HDR->magic2 value.
1680 (freehook): Reset HDR->magic2.
1681 (memalignhook): New static function.
1682 (old_memalign_hook): New static variable.
1683 (mcheck, reallochook): Set __memalign_hook to memalignhook.
1685 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
1688 2002-11-13 Andreas Jaeger <aj@suse.de>
1690 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
1692 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1694 2002-11-11 Paul Eggert <eggert@twinsun.com>
1696 * manual/crypt.texi (Cryptographic Functions): Mention that
1697 the MD5 one-way algorithm is compatible with BSD's.
1699 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
1701 * posix/regex_internal.c (re_string_skip_chars): Also return the last
1703 (re_string_reconstruct): Calculate the context by itself when the
1704 offset points out of the valid range.
1705 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
1706 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
1707 (IS_WIDE_WORD_CHAR): New macro.
1708 (IS_WIDE_NEWLINE): New macro.
1710 2002-11-12 Andreas Jaeger <aj@suse.de>
1712 * sysdeps/x86_64/strchr.S: Don't use one register for two
1713 purposes, this fixes a bug noticed by test-strchr.c.
1715 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
1718 2002-11-12 Roland McGrath <roland@redhat.com>
1720 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
1721 (_G_IO_NO_BACKWARD_COMPAT): Define it.
1723 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
1724 instead of <pt-machine.h>.
1725 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
1727 From Ian Wienand <ianw@gelato.unsw.edu.au>.
1729 2002-11-10 Roland McGrath <roland@redhat.com>
1731 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
1732 Call fputs instead of fwprintf (simpler to follow in debugger).
1734 * crypt/md5-crypt.c: Doc fix.
1736 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
1737 the beginning of generated target commands.
1739 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
1740 dependencies for these in case implicit rule search skipped the
1741 nonexistent source directory.
1742 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
1743 files with $(object-suffixes) as targets too.
1744 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
1745 and a target for it using $(make-target-directory).
1747 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
1749 2002-11-10 Roland McGrath <roland@frob.com>
1751 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
1752 * sysdeps/generic/bits/pthreadtypes.h: ... here.
1754 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
1755 l_start == 0 and l_len == 1 as we do l_len == 0.
1757 2002-11-10 Ulrich Drepper <drepper@redhat.com>
1759 * po/da.po: Update from translation team.
1761 2002-11-10 Roland McGrath <roland@redhat.com>
1763 * config.make.in (includedir): New variable, substituted by configure.
1764 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
1765 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
1767 2002-11-10 Andreas Jaeger <aj@suse.de>
1769 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
1770 REG_OLDMASK and REG_CR2 to synch with kernel header.
1773 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
1775 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
1776 * nss/getnssent_r.c (__nss_getent_r): Likewise.
1777 (__nss_setent): Likewise.
1778 (__nss_getent_r): Likewise.
1779 * inet/getnetgrent_r.c (innetgr): Likewise.
1780 (__internal_setnetgrent_reuse): Likewise.
1781 (internal_getnetgrent_r): Likewise.
1782 * inet/ether_hton.c (ether_hostton): Likewise.
1783 * inet/ether_ntoh.c (ether_ntohost): Likewise.
1784 * sunrpc/netname.c (netname2user): Likewise.
1785 * sunrpc/publickey.c (getpublickey): Likewise.
1786 (getsecretkey): Likewise.
1788 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
1790 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
1791 error in range calculation.
1793 2002-10-09 Jakub Jelinek <jakub@redhat.com>
1795 * string/test-strspn.c (do_test): Ensure zero termination.
1796 * string/test-strpbrk.c (do_test): Likewise.
1797 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
1798 * string/test-strncpy.c (stupid_strncpy): Likewise.
1799 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
1801 2002-10-08 Roland McGrath <roland@redhat.com>
1803 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
1806 2002-09-22 H.J. Lu <hjl@gnu.org>
1808 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
1809 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
1810 only if __NR_mmap2 is defined.
1812 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
1813 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
1814 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
1815 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
1817 2002-11-08 Jakub Jelinek <jakub@redhat.com>
1819 * posix/bug-regex13.c (tests): Add new test.
1821 * string/test-strchr.c (stupid_strchr): New function.
1822 (do_random_tests): Make sure the string is zero terminated.
1823 * string/test-strpbrk.c (stupid_strpbrk): New function.
1824 (do_random_tests): Make sure the string is zero terminated.
1825 * string/test-strcmp.c (stupid_strcmp): New function.
1826 (do_random_tests): Make sure the strings are zero terminated.
1827 * string/test-strspn.c (stupid_strspn): New function.
1828 (simple_strspn): Rename rej argument to acc.
1829 (do_random_tests): Make sure the string is zero terminated.
1830 * string/test-strcspn.c (stupid_strcspn): New function.
1831 * string/test-strncpy.c (stupid_strncpy): New function.
1832 * string/test-stpncpy.c (stupid_stpncpy): New function.
1833 * string/test-strncmp.c (stupid_strncmp): New function.
1834 (do_random_tests): Make sure the strings are zero terminated.
1835 * string/test-string.h (impl_t): Change test into long.
1836 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
1838 2002-11-08 Roland McGrath <roland@redhat.com>
1840 * sysdeps/ia64/elf/configure.in: Add TLS check.
1841 From Ian Wienand <ianw@cse.unsw.edu.au>.
1842 * sysdeps/ia64/elf/configure: Regenerated.
1844 2002-11-07 Roland McGrath <roland@redhat.com>
1846 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
1847 place of _IO_new_do_write.
1848 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
1849 #undef before versioned_symbol use.
1851 2002-11-07 Richard Henderson <rth@redhat.com>
1853 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
1854 * configure: Regenerated.
1855 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
1856 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
1857 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
1858 _dl_fini via gp-relative relocations.
1859 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
1861 * elf/tls-macros.h: Add alpha versions.
1862 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
1863 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
1864 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
1865 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
1866 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1867 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
1868 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
1869 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
1870 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1871 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1872 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
1873 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
1874 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
1875 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
1876 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
1877 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
1878 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
1879 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
1881 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
1882 Kill argument registers across the inline syscall.
1884 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
1886 * linuxthreads/sysdeps/alpha/tls.h: New file.
1887 * sysdeps/alpha/dl-tls.h: New file.
1889 2002-10-29 David Mosberger <davidm@hpl.hp.com>
1891 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
1892 (gmon_initializer): New function.
1893 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
1894 __gmon_start__ here. Call it from gmon_initializer() instead.
1896 2002-03-12 H.J. Lu <hjl@gnu.org>
1898 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
1899 tst-array2, and tst-array3.
1900 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
1901 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
1902 ($(objpfx)tst-array1.out): New target.
1903 ($(objpfx)tst-array2): Likewise.
1904 ($(objpfx)tst-array2.out): Likewise.
1905 ($(objpfx)tst-array3.out): Likewise.
1906 * elf/tst-array1.c: New file.
1907 * elf/tst-array1.exp: Likewise.
1908 * elf/tst-array2.c: Likewise.
1909 * elf/tst-array2dep.c: Likewise.
1910 * elf/tst-array2.exp: Likewise.
1911 * elf/tst-array3.c: Likewise.
1913 2002-10-28 David Mosberger <davidm@hpl.hp.com>
1915 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
1916 Don't add L->l_addr to array entry values.
1918 2002-11-07 Jakub Jelinek <jakub@redhat.com>
1920 * string/test-string.h: New file.
1921 * string/test-strlen.c: New file.
1922 * string/test-string.h: New file.
1923 * string/test-strcmp.c: New file.
1924 * string/test-strchr.c: New file.
1925 * string/test-strrchr.c: New file.
1926 * string/test-strcpy.c: New file.
1927 * string/test-stpcpy.c: New file.
1928 * string/test-strncpy.c: New file.
1929 * string/test-stpncpy.c: New file.
1930 * string/test-strpbrk.c: New file.
1931 * string/test-strcspn.c: New file.
1932 * string/test-strspn.c: New file.
1933 * string/test-strcat.c: New file.
1934 * string/test-strncmp.c: New file.
1935 * string/test-memchr.c: New file.
1936 * string/test-memcmp.c: New file.
1937 * string/test-memset.c: New file.
1938 * string/test-memcpy.c: New file.
1939 * string/test-mempcpy.c: New file.
1940 * string/test-memmove.c: New file.
1941 * string/Makefile (strop-tests): New variable.
1942 (tests): Add strop-tests.
1943 (distribute): Add test-string.h.
1945 2002-11-06 Ulrich Drepper <drepper@redhat.com>
1947 * posix/regcomp.c: Use tabs instead of spaces.
1948 * posix/regexec.c: Likewise.
1949 * posix/regex_internal.h: Likewise.
1951 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
1953 2002-11-06 Jakub Jelinek <jakub@redhat.com>
1955 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
1957 (regcomp): Don't set can_be_null here.
1958 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
1959 (re_compile_internal): Clear can_be_null, set regs_allocated.
1961 * posix/regcomp.c (re_set_fastmap): New function.
1962 (re_compile_fastmap_iter): Use it. Remove redundant type ==
1963 COMPLEX_BRACKET check.
1964 * posix/regexec.c (re_search_internal): Optimize searching with
1965 fastmap. Call re_string_reconstruct even if match_first is
1966 smaller than raw_mbs_idx.
1968 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
1970 * posix/regcomp (free_dfa_content): Use free_state.
1971 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
1972 pointers in case that realloc failed.
1973 (re_node_set_merge): Likewise.
1974 (register_state): Likewise.
1975 (create_newstate_common): Invoke memory release functions in case of
1977 (create_ci_newstate): Likewise.
1978 (create_cd_newstate): Likewise.
1979 (free_state): New function.
1980 * posix/regexec.c (re_search_internal): Invoke memory release
1981 functions in case of error conditions.
1982 (sift_states_backward): Likewise.
1983 (merge_state_array): Likewise.
1984 (add_epsilon_src_nodes): Likewise.
1985 (sub_epsilon_src_nodes): Likewise.
1986 (search_subexp): Likewise.
1987 (sift_states_bkref): Likewise.
1988 (transit_state_sb): Likewise.
1989 (transit_state_mb): Likewise.
1990 (transit_state_bkref_loop): Likewise.
1991 (group_nodes_into_DFAstates): Likewise.
1992 (push_fail_stack): Don't edit pointers in case that realloc failed.
1993 (extend_buffers): Likewise.
1994 (match_ctx_add_entry): Likewise.
1996 2002-11-06 Roland McGrath <roland@redhat.com>
1998 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
1999 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2001 * configure.in: Add checks on as and ld for binutils 2.13 or later.
2002 * configure: Regenerated.
2004 2002-11-06 Ulrich Drepper <drepper@redhat.com>
2006 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
2007 If re_compile_internal failed free fastmap buffer.
2008 (free_dfa_content): Broken out of regfree function. Frees all dfa
2010 (regfree): Add free_dfa_content.
2011 (re_compile_internal): If any of the called functions fails free
2012 all dfa related memory.
2014 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2016 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
2017 warnings from the kernel headers.
2019 2002-11-05 Roland McGrath <roland@redhat.com>
2021 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
2022 From Johannes Stezenbach <js@convergence.de>.
2024 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
2025 #errlist-compat magic comment to give 123 as size.
2026 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
2027 (libc: GLIBC_2.2): ... here.
2028 (libc: GLIBC_2.3): Likewise.
2030 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2032 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
2033 which happens at the beginning so that we can unload modules in
2036 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2038 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
2039 under [__USE_MISC || _ASM].
2041 * elf/elf.h: Remove the obsolete SH TLS relocations.
2043 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2045 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
2047 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
2050 __NR_pread64 and __NR_pwrite64.
2051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2052 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
2054 Revert change to use INLINE_SYSCALL.
2055 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2056 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2057 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2058 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
2060 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
2063 Update clobber list and add a comment about the syscall ABI.
2065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
2066 s_pwrite64, s_ftruncate, s_truncate): Re-add.
2068 2002-11-05 Jakub Jelinek <jakub@redhat.com>
2070 * iconv/gconv_dl.c (free_mem): Clear loaded.
2071 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
2074 2002-11-05 Ulrich Drepper <drepper@redhat.com>
2076 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
2078 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
2079 as old code without locking. _IO_seekoff calls this function after
2081 * libio/ioseekpos.c: Likewise for _IO_seekpos.
2082 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
2083 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
2085 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
2086 of _IO_seekoff_internal.
2087 (_IO_rewind): Likewise.
2088 * libio/ioftell.c: Likewise.
2089 * libio/ftello.c: Likewise.
2090 * libio/ftello64.c: Likewise.
2091 * libio/iofgetpos.c: Likewise.
2092 * libio/iofgetpos64.c: Likewise.
2093 * libio/oldiofgetpos.c: Likewise.
2094 * libio/oldiofgetpos64.c: Likewise.
2095 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
2096 _IO_seekpos_internal.
2097 * libio/iofsetpos64.c: Likewise.
2098 * libio/oldiofsetpos.c: Likewise.
2099 * libio/oldiofsetpos64.c: Likewise.
2101 2002-11-04 Roland McGrath <roland@redhat.com>
2103 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
2104 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
2105 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
2106 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
2107 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2108 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
2109 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2110 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
2111 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
2112 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
2113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
2114 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
2115 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
2116 Remove these, no longer used.
2118 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
2121 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
2122 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
2123 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
2124 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
2125 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
2128 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
2129 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
2130 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
2132 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
2133 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
2135 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2137 2002-11-03 Roland McGrath <roland@redhat.com>
2139 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
2140 `_dl_tls_static_used'.
2141 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
2142 (__libc_setup_tls): Initialize it. Let the initial value of
2143 _dl_tls_static_size indicate some surplus space in the computed value.
2144 * elf/dl-open.c (_dl_tls_static_size): New variable.
2145 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
2146 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
2147 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
2148 (CHECK_STATIC_TLS): Use it.
2149 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
2150 closed objects occupied a trailing contiguous chunk of static TLS area.
2152 2002-10-18 Bruno Haible <bruno@clisp.org>
2154 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
2156 2002-11-04 Ulrich Drepper <drepper@redhat.com>
2158 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
2159 _wide_data->_IO_read_end if adjustment can be made in the current
2162 * sysdeps/unix/sysv/linux/fexecve.c: New file.
2164 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
2165 wide oriented streams are used.
2167 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
2168 service hasn't been used [PR libc/4744].
2170 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
2171 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
2173 * manual/examples/dir.c: Don't include <stddef.h>.
2174 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
2175 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
2177 2002-11-02 H.J. Lu <hjl@gnu.org>
2179 * stdio-common/reg-printf.c: Include <stddef.h>.
2181 2002-11-03 Ulrich Drepper <drepper@redhat.com>
2183 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
2185 * po/ca.po: Update from translation team.
2186 * po/es.po: Likewise.
2188 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
2189 is defined write out memory map.
2190 * sysdeps/unix/sysv/linux/segfault.c: New file.
2192 2002-11-02 Roland McGrath <roland@redhat.com>
2194 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
2195 pointers that can alias.
2196 Reported by Daniel Jacobowitz <drow@mvista.com>.
2198 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
2200 2002-11-02 Roland McGrath <roland@redhat.com>
2202 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
2203 description to be clearer and to say that *RESULT is set to ENTRY.
2205 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2207 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
2208 dests_ch arrays together. Alloca or malloc dest_states,
2209 dest_states_word and dest_states_nl arrays together. Free memory on
2212 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2214 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
2215 and current_saltbits.
2217 2002-11-02 Roland McGrath <roland@redhat.com>
2219 * stdio-common/reg-printf.c: Include <stdlib.h>.
2221 2002-11-02 H.J. Lu <hjl@gnu.org>
2223 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
2224 caller to EXTRA instead of execve.
2226 2002-11-01 Roland McGrath <roland@redhat.com>
2228 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
2229 in place of [!(USE_TLS && HAVE___THREAD)].
2230 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
2232 2002-10-31 Roger Sayle <roger@eyesopen.com>
2234 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
2236 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2238 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
2239 without defining FP_ROUNDMODE.
2241 2002-10-29 Jakub Jelinek <jakub@redhat.com>
2243 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
2244 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
2246 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
2247 (OLD_SIGLIST_SIZE): Define.
2248 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
2249 (OLD_SIGLIST_SIZE): Define.
2250 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
2252 2002-11-01 Jakub Jelinek <jakub@redhat.com>
2254 * sysdeps/ia64/strncpy.S: Fix recovery code.
2256 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2258 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
2260 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
2262 * elf/dl-libc.c (free_mem): Likewise.
2263 * iconv/gconv_conf.c (free_mem): Likewise.
2264 * iconv/gconv_db.c (free_mem): Likewise.
2265 * iconv/gconv_dl.c (free_mem): Likewise.
2266 * iconv/gconv_cache.c (free_mem): Likewise.
2267 * intl/finddomain.c (free_mem): Likewise.
2268 * intl/dcigettext.c (free_mem): Likewise.
2269 * locale/setlocale.c (free_mem): Likewise.
2270 * misc/fstab.c (fstab_free): Likewise.
2271 * nss/nsswitch.c (free_mem): Likewise.
2272 * posix/regcomp.c (free_mem): Likewise.
2273 * resolv/gai_misc.c (free_res): Likewise.
2274 * stdlib/fmtmsg.c (free_mem): Likewise.
2275 * sunrpc/clnt_perr.c (free_mem): Likewise.
2276 * sysdeps/generic/setenv.c (free_mem): Likewise.
2277 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
2278 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
2279 * time/tzset.c (free_mem): Likewise.
2280 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
2281 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
2282 * malloc/set-freeres.c (__libc_freeres): Likewise.
2284 * login/getutent.c: Include stdlib.h instead of stddef.h.
2285 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2286 (__getutent): Allocate buffer the first time it is run.
2287 * login/getutid.c: Include stdlib.h instead of stddef.h.
2288 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2289 (__getutid): Allocate buffer the first time it is run.
2290 * login/getutline.c: Include stdlib.h instead of stddef.h.
2291 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
2292 (__getutline): Allocate buffer the first time it is run.
2293 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
2294 (mtrace): Allocate malloc_trace_buffer.
2295 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
2296 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
2297 * string/strerror.c: Include libintl.h and errno.h.
2298 (buf): New variable.
2299 (strerror): Only allocate buffer if actually needed (unknown error).
2300 * time/tzfile.c (transitions): Add libc_freeres_ptr.
2303 2002-10-25 Jakub Jelinek <jakub@redhat.com>
2305 * include/libc-symbols.h (libc_freeres_ptr): New macro.
2306 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
2308 (__libc_freeres): Free all pointers in that section.
2309 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
2310 commands when creating .lds script.
2311 (LDSEDCMD-c.so): New variable.
2312 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
2313 (rcmd_af): Use strdup to allocate ahostbuf.
2314 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
2315 (rexec_af): Use strdup to allocate ahostbuf.
2316 * stdio-common/reg-printf.c (printf_funcs): Remove.
2317 (__printf_arginfo_table): Change into printf_arginfo_function **.
2318 Add libc_freeres_ptr.
2319 (__register_printf_function): Allocate __printf_arginfo_table
2320 and __printf_function_table the first time it is called.
2321 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
2322 printf_arginfo_function **.
2323 (parse_one_spec): Add __builtin_expect.
2324 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
2326 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
2328 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
2329 (string_space, map): Add libc_freeres_ptr.
2331 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
2333 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
2335 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
2336 (buffer): Add libc_freeres_ptr.
2337 (free_mem): Remove for _LIBC.
2338 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
2340 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
2342 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
2344 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
2346 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
2348 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
2350 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
2353 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
2357 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2359 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
2360 instead of duplicating the whole function in libc.
2362 2002-10-31 Roland McGrath <roland@redhat.com>
2364 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
2365 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
2367 2002-10-30 Jakub Jelinek <jakub@redhat.com>
2369 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
2370 32bit-predefine when creating .new32 list and -U for each
2371 32bit-predefine when creating .new64 list.
2372 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
2374 2002-10-29 Andreas Schwab <schwab@suse.de>
2376 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
2377 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
2379 2002-10-25 Roland McGrath <roland@redhat.com>
2381 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
2382 * sysdeps/unix/sysv/linux/configure: Regenerated.
2384 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
2385 _dl_starting_up decl.
2387 2002-10-20 H.J. Lu <hjl@gnu.org>
2389 * sysdeps/unix/sysv/linux/configure.in: Don't check
2390 /lib/modules/`uname -r`/build/include for kernel headers if
2392 * sysdeps/unix/sysv/linux/configure: Regenerated.
2394 2002-10-25 Roland McGrath <roland@redhat.com>
2396 * math/math.h (M_LOG2El): Correct the value.
2397 From Stephen L Moshier <steve@moshier.net>.
2399 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
2400 conditional from __libc_multiple_libcs access. Remove kludge for weak
2401 symbol access with old compilers we no longer support.
2402 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
2403 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
2405 2002-10-25 Roland McGrath <roland@redhat.com>
2407 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
2408 implement SV_RESETHAND by translating it to SA_RESETHAND.
2410 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
2412 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
2413 type on ELF64 platforms.
2415 2002-10-24 Ulrich Drepper <drepper@redhat.com>
2417 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
2419 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
2421 2002-10-24 Jakub Jelinek <jakub@redhat.com>
2423 * elf/dl-misc.c: Include <sysdep.h>.
2424 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
2426 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
2427 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2428 (INLINE_SYSCALL): Use that.
2429 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
2430 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2431 (INLINE_SYSCALL): Use that.
2432 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
2433 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
2434 (INLINE_SYSCALL): Use that.
2435 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
2437 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2438 (__INTERNAL_SYSCALL_STRING): Define.
2439 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
2441 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2442 (__INTERNAL_SYSCALL_STRING): Define.
2443 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
2444 __SYSCALL_STRING to inline_syscall*.
2445 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
2447 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
2448 inline_syscall4, inline_syscall5, inline_syscall6): Add string
2451 2002-10-24 Roland McGrath <roland@redhat.com>
2453 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
2454 * sysdeps/unix/sysv/linux/init-first.c: Not here.
2455 * sysdeps/powerpc/elf/libc-start.c: Or here.
2456 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
2457 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
2458 * sysdeps/unix/sysv/aix/init-first.c: Or here.
2459 * sysdeps/generic/libc-start.c: Or here.
2460 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
2461 access with [! SHARED].
2462 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
2464 * libio/bug-wfflush.c: New file.
2465 * libio/Makefile (tests): Add bug-wfflush.
2467 2002-10-23 Roland McGrath <roland@redhat.com>
2469 * stdio-common/tst-fphex.c: New file.
2470 * stdio-common/Makefile (tests): Add tst-fphex.
2471 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
2472 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
2473 chars always before the value digits.
2474 Reported by James Antill <james.antill@redhat.com>.
2476 2002-10-24 Jakub Jelinek <jakub@redhat.com>
2478 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
2479 (free_mem): New function.
2480 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
2481 if not cross compiling.
2482 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
2483 (bug-regex14-ENV): Set.
2484 (bug-regex14-mem): New target.
2485 * posix/bug-regex14.c: New file.
2487 2002-10-23 Roland McGrath <roland@redhat.com>
2489 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
2490 target, so we don't touch it when the link fails.
2492 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
2493 Check for the result overflowing off_t and fail with EOVERFLOW.
2494 * libio/ioftell.c (_IO_ftell): Likewise.
2495 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2497 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
2498 use a temporary timeval on the stack for gettimeofday and copy it.
2499 * login/logout.c (logout): Likewise.
2500 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
2502 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
2503 Use __SWORD_TYPE instead of int for member types.
2504 (struct statfs64): Likewise.
2505 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
2506 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
2507 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
2508 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
2509 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
2511 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
2512 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
2513 (ST_NODIRATIME): Restore fixed value of 2048.
2514 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
2515 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
2517 Rearranged <bits/types.h> definitions to reduce duplication.
2518 * sysdeps/generic/bits/types.h: Rewritten, using macros from
2519 <bits/wordsize.h> and new header <bits/typesizes.h>.
2520 * posix/Makefile (headers): Add bits/typesizes.h here.
2521 * sysdeps/generic/bits/typesizes.h: New file.
2522 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
2523 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
2524 * sysdeps/mach/hurd/bits/typesizes.h: New file.
2525 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
2526 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
2527 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
2528 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
2529 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
2530 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
2531 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
2532 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
2533 <bits/pthreadtypes.h> here, not in <bits/types.h>.
2534 * signal/signal.h: Likewise.
2536 * streams/stropts.h: Include <bits/xtitypes.h>.
2537 * streams/Makefile (headers): Add bits/xtitypes.h here.
2538 * sysdeps/generic/bits/xtitypes.h: New file.
2539 * sysdeps/s390/bits/xtitypes.h: New file.
2540 * sysdeps/ia64/bits/xtitypes.h: New file.
2541 * sysdeps/x86_64/bits/xtitypes.h: New file.
2543 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
2544 * sysdeps/generic/bits/ipctypes.h: New file.
2545 * sysdeps/mips/bits/ipctypes.h: New file.
2546 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
2547 * sysdeps/gnu/bits/msq.h: Likewise.
2548 * sysvipc/sys/ipc.h: Likewise.
2550 2002-10-22 Ulrich Drepper <drepper@redhat.com>
2552 * elf/dl-load.c (struct filebuf): For buf element to have the
2553 alignment of ElfXX_Ehdr since this is what will be stored in it.
2555 2002-10-22 Jakub Jelinek <jakub@redhat.com>
2557 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
2558 into pointer to locrec_offset.
2559 (add_locale_to_archive): Adjust callers. Free normalized_name right
2560 before returning, not immediately after add_locale, pass it to
2561 add_alias if not NULL instead of name. Rename second normalized_name
2562 occurence to nnormalized_codeset_name.
2564 * locale/programs/locarchive.c (enlarge_archive): Make sure
2565 string_size is always a multiple of 4.
2566 Reported by Andreas Schwab <schwab@suse.de>.
2568 2002-10-21 Andreas Schwab <schwab@suse.de>
2570 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
2571 caller to EXTRA instead of execve, since the latter has a
2572 higher-priority implementation in linuxthreads.
2574 2002-10-21 Roland McGrath <roland@redhat.com>
2576 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
2577 slotinfo list's len member to the proper size, not just 1.
2578 Initialize static_map.l_tls_initimage.
2580 * elf/dl-open.c (dl_open_worker): Fix loop searching for
2581 dtv_slotinfo_list element containing new modules' l_tls_modid.
2583 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
2584 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
2585 * elf/Makefile (tests): Add tst-tls9.
2586 (tests-static): Add tst-tls9-static.
2587 (tst-tls9-static-ENV): New variable.
2588 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
2590 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
2591 modids used by partially loaded modules being closed can't be known.
2593 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
2595 * posix/Makefile: Add a test case for the bug reported by Aharon
2596 Robbins <arnold@skeeve.com>.
2597 * posix/bug-regex13.c: New file.
2598 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
2600 2002-10-21 Ulrich Drepper <drepper@redhat.com>
2602 * csu/gmon-start.c: Pretty printing.
2604 2002-10-19 Art Haas <ahaas@neosoft.com>
2606 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
2607 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
2608 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
2609 * configure: Regenerated.
2611 2002-10-19 Roland McGrath <roland@redhat.com>
2613 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
2614 and then set $subdirs directly, because the new Autoconf breaks
2615 compatibility in every way imaginable and insists on whining
2616 about usage that worked since the dawn of time.
2617 * configure: Regenerated.
2619 * configure: Regenerated (using Autoconf 2.54).
2620 * sysdeps/alpha/elf/configure: Likewise.
2621 * sysdeps/generic/configure: Likewise.
2622 * sysdeps/i386/elf/configure: Likewise.
2623 * sysdeps/ia64/elf/configure: Likewise.
2624 * sysdeps/mach/hurd/configure: Likewise.
2625 * sysdeps/mach/configure: Likewise.
2626 * sysdeps/unix/configure: Likewise.
2627 * sysdeps/unix/common/configure: Likewise.
2628 * sysdeps/unix/sysv/aix/configure: Likewise.
2629 * sysdeps/unix/sysv/linux/configure: Likewise.
2630 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
2631 * sysdeps/x86_64/elf/configure: Likewise.
2633 * config.make.in: Nix completely-soft nonsense.
2634 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
2635 of machine directories instead of fpu subdirectory.
2636 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
2637 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
2638 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
2639 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
2640 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
2641 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
2642 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
2643 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
2644 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
2645 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
2646 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
2647 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
2648 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
2649 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
2650 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
2651 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
2652 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
2653 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
2654 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
2655 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
2656 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
2657 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
2658 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
2659 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
2660 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
2661 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
2662 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
2663 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
2664 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
2665 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
2666 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
2667 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
2668 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
2669 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
2670 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
2671 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
2672 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
2673 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
2674 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
2675 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
2677 2002-10-19 Bruno Haible <bruno@clisp.org>
2679 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
2681 2002-10-18 Roland McGrath <roland@redhat.com>
2683 * io/Makefile (routines): Add lchmod.
2684 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
2685 * sysdeps/generic/lchmod.c: New file.
2686 * sysdeps/mach/hurd/lchmod.c: New file.
2687 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
2689 2002-10-18 Art Haas <ahaas@neosoft.com>
2691 * configure.in: Remove remaining AC_FD_CC macros, and replace
2692 AC_FD_MSG with AS_MESSAGE_FD.
2694 2002-10-18 Roland McGrath <roland@redhat.com>
2696 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
2697 typos: VALUE -> FINALADDR.
2699 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
2700 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
2701 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
2702 (inline_syscall6): Move these macros ...
2703 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
2705 * configure.in (libc_link_dests, libc_link_sources): Remove these
2706 variables and the AC_LINK_FILES call.
2708 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
2709 change to put new symbols here instead of in GLIBC_2.2.
2710 * sysdeps/powerpc/Subdirs: Move this file ...
2711 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
2713 2002-10-07 Roland McGrath <roland@redhat.com>
2715 * sysdeps/generic/bits/time.h: Replaced with contents of the
2716 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
2717 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
2718 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
2719 macros is ok even for architectures that don't now implement them.
2720 * sysdeps/mach/hurd/bits/time.h: File removed.
2721 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
2722 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
2723 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
2724 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
2725 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
2727 2002-10-18 Jeff Bailey <jbailey@gnu.org>
2729 * configure.in: Replace obsolete AC_OUTPUT syntax with
2730 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
2732 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
2733 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
2735 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
2736 * sysdeps/alpha/elf/configure.in: Likewise.
2737 * sysdeps/i386/elf/configure.in: Likewise.
2738 * sysdeps/mach/hurd/configure.in: Likewise.
2739 * sysdeps/x86_64/elf/configure.in: Likewise.
2741 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
2743 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
2744 * sysdeps/generic/configure.in: Likewise.
2745 * sysdeps/i386/elf/configure.in: Likewise.
2746 * sysdeps/ia64/elf/configure.in: Likewise.
2747 * sysdeps/mach/configure.in: Likewise.
2748 * sysdeps/mach/hurd/configure.in: Likewise.
2749 * sysdeps/unix/configure.in: Likewise.
2750 * sysdeps/unix/common/configure.in: Likewise.
2751 * sysdeps/unix/sysv/aix/configure.in: Likewise.
2752 * sysdeps/unix/sysv/linux/configure.in: Likewise.
2753 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
2754 * sysdeps/x86_64/elf/configure.in: Likewise.
2756 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
2757 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
2758 that it's obvious when extra autoconf machinery is being dragged in.
2760 2002-10-18 Roland McGrath <roland@redhat.com>
2762 * configure.in: Remove bogus echo included in
2763 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
2764 * configure: Regenerated.
2766 2002-10-18 Jakub Jelinek <jakub@redhat.com>
2768 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
2769 (statfs_filesize_max): New function.
2770 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
2771 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
2772 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
2773 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
2774 statfs_filesize_max.
2775 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2776 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
2777 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
2779 2002-10-17 Roland McGrath <roland@redhat.com>
2781 * configure.in (MIG): Just AC_SUBST it here.
2782 * configure: Regenerated.
2783 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
2784 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
2785 * sysdeps/mach/configure: Regenerated.
2787 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
2788 and AC_PROVIDE([_AS_CR_PREPARE]).
2790 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
2791 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
2793 * elf/dl-support.c: Move _dl_tls_* variables to ...
2794 * sysdeps/generic/libc-tls.c: ... here.
2796 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
2797 allow IDX to be one past the current last slotinfo entry.
2798 (_dl_close): Pass IMAP->l_init_called for that parameter.
2800 2002-10-07 Andreas Schwab <schwab@suse.de>
2802 * aclocal.m4: Fix for autoconf 2.53.
2803 * configure.in: Likewise. Require autoconf 2.53.
2805 2002-10-08 Richard Henderson <rth@redhat.com>
2807 * soft-fp/op-4.h: Handle carry correctly in
2808 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
2809 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
2810 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
2812 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
2814 * configure.in: Compute completely-soft.
2815 * config.make.in: Make completely-soft available to sub-makes.
2816 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
2817 gcc-double-routines. Add sim-full.c. Add fenv_const and
2818 fe_nomask to libm-support.
2819 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
2820 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
2821 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
2822 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
2823 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
2824 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
2825 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
2826 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
2827 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
2828 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
2829 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
2830 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
2831 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
2832 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
2833 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
2834 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
2835 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
2836 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
2837 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
2838 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
2840 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
2841 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
2842 FP_HANDLE_EXCEPTIONS.
2843 Define FP_ROUNDMODE.
2844 Redefine FP_* macros to correspond to the FE_* bit positions.
2845 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
2846 Define externs for __sim_exceptions, __sim_disabled_exceptions,
2847 __sim_round_mode, __simulate_exceptions.
2848 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
2849 * sysdeps/powerpc/bits/fenv.h: ...to here.
2851 2002-10-06 Jakub Jelinek <jakub@redhat.com>
2853 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
2854 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
2855 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
2856 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
2859 2002-10-15 Jakub Jelinek <jakub@redhat.com>
2861 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
2862 __libc_res_nsend): New prototypes.
2863 * resolv/res_query.c (QUERYSIZE): Define.
2864 (__libc_res_nquery): Renamed from res_nquery. Added answerp
2865 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
2866 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
2867 res_nsend, pass answerp.
2868 (res_nquery): Changed into wrapper around __libc_res_nquery.
2869 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
2870 argument. Call __libc_res_nquerydomain and __libc_res_nquery
2871 instead of the non-__libc_ variants, pass them answerp.
2872 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
2873 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
2874 Added answerp argument. Call __libc_res_nquery instead of
2875 res_nquery, pass answerp.
2876 (res_nquerydomain): Changed into wrapper around
2877 __libc_res_nquerydomain.
2878 * resolv/res_send.c: Include sys/ioctl.h.
2879 (MAXPACKET): Define.
2880 (send_vc): Change arguments. Reallocate answer buffer if it is
2882 (send_dg): Likewise.
2883 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
2884 Reallocate answer buffer if it is too small and hooks are in use.
2885 Adjust calls to send_vc and send_dg.
2886 (res_nsend): Changed into wrapper around __libc_res_nsend.
2887 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
2888 just 1K answer buffer on the stack, use __libc_res_nsearch instead
2890 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
2891 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2892 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
2893 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
2894 (gethostbyaddr): Similarly with __libc_res_nquery.
2895 * resolv/Versions (libresolv): Export __libc_res_nquery and
2896 __libc_res_nsearch at GLIBC_PRIVATE.
2898 2002-10-17 Roland McGrath <roland@redhat.com>
2900 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
2901 * configure: Regenerated.
2903 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
2904 before performing the reloc, not after.
2905 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2907 2002-10-17 Ulrich Drepper <drepper@redhat.com>
2909 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
2910 * locale/programs/linereader.c (lr_open): Likewise.
2911 * locale/programs/charmap-dir.c (charmap_open): Likewise.
2912 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
2914 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
2916 * posix/bug-regex11.c: Add a test case for the bug reported by
2917 Paolo Bonzini <bonzini@gnu.org>.
2918 * posix/regexec.c (sift_states_bkref): Use correct destination of
2921 2002-10-17 Roland McGrath <roland@redhat.com>
2923 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
2924 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
2925 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
2926 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
2927 Call it after performing TPOFF relocs.
2928 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2929 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2930 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
2932 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
2933 when closing a partially-initialized object.
2935 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
2936 instead of _dl_fatal_printf when we see PT_TLS.
2938 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
2939 instead of $(libof-$<).
2941 2002-10-16 Roland McGrath <roland@redhat.com>
2943 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
2944 instead of += to append, to be sure $(lib) gets expanded at defn time.
2945 (libof-$(cpp-src)): New variable, define this instead.
2946 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
2947 (lib): Don't use override.
2948 (CPPFLAGS-$(lib)): New variable, put -D's here.
2949 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
2950 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
2951 LIB found by $(libof-*) for basename, target, or source.
2952 * Makerules (CPPFLAGS-nonlib): New variable.
2953 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
2954 * locale/Makefile (lib): Likewise.
2955 * sunrpc/Makefile (lib): Likewise.
2957 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
2958 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
2959 * sysdeps/unix/sysv/linux/pathconf.h: New file.
2960 (statfs_link_max): New function, guts from fpathconf.c.
2961 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
2962 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
2963 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
2964 to use the linux/pathconf.c code by #include rather than duplication.
2965 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
2967 2002-10-16 Jakub Jelinek <jakub@redhat.com>
2969 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
2970 Use __libc_errno only for libc itself.
2972 2002-10-16 Andreas Jaeger <aj@suse.de>
2974 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
2976 2002-10-16 Ulrich Drepper <drepper@redhat.com>
2978 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2979 Use __libc_errno only for libc itself.
2981 2002-10-15 Roland McGrath <roland@redhat.com>
2982 Jakub Jelinek <jakub@redhat.com>
2984 * sysdeps/unix/sysv/linux/Makefile
2985 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
2986 sparc/Makefile to produce a bi-arch file as needed.
2987 That's now parameterized by the variable $(64bit-predefine).
2988 Use LC_ALL=C for `comm' commands in that rule.
2989 No longer conditional on [$(no_syscall_list_h)].
2990 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
2991 (64bit-predefine): New variable.
2992 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
2993 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2994 * sysdeps/unix/sysv/linux/powerpc/Makefile
2995 (64bit-predefine): New variable.
2997 2002-10-15 Roland McGrath <roland@redhat.com>
2999 * sysdeps/unix/sysv/linux/Makefile
3000 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
3002 * login/utmp-private.h: Declare __libc_utmp_lock.
3003 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
3004 and call __libc_utmp_jump_table functions directly, instead of using
3007 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
3008 * sysdeps/unix/sysv/linux/configure: Regenerated.
3010 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
3011 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3012 Use int32_t for ll_time.
3013 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
3014 Use int32_t instead of long int for ut_session.
3015 Use an anonymous struct with 32-bit fields for ut_tv.
3016 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
3017 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
3018 here as in utmp.h for `struct utmp'.
3019 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
3020 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
3021 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
3022 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
3023 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
3024 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
3026 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
3027 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
3028 All the following files were identical or equivalent to it.
3029 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
3030 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
3031 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
3032 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
3033 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
3034 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
3035 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
3036 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
3037 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
3038 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
3040 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
3041 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
3042 Other than the previously incorrect sign of msg_iovlen, this is a
3043 no-op on 32-bit platforms. On 64-bit platforms it makes this header
3044 match their layouts as well, so the following are now identical to it.
3045 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
3046 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
3047 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
3048 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
3049 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
3051 2002-10-15 Ulrich Drepper <drepper@redhat.com>
3053 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
3054 Define for 2.4+ kernels.
3056 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
3057 are known to have the vfork syscall. Don't confuse the CPUs
3058 branch prediction unit by jumping to the return address.
3060 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
3061 support for reiserfs and xfs.
3063 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
3065 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
3067 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
3069 2002-10-16 Jakub Jelinek <jakub@redhat.com>
3071 * include/libc-symbols.h (attribute_tls_model_ie): Define.
3072 * include/errno.h (errno): Define to __libc_errno in libc.so.
3073 Add attribute_tls_model_ie.
3074 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
3075 Add attribute_tls_model_ie.
3076 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
3077 attribute_tls_model_ie.
3078 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
3080 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
3082 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
3083 attribute_tls_model_ie.
3084 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
3086 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
3087 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
3088 __libc_errno in USE___THREAD case.
3089 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3091 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
3092 __attribute__((tls_model (""))).
3093 * configure: Rebuilt.
3094 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
3096 2002-10-15 Ulrich Drepper <drepper@redhat.com>
3098 * timezone/asia: Update from tzdata2002d.
3099 * timezone/australasia: Likewise.
3100 * timezone/iso3166.tab: Likewise.
3101 * timezone/southamerica: Likewise.
3102 * timezone/zone-tab: Likewise.
3104 2002-10-15 Roland McGrath <roland@redhat.com>
3106 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
3107 Adjust TCB pointer before calling free, so we get the whole block.
3109 2002-10-14 Roland McGrath <roland@redhat.com>
3111 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
3112 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
3113 extern using attribute_hidden instead of static, avoids warning.
3115 2002-10-09 Jakub Jelinek <jakub@redhat.com>
3117 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
3118 * sysdeps/unix/sysv/linux/configure: Rebuilt.
3120 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3122 * po/sv.po: Update from translation team.
3124 2002-10-12 H.J. Lu <hjl@gnu.org>
3126 * sunrpc/thrsvc.c (PROCQUIT): New.
3127 (struct rpc_arg): New.
3128 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
3129 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
3130 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
3131 (main): Modified for struct rpc_arg *.
3133 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3135 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
3137 2002-10-14 Jakub Jelinek <jakub@redhat.com>
3139 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
3140 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
3141 in ld.so even if __thread is supported.
3143 2002-10-13 Jakub Jelinek <jakub@redhat.com>
3145 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
3146 Add hack to prevent the compiler from clobbering the signal context.
3147 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
3149 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
3152 2002-10-14 Andreas Jaeger <aj@suse.de>
3154 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
3155 Guido Guenther <agx@sigxcpu.org>.
3157 2002-10-14 Ulrich Drepper <drepper@redhat.com>
3159 * po/sk.po: Update from translation team.
3161 2002-09-26 Roland McGrath <roland@redhat.com>
3163 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
3165 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
3166 DL_DST_LIB based on $(slibdir).
3168 2002-10-13 Roland McGrath <roland@frob.com>
3170 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
3172 * sysdeps/mach/hurd/getresuid.c: New file.
3173 * sysdeps/mach/hurd/getresgid.c: New file.
3174 * sysdeps/mach/hurd/setresuid.c: New file.
3175 * sysdeps/mach/hurd/setresgid.c: New file.
3177 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
3178 setresgid): Declare them.
3181 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
3182 add libc_hidden_proto.
3183 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
3184 getresuid, getresgid, setresuid, setresgid here.
3185 * Versions.def (libc): Define GLIBC_2.3.2 set.
3186 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
3187 Add libc_hidden_def.
3188 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
3189 * sysdeps/generic/setresgid.c: New file.
3190 * sysdeps/generic/setresuid.c: New file.
3191 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3192 (sysdep_routines): Don't add getresuid and getresgid here.
3193 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
3194 (sysdep_routines): Don't add setresuid and setresgid here.
3195 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
3196 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
3197 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3198 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
3199 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3200 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3201 * posix/Makefile (routines): Add them all here instead.
3202 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
3203 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
3204 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
3205 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
3206 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
3207 [! __NR_setresuid]: Include generic file.
3208 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
3209 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
3210 [! __NR_setresuid]: Include generic file.
3211 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
3212 Caller is - now, not EXTRA.
3213 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
3214 (setresuid, setresgid, getresuid, getresgid): Likewise.
3215 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
3216 Add these calls here.
3217 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
3218 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3219 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3220 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3221 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
3223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3224 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3225 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3227 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3228 (sysdep_routines): Add setfsuid and setfsgid here.
3229 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
3230 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
3231 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
3232 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
3233 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3234 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
3235 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3236 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3238 * hurd/errno.c: Renamed to ...
3239 * hurd/errno-loc.c: ... this.
3240 * hurd/Makefile (routines): errno -> errno-loc
3242 2002-10-13 Ulrich Drepper <drepper@redhat.com>
3244 * po/de.po: Update from translation team.
3246 * MakeTAGS: Add -E flag to xgettext runs.
3248 2002-10-12 Ulrich Drepper <drepper@redhat.com>
3250 * po/fr.po: Update from translation team.
3252 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
3253 Optimize a bit for use in glibc.
3255 2002-10-12 Roland McGrath <roland@redhat.com>
3257 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
3258 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
3260 2002-10-12 Ulrich Drepper <drepper@redhat.com>
3262 * po/sv.po: Update from translation team.
3264 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
3266 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
3268 (regfree): Likewise.
3269 (create_initial_state): Likewise.
3270 (analyze): Remove the substitutions which became useless.
3271 (calc_first): Likewise.
3272 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
3273 epsilon destination.
3274 (duplicate_node_closure): New function.
3275 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
3276 (calc_inveclosure): Likewise.
3277 (calc_eclosure): Likewise.
3278 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
3279 direct invocation of duplicate_node.
3280 (parse): Don't use comma operator in the return to avoid compiler
3282 (parse_reg_exp): Likewise.
3283 (parse_branch): Likewise.
3284 (parse_expression): Likewise.
3285 (parse_sub_exp): Likewise.
3286 (parse_dup_op): Likewise.
3287 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
3288 which became useless.
3289 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
3290 (create_cd_newstate): Likewise.
3291 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
3292 (re_token_t): Likewise.
3293 (re_dfa_t): Likewise.
3294 (re_node_set_remove): New macro.
3295 * posix/regexec.c (check_matching): Remove the handling
3297 (check_halt_node_context): Likewise.
3298 (proceed_next_node): Likewise.
3299 (pop_fail_stack): Fix the memory leak.
3300 (set_regs): Likewise.
3301 (free_fail_stack_return): New function.
3302 (sift_states_backward): Fix the memory leak. Remove the handling
3304 (update_cur_sifted_state): Append some if clause to avoid redundant
3306 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
3308 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
3309 (check_subexp_limits): Likewise.
3310 (search_subexp): Likewise.
3311 (sift_states_bkref): Likewise.
3312 (transit_state_mb): Likewise.
3313 (transit_state_bkref_loop): Likewise.
3314 (transit_state_bkref_loop): Likewise.
3315 (group_nodes_into_DFAstates): Likewise.
3316 (check_node_accept): Likewise.
3317 (sift_ctx_init): Add initializing.
3319 2002-10-12 Ulrich Drepper <drepper@redhat.com>
3321 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
3324 2002-10-11 Ulrich Drepper <drepper@redhat.com>
3326 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
3327 duplicated variable c.
3329 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
3332 * sysdeps/unix/sysv/linux/i386/sysdep.h
3333 (INTERNAL_SYSCALL_ERROR_P): New define.
3334 (INTERNAL_SYSCALL_ERRNO): Likewise.
3336 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
3337 Add hack to prevent the compiler from clobbering the signal context.
3339 2002-10-11 Roland McGrath <roland@redhat.com>
3341 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3344 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
3345 * sysdeps/sh/dl-lookupcfg.h: File removed.
3346 * sysdeps/i386/dl-lookupcfg.h: File removed.
3348 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
3349 missing labels and ; from last change.
3351 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
3352 number literals, so they are doubles instead of ints.
3354 2002-10-09 Roland McGrath <roland@redhat.com>
3356 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
3357 changed from [USE_TLS && HAVE___THREAD].
3359 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
3360 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
3361 * sysdeps/x86_64/dl-machine.h
3362 (elf_machine_type_class, elf_machine_rela): Likewise.
3363 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
3366 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
3367 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
3368 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
3370 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
3371 instead of ___tls_get_addr.
3372 (___tls_get_addr_internal): Add attribute_hidden to decl.
3374 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
3375 _dl_error_catch_tsd.
3376 * elf/rtld.c (startup_error_tsd): New function.
3377 (dl_main): Point _dl_error_catch_tsd at that.
3378 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
3379 use new function pointer instead.
3380 * elf/dl-tsd.c: New file.
3381 * elf/Makefile (routines): Add it.
3383 2002-10-07 Roland McGrath <roland@redhat.com>
3385 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
3386 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
3387 take _dl_load_lock around calling __writev.
3389 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
3390 (INLINE_SYSCALL): Use that.
3392 * sysdeps/generic/dl-sysdep.h: New file.
3393 * sysdeps/mach/hurd/dl-sysdep.h: New file.
3394 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
3395 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
3396 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
3398 * elf/dl-minimal.c (__errno_location): Removed.
3399 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
3400 Use GOTOFF access for errno.
3401 * sysdeps/unix/sysv/linux/i386/sysdep.h
3402 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
3404 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
3405 Use PC-relative access for errno.
3406 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
3407 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
3409 * include/tls.h: New file.
3410 (USE___THREAD): New macro.
3411 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
3413 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
3414 changed from [USE_TLS && HAVE___THREAD].
3415 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3416 * sysdeps/unix/i386/sysdep.S: Likewise.
3417 * sysdeps/unix/x86_64/sysdep.S: Likewise.
3418 * include/errno.h: Likewise.
3419 * include/netdb.h: Likewise.
3420 * include/resolv.h: Likewise.
3422 * sysdeps/generic/errno.c: New file.
3423 * csu/Makefile (aux): New variable, list errno.
3424 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
3425 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3426 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
3427 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3428 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3429 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
3430 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
3431 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
3432 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
3433 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
3434 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
3435 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
3436 * sysdeps/unix/alpha/sysdep.S: Likewise.
3437 * sysdeps/generic/start.c: Likewise.
3438 * sysdeps/unix/start.c: Likewise.
3439 * sysdeps/unix/arm/start.c: Likewise.
3440 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
3441 * sysdeps/unix/sparc/start.c: Likewise.
3442 * sysdeps/unix/sysv/irix4/start.c: Likewise.
3443 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
3445 * manual/search.texi (Tree Search Function, Hash Search Function):
3446 Mention search.h clearly.
3448 2002-10-05 Roland McGrath <roland@redhat.com>
3450 * elf/dl-fxstat64.c: File removed.
3451 * elf/dl-xstat64.c: File removed.
3452 * elf/Makefile (rtld-routines): Remove them.
3453 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
3454 Instead, use strong_alias instead of versioned_symbol in the
3456 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
3457 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3459 * include/shlib-compat.h
3460 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
3461 [! NOT_IN_libc] (IS_IN_libc): Define it.
3462 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
3463 * elf/Makefile (CPPFLAGS-.os): Likewise.
3465 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
3466 Return the status instead of calling exit.
3468 * Makeconfig (CFLAGS): Prepend -std=gnu99.
3469 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
3470 Remove superfluous rm command, whose @ plus make bugs hid
3471 all these commands from the make output.
3473 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
3474 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
3475 Use that file's contents instead of literal echo's for the prologue.
3476 * include/features.h: Include <gnu/stubs.h> unconditionally.
3477 * include/gnu/stubs.h: New file.
3479 2002-09-30 Roland McGrath <roland@redhat.com>
3481 * elf/rtld-Rules: New file.
3482 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
3483 $(objpfx)rtld-libc.a): New targets.
3484 (generated): Add them.
3485 (reloc-link): Remove -o $@ from the variable.
3486 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
3487 (distribute): Add rtld-Rules.
3488 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
3489 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
3490 (common-mostlyclean, common-clean): Clean up rtld-* files.
3491 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
3493 2002-10-11 Roland McGrath <roland@redhat.com>
3495 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
3496 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
3498 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
3499 proper set of no-op insn prefixes.
3501 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
3503 2002-10-11 Ulrich Drepper <drepper@redhat.com>
3505 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
3506 __pthread_kill_other_threads_np.
3508 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
3510 2002-10-08 Roland McGrath <roland@redhat.com>
3512 * locale/newlocale.c (__newlocale): If setting all categories to "C",
3513 just return &_nl_C_locobj instead of copying it.
3514 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
3515 * locale/duplocale.c (__duplocale): Likewise.
3517 2002-10-07 Roland McGrath <roland@frob.com>
3519 * config.h.in (HAVE_I386_SET_GDT): New #undef.
3520 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
3521 * sysdeps/mach/configure: Regenerated.
3523 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
3526 Add all necessary register outputs for syscall-clobbered registers.
3528 2002-10-02 David Mosberger <davidm@hpl.hp.com>
3530 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
3531 Itanium 2 (and Itanium).
3532 Fix unwind directives and make it fit in 80 columns.
3533 * sysdeps/ia64/memset.S: Likewise.
3534 * sysdeps/ia64/memcpy.S: Likewise.
3535 Move jump table to .rodata section.
3537 2002-10-03 Roland McGrath <roland@frob.com>
3539 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
3542 2002-10-10 Andreas Jaeger <aj@suse.de>
3544 * sysdeps/x86_64/_mcount.S: Restore correct registers.
3546 2002-10-10 Ulrich Drepper <drepper@redhat.com>
3548 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
3550 2002-10-09 Ulrich Drepper <drepper@redhat.com>
3552 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
3553 _dl_allocate_tls_init. Add rtld_hidden_proto.
3554 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
3556 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
3558 * version.h (VERSION): Bump to 2.3.1.
3560 * Make-dist: Add back one of the tar invocations removed before.
3562 * stdlib/Makefile (distribute): Add allocalim.h.
3564 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
3565 (__libc_tsd_address): Use correct variable name.
3566 Patch by Stefan Jones <stefan.jones@multigig.com>.
3568 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
3569 Reported by edwardsg@sgi.com [PR libc/4678].
3571 * Versions.def (libc): Add GLIBC_2.3.1.
3572 (libpthread): Add GLIBC_2.3.1.
3574 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
3576 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
3577 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
3579 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
3580 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
3582 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
3583 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
3584 and make old name an alias.
3585 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
3586 and make old name an alias.
3587 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
3590 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
3591 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
3593 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
3595 * sysdeps/posix/readv.c: Likewise
3596 * sysdeps/unix/sysv/aix/readv.c: Likewise.
3597 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3598 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
3600 * sysdeps/posix/writev.c: Likewise
3601 * sysdeps/unix/sysv/aix/writev.c: Likewise.
3602 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3604 * include/sys/wait.h: Declare __waitid.
3605 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
3606 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
3608 * sysdeps/posix/waitid.c: Likewise.
3609 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
3611 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
3613 2002-10-07 Jakub Jelinek <jakub@redhat.com>
3615 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
3617 (__MAX_ALLOCA_CUTOFF): Define.
3618 Include allocalim.h.
3619 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
3620 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
3621 host_buffer depending on __libc_use_alloca.
3622 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
3623 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
3624 net_buffer depending on __libc_use_alloca.
3625 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
3626 buf depending on __libc_use_alloca.
3627 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
3628 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
3629 instead of hardcoded constants.
3630 Pass proper size argument to alloca and compute end for wide char
3632 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
3633 instead of hardcoded constants.
3634 * string/strcoll.c (strcoll): Likewise.
3635 * string/strxfrm.c (strxfrm): Likewise.
3636 * sysdeps/posix/readv.c (__readv): Likewise.
3637 * sysdeps/posix/writev.c (__writev): Likewise.
3638 * sysdeps/generic/allocalim.h: New file.
3640 2002-10-08 Roland McGrath <roland@redhat.com>
3642 * configure.in (aux_missing warning): Change "too old" to
3643 "incompatible versions", since for autoconf it's "too new" right now.
3644 * configure: Regenerated.
3646 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
3647 one found doesn't work on our configure.in.
3648 * configure: Regenerated.
3649 * config.make.in (AUTOCONF): New substituted variable.
3650 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
3651 (autoconf-it): ... here, use that instead of defining conditionally.
3652 Use $(AUTOCONF) instead of literal autoconf.
3653 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
3654 with this condition.
3655 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
3657 2002-10-08 Ulrich Drepper <drepper@redhat.com>
3659 * Make-dist (dist): Cleanup a bit. We are not interested in the
3660 14 char filename limit anymore. Remove intermediate files and
3663 2002-10-05 Ulrich Drepper <drepper@redhat.com>
3665 * po/sk.po: Update from translation team.
3666 * po/tr.po: Likewise.
3667 * po/gl.po: Likewise.
3669 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3671 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
3673 2002-10-03 Ulrich Drepper <drepper@redhat.com>
3675 * version.h (RELEASE): Change to stable.
3677 2002-10-03 Jakub Jelinek <jakub@redhat.com>
3679 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
3680 __syscall_exit_group): New prototypes.
3682 2002-10-03 Ulrich Drepper <drepper@redhat.com>
3684 * glibc 2.3 released.
3687 See ChangeLog.13 for earlier changes.