1 2004-04-19 Roland McGrath <roland@redhat.com>
3 * rt/tst-mqueue9.c (do_test): Initialize RESULT.
5 2004-04-19 Jakub Jelinek <jakub@redhat.com>
7 * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Change EPERM into
9 * rt/Makefile (tests): Add tst-mqueue9.
10 * rt/tst-mqueue9.c: New test.
11 * rt/tst-mqueue4.c (do_test): Add test for mq_unlink of a too long
14 2004-04-19 Ulrich Drepper <drepper@redhat.com>
16 * rt/tst-mqueue7.c (do_test): Make newargv const.
18 2004-04-18 Randolph Chung <tausq@debian.org>
20 * sysdeps/hppa/elf/entry.h: New file.
21 * sysdeps/hppa/machine-gmon.h: New file.
22 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Don't use x86 version.
24 2004-04-18 Ulrich Drepper <drepper@redhat.com>
26 * sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c: New file.
27 * sysdeps/unix/sysv/linux/powerpc/Makefile (librt-routines): Add
30 * rt/tst-mqueue5.c (mqsend): Don't inline.
33 * rt/tst-timer4.c: Include <string.h>.
35 2004-04-17 Jakub Jelinek <jakub@redhat.com>
37 * rt/Makefile (tests): Add tst-mqueue8.
38 * rt/tst-mqueue8.c: New test.
40 * sysdeps/unix/sysv/linux/s390/Makefile (librt-routines): Add
42 * sysdeps/unix/sysv/linux/s390/rt-sysdep.S: New file.
44 2004-03-26 H.J. Lu <hongjiu.lu@intel.com>
46 * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c (__fxstat): Don't
47 use "struct kernel_stat".
49 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
51 * sysdeps/ia64/memcmp.S: Fix symbol.
53 2004-04-04 Carlos O'Donell <carlos@baldric.uwo.ca>
55 * sysdeps/hppa/Dist: Add bits/link.h elf/entry.h.
57 * sysdeps/hppa/bits/link.h: New file.
59 * sysdeps/hppa/dl-machine.h (__hppa_init_bootstrap_fdesc_table):
60 Initialze the fdesc table for the generic code.
61 (elf_machine_dynamic): Use asm version.
62 (elf_machine_load_addresss): Simplify asm by calling
64 (elf_machine_fixup_plt): Correct comment.
65 (elf_machine_profile_fixup_plt): New.
66 (elf_machine_runtime_setup): Check PLT exists, if lazy=1 process
67 normally, else relocate all the absolute entries.
68 (RTLD_START): Fix comments.
69 (TRAMPOLINE_TEMPLATE): Reformat assembly, add return pointer for
70 calls to profile_fixup.
71 (ELF_MACHINE_SIZEOF_JMP_SLOT, DL_STATIC_FUNCTION_ADDRESS,
72 DL_PLATFORM_INIT): Define.
73 (DL_FUNCTION_ADDRESS): Remove.
74 (dl_platform_init): New.
75 (elf_machine_rela): Use generic fdesc code, and process all COPY
76 relocations. Use __attribute__((always_inline)).
77 (elf_machine_rela_relative): Add sanity checks, remove IPLT
78 processing, print error message in default case. Use
79 __attribute__((always_inline)).
80 (elf_machine_lazy_rel): Use __attribute__((always_inline)).
82 2004-04-05 Carlos O'Donell <carlos@baldric.uwo.ca>
84 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Use only sw[0]
85 and call feraiseexcept.
87 2003-11-15 Randolph Chung <tausq@debian.org>
89 * gmon/gmon.c (__monstartup): Round kcountsize to multiples of
90 the froms[] array so the array is properly aligned.
92 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
94 * Makeconfig (libgcc_eh): Add -Wl,.
96 * configure.in: Add -lgcc_s for --as-needed check.
98 2004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
100 * sysdeps/sh/elf/configure.in: New file.
102 2004-04-17 Ulrich Drepper <drepper@redhat.com>
104 * iconvdata/gconv-modules: Add PT154 and RK1048 entries.
105 * iconvdata/tst-tables.sh: Add PT154 and RK1048.
106 * iconvdata/Makefile (modules): Add PT154 anhd RK1048.
107 (distribute): Add pt154.c and rk1048.c.
108 (gen-8bit-gap-modules): Add pt154 and rk1048.
109 * icondata/pt154.c: New file.
110 * iconvdata/rk1048.c: New file.
112 * rt/tst-timer4.c: Disable some tests, mark errors better.
114 2004-04-16 Ulrich Drepper <drepper@redhat.com>
116 * rt/tst-mqueue6.c (mqsend): Don't inline.
119 * rt/tst-mqueue3.c (do_test): Cope with kernel without mq support.
121 * sysdeps/ieee754/bits/nan.h (__nan_union): Add __attribute_used__
122 attribute to keep gcc quiet.
124 2004-04-16 Jakub Jelinek <jakub@redhat.com>
126 * misc/syslog.c (vsyslog): Avoid freeing failbuf.
128 2004-04-15 Jakub Jelinek <jakub@redhat.com>
130 * rt/Makefile (tests): Add tst-timer4.
131 * rt/tst-timer4.c: New test.
133 2004-04-15 Jakub Jelinek <jakub@redhat.com>
135 * rt/tst-mqueue5.c (rtmin_code): New variable.
136 (rtmin_handler): Set it.
137 (thr, do_child, do_test): Also check rtmin_code.
139 2004-04-14 Jakub Jelinek <jakub@redhat.com>
141 * rt/Makefile (tests): Add tst-mqueue7.
142 (tst-mqueue7-ARGS): Set.
143 * rt/tst-mqueue7.c: New test.
145 2004-04-13 Jakub Jelinek <jakub@redhat.com>
147 * rt/Makefile (tests): Add tst-mqueue5 and tst-mqueue6.
148 * rt/tst-mqueue1.c (do_one_test): Bitwise or check_attrs () into
149 result instead of replacing it. Use TEMP_FAILURE_RETRY around
150 waitpid, kill child if waitpid failed.
151 (do_test): Bitwise or check_attrs () into result instead of replacing
152 it. Change temp mq name.
153 * rt/tst-mqueue5.c: New test.
154 * rt/tst-mqueue6.c: New test.
155 * rt/tst-mqueue.h: Include stdio.h, unistd.h, sys/uio.h.
156 (temp_mq_list, delete_temp_mqs): Remove.
157 (temp_mq_fd): New variable.
158 (do_cleanup, do_prepare): New functions.
159 (add_temp_mq): Rewritten to use a temp file.
161 (CLEANUP_HANDLER): Change to do_cleanup ().
163 * rt/tst-timer3.c: Don't fail if _POSIX_THREADS is not available.
165 2004-04-13 Thorsten Kukuk <kukuk@suse.de>
167 * sysdeps/s390/ffs.c: Include limits.h
169 2004-04-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
171 * sysdeps/unix/sysv/linux/sh/sysdep.h (SUBSTITUTE_ARGS_1,
172 SUBSTITUTE_ARGS_2, SUBSTITUTE_ARGS_3, SUBSTITUTE_ARGS_4,
173 SUBSTITUTE_ARGS_5, SUBSTITUTE_ARGS_6, SUBSTITUTE_ARGS_7): Load
174 argument values into temporary variables.
176 2004-04-15 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
178 * sysdeps/mips/dl-machine.h (RTLD_START): Do not use nested .end.
180 2004-04-12 Ulrich Drepper <drepper@redhat.com>
182 * rt/Makefile (tests): Add tst-timer3.
183 * rt/tst-timer3.c: New file. By Roland McGrath.
185 2004-04-08 Ulrich Drepper <drepper@redhat.com>
187 * rt/tst-mqueue3.c: New file.
188 * rt/Makefile (tests): Add tst-mqueue3.
190 2004-04-08 Jakub Jelinek <jakub@redhat.com>
192 * rt/tst-mqueue1.c: New file.
193 * rt/tst-mqueue2.c: New file.
194 * rt/tst-mqueue4.c: New file.
195 * rt/Makefile (tests): Add tst-mqueue1, tst-mqueue2, tst-mqueue4.
197 * rt/Versions (librt): Add mq_*@@GLIBC_2.3.4.
198 * rt/Makefile (headers): Add mqueue.h and bits/mqueue.h.
200 (librt-routines): Use it.
201 * rt/mqueue.h: New file.
202 * include/mqueue.h: New file.
203 * sysdeps/generic/bits/mqueue.h: New file.
204 * sysdeps/generic/mq_setattr.c: New file.
205 * sysdeps/generic/mq_getattr.c: New file.
206 * sysdeps/generic/mq_notify.c: New file.
207 * sysdeps/generic/mq_close.c: New file.
208 * sysdeps/generic/mq_send.c: New file.
209 * sysdeps/generic/mq_unlink.c: New file.
210 * sysdeps/generic/mq_receive.c: New file.
211 * sysdeps/generic/mq_timedreceive.c: New file.
212 * sysdeps/generic/mq_timedsend.c: New file.
213 * sysdeps/generic/mq_open.c: New file.
214 * sysdeps/unix/sysv/linux/bits/local_lim.h (MQ_PRIO_MAX): Define.
215 * sysdeps/unix/sysv/linux/bits/mqueue.h: New file.
216 * sysdeps/unix/sysv/linux/syscalls.list: Add mq_timedsend,
217 mq_timedreceive and mq_setattr.
218 * sysdeps/unix/sysv/linux/mq_getattr.c: New file.
219 * sysdeps/unix/sysv/linux/mq_notify.c: New file.
220 * sysdeps/unix/sysv/linux/mq_close.c: New file.
221 * sysdeps/unix/sysv/linux/mq_send.c: New file.
222 * sysdeps/unix/sysv/linux/mq_unlink.c: New file.
223 * sysdeps/unix/sysv/linux/mq_receive.c: New file.
224 * sysdeps/unix/sysv/linux/mq_open.c: New file.
226 2004-04-09 Andreas Schwab <schwab@suse.de>
228 * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL): Move
229 LOAD_ARGS_##nr up front and add LOAD_REGS_##nr.
230 (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4)
231 (LOAD_ARGS_5, LOAD_ARGS_6): Load argument values into temporary
233 (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4)
234 (LOAD_REGS_5, LOAD_REGS_6): New macros to actually load the
235 syscall argument registers.
237 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL): Add
239 (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4)
240 (LOAD_ARGS_5, LOAD_ARGS_6): Load argument values into temporary
242 (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4)
243 (LOAD_REGS_5, LOAD_REGS_6): New macros to actually load the
244 syscall argument registers.
246 2004-04-09 Andreas Schwab <schwab@suse.de>
248 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Add
250 (LOAD_ARGS_0, LOAD_ARGS_1, LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4)
251 (LOAD_ARGS_5, LOAD_ARGS_6): Load argument values into temporary
253 (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4)
254 (LOAD_REGS_5, LOAD_REGS_6): New macros to actually load the
255 syscall argument registers.
257 2004-04-09 Thorsten Kukuk <kukuk@suse.de>
259 * sysdeps/s390/ffs.c: Don't add ffsl weak alias on s390x.
261 2004-04-09 Steven Munroe <sjmunroe@us.ibm.com>
263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: New file.
265 2004-04-08 Ulrich Drepper <drepper@redhat.com>
267 * po/nl.po: Update from translation team.
269 2004-04-04 Ulrich Drepper <drepper@redhat.com>
271 * math/test-tgmath.c: Declare compile_testl inly if we will define it.
273 2004-04-03 Ulrich Drepper <drepper@redhat.com>
275 * sysdeps/powerpc/powerpc64/ffsll.c: New file.
277 * string/test-ffs.c: Also test ffsl and ffsll.
279 * sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64.
281 * sysdeps/powerpc/powerpc64/bits/atomic.h: Never use matching
282 constraints for asm mem parameters.
283 * sysdeps/powerpc/bits/atomic.h: Likewise.
285 * sysdeps/powerpc/elf/libc-start.c: No need for a separate
286 function for __aux_init_cache.
288 * inet/test-ifaddrs.c: Fight warnings.
290 * argp/argp-help.c: Fight warnings.
292 * include/time.h: Declare __difftime.
294 * sysdeps/unix/sysv/linux/internal_statvfs.c: Restructure to avoid
295 duplication in 64-bit version.
296 * sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c: New file.
298 2004-04-03 Andreas Jaeger <aj@suse.de>
300 * nis/nss-nis.c: Include <string.h> for strncmp.
302 2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
304 * Makeconfig (link-libc-static): Use $(static-gnulib) instead
306 (libgcc_eh): New variable.
307 (gnulib): Use it variable.
308 (static-gnulib): New variable.
309 * Makerules (LDLIBS-c.so): Use $(static-gnulib) instead of $(gnulib).
310 * config.make.in (have-as-needed): New variable.
311 * configure.in: Check if linker supports --as-needed.
313 2004-04-02 Ulrich Drepper <drepper@redhat.com>
315 * sysdeps/unix/sysv/linux/internal_statvfs64.c: New file.
316 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
317 Add internal_statvfs64.
318 * sysdeps/unix/sysv/linux/internal_statvfs.c: Allow to be used to
319 compile 64bit version.
320 * sysdeps/unix/sysv/linux/statvfs64.c: Use __fstatfs64 and skip
321 compatibility code if __ASSUME_STATFS64 is defined.
322 * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
324 * sysdeps/unix/sysv/linux/statfs64.c: Don't add __no_statfs64 if
325 __ASSUME_STATFS64 != 0.
327 2004-04-02 Thorsten Kukuk <kukuk@firun.suse.de>
329 * nis/nss_nis/nis-ethers.c (saveit): Fix return codes in error case.
330 * nis/nss_nis/nis-initgroups.c (saveit): Likewise.
331 * nis/nss_nis/nis-proto.c (saveit): Likewise.
332 * nis/nss_nis/nis-rpc.c (saveit): Likewise.
333 * nis/nss_nis/nis-service.c (saveit): Likewise.
335 2004-04-02 Jakub Jelinek <jakub@redhat.com>
337 * nis/nss: Add SERVICES_AUTHORITATIVE.
338 * nis/nss-nis.h (NSS_FLAG_SET, NSS_FLAG_NETID_AUTHORITATIVE,
339 NSS_FLAG_SERVICES_AUTHORITATIVE): Define.
340 (_nis_default_nss_flags, _nis_check_default_nss): New decls.
341 (_nis_default_nss): New inline.
342 * nis/nss-nis.c: Include ctype.h, stdio.h and stdio_ext.h.
343 (_nis_default_nss_flags, default_nss): New variables.
344 (_nis_check_default_nss): New function.
345 * nis/nss_nis/nis-initgroups.c: Don't include stdio.h and
347 (check_default_nss, default_nss): Move to nss-nis.c.
349 (_nss_nis_initgroups_dyn): Use _nis_default_nss ().
350 * nis/nss_nis/nis-services.c (_nss_nis_getservbyname_r): If
351 NSS_FLAG_SERVICES_AUTHORITATIVE and services.byservicename lookup
352 fails, return immediately.
354 2004-04-01 Roland McGrath <roland@redhat.com>
356 * elf/tst-execstack.c (do_test): Make F static.
358 2004-04-01 Ulrich Drepper <drepper@redhat.com>
360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Use
361 __sigprocmask not sigprocmask.
362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
365 * include/string.h: Add libc_hidden_builtin_proto for memcmp.
366 * sysdeps/generic/memcmp.c: Add libc_hidden_builtin_def.
367 * sysdeps/i386/memcmp.S: Likewise.
368 * sysdeps/i386/i686/memcmp.S: Likewise.
369 * sysdeps/ia64/memcmp.S: Likewise.
370 * sysdeps/sparc/sparc64/memcmp.S: Likewise.
372 * sysdeps/unix/sysv/linux/sigprocmask.c: Include <string.h>.
373 * time/mktime.c: Likewise.
374 * misc/getpass.c: Likewise.
376 * time/difftime.c (__difftime): New renamed. Make old name alias.
377 Use __difftime in recursive call.
379 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Use
380 __tcgetattr() instead of tcgetattr().
382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S [SHARED]:
385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S [SHARED]: Use
388 * sysdeps/powerpc/fpu/bits/mathinline.h: Add __signbitf and
391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Use
392 __sigprocmask not sigprocmask.
393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
396 * elf/elf.h: Define more ppc64 specific dynamic tags.
398 2004-04-01 Jakub Jelinek <jakub@redhat.com>
400 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol
401 is NULL, instead of trying yp_match (name/tcp), yp_match (name/udp),
402 yp_all, try yp_match (name), yp_all.
404 2004-04-01 Ulrich Drepper <drepper@redhat.com>
406 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add handling for
407 ignored entries. Ignore AT_IGNOREPPC.
409 2004-03-31 Andreas Jaeger <aj@suse.de>
411 * libio/fileops.c (new_do_write): Return _IO_size_t to make 64-bit
414 2004-03-31 Ulrich Drepper <drepper@redhat.com>
416 * locale/programs/localedef.c (construct_output_path): Remove
417 remnants of CEN locale names.
419 2004-03-30 Thorsten Kukuk <kukuk@suse.de>
421 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Add IUTF8.
422 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
423 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
424 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
425 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
427 2004-03-30 Richard Henderson <rth@redhat.com>
429 * sysdeps/alpha/remqu.S: Detect power-of-two special case.
431 2004-03-30 Ulrich Drepper <drepper@redhat.com>
433 * sysdeps/generic/libc-start.c (LIBC_START_MAIN)
434 [HAVE_CLEANUP_JMP_BUF]: Call __nptl_deallocate_tsd.
436 2004-03-30 Jakub Jelinek <jakub@redhat.com>
438 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): If protocol
439 == NULL, try name/tcp and name/udp first before falling back into
440 the sequential scanning. Use services.byname database for
442 (_nss_nis_getservbyport_r): Likewise. Just allocate sizeof (int) * 3
445 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Convert
446 proto to host by order for snprintf.
448 2004-03-30 Ulrich Drepper <drepper@redhat.com>
450 * nss/getent.c (services_keys): Don't implement lookups with
451 missing protocol using getservent loop, just pass NULL.
453 * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Avoid
454 comparison with limit if we can rely on the syscall being available.
456 * nis/nss_nis/nis-initgroups.c: Implement getting the information
457 from the netid.byname map if the system administrator allows this.
458 * nis/Makefile (distribute): Add nss.
461 * grp/initgroups.c (initgroups): Limit the initial allocation to 64
462 entries to not allocate too much on systems with really high limits.
464 2004-03-30 Jakub Jelinek <jakub@redhat.com>
466 * nis/nss_nis/nis-service.c (struct search_t): New type.
467 (dosearch): New function.
468 (_nss_nis_getservbyname_r): Use it. Call yp_get_default_domain
470 (_nss_nis_getservbyport_r): Likewise.
472 2004-03-29 Alexandre Oliva <aoliva@redhat.com>
474 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Prepend GLIBC_ to
475 version names is SHLIB_COMPAT check.
476 * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
478 2004-03-29 Ulrich Drepper <drepper@redhat.com>
480 * nis/nss_nis/nis-rpc.c (saveit): Improve memory handling. No need to
481 allocate multiple blocks.
482 (internal_nis_endrpcent): Adjust accordingly.
483 * nis/nss_nis/nis-proto.c (saveit): Improve memory handling. No need
484 to allocate multiple blocks.
485 (internal_nis_endprotoent): Adjust accordingly.
486 * nis/nss_nis/nis-initgroups.c (saveit): Improve memory handling. No
487 need to allocate multiple blocks.
488 (_nss_nis_initgroups_dyn): Adjust accordingly.
489 * nis/nss_nis/nis-ethers.c (saveit): Improve memory handling. No need
490 to allocate multiple blocks.
491 (internal_nis_endetherent): Adjust accordingly.
492 * nis/nss_nis/nis-service.c (saveit): Improve memory handling. No need
493 to allocate multiple blocks.
494 (internal_nis_endservent): Adjust accordingly.
496 * nss/getXXbyYY_r.c: Return 0 for NSS_STATUS_NOTFOUND.
498 2004-03-26 Thorsten Kukuk <kukuk@suse.de>
500 * nis/nss_nis/nis-grp.c (_nss_nis_getgrnam_r): Don't
501 set errno if group does not exist.
503 2004-03-28 Ulrich Drepper <drepper@redhat.com>
505 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
508 2004-03-26 Ulrich Drepper <drepper@redhat.com>
510 * elf/dl-caller.c: New file.
511 * include/caller.h: New file.
512 * Makefile (distribute): Add include/caller.h.
513 * elf/Makefile (dl-routines): Add dl-caller.
514 * elf/dl-load.c (_dl_map_object_from_fd): Record l_text_end.
515 * elf/dl-open.c (check_libc_caller): Removed.
516 (dl_open_worker): Use __check_caller instead.
517 * elf/rtld.c (_rtld_global_ro): Initialize _dl_check_caller.
518 (_dl_start_final): Record l_text_end for ld.so map.
519 (dl_main): Record l_text_end for main object and vdso.
520 * include/link.h (struct link_map): Add l_text_end field.
521 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
522 _dl_check_caller field.
523 Define enum allowmask. Add declaration of _dl_check_caller.
524 * sysdeps/unix/sysv/linux/dl-execstack.c: Also use __check_caller test.
526 2004-03-26 Richard Henderson <rth@redhat.com>
528 * sysdeps/alpha/Makefile <gnulib> (sysdep_routines): Merge divrem
529 variable, add unsigned variants.
530 * sysdeps/alpha/divrem.h: Remove file.
531 * sysdeps/alpha/div_libc.h: New file.
532 * sysdeps/alpha/divl.S: Rewrite from scratch.
533 * sysdeps/alpha/reml.S: Likewise.
534 * sysdeps/alpha/divq.S: Likewise.
535 * sysdeps/alpha/remq.S: Likewise.
536 * sysdeps/alpha/divlu.S: New file.
537 * sysdeps/alpha/remlu.S: New file.
538 * sysdeps/alpha/divqu.S: New file.
539 * sysdeps/alpha/remqu.S: New file.
541 2004-03-26 Ulrich Drepper <drepper@redhat.com>
543 * elf/dl-open.c (check_libc_caller): Fix typo.
545 2004-03-26 Jakub Jelinek <jakub@redhat.com>
547 * elf/tst-dlmodcount.c: Include stddef.h and stdlib.h.
549 2003-03-25 Richard Henderson <rth@redhat.com>
551 * sysdeps/alpha/backtrace.c: New file.
553 2004-03-25 Ulrich Drepper <drepper@redhat.com>
555 * iconvdata/utf-7.c: Remove inline from isdirect, isxdirect, and
558 2004-03-25 Richard Henderson <rth@redhat.com>
560 * sysdeps/generic/strtol_l.c (__strtol_ul_max_tab,
561 __strtol_ull_max_tab, __strtol_ull_rem_tab, __strtol_ul_rem_tab,
562 cutoff_tab, cutlim_tab, jmax_tab): New.
563 (__strtol_l): Use them to avoid runtime division.
565 2004-03-24 Roland McGrath <roland@redhat.com>
567 * Makerules ($(common-objpfx)shlib.lds): Don't use \n in rhs of sed
568 substitutions; the semicolon terminators are enough for ld anyway.
570 * elf/dl-deps.c (_dl_map_object_deps): Use alloca instead of
571 dynamically sized auto array in function already using alloca.
572 * locale/programs/ld-ctype.c (ctype_output): Likewise.
573 * locale/programs/ld-time.c (time_output): Likewise.
574 * elf/dl-misc.c (_dl_debug_vdprintf): Use macro instead of const for
576 * locale/programs/charmap.c (charmap_read): Avoid alloca (or strdupa)
577 when also using dynamically-sized auto array.
578 * locale/programs/locfile.c (locfile_read): Likewise.
579 * locale/programs/repertoire.c (repertoire_read): Likewise.
580 * nis/nis_print_group_entry.c (nis_print_group_entry): Likewise.
581 * locale/programs/locarchive.c (enlarge_archive): Likewise.
582 * posix/annexc.c (check_header): Likewise.
584 * iconv/gconv_int.h (norm_add_slashes): Don't handle null SUFFIX.
585 strlen ("") gets optimized away just as well.
586 * intl/loadmsgcat.c (_nl_init_domain_conv): Update caller.
587 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
589 * Makefile ($(objpfx)c++-types-check.out): Reduce duplication in
590 defining this target. Also elide -Wstrict-prototypes from CFLAGS.
592 2004-03-24 Ulrich Drepper <drepper@redhat.com>
594 * stdio-common/vfscanf.c [!COMPILE_WSCANF] (TOLOWER): Cast first
595 parameter to unsigned char.
596 * sysdeps/generic/strcasestr.c [_LIBC] (TOLOWER): Likewise.
598 2004-03-24 Jakub Jelinek <jakub@redhat.com>
600 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Clear the rest of retval,
601 not just one limb if RETURN_LIMB_SIZE > 2. Fix shifting up if
602 RETURN_LIMB_SIZE > 2.
604 * stdio-common/printf_fp.c (__printf_fp): For IEEE quad long double
605 on 32-bit architectures reserve 8 limbs instead of 4.
607 2004-03-23 Jakub Jelinek <jakub@redhat.com>
609 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_pread, __NR_pwrite):
610 Define to __NR_p{read,write}64 if not defined.
611 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread,
612 __NR_pwrite): Define to __NR_p{read,write}64 if not defined instead
613 of defining it the other way around.
614 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Move common syscalls
615 for 64bit arches to sysdeps/unix/sysv/linux/wordsize-64/syscalls.list.
616 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
617 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
618 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
619 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
620 * sysdeps/unix/sysv/linux/alpha/pread64.c: Removed.
621 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Removed.
622 * sysdeps/unix/sysv/linux/alpha/glob64.c: Removed.
623 * sysdeps/unix/sysv/linux/alpha/truncate64.c: Removed.
624 * sysdeps/unix/sysv/linux/alpha/xstat64.c: Removed.
625 * sysdeps/unix/sysv/linux/alpha/pwrite64.c: Removed.
626 * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: Removed.
627 * sysdeps/unix/sysv/linux/alpha/mmap64.c: Removed.
628 * sysdeps/unix/sysv/linux/alpha/fxstat64.c: Removed.
629 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Removed.
630 * sysdeps/unix/sysv/linux/alpha/ftruncate64.c: Removed.
631 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: Removed.
632 * sysdeps/unix/sysv/linux/alpha/lxstat64.c: Removed.
633 * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: Removed.
634 * sysdeps/unix/sysv/linux/alpha/statfs64.c: Removed.
635 * sysdeps/unix/sysv/linux/alpha/fstatfs64.c: Removed.
636 * sysdeps/unix/sysv/linux/s390/s390-64/pread64.c: Removed.
637 * sysdeps/unix/sysv/linux/s390/s390-64/getrlimit64.c: Removed.
638 * sysdeps/unix/sysv/linux/s390/s390-64/glob64.c: Removed.
639 * sysdeps/unix/sysv/linux/s390/s390-64/readdir64_r.c: Removed.
640 * sysdeps/unix/sysv/linux/s390/s390-64/truncate64.c: Removed.
641 * sysdeps/unix/sysv/linux/s390/s390-64/xstat64.c: Removed.
642 * sysdeps/unix/sysv/linux/s390/s390-64/pwrite64.c: Removed.
643 * sysdeps/unix/sysv/linux/s390/s390-64/getdents64.c: Removed.
644 * sysdeps/unix/sysv/linux/s390/s390-64/readdir_r.c: Removed.
645 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Removed.
646 * sysdeps/unix/sysv/linux/s390/s390-64/readdir.c: Removed.
647 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: Removed.
648 * sysdeps/unix/sysv/linux/s390/s390-64/mmap64.c: Removed.
649 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Removed.
650 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat64.c: Removed.
651 * sysdeps/unix/sysv/linux/s390/s390-64/setrlimit64.c: Removed.
652 * sysdeps/unix/sysv/linux/s390/s390-64/ftruncate64.c: Removed.
653 * sysdeps/unix/sysv/linux/s390/s390-64/getdents.c: Removed.
654 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat64.c: Removed.
655 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: Removed.
656 * sysdeps/unix/sysv/linux/s390/s390-64/readdir64.c: Removed.
657 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Removed.
658 * sysdeps/unix/sysv/linux/s390/s390-64/statfs64.c: Removed.
659 * sysdeps/unix/sysv/linux/s390/s390-64/fstatfs64.c: Removed.
660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: Removed.
661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: Removed.
662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: Removed.
663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: Removed.
664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: Removed.
665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: Removed.
666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: Removed.
667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: Removed.
668 * sysdeps/unix/sysv/linux/sparc/sparc64/pread64.c: Removed.
669 * sysdeps/unix/sysv/linux/sparc/sparc64/getrlimit64.c: Removed.
670 * sysdeps/unix/sysv/linux/sparc/sparc64/glob64.c: Removed.
671 * sysdeps/unix/sysv/linux/sparc/sparc64/readdir64_r.c: Removed.
672 * sysdeps/unix/sysv/linux/sparc/sparc64/truncate64.c: Removed.
673 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat64.c: Removed.
674 * sysdeps/unix/sysv/linux/sparc/sparc64/pwrite64.c: Removed.
675 * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: Removed.
676 * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Removed.
677 * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Removed.
678 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: Removed.
679 * sysdeps/unix/sysv/linux/sparc/sparc64/mmap64.c: Removed.
680 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat64.c: Removed.
681 * sysdeps/unix/sysv/linux/sparc/sparc64/setrlimit64.c: Removed.
682 * sysdeps/unix/sysv/linux/sparc/sparc64/ftruncate64.c: Removed.
683 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: Removed.
684 * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: Removed.
685 * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat64.c: Removed.
686 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: Removed.
687 * sysdeps/unix/sysv/linux/sparc/sparc64/readdir64.c: Removed.
688 * sysdeps/unix/sysv/linux/sparc/sparc64/statfs64.c: Removed.
689 * sysdeps/unix/sysv/linux/sparc/sparc64/fstatfs64.c: Removed.
690 * sysdeps/unix/sysv/linux/ia64/pread64.c: Removed.
691 * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: Removed.
692 * sysdeps/unix/sysv/linux/ia64/glob64.c: Removed.
693 * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: Removed.
694 * sysdeps/unix/sysv/linux/ia64/truncate64.c: Removed.
695 * sysdeps/unix/sysv/linux/ia64/xstat64.c: Removed.
696 * sysdeps/unix/sysv/linux/ia64/pwrite64.c: Removed.
697 * sysdeps/unix/sysv/linux/ia64/getdents64.c: Removed.
698 * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Removed.
699 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Removed.
700 * sysdeps/unix/sysv/linux/ia64/readdir.c: Removed.
701 * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: Removed.
702 * sysdeps/unix/sysv/linux/ia64/mmap64.c: Removed.
703 * sysdeps/unix/sysv/linux/ia64/xstat.c: Removed.
704 * sysdeps/unix/sysv/linux/ia64/fxstat64.c: Removed.
705 * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: Removed.
706 * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: Removed.
707 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: Removed.
708 * sysdeps/unix/sysv/linux/ia64/getdents.c: Removed.
709 * sysdeps/unix/sysv/linux/ia64/lxstat64.c: Removed.
710 * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: Removed.
711 * sysdeps/unix/sysv/linux/ia64/readdir64.c: Removed.
712 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Removed.
713 * sysdeps/unix/sysv/linux/ia64/statfs64.c: Removed.
714 * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: Removed.
715 * sysdeps/unix/sysv/linux/x86_64/pread64.c: Removed.
716 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: Removed.
717 * sysdeps/unix/sysv/linux/x86_64/glob64.c: Removed.
718 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: Removed.
719 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: Removed.
720 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: Removed.
721 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: Removed.
722 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: Removed.
723 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: Removed.
724 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: Removed.
725 * sysdeps/unix/sysv/linux/x86_64/readdir.c: Removed.
726 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: Removed.
727 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: Removed.
728 * sysdeps/unix/sysv/linux/x86_64/xstat.c: Removed.
729 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: Removed.
730 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: Removed.
731 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: Removed.
732 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: Removed.
733 * sysdeps/unix/sysv/linux/x86_64/getdents.c: Removed.
734 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: Removed.
735 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: Removed.
736 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: Removed.
737 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: Removed.
738 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: Removed.
739 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: Removed.
740 * sysdeps/unix/sysv/linux/alpha/Implies: New file.
741 * sysdeps/unix/sysv/linux/alpha/getdents64.c: New file.
742 * sysdeps/unix/sysv/linux/s390/s390-64/Implies: New file.
743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Implies: New file.
744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
745 * sysdeps/unix/sysv/linux/sparc/sparc64/Implies: New file.
746 * sysdeps/unix/sysv/linux/sparc/sparc64/lxstat.c: New file.
747 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: New file.
748 * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: New file.
749 * sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c: New file.
750 * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c: New file.
751 * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: New file.
752 * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c: New file.
753 * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: New file.
754 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
755 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: New file.
756 * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: New file.
757 * sysdeps/unix/sysv/linux/wordsize-64/xstat64.c: New file.
758 * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: New file.
759 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: New file.
760 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: New file.
761 * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: New file.
762 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: New file.
763 * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: New file.
764 * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: New file.
765 * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: New file.
766 * sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c: New file.
767 * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: New file.
768 * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: New file.
769 * sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c: New file.
770 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: New file.
771 * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c: New file.
772 * sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c: New file.
773 * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: New file.
774 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: New file.
775 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: New file.
776 * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: New file.
777 * sysdeps/unix/sysv/linux/wordsize-64/statfs64.c: New file.
778 * sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c: New file.
779 * sysdeps/unix/sysv/linux/ia64/Implies: New file.
780 * sysdeps/unix/sysv/linux/x86_64/Implies: New file.
782 2004-03-22 Richard Henderson <rth@redhat.com>
784 * sysdeps/alpha/s_fabs.S: Remove file.
785 * sysdeps/alpha/s_copysign.S: Remove file.
787 2004-03-22 Jakub Jelinek <jakub@redhat.com>
789 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c
790 (__getpagesize): Avoid warning about writing into read-only memory.
792 * string/Makefile (routines): Add xpg-strerror.
793 * string/string.h (strerror_r): If __USE_XOPEN2K but not __USE_GNU,
794 redirect strerror_r to __xpg_strerror_r.
795 * string/Versions (libc): Add __xpg_strerror_r@@GLIBC_2.3.4.
796 * sysdeps/generic/xpg-strerror.c: New file.
797 * sysdeps/mach/xpg-strerror.c: New file.
799 2004-03-22 Joseph S. Myers <jsm@polyomino.org.uk>
801 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): Do not use
804 2004-03-22 Andreas Jaeger <aj@suse.de>
806 * elf/tst-dlmodcount.c (unload): Remove unused variable.
808 * misc/tst-mntent.c (main): Use tmpfile instead of tmpnam.
810 2004-03-20 Roland McGrath <roland@frob.com>
812 * sysdeps/mach/hurd/dl-execstack.c: New file.
814 2004-03-20 Ulrich Drepper <drepper@redhat.com>
816 * po/ca.po: Update from translation team.
818 2004-03-20 Andreas Jaeger <aj@suse.de>
820 * sysdeps/unix/sysv/linux/sched_getaffinity.c
821 (__sched_getaffinity_old): Fix interface.
822 * sysdeps/unix/sysv/linux/sched_setaffinity.c
823 (__sched_setaffinity_old): Likewise.
825 * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include <alloca.h>.
827 2004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
829 * sysdeps/unix/sysv/linux/kernel-features.h
830 (__ASSUME_CLONE_THREAD_FLAGS ): Define for newer SH kernel.
831 (__ASSUME_TGKILL, __ASSUME_UTIMES): Likewise.
832 * sysdeps/unix/sysv/linux/sh/socket.S: Add unwind information.
834 2004-03-19 Ulrich Drepper <drepper@redhat.com>
836 * time/tzfile.c (__tzfile_default): Correct setting of rule_stdoff
837 and rule_dstoff after reading the posixrules file.
839 2004-03-18 Ulrich Drepper <drepper@redhat.com>
841 * malloc/malloc.c (__posix_memalign): Correct alignment check.
842 Reported by Don Heller <dheller@cse.psu.edu>.
844 2004-03-18 Jakub Jelinek <jakub@redhat.com>
846 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Remove hwcap
847 variable and weak_extern for _dl_hwcap.
848 (_DL_HWCAP_TLS_MASK): Define.
849 (HWCAP_CHECK): Fix checking of non-platform hwcap bits. Use
850 lib->osversion instead of cache_new->libs[middle].osversion.
852 * stdio-common/asprintf.c: Remove USE_IN_LIBIO conditionals.
853 * stdio-common/dprintf.c: Likewise.
854 * stdio-common/fprintf.c: Likewise.
855 * stdio-common/getline.c: Likewise.
856 * stdio-common/getw.c: Likewise.
857 * stdio-common/perror.c: Likewise.
858 * stdio-common/printf-prs.c: Likewise.
859 * stdio-common/printf.c: Likewise.
860 * stdio-common/printf_size.c: Likewise.
861 * stdio-common/psignal.c: Likewise.
862 * stdio-common/putw.c: Likewise.
863 * stdio-common/scanf.c: Likewise.
864 * stdio-common/snprintf.c: Likewise.
865 * stdio-common/sprintf.c: Likewise.
866 * stdio-common/sscanf.c: Likewise.
867 * stdio-common/tstgetln.c: Likewise.
868 * stdio-common/vfprintf.c: Likewise.
870 2004-03-18 Paul Eggert <eggert@cs.ucla.edu>
872 * posix/getopt.h (__GNUC_PREREQ) [!defined __THROW]: Define
873 if not defined, fixing a typo (it used to be defined if
874 __GNUC__ was not defined).
876 2004-03-18 Ulrich Drepper <drepper@redhat.com>
878 * posix/sched.h: Change sched_getaffinity and sched_setaffinity
879 interfaces: add new second parameter.
880 * sysdeps/generic/sched_getaffinity.c: Implement interface change.
881 * sysdeps/generic/sched_setaffinity.c: Likewise.
882 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise. Add
883 compatibility interface.
884 * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
885 * sysdeps/unix/sysv/linux/Versions: Add versions for changed
888 2004-03-18 Roland McGrath <roland@redhat.com>
890 * manual/Makefile (stamp-summary): Use -k option to sort,
891 not traditional key selection syntax.
892 Reported by Jim Gifford <giffordj@linkline.com>.
894 2004-03-18 Jakub Jelinek <jakub@redhat.com>
896 * elf/ldconfig.c: Include stdbool.h.
898 2004-03-18 Roland McGrath <roland@redhat.com>
900 * elf/ldconfig.c (parse_conf_include): New function.
901 (parse_conf): Call it to parse lines starting with "include".
902 Remaining words are glob patterns for more config files to read.
903 Take additional bool argument to disable opt_chroot processing.
904 (main): Update caller.
906 2004-03-17 Ulrich Drepper <drepper@redhat.com>
908 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_iopl): Match EPERM error
909 the x86 code produces in case of mission permissions.
910 Patch by Bernd Schmidt <bernds@redhat.com>.
912 * resolv/netdb.h: Define AI_IDN_ALLOW_UNASSIGNED,
913 AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED, and
914 NI_IDN_USE_STD3_ASCII_RULES.
915 * inet/getnameinfo.c (getnameinfo): Implement handling of
916 NI_IDN_ALLOW_UNASSIGNED and NI_IDN_USE_STD3_ASCII_RULES.
917 * sysdeps/posix/getaddrinfo.c (gaih_inet): Implement handling of
918 AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES.
920 2004-03-17 Jakub Jelinek <jakub@redhat.com>
922 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW): Make asm volatile.
924 2004-03-16 Jakub Jelinek <jakub@redhat.com>
926 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Spelling.
927 (JB_SIZE): Undefine before including __longjmp-common.S again.
928 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Spelling.
929 (JB_SIZE): Undefine before including setjmp-common.S again.
930 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Spelling.
931 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Spelling.
932 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Spelling.
933 * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Spelling.
934 * sysdeps/powerpc/sigjmp.c: Spelling.
936 2004-03-16 Ulrich Drepper <drepper@redhat.com>
938 * include/ctype.h: For libc, define isdigit, isdigit_l, and
939 __isdigit_l as simple comparison macros.
940 * include/wctype.h: For libc, define iswdigit, iswdigit_l, and
941 __iswdigit_l as simple comparison macros.
942 * wctype/wcfuncs_l.c: #undef iswdigit and __iswdigit.
944 2004-03-15 Ulrich Drepper <drepper@redhat.com>
946 * sysdeps/sparc/fpu/bits/mathinline.h: Restore missing #ifdef.
947 Patch by Richard Henderson.
949 2004-03-16 Jakub Jelinek <jakub@redhat.com>
951 * sysdeps/generic/strtold_l.c (STRING_TYPE, STRTOLD, __STRTOLD,
952 __STRTOD, INTERNAL, INTERNAL1): Define, use them.
953 [! USE_WIDE_CHAR] (INTERNAL (__STRTOLD)): Add libc_hidden_def.
955 * inet/getnameinfo.c: Include stdlib.h.
957 2004-03-15 Richard Henderson <rth@redhat.com>
959 * math/Makefile (headers): Add bits/huge_valf.h, bits/huge_vall.h,
961 * math/math.h: Include them.
963 * sysdeps/alpha/fpu/bits/mathdef.h: Remove INFINITY.
964 * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
965 * sysdeps/generic/bits/mathdef.h: Likewise.
966 * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
967 * sysdeps/ia64/fpu/bits/mathdef.h: Likewise.
968 * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
969 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
970 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
971 * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise.
972 * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
973 * sysdeps/x86_64/fpu/bits/mathdef.h: Likewise.
975 * sysdeps/arm/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
976 (HUGE_VALF, HUGE_VALL): Remove.
977 * sysdeps/ieee754/bits/huge_val.h: Likewise.
978 * sysdeps/sh/bits/huge_val.h: Likewise.
980 * sysdeps/generic/bits/huge_val.h (HUGE_VAL): Use __builtin_huge_val.
981 * sysdeps/generic/bits/huge_valf.h: New file.
982 * sysdeps/generic/bits/huge_vall.h: New file.
983 * sysdeps/generic/bits/inf.h: New file.
984 * sysdeps/ieee754/bits/huge_valf.h: New file.
985 * sysdeps/ieee754/bits/inf.h: New file.
986 * sysdeps/i386/bits/huge_val.h: Remove file.
987 * sysdeps/i386/bits/huge_vall.h: New file.
988 * sysdeps/ia64/bits/huge_val.h: Remove file.
989 * sysdeps/ia64/bits/huge_vall.h: New file.
990 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: New file.
991 * sysdeps/m68k/bits/huge_val.h: Remove file.
992 * sysdeps/m68k/bits/huge_vall.h: New file.
993 * sysdeps/s390/bits/huge_val.h: Remove file.
994 * sysdeps/sh/sh4/fpu/bits/huge_val.h: Remove file.
995 * sysdeps/sparc/bits/huge_vall.h: New file.
996 * sysdeps/sparc/sparc32/fpu/bits/huge_val.h: Remove file.
997 * sysdeps/sparc/sparc64/fpu/bits/huge_val.h: Remove file.
999 * sysdeps/ieee754/bits/nan.h (NAN): Use __builtin_nanf.
1000 * sysdeps/mips/bits/nan.h (NAN): Likewise.
1002 2004-03-15 Ulrich Drepper <drepper@redhat.com>
1004 * iconv/gconv_simple.c (__gconv_transform_utf8_internal): Use only
1005 one copy of error handling code.
1007 * stdio-common/vfscanf.c: Simplify error handling macros. Use
1008 direct locale access functions.
1010 * sysdeps/generic/strcasestr.c (__strcasestr): Optimize use of
1013 2004-03-13 Jakub Jelinek <jakub@redhat.com>
1015 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add const.
1016 (handle_amd): New function.
1017 (__sysconf): Handle _SC_LEVEL4_CACHE_LINESIZE here, not in
1018 linux_sysconf. Call handle_amd on AuthenticAMD.
1019 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Likewise.
1021 2004-03-14 Ulrich Drepper <drepper@redhat.com>
1023 * wcsmbs/mbsrtowcs.c: Just a wrapper around __mbsrtowcs_l.
1024 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add real implementation here.
1026 Make the non-_l functions wrappers around the _l functions.
1027 * include/monetary.h: Declare __vstrmon_l.
1028 * include/string.h: Add libc_hidden_proto for __strcoll_l and
1030 * include/time.h: Define ptime_locale_status. Declare
1031 __strptime_internal.
1032 * include/wchar.h: Add libc_hidden_proto for __wcscoll_l and
1034 * stdlib/strfmon.c: Move the code to strfmon_l.c. Add little
1035 wrapper around __vstrfmon_l.
1036 * stdlib/strfmon_l.c: Add real implementation. Split into new
1037 function __vstrfmon_l to allow calling it from strfmon.
1038 * stdlib/strtod.c: Move real code to strtod_l.c and add wrapper.
1039 * stdlib/strtod_l.c: Add real implementation.
1040 * stdlib/strtof.c: Adjust to changed strtod.c.
1041 * stdlib/strtof_l.c: Include strtod_l.c now.
1042 * stdlib/strtold.c: New file.
1043 * stdlib/strtold_l.c: Removed.
1044 * string/strcoll.c: Move real code to strcoll_l.c: Add wrapper.
1045 * string/strcoll_l.c: Add real implementation.
1046 * string/strxfrm.c: Move real code to strxfrm_l.c: Add wrapper.
1047 * string/strxfrm_l.c: Add real implementation.
1048 * sysdeps/generic/strtol.c: Move real implementation to strtol_l.c.
1050 * sysdeps/generic/strtol_l.c: Add real implementation.
1051 * sysdeps/generic/strtold.c: Removed.
1052 * sysdeps/generic/strtold_l.c: New file.
1053 * sysdeps/generic/strtoll_l.c: Include strtol_l.c now. Adjust
1055 * sysdeps/generic/strtoul_l.c: Likewise.
1056 * sysdeps/generic/strtoull_l.c: Likewise.
1057 * sysdeps/generic/wcstol_l.c: Likewise.
1058 * sysdeps/generic/wcstoll_l.c: Likewise.
1059 * sysdeps/generic/wcstoul_l.c: Likewise.
1060 * sysdeps/generic/wcstoull_l.c: Likewise.
1061 * sysdeps/ieee754/ldbl-128/strtold.c: Removed.
1062 * sysdeps/ieee754/ldbl-128/strtold_l.c: New file.
1063 * sysdeps/ieee754/ldbl-96/strtold.c: Removed.
1064 * sysdeps/ieee754/ldbl-96/strtold_l.c: New file.
1065 * sysdeps/m68k/strtold.c: Removed.
1066 * sysdeps/m68k/strtold_l.c: New file.
1067 * time/strftime.c: Move real code to strftime_l.c. Add wrapper.
1068 * time/strftime_l.c: Add real implementation.
1069 * time/strptime.c: Move real code to strptime_l.c. Add wrapper.
1070 * time/strptime_l.c: Add real implementation.
1071 * time/wcsftime.c: Simplify since only wrappers are defined in
1073 * time/wcsftime_l.c: Include strftime_l.c.
1074 * wcsmbs/wcscoll.c: Simplify since the file is not used by wcscoll_l.c
1076 * wcsmbs/wcscoll_l.c: Include strcoll_l.c.
1077 * wcsmbs/wcsxfrm.c: Simplify since the file is not used by wcsxfrm_l.c
1079 * wcsmbs/wcsxfrm_l.c: Include strxfrm_l.c.
1080 * wcsmbs/wcstod.c: Prepare to include new strtod.c.
1081 * wcsmbs/wcstod_l.c: Include strtod_l.c.
1082 * wcsmbs/wcstof.c: Prepare to include new strtof.c.
1083 * wcsmbs/wcstof_l.c: Include strtof_l.c.
1084 * wcsmbs/wcstold.c: Prepare to include new strtold.c.
1085 * wcsmbs/wcstold_l.c: Include strtold_l.c.
1087 * locale/uselocale.c: Use _NL_CURRENT_LOCALE instead of __libc_tsd_get.
1089 * sysdeps/generic/strcasecmp.c: Optimize a bit. It's better to get
1090 a reference to the current locale and then use the _l functions.
1091 * sysdeps/generic/strncase.c: Likewise.
1093 2004-03-11 Jeroen Dekkers <jeroen@dekkers.cx>
1095 * cppflags-iterator.mk: Change libof-$(cpp-src) to
1096 libof-$(notdir $(cpp-src)).
1098 2004-03-13 Ulrich Drepper <drepper@redhat.com>
1100 * resolv/netdb.h (EAI_OVERFLOW): Define.
1102 * inet/getnameinfo.c (getnameinfo): Return error in case argument
1103 buffers overflow. Implement NI_IDN.
1105 2004-03-12 Ulrich Drepper <drepper@redhat.com>
1107 * resolv/netdb.h: Define AI_CANONIDN.
1108 * sysdeps/posix/getaddrinfo.c: Implement AI_CANONIDN.
1110 2004-03-12 Richard Henderson <rth@redhat.com>
1112 * sysdeps/unix/sysv/linux/alpha/select.S: Fix unwind. Propagate
1113 oldvalue from CENABLE to CDISABLE.
1115 2004-03-12 Ulrich Drepper <drepper@redhat.com>
1117 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file.
1119 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX.
1121 * posix/getconf.c (vars): Add _SC_ values for cache information.
1122 * sysdeps/generic/bits/confname.h: Add _SC_* values for cache
1124 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Reorganize to
1125 allow yet another sysconf function to include the one in this file.
1126 * sysdeps/unix/sysv/linux/i386/sysconf.c: New file.
1127 * sysdeps/generic/sysconf.c: Add default handling for cache line info.
1129 2004-03-11 Ulrich Drepper <drepper@redhat.com>
1131 * sysdeps/posix/sysconf.c (__sysconf): Add missing support for
1134 2004-03-10 Chris Heath <chris@heathens.co.nz>
1136 * iconvdata/gconv.map: Add gconv_end (fixes memory leak).
1138 2004-03-11 Jakub Jelinek <jakub@redhat.com>
1140 * sysdeps/powerpc/powerpc32/__longjmp.S (JB_SIZE): Undefine before
1141 including __longjmp-common.S again.
1142 * sysdeps/powerpc/powerpc64/__longjmp.S (JB_SIZE): Likewise.
1143 * sysdeps/powerpc/powerpc32/setjmp.S (JB_SIZE): Undefine before
1144 including setjmp-common.S again.
1145 * sysdeps/powerpc/powerpc64/setjmp.S (JB_SIZE): Likewise.
1146 * sysdeps/powerpc/novmxsetjmp.h (__novmx__longjmp): Fix type of
1147 first argument in the prototype.
1148 * sysdeps/powerpc/longjmp.c (__vmx__longjmp, __vmx__libc_longjmp):
1149 Remove bogus semicolons.
1151 * sysdeps/s390/dl-tls.h: Only add __tls_get_offset assembly if
1153 (__TLS_GET_ADDR): Use __tls_get_offset, not __tls_get_addr.
1155 2004-03-11 Ulrich Drepper <drepper@redhat.com>
1157 * resolv/ns_ttl.c: Don't add ns_parse_ttl for libresolv.so.
1159 2004-03-10 Ulrich Drepper <drepper@redhat.com>
1161 * sysdeps/generic/errno.c: Include <dl-sysdep.h>. Use
1162 RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed.
1164 * elf/dl-sym.c: Unify _dl_sym and _dl_vsym code and make the entry
1165 points wrappers around the unified code.
1167 2004-03-11 Richard Henderson <rth@redhat.com>
1169 * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (kernel_stat64): New.
1170 (glibc21_stat): New.
1171 * sysdeps/unix/sysv/linux/alpha/fxstat.c: New file.
1172 * sysdeps/unix/sysv/linux/alpha/lxstat.c: New file.
1173 * sysdeps/unix/sysv/linux/alpha/xstat.c: New file.
1174 * sysdeps/unix/sysv/linux/alpha/xstatconv.c (__xstat_conv): Add
1175 code for _STAT_VER_GLIBC2_3_4.
1176 (__libc_missing_axp_stat64): New.
1177 * sysdeps/unix/sysv/linux/alpha/xstatconv.h: New file.
1178 * sysdeps/unix/sysv/linux/alpha/bits/stat.h (__ST_TIME): New.
1179 (_STAT_VER_GLIBC2_3_4, _STAT_VER_KERNEL64): New.
1180 (struct stat, struct stat64): Update to new format.
1181 (_STATBUF_ST_NSEC): New.
1183 2004-03-11 Jakub Jelinek <jakub@redhat.com>
1185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1186 (__novec_swapcontext): Branch to novec_* labels.
1188 2004-03-10 Ulrich Drepper <drepper@redhat.com>
1190 * posix/getopt.c (_): Don't define here for glibc.
1192 2004-03-10 Jakub Jelinek <jakub@redhat.com>
1194 * include/libc-symbols.h [__ASSEMBLY__] (compat_text_section,
1195 compat_data_section): Define.
1196 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): Add
1197 attribute_compat_text_section.
1198 * sysdeps/unix/sysv/linux/alpha/wordexp.c (__old_wordexp): Likewise.
1199 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob,
1200 __old_globfree): Likewise.
1201 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown_is_lchown):
1203 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c
1204 (__posix_fadvise64_l32): Likewise.
1205 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Likewise.
1206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c
1207 (__posix_fadvise64_l32): Likewise.
1208 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (__old_semctl):
1210 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl): Likewise.
1211 * sysdeps/unix/sysv/linux/posix_fadvise64.c (__posix_fadvise64_l32):
1213 * sysdeps/unix/sysv/linux/shmctl.c (__old_shmctl): Likewise.
1214 * hurd/compat-20.c (_hurd_proc_init_compat_20): Likewise.
1215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1216 (__swapcontext, __novec_swapcontext): Use END instead of PSEUDO_END.
1217 (__novec_swapcontext, __swapcontext_stub): Add compat_text_section.
1218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
1219 (__makecontext_stub): Likewise.
1220 (__novec_makecontext): Likewise. Fix name in END () to match
1222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1223 (__setcontext): Use END instead of PSEUDO_END.
1224 (__novec_setcontext): Add compat_text_section. Use END instead of
1225 PSEUDO_END, fix the name in END () to match function name.
1226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1227 (__getcontext, __novec_getcontext): Use END instead of PSEUDO_END.
1228 (__novec_getcontext, __getcontext_stub): Add compat_text_section.
1230 2004-03-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1232 * sysdeps/sh/dl-machine.h: Don't use GL macro if not appropriate.
1233 (COPY_UNALIGNED_WORD): Remove cast used as lvalue.
1235 2004-03-10 Ulrich Drepper <drepper@redhat.com>
1237 * sysdeps/i386/dl-procinfo.h (HWCAP_IMPORTANT): Remove mmx, add sse2.
1239 2004-03-10 Richard Henderson <rth@redhat.com>
1241 * sysdeps/generic/errno.c: Disable versioning for rtld.
1243 * sysdeps/generic/Makefile (elf/shared): Add unwind-pe.
1244 * sysdeps/generic/unwind-pe.c: New file.
1245 * sysdeps/generic/unwind-pe.h: Only prototypes for _LIBC without
1248 2004-03-10 Ulrich Drepper <drepper@redhat.com>
1250 * include/libc-symbols.h: Define attribute_compat_text_section and
1251 attribute_compat_data_section.
1252 * io/ftw.c: Mark compat code with attribute_compat_text_section.
1253 * libio/iofopncook.c: Likewise.
1254 * libio/oldfileops.c: Likewise.
1255 * libio/oldiofclose.c: Likewise.
1256 * libio/oldiofdopen.c: Likewise.
1257 * libio/oldiofgetpos.c: Likewise.
1258 * libio/oldiofgetpos64.c: Likewise.
1259 * libio/oldiofopen.c: Likewise.
1260 * libio/oldiofsetpos.c: Likewise.
1261 * libio/oldiofsetpos64.c: Likewise.
1262 * libio/oldiopopen.c: Likewise.
1263 * libio/oldpclose.c: Likewise.
1264 * libio/oldtmpfile.c: Likewise.
1265 * nptl/forward.c: Likewise.
1266 * nss/getXXbyYY_r.c: Likewise.
1267 * nss/getXXent_r.c: Likewise.
1268 * posix/tst-vfork1.c: Likewise.
1269 * stdlib/canonicalize.c: Likewise.
1270 * stdlib/old_atexit.c: Likewise.
1271 * sysdeps/generic/glob.c: Likewise.
1272 * sysdeps/posix/posix_fallocate64.c: Likewise.
1273 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1274 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
1275 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
1276 * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
1277 * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1278 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
1279 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1280 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1281 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
1282 * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
1283 * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
1284 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1285 * posix/regexec.c: Likewise.
1287 * sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4
1288 should be the default symbol. Having none misses the point.
1290 2004-03-09 Ulrich Drepper <drepper@redhat.com>
1292 * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16].
1294 2004-03-05 Jakub Jelinek <jakub@redhat.com>
1296 * posix/regexec.c (regexec): Return with error on unknown eflags.
1297 Replace weak_alias with versioned_symbol.
1298 (__compat_regexec): New.
1299 * posix/Versions (libc): Add regexec@GLIBC_2.3.4.
1301 2004-03-09 Richard Henderson <rth@redhat.com>
1303 * math/math.h (isgreater, isgreaterequal, isless, islessequal,
1304 islessgreater, isunordered): Use builtins if available.
1305 * sysdeps/i386/fpu/bits/mathinline.h: Don't define via builtins.
1306 * sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
1307 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1308 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1309 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1310 * sysdeps/alpha/fpu/bits/mathinline.h (isgreater, isgreaterequal,
1311 isless, islessequal, islessgreater): Remove; use default.
1312 (isunordered): Convert inputs to double.
1314 2004-02-09 Jakub Jelinek <jakub@redhat.com>
1316 * posix/Makefile (tests): Add tst-vfork2.
1317 * posix/tst-vfork1.c (do_test): Fix comment.
1318 * posix/tst-vfork2.c: New test.
1320 2004-03-09 Ulrich Drepper <drepper@redhat.com>
1322 * elf/dl-lookup.c (_dl_lookup_symbol_x): Fix possible NULL pointer
1323 derefernce in error message. Pretty printing.
1325 * po/nl.po: Update from translation team.
1327 2004-03-08 Andreas Schwab <schwab@suse.de>
1329 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't truncate
1330 sysinfo pointer value.
1332 2004-03-08 Paul Eggert <eggert@cs.ucla.edu>
1334 Merge from gnulib. We now assume C89 or better.
1335 * posix/getopt1.c (const): Remove.
1336 * posix/getopt.c (const): Likewise.
1337 * posix/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
1338 _getopt_long_only_r, main): Use prototypes, not old-style definitions.
1339 * posix/getopt.c (exchange, _getopt_initialize, _getopt_internal_r,
1340 _getopt_internal, getopt, main): Likewise.
1341 * posix/getopt.h (getopt, getopt_long, getopt_long_only): Likewise.
1342 * posix/getopt.c [!defined VMS || !HAVE_STRING_H]:
1343 Include <string.h> regardless. No need for <strings.h>.
1344 [!defined _LIBC]: Include "gettext.h" rather than rolling it ourselves.
1345 (_): Define to gettext always.
1346 (my_index): Remove: all uses changed to strchr.
1347 (strlen): Remove declaration.
1348 * posix/getopt.h (struct option.name): Always const char *.
1350 2004-03-08 Marcus Brinkmann <marcus@gnu.org>
1352 * posix/getopt.h (_getopt_internal): Move to ...
1353 * posix/getopt_int.h: ... here. New file.
1354 * include/getopt_int.h: New file.
1355 * include/getopt.h: Remove libc_hidden_proto for getopt_long
1356 and getopt_long_only.
1357 * posix/getopt1.c: Include "getopt_int.h". Remove
1358 libc_hidden_def for getopt_long and getopt_long_only.
1359 (_getopt_long_r, _getopt_long_only_r): New functions.
1360 * posix/getopt.c: Include "getopt_int.h".
1361 (__getopt_initialized): Variable removed.
1362 (nextchar, ordering, posixly_correct, first_nonopt, last_nonopt):
1363 Static variables removed.
1364 (nonoption_flags_max_len, nonoption_flags_len) [_LIBC &&
1365 USE_NONOPTION_FLAGS]: Static variables removed.
1366 (getopt_data): New static variable.
1367 (SWAP_FLAGS): Use d->__nonoption_flags_len instead
1368 nonoption_flags_len.
1369 (exchange): Add new argument D of type struct getopt_data *.
1370 Replace optind with d->optind, optarg with d->optarg, opterr with
1371 d->opterr, optopt with d->optopt, nextchar with d->__nextchar,
1372 first_nonopt with d->__first_nonopt, last_nonopt with
1373 d->__last_nonopt, d->ordering with d->__ordering,
1374 d->posixly_correct with d->__posixly_correct (which is now an
1375 int instead a string, so fix users), nonoption_flags_len
1376 with d->__nonoption_flags_len, nonoption_flags_max_len with
1377 d->__nonoption_flags_max_len.
1378 (_getopt_initialize): Likewise.
1379 (_getopt_internal): Rename to ...
1380 (_getopt_internal_r): ... this. Also add new argument D of type
1381 struct getopt_data * and use of members of D rather than global or
1382 static variables as described for exchange() above. Add new argument
1383 to invocations of _getopt_initialize and exchange.
1384 (_getopt_internal): Reimplement in terms of _getopt_internal_r.
1385 * argp/argp-parse.c: Include <getopt_int.h>.
1386 [_LIBC]: Do not include <bits/libc-lock.h>.
1387 [!_LIBC && HAVE_CTHREADS_H]: Do not include <cthreads.h>.
1388 [!_LIBC] (_argp_hang): Make static.
1389 (getopt_lock, LOCK_GETOPT, UNLOCK_GETOPT): Remove.
1390 (_argp_unlock_xxx): Remove.
1391 (parser_init): Do not use LOCK_GETOPT.
1392 (parser_finalize): Do not use UNLOCK_GETOPT.
1393 (struct parser): New member OPT_DATA.
1394 (parser_init): Initialize parser->opt_data. Use
1395 parser->opt_data.opterr instead of opterr.
1396 (parser_parse_opt): Use parser->opt_data.optarg instead optarg.
1397 (parser_parse_next): Likewise. Use parser->opt_data.optind
1398 instead optind. Use parser->opt_data.optopt instead of optopt.
1399 Call _getopt_long_only_r and _getopt_long_r instead of
1400 getopt_long_only and getopt_long, and pass the extra argument.
1402 2004-03-09 Ulrich Drepper <drepper@redhat.com>
1404 * iconv/gconv_db.c: Don't define lock as static. Rename to
1405 __gconv_lock and export from the file.
1406 * iconv/gconv_int.h: Declare __gconv_lock.
1407 * libio/iofclose.c [_LIBC] (_IO_new_fclose): Lock gconv lock
1408 before __gconv_release_step calls.
1409 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1411 * iconv/gconv_simple.c (internal_ucs4_loop): Fix typo in last change.
1413 * posix/Makefile (tests): Add tst-vfork1.
1414 * posix/tst-vfork1.c: New file.
1416 2004-03-08 Ulrich Drepper <drepper@redhat.com>
1418 * sysdeps/i386/dl-machine.h: Define ARCH_FIXUP_ATTRIBUTE and use
1419 it in the fixup function declarations.
1420 * elf/dl-runtime.c: If ARCH_FIXUP_ATTRIBUTE is not defined,
1421 provide dummy definition. Use macro in fixup function
1424 * sysdeps/unix/sysv/linux/i386/vfork.S: If SAVE_PID and
1425 RESTORE_PID are defined, use it.
1426 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1428 * sysdeps/posix/gai_strerror.c: Add error string for EAI_IDN_ENCODE.
1430 * Makerules: Use extra-modules.mk if modules-names is defined.
1431 * extra-modules.mk: New file.
1432 * dlfcn/Makefile (CPPFLAGS-modcxaatexit.c): Removed.
1433 * elf/Makefile (CFLAGS-interp.c): Add -DNOT_IN_libc=1.
1434 * csu/Makefile ($(objpfx)version-info.h): Pass -DNOT_IN_libc=1 to
1436 * Makefile (distribute): Add symbol-hacks.h and extra-modules.mk.
1437 * sysdeps/generic/symbol-hacks.h: New file.
1438 * sysdeps/wordsize-32/symbol-hacks.h: New file.
1439 * sysdeps/wordsize-32/divdi3.c: Define *_internal aliases for __divdi3,
1440 __moddi3, __udivdi3, and __umoddi3.
1441 * include/libc-symbols.h: Include <symbol-hacks.h>.
1443 2004-03-08 Jeroen Dekkers <jeroen@dekkers.cx>
1445 * elf/rtld.c (_rtld_global_ro) [MAP_COPY]: Don't set _dl_unload_cache.
1447 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps):
1448 Don't use INTUSE with _dl_signal_error.
1450 2004-03-08 Ulrich Drepper <drepper@redhat.com>
1452 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
1453 Don't use INTUSE with _dl_signal_error.
1455 2004-03-08 Richard Henderson <rth@redhat.com>
1457 * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Fix typo
1460 2004-03-07 Ulrich Drepper <drepper@redhat.com>
1462 * config.h.in: Add entry for HAVE_LIBIDN.
1463 * configure.in: If libidn add-on present define HAVE_LIBIDN.
1464 * Versions.def: Add entry for libcidn.
1466 2004-03-07 Simon Josefsson <jas@extundo.com>
1468 * resolv/netdb.h [__USE_GNU]: Add new AI_IDN ai_flags for addrinfo.
1469 [__USE_GNU]: Add new error code EAI_IDN_ENCODE for getaddrinfo.
1470 * sysdeps/posix/getaddrinfo.c: Add prototype for __idna_to_ascii_lz
1471 and define IDNA_SUCCESS.
1472 (gaih_inet): If ai_flags have AI_IDN, invoke __idna_to_ascii_lz.
1473 (getaddrinfo): Fix EAI_BADFLAGS test to include AI_IDN.
1474 All changes only applicable when glibc is compiled with the libidn
1477 2004-03-07 Ulrich Drepper <drepper@redhat.com>
1479 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Call
1480 _dl_lookup_symbol_x not _dl_lookup_symbol.
1482 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Adjust for moving
1483 _dl_hwcap into _rtld_global_ro.
1484 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1485 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1486 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1487 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1489 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1495 2004-03-07 Andreas Schwab <schwab@suse.de>
1497 * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS.
1499 2004-03-07 Andreas Jaeger <aj@suse.de>
1501 * iconvdata/iso-2022-cn-ext.c (BODY): Remove cast used as lvalue.
1502 * iconvdata/tcvn5712-1.c (EMIT_SHIFT_TO_INIT): Likewise.
1503 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
1504 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT): Likewise.
1505 * iconvdata/tscii.c (EMIT_SHIFT_TO_INIT): Likewise.
1507 2004-03-07 Ulrich Drepper <drepper@redhat.com>
1509 * sysdeps/generic/ldsodefs.h: Move _dl_initial_searclist,
1510 _dl_hp_timing_overhead, _dl_init_all_dirs, and the content of
1511 dl-procinfo.c from _rtld_global to _rtld_global_ro.
1512 * elf/rtld.c: Adjust initializer for _rtld_global_ro.
1513 * elf/dl-close.c: Use GLRO instead of GL where appropriate.
1514 * elf/dl-libc.c: Likewise.
1515 * elf/dl-load.c: Likewise.
1516 * sysdeps/i386/dl-procinfo.h: Likewise.
1517 * sysdeps/i386/i686/hp-timing.h: Likewise.
1518 * sysdeps/ia64/hp-timing.h: Likewise.
1519 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1520 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1521 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
1522 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
1523 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Likewise.
1524 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
1525 * string/test-string.h: Define GLRO.
1527 2004-03-06 Ulrich Drepper <drepper@redhat.com>
1529 * elf/dl-lookup.c: We don't need for specialized lookup functions.
1530 Combining the functionality does not slow down relocation processing,
1531 it might even speed it up a little.
1532 * sysdeps/generic/ldsodefs.h: Adjust prototypes for lookup function.
1533 Add only one function pointer to rtlf_global_ro.
1534 * elf/do-lookup.h: Replace #ifs with ifs.
1535 * elf/dl-libc.c: Adjust _dl_lookup_* callers.
1536 * elf/dl-reloc.c: Likewise.
1537 * elf/dl-runtime.c: Likewise.
1538 * elf/dl-sym.c: Likewise.
1539 * elf/rtld.c: Likewise. Adjust _rtld_global_ro initialization.
1541 2004-03-06 Richard Henderson <rth@redhat.com>
1543 * sysdeps/generic/ldsodefs.h (__rtld_local_attribute__,
1544 __rtld_global_attribute__): Undef after use.
1545 (_rtld_local_ro): Define __rtld_local_attribute__ with just hidden
1548 * soft-fp/quad.h (union _FP_UNION_Q): Add longs structure.
1549 * sysdeps/alpha/Implies: Add alpha/soft-fp.
1550 * sysdeps/alpha/soft-fp/sfp-machine.h: Rewrite for GEM interface.
1551 * sysdeps/alpha/Subdirs: New file.
1552 * sysdeps/alpha/soft-fp/Makefile: New file.
1553 * sysdeps/alpha/soft-fp/Versions: New file.
1554 * sysdeps/alpha/soft-fp/local-soft-fp.h: New file.
1555 * sysdeps/alpha/soft-fp/ots_add.c: New file.
1556 * sysdeps/alpha/soft-fp/ots_cmp.c: new file.
1557 * sysdeps/alpha/soft-fp/ots_cmpe.c: New file.
1558 * sysdeps/alpha/soft-fp/ots_cvtqux.c: New file.
1559 * sysdeps/alpha/soft-fp/ots_cvtqx.c: New file.
1560 * sysdeps/alpha/soft-fp/ots_cvttx.c: New file.
1561 * sysdeps/alpha/soft-fp/ots_cvtxq.c: New file.
1562 * sysdeps/alpha/soft-fp/ots_cvtxt.c: New file.
1563 * sysdeps/alpha/soft-fp/ots_div.c: New file.
1564 * sysdeps/alpha/soft-fp/ots_mul.c: New file.
1565 * sysdeps/alpha/soft-fp/ots_nintxq.c: New file.
1566 * sysdeps/alpha/soft-fp/ots_sub.c: New file.
1568 2004-03-06 Ulrich Drepper <drepper@redhat.com>
1570 * configure.in: Recognize --enable-bind-now.
1571 * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags
1573 * Makerules (LDFLAGS-c.so): Add -z now if so configured.
1574 * elf/Makefile ($(objpfx)ld.so): Likewise.
1575 * config.make.in (bind-now): New definition.
1577 * elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls.
1578 * elf/rtld.c (print_statistics): Likewise.
1580 * elf/dl-open.c: No need to pass any parameter to _dl_start_profile.
1581 They are the same in both places.
1582 * elf/dl-profile.c: Likewise.
1583 * elf/rtld.c: Likewise.
1584 * sysdeps/generic/ldsodefs.h: Likewise.
1585 * elf/dl-support.c: Define _dl_profile_output variable. Initialize it.
1587 2004-03-05 Ulrich Drepper <drepper@redhat.com>
1589 * elf/Versions: Remove functions which are not exported anymore.
1590 * dlfcn/dlerror.c: Call ld.so functions through GLSO.
1591 * dlfcn/dlinfo.c: Likewise.
1592 * elf/dl-close.c: Likewise.
1593 * elf/dl-libc.c: Likewise.
1594 * elf/dl-open.c: Likewise.
1595 * elf/dl-sym.c: Likewise.
1596 * sysdeps/generic/libc-start.c: Likewise.
1597 * elf/dl-debug.c: Remove *_internal definition. Don't use INTUSE for
1598 functions which are not exported anymore.
1599 * elf/dl-deps.c: Likewise.
1600 * elf/dl-dst.h: Likewise.
1601 * elf/dl-error.c: Likewise.
1602 * elf/dl-fini.c: Likewise.
1603 * elf/dl-init.c: Likewise.
1604 * elf/dl-load.c: Likewise.
1605 * elf/dl-lookup.c: Likewise.
1606 * elf/dl-misc.c: Likewise.
1607 * elf/dl-profile.c: Likewise.
1608 * elf/dl-profstub.c: Likewise.
1609 * elf/dl-reloc.c: Likewise.
1610 * elf/dl-runtime.c: Likewise.
1611 * elf/dl-version.c: Likewise.
1612 * elf/do-lookup.h: Likewise.
1613 * include/dlfcn.h: Likewise.
1614 * sysdeps/generic/dl-cache.c: Likewise.
1615 * sysdeps/generic/dl-fptr.c: Likewise.
1616 * sysdeps/generic/dl-origin.c: Likewise.
1617 * sysdeps/generic/dl-sysdep.c: Likewise.
1618 * sysdeps/generic/dl-tls.c: Likewise.
1619 * sysdeps/generic/ldsodefs.h: Likewise.
1620 * sysdeps/i386/dl-tls.h: Likewise.
1621 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1622 * elf/rtld.c: Likewise. Export function though _rtld_global_ro.
1624 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move
1625 dl_debug_fd to rtld_global_ro.
1626 * elf/rtld.c: Use GLRO instead of GL for dl_debug_fd.
1627 * elf/dl-misc.c: Likewise.
1629 * malloc/malloc.c: Don't call exported interface in the implementation.
1631 * include/wctype.h: Add libc_hidden_proto for __towctrans.
1632 * wctype/towctrans.c: Add libc_hidden_def.
1634 * libio/memstream.c (open_memstream): Use _IO_init with INTUSE.
1636 * posix/regexec.c (transit_state): Remove unused variable
1639 * posix/regcomp.c (init_dfa): Use __btowc instead of btowc.
1641 * sysdeps/generic/ldsodefs.h: Define new structure rtld_global_ro.
1642 Declare _rtld_global_ro and _rtld_local_ro. Move members of
1643 rtld_global structure into the new one if they are modified only
1644 at startup time. Define GLRO to access _rtld_global_ro.
1645 * elf/Versions: Export _rtld_global_ro.
1646 * elf/dl-close.c: Use GLRO instead of GL where appropriate.
1647 * elf/dl-conflict.c: Likewise.
1648 * elf/dl-deps.c: Likewise.
1649 * elf/dl-dst.h: Likewise.
1650 * elf/dl-error.c: Likewise.
1651 * elf/dl-fini.c: Likewise.
1652 * elf/dl-init.c: Likewise.
1653 * elf/dl-load.c: Likewise.
1654 * elf/dl-lookup.c: Likewise.
1655 * elf/dl-minimal.c: Likewise.
1656 * elf/dl-open.c: Likewise.
1657 * elf/dl-profile.c: Likewise.
1658 * elf/dl-reloc.c: Likewise.
1659 * elf/dl-runtime.c: Likewise.
1660 * elf/dl-support.c: Likewise.
1661 * elf/dl-version.c: Likewise.
1662 * elf/do-lookup.h: Likewise.
1663 * elf/rtld.c: Likewise.
1664 * sysdeps/generic/dl-cache.c: Likewise.
1665 * sysdeps/generic/dl-origin.c: Likewise.
1666 * sysdeps/generic/dl-sysdep.c: Likewise.
1667 * sysdeps/generic/libc-start.c: Likewise.
1668 * sysdeps/generic/dl-cache.c: Likewise.
1669 * sysdeps/i386/dl-machine.h: Likewise.
1670 * sysdeps/i386/setfpucw.c: Likewise.
1671 * sysdeps/i386/fpu/fclrexcpt.c: Likewise.
1672 * sysdeps/i386/fpu/fedisblexcpt.c: Likewise.
1673 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
1674 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
1675 * sysdeps/i386/fpu/fesetround.c: Likewise.
1676 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
1677 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
1678 * sysdeps/unix/sysv/linux/dl-execstat.c: Likewise.
1679 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
1680 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1681 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1682 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
1683 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
1684 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1685 * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
1686 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1687 * sysdeps/unix/sysv/linux/i386/sigaction.h: Likewise.
1688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1692 * sysdeps/x86_64/dl-machine.h: Likewise.
1693 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1694 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1695 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1696 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1697 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1698 * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1699 * sysdeps/m68k/dl-machine.h: Likewise.
1700 * sysdeps/ia64/dl-machine.h: Likewise.
1701 * sysdeps/arm/dl-machine.h: Likewise.
1702 * sysdeps/alpha/dl-machine.h: Likewise.
1703 * generic/dl-fptr.c: Likewise.
1704 * mach/hurd/dl-sysdep.c: Likewise.
1705 * unix/sysv/linux/ia64/dl-static.c: Likewise.
1706 * unix/sysv/linux/ia64/getpagesize.c: Likewise.
1707 * unix/sysv/linux/m68k/getpagesize.c: Likewise.
1708 * unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
1710 2004-03-04 Ulrich Drepper <drepper@redhat.com>
1712 * sysdeps/generic/ldsodefs.h: Don't define _dl_name_match_p as inline.
1713 * elf/dl-misc.c: Define _dl_name_match_p here.
1714 * elf/dl-open.c (check_libc_caller): Don't use _dl_name_match_p.
1716 * elf/dl-open.c (dl_open_worker): Check that _dl_open is called
1717 from the right place.
1719 2004-01-15 Paolo Bonzini <bonzini@gnu.org>
1721 * posix/regex.h (REG_STARTEND): Define.
1722 * posix/regexec.c (regexec): Check for REG_STARTEND.
1724 2004-02-29 Paolo Bonzini <bonzini@gnu.org>
1726 * posix/regexec.c (transit_state): Don't handle state == NULL.
1727 Move state log and backreference management...
1728 (merge_state_with_log): ... to this function.
1729 (find_recover_state): New function.
1730 (check_matching): Use find_recover_state to get a non-NULL
1731 state when an invalid state is reached. Compute the amount
1732 of initial characters to be skipped less conservatively when
1733 multi-byte character sets are in use. Do not check
1734 dfa->nbackref if the state log is NULL. Initialize err.
1735 (acquire_init_state_context): Expect err to be initialized.
1738 2004-03-05 Jakub Jelinek <jakub@redhat.com>
1740 * sysdeps/sparc/sparc32/elf/start.S: Handle PIEs.
1741 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1743 2004-03-04 Jakub Jelinek <jakub@redhat.com>
1745 * iconv/iconv_prog.c (process_block): Handle omit_invalid.
1746 If iconv returns EILSEQ with omit_invalid, continue converting
1747 and return 1 if no other errors are seen.
1748 (main): Set status to EXIT_FAILURE whenever process_* returns
1749 nonzero, but only stop processing further files if iy returns
1752 2004-03-03 Jakub Jelinek <jakub@redhat.com>
1754 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise.c: New file.
1755 * sysdeps/unix/sysv/linux/x86_64/posix_fadvise64.c: New file.
1756 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
1758 * sysdeps/unix/sysv/linux/alpha/posix_fadvise.c: New file.
1759 * sysdeps/unix/sysv/linux/alpha/posix_fadvise64.c: New file.
1760 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64):
1762 * sysdeps/unix/sysv/linux/ia64/posix_fadvise.c: New file.
1763 * sysdeps/unix/sysv/linux/ia64/posix_fadvise64.c: New file.
1764 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
1766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: New file.
1767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: New
1769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Removed.
1770 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise.c: New file.
1771 * sysdeps/unix/sysv/linux/s390/s390-64/posix_fadvise64.c: New file.
1772 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
1773 (posix_fadvise64): Remove.
1774 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise.c: New file.
1775 * sysdeps/unix/sysv/linux/sparc/sparc64/posix_fadvise64.c: New file.
1776 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1777 (posix_fadvise64): Remove.
1779 2004-03-02 Andreas Schwab <schwab@suse.de>
1781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/xstat.c: New file.
1782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstat.c: New file.
1783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lxstat.c: New file.
1785 2004-03-01 Ulrich Drepper <drepper@redhat.com>
1787 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization
1789 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1791 * sysdeps/unix/sysv/linux/kernel-features.h: Add support for
1792 __ASSUME_GETDENTS32_D_TYPE.
1793 * sysdeps/unix/sysv/linux/getdents.c: For 2.6.4+ kernels use
1794 getdents syscall again since it provides d_type information.
1796 2004-02-29 Andreas Jaeger <aj@suse.de>
1798 * manual/install.texi (Tools for Compilation): Autoconf 2.53 is
1800 (Supported Configurations): Add x86_64-*-linux.
1802 2004-02-28 Ulrich Drepper <drepper@redhat.com>
1804 * sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu.
1806 2004-02-27 Jakub Jelinek <jakub@redhat.com>
1808 * elf/rtld.c (dl_main): Adjust l->l_ld of the vDSO by l->l_addr.
1809 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Only set
1810 GL(dl_sysinfo) if non-zero.
1812 * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h.
1814 2004-02-26 Ulrich Drepper <drepper@redhat.com>
1816 * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't
1818 * nscd/nscd_proto.h: Add new argument for pointer to result pointer
1819 to all nscd_* functions.
1820 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add new parameter. Store result
1821 pointer in the address provided by the new parameter if successful.
1822 Otherwise store NULL. Return zero if no entry found.
1823 (__nscd_getgrnam_r, __nscd_getgrgid_r): Add new parameter and pass
1825 * nscd/nscd_gethst_r.c (nscd_gethst_r): Add new parameter. Store
1826 result pointer in the address provided by the new parameter if
1827 successful. Otherwise store NULL. Return zero if no entry found.
1828 (__nscd_gethostbyname_r, __nscd_gethostbyname2_r,
1829 __nscd_gethostbyaddr_r): Add new parameter and pass it on.
1830 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add new parameter. Store result
1831 pointer in the address provided by the new parameter if successful.
1832 Otherwise store NULL. Return zero if no entry found.
1833 (__nscd_getpwnam_r, __nscd_getpwuid_r): Add new parameter and pass
1836 2004-02-26 Jakub Jelinek <jakub@redhat.com>
1838 * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set
1839 retval to -1 on error.
1841 2004-02-26 Ulrich Drepper <drepper@redhat.com>
1843 * stdlib/canonicalize.c (__realpath): Simplify.
1845 * posix/regcomp.c (parse_expression): Avoid duplication in calls
1846 to build_charclass_op.
1848 2004-02-26 Jakub Jelinek <jakub@redhat.com>
1850 * elf/rtld.c (dl_main): Correctly set up l_map_end and l_addr
1851 in vDSO's link_map, don't assume l_addr == 0. Set GL(dl_sysinfo)
1852 from e_entry only if AT_SYSINFO not present and adjust by l_addr.
1853 Take vDSO into account when inserting rtld into _dl_loaded chain.
1855 2004-02-26 Ulrich Drepper <drepper@redhat.com>
1857 * sunrpc/svcauth_des.c (authdes_getucred): Removed fixed limit on
1858 number of groups in the cache. Relax the disconnect between the
1859 interface of authdes_getucred and netname2user a bit.
1860 * sunrpc/auth_unix.c (authunix_create_default): Don't allocate
1861 huge arrays on the stack.
1863 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official
1864 not cancelable interfaces.
1866 2004-02-24 Arnold D. Robbins <arnold@skeeve.com>
1868 * posix/regex_internal.c (build_wcs_upper_buffer): Enclose
1869 `offsets_needed' label in `#ifdef _LIBC' to silence `unused label'
1872 2004-02-24 Nelson H.F. Beebe <beebe@math.utah.edu>
1874 * posix/regcomp.c (parse_expression): Add cast to (const unsigned
1875 char *) in calls to `build_charclass_op'.
1876 * posix/regex_internal.c (build_wcs_buffer): Add cast to char* in call
1878 * posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
1879 bitset_mask, re_string_char_size_a, re_string_wchar_at,
1880 re_string_elem_size_at): Change to use prototypes.
1881 (re_string_char_size_at, re_string_wchar_at,
1882 re_string_elem_size_at): Declare as `internal_function'.
1884 2004-02-25 Ulrich Drepper <drepper@redhat.com>
1886 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle
1889 2004-02-23 Jakub Jelinek <jakub@redhat.com>
1891 * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space.
1892 * stdlib/Makefile (tests): Add testmb2.
1894 * stdlib/testmb2.c: New test.
1896 2004-02-23 Jakub Jelinek <jakub@redhat.com>
1898 * sysdeps/posix/getaddrinfo.c (gaih_inet): If _res has not been
1899 inited yet, try to init it before saving old _res.options.
1900 * posix/Makefile (xtests): Add bug-ga2.
1901 (generated): Add bug-ga2.mtrace and bug-ga2-mem.
1902 (xtests): Depend on bug-ga2-mem.
1903 ($(objpfx)bug-ga2-mem, bug-ga2-ENV): New.
1904 * posix/bug-ga2.c: New test.
1906 2004-02-22 Ulrich Drepper <drepper@redhat.com>
1908 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Pop register
1909 content also in case of an overflow in the parameter.
1910 Reported by Momchil Velikov <velco@fadata.bg>.
1912 2004-02-21 Ulrich Drepper <drepper@redhat.com>
1914 * elf/dynamic-link.h (elf_get_dynamic_info): Recognize DF_1_NOW.
1915 In ld.so, neither DT_FLAGS nor DT_FLAGS_1 must be used.
1917 2004-02-21 Andreas Jaeger <aj@suse.de>
1919 * posix/bug-ga1.c: Include <string.h> for memset prototype.
1921 * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
1923 * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as
1926 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
1928 * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__]
1929 (__frame_state_for): Set frame_State_for to abort if the compiler
1931 * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to
1932 build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper.
1934 2004-02-20 Alexandre Oliva <aoliva@redhat.com>
1936 * resolv/Versions: Remove semicolon from the end of libresolv's
1937 GLIBC_2.3.2 version block.
1938 * Versions.def (libresolv): Add GLIBC_2.3.2.
1940 2004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca>
1942 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp
1943 status register loads.
1945 2004-02-20 Thorsten Kukuk <kukuk@suse.de>
1947 * nscd/nscd.c (termination_handler): Use _exit instead of exit
1949 2004-02-20 Ulrich Drepper <drepper@redhat.com>
1951 * nscd/nscd.c (main): Report fork errors.
1953 * dlfcn/dlsym.c: Get ld.so loading lock before the call into ld.so.
1954 * dlfcn/dlvsym.c: Likewise.
1955 * elf/dl-addr.c: Get loading lock while using _dl_loaded data.
1956 * elf/dl-fini.c: Likewise.
1957 Patch by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
1959 2004-02-20 Jakub Jelinek <jakub@redhat.com>
1961 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the
1962 2003-11-27 atan2 test.
1964 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect
1965 with #ifndef __powerpc64__.
1967 * sysdeps/generic/ldsodefs.h (_dl_argv, _dl_argv_internal): If
1968 DL_ARGV_NOT_RELRO defined, don't use attribute_relro.
1969 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1970 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1971 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1972 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Remove.
1973 * sysdeps/alpha/dl-sysdep.h: New file.
1974 * sysdeps/ia64/dl-sysdep.h: New file.
1975 * sysdeps/sparc/dl-sysdep.h: New file.
1977 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1979 * sysdeps/sparc/sparc32/bits/atomic.h: Add __make_section_unallocated
1980 for .gnu.linkonce.b.__sparc32_atomic_locks section.
1981 (__sparc32_atomic_locks): Add __sec_comment at the end of section name.
1983 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1985 * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC):
1987 * sysdeps/powerpc/elf/libc-start.c: Define LIBC_START_DISABLE_INLINE
1988 because gcc does not allow inline of functions that call setjmp.
1990 2004-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1992 * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit.
1994 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1996 * elf/rtld.c (_dl_argv): If DL_ARGV_NOT_RELRO defined, don't
1997 use attribute_relro for _dl_argv.
1998 * sysdeps/alpha/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
1999 * sysdeps/ia64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
2000 * sysdeps/sparc/sparc32/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
2001 * sysdeps/sparc/sparc64/dl-machine.h (DL_ARGV_NOT_RELRO): Define.
2003 2004-02-19 Ulrich Drepper <drepper@redhat.com>
2005 * libio/iopopen.c (_IO_new_proc_open): It's not kosher to use
2006 vfork instead of fork.
2007 * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
2009 * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which
2010 prevented system-dependent handling from being used.
2012 2004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca>
2014 * test-skeleton.c (main): If set, use environment variable
2015 TIMEOUTFACTOR to scale test TIMEOUT.
2017 2004-02-18 Ulrich Drepper <drepper@redhat.com>
2019 * nscd/nscd_conf.c: Include <stdio_ext.h>.
2021 2004-02-16 Ulrich Drepper <drepper@redhat.com>
2023 * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop
2026 * stdlib/canonicalize.c (__realpath): Remove unnecessary copy
2029 * nscd/nscd_conf.c (nscd_parse_file): Little optimization.
2031 2004-02-14 Thorsten Kukuk <kukuk@suse.de>
2033 * nscd/dbg_log.c (set_logfile): Only save name of logfile,
2035 (init_logfile): New function, open logfile if requested.
2036 * nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
2037 * nscd/nscd.c (main): Call init_logfile after forking in background.
2038 * nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.
2040 2004-02-16 Ulrich Drepper <drepper@redhat.com>
2042 * elf/rtld.c (dl_main): Don't fail execution if file named in
2043 ld.so.preload is not present [BZ #18].
2045 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended
2046 changes in last patch.
2048 * posix/regexec.c (transit_state): Fix typo in commented-out code
2051 * sysdeps/posix/getaddrinfo.c (match_prefix): Correctly match
2052 partial bytes [BZ #24].
2053 * posix/Makefile (tests): Add bug-ga1.
2054 * posix/bug-ga1.c: New file.
2056 2004-02-13 Steven Munroe <sjmunroe@us.ibm.com>
2058 * sysdeps/powerpc/powerpc64/__longjmp-common.S: New file.
2059 * sysdeps/powerpc/powerpc64/__longjmp.S [NOT_IN_libc](__longjmp):
2060 Non-versioned __longjmp for rtld-__longjmp.
2061 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
2062 default version of __longjmp.
2063 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
2064 (__novmx__longjmp): Original version of __longjmp.
2065 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
2066 Non-versioned _setjmp for rtld-_setjmp.
2067 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
2068 as default version of _setjmp.
2069 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
2070 (__novmx_setjmp): Original version of _setjmp.
2071 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__vmxsetjmp): Branch to
2072 __vmx__sigsetjmp and define as default version of setjmp.
2073 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
2074 (__novmxsetjmp): Original version of setjmp.
2075 * sysdeps/powerpc/powerpc64/setjmp-common.S: New file.
2076 * sysdeps/powerpc/powerpc64/setjmp.S [NOT_IN_libc](__setjmp):
2077 Non-versioned __sigsetjmp for rtld-setjmp.
2078 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
2079 as default version of __sigsetjmp.
2080 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)]
2081 (__novmx__sigsetjmp): Original version of __sigsetjmp.
2083 * sysdeps/powerpc/powerpc32/__longjmp-common.S: New File
2084 * sysdeps/powerpc/powerpc32/__longjmp.S [NOT_IN_libc](__longjmp):
2085 Non-versioned __longjmp for rtld-__longjmp.
2086 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
2087 default version of __longjmp.
2088 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
2089 (__novmx__longjmp): Original version of __longjmp.
2090 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S [NOT_IN_libc](_setjmp):
2091 Non-versioned _setjmp for rtld-_setjmp.
2092 [!NOT_IN_libc](__vmx_setjmp): Branch to __vmx__sigsetjmp and define
2093 as default version of _setjmp.
2094 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
2095 (__novmx_setjmp): Original version of _setjmp.
2096 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__vmxsetjmp): Branch to
2097 __vmx__sigsetjmp and define as default version of setjmp.
2098 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
2099 (__novmxsetjmp): Original version of setjmp.
2100 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: New file.
2101 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S [NOT_IN_libc](__longjmp):
2102 Non-versioned __longjmp for rtld-__longjmp.
2103 [!NOT_IN_libc](__vmx__longjmp): Add VMX reg support and define as
2104 default version of __longjmp.
2105 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
2106 (__novmx__longjmp): Original version of __longjmp.
2107 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: New file.
2108 * sysdeps/powerpc/powerpc32/fpu/setjmp.S [NOT_IN_libc](__setjmp):
2109 Non-versioned __sigsetjmp for rtld-setjmp.
2110 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
2111 as default version of __sigsetjmp.
2112 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
2113 (__novmx__sigsetjmp): Original version of __sigsetjmp.
2114 * sysdeps/powerpc/powerpc32/setjmp-common.S: New file.
2115 * sysdeps/powerpc/powerpc32/setjmp.S [NOT_IN_libc](__setjmp):
2116 Non-versioned __sigsetjmp for rtld-setjmp.
2117 [!NOT_IN_libc](__vmx__sigsetjmp): Add VMX reg support and define
2118 as default version of __sigsetjmp.
2119 [SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)]
2120 (__novmx__sigsetjmp): Original version of __sigsetjmp.
2122 * sysdeps/powerpc/Dist: New File.
2123 * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c
2125 * sysdeps/powerpc/Versions (libc): To GLIBC_2.3_4 add _longjmp,
2126 __sigsetjmp, _setjmp, longjmp, and setjmp. To GLIBC_PRIVATE add
2127 __novmx__libc_longjmp, __novmx__libc_siglongjmp, __vmx__libc_longjmp,
2128 and __vmx__libc_siglongjmp.
2129 * sysdeps/powerpc/bits/setjmp.h: Define JB_VRSAVE, JB_VRS, and adjust
2130 JB_SIZE to add VMX regs to __jmp_buf.
2131 * sysdeps/powerpc/longjmp.c: New file.
2132 * sysdeps/powerpc/novmxsetjmp.h: New file.
2133 * sysdeps/powerpc/novmx-longjmp.c: New file.
2134 * sysdeps/powerpc/novmx-sigjmp.c: New file.
2135 * sysdeps/powerpc/sigjmp.c: New file.
2137 2004-02-13 Jakub Jelinek <jakub@redhat.com>
2139 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf):
2141 (__lrintl, lrintl): Remove.
2142 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c (__lrint): Fix a typo in
2143 strong_alias spelling.
2144 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: Remove.
2145 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: New file.
2147 2004-02-12 Ulrich Drepper <drepper@redhat.com>
2149 * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins.
2151 2004-02-12 Mark Brown <bmark@us.ibm.com>
2153 * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license.
2155 2004-02-12 Jakub Jelinek <jakub@redhat.com>
2157 * sysdeps/powerpc/fpu/s_lrint.c: Move to...
2158 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: ... here.
2159 * sysdeps/powerpc/fpu/s_llrint.c: Move to...
2160 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: ... here.
2161 * sysdeps/powerpc/fpu/s_llrintf.c: Move to...
2162 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: ... here.
2163 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
2164 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.S: New file.
2165 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: New file.
2167 * math/libm-test.inc (lrint_test): Add new test.
2168 (llrint_test, lround_test, llround_test): Likewise.
2169 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
2170 with result taking up 48 bits.
2171 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
2172 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
2173 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
2174 with result taking up 31 bits.
2176 2004-02-12 Ulrich Drepper <drepper@redhat.com>
2178 * locale/programs/locale.c (show_locale_vars): Don't print a value
2179 for LANG if it is not set.
2181 2004-02-11 Jakub Jelinek <jakub@redhat.com>
2183 * posix/regexec.c (check_node_accept_bytes): Return 0 if char_len is 0.
2184 (find_collation_sequence_value): Don't look beyond end of
2186 * posix/Makefile (tests): Add bug-regex23.
2187 (bug-regex23-ENV): New.
2188 * posix/bug-regex23.c: New file.
2190 2004-02-10 Roland McGrath <roland@frob.com>
2192 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast.
2193 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
2195 * sysdeps/mach/hurd/configure.in: Move `retcode' check to ...
2196 * sysdeps/mach/configure.in: ... here.
2197 * sysdeps/mach/hurd/configure: Regenerated.
2198 * sysdeps/mach/configure.in: Regenerated.
2200 2004-02-10 Ulrich Drepper <drepper@redhat.com>
2202 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the
2203 temporary copies of the variables accumulate on the stack.
2205 * stdio-common/_i18n_number.h: Finish last patch.
2207 2004-02-09 Ulrich Drepper <drepper@redhat.com>
2209 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu.
2211 2003-12-05 Roland McGrath <roland@redhat.com>
2213 * sysdeps/unix/sysv/linux/i386/syscalls.list: Turn vm86 into vm86old
2214 for vm86@GLIBC_2.0 version. Add new vm86@GLIBC_2.3.4.
2215 * sysdeps/unix/sysv/linux/i386/Versions (libc: GLIBC_2.3.4): Add vm86.
2216 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Update vm86 prototype.
2218 2004-02-09 Ulrich Drepper <drepper@redhat.com>
2220 * nis/ypclnt.c: Cleanup last patch.
2222 2004-02-09 Andreas Jaeger <aj@suse.de>
2224 * configure.in: Remove glibcbug creation.
2225 * configure: Regenerated.
2227 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes.
2229 2004-02-03 Thorsten Kukuk <kukuk@suse.de>
2231 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
2232 of duplicated code from __yp_bind.
2233 (__yp_bind_file): New, binding dir code from __yp_bind.
2234 (__yp_bind_client_create): New, ypbind code from __yp_bind.
2235 (__ypclnt_call): New, make NIS query.
2236 (do_ypcall): At first use cached data, then try data from
2237 binding directory, after this ask ypbind for a working ypserv.
2238 Based on a patch from Jeff Bastian <jmbastia@ti.com> and
2239 Chris Barrera <cbarrera@ti.com>
2241 2004-01-19 Roland McGrath <roland@redhat.com>
2243 * configure.in: Don't set CCVERSION.
2244 * configure: Regenerated.
2245 * glibcbug.in: File removed.
2246 * Makefile (install-bin-script): Remove glibcbug.
2247 (glibcbug): Target removed.
2248 (distclean-1): Don't rm glibcbug.
2249 (distribute): Remove glibcbug.in.
2251 2004-02-09 Roland McGrath <roland@redhat.com>
2253 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to
2256 2004-01-29 Roland McGrath <roland@redhat.com>
2258 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp.
2259 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>.
2261 2004-02-09 Ulrich Drepper <drepper@redhat.com>
2263 * libio/genops.c (_IO_cleanup): Do not use locking when flushing
2264 the buffers. Some thread might be using a stream.
2266 2004-02-09 Andreas Jaeger <aj@suse.de>
2268 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7].
2269 Patch by Jan Beulich <jbeulich@novell.com>.
2271 2004-02-09 Andreas Schwab <schwab@suse.de>
2273 * include/rpc/rpc.h: Declare thread variables with their correct type.
2274 * sunrpc/clnt_perr.c: Don't cast thread variables.
2275 * sunrpc/clnt_raw.c: Likewise.
2276 * sunrpc/clnt_simp.c: Likewise.
2277 * sunrpc/key_call.c: Likewise.
2278 * sunrpc/svcauth_des.c: Likewise.
2279 * sunrpc/svc.c: Likewise.
2280 * sunrpc/svc_raw.c: Likewise.
2281 * sunrpc/svc_simple.c: Likewise.
2283 2004-02-09 Ulrich Drepper <drepper@redhat.com>
2285 * stdio-common/_i18n_number.h: Support printing localized decimal
2286 point and thousand separator.
2287 * wctype/wctrans.c: Add __wctrans alias.
2288 * include/wctype.h: Declare __wctrans.
2289 Based on a patch by Hamed Malek.
2291 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
2292 other than the status bits [BZ #10].
2294 2004-02-08 Ulrich Drepper <drepper@redhat.com>
2296 Make stream locking operations really work.
2297 * misc/Makefile (CFLAGS-mntent_r.c): Define.
2298 * shadow/Makefile (CFLAGS-fgetspent_r.c): Define.
2299 (CFLAGS-putspent.c): Define.
2300 * grp/Makefile (CFLAGS-fgetgrent_r.c): Define.
2301 (CFLAGS-putgrent.c): Define.
2302 * pwd/Makefile (CFLAGS-fgetpwent_r.c): Define.
2303 Reported by Shunichi Sagawa <s-sagawa@jp.fujitsu.com>.
2305 * elf/dl-load.c (lose): Use noinline attribute instead of silly
2306 alloca to prevent inlining.
2307 * elf/dl-runtime.c (fixup): Likewise.
2308 (profile_fixup): Likewise.
2310 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11.
2311 Initialize width correctly.
2313 2004-02-07 Andreas Jaeger <aj@suse.de>
2315 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as
2317 (internal_ucs4le_loop_single): Likewise.
2318 (ucs4_internal_loop): Likewise.
2320 (internal_ucs4_loop_single): Likewise.
2321 * iconvdata/iso8859-1.c (BODY): Likewise.
2322 * iconvdata/cp1255.c (EMIT_SHIFT_TO_INIT): Likewise.
2323 * iconvdata/cp1258.c (EMIT_SHIFT_TO_INIT): Likewise.
2324 * iconvdata/gb18030.c (BODY): Likewise.
2325 * iconvdata/armscii-8.c (BODY): Likewise.
2326 * stdlib/msort.c (msort_with_tmp): Likewise.
2328 * iconv/gconv_open.c (__gconv_open): Remove conditional expression
2331 2004-02-06 Steven Munroe <sjmunroe@us.ibm.com>
2333 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as
2335 (__elf_machine_runtime_setup): Invalidate the instruction cache over
2336 the whole range of the PLT.
2338 2004-02-06 Andreas Schwab <schwab@suse.de>
2340 * posix/regcomp.c (build_range_exp): Fix off-by-one.
2341 (parse_bracket_exp): Likewise.
2343 2004-02-05 Ulrich Drepper <drepper@redhat.com>
2345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define
2346 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard.
2348 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
2350 * posix/regexec.c (check_matching): Add P_MATCH_FIRST parameter.
2351 (re_search_internal): Pass new parameter to check_matching.
2352 (check_matching): Unless a parenthesized group is found at the
2353 beginning of the regexp, advance P_MATCH_FIRST until we entered
2354 a state different from the initial state.
2356 2004-02-01 Ulrich Drepper <drepper@redhat.com>
2358 * math/libm-test.inc (lround_test): Add new test.
2359 (llround_test): Likewise.
2360 (lrint_test): Likewise.
2361 (llrint_test): Likewise.
2362 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Fix special case
2363 with result taking up 20 bits.
2364 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
2365 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise..
2366 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Fix special
2367 case with result taking up 31 bits.
2368 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
2370 * po/nl.po: Update from translation team.
2372 2004-01-30 Andreas Schwab <schwab@suse.de>
2374 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_BREAK,
2375 FPE_DECOVF, FPE_DECDIV, FPE_DECERR, FPE_INVASC, FPE_INVDEC,
2376 SEGV_PSTKOVF): Remove underscore prefix from definition.
2378 2004-01-28 Paolo Bonzini <bonzini@gnu.org>
2380 Merge regex changes in gawk.
2381 * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity
2382 of collation elements.
2383 * posix/regex.c: Include limits.h.
2384 * posix/regex.h: Document REG_ECOLLATE correctly.
2385 * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
2387 2004-01-24 Andreas Jaeger <aj@suse.de>
2389 * malloc/obstack.h: Import gnulib version.
2390 * malloc/obstack.c: Likewise.
2392 2004-01-26 David Mosberger <davidm@hpl.hp.com>
2394 * elf/link.h (struct dl_phdr_info): Fix typo in comment.
2395 * elf/rtld.c (dl_main): After incrementing dl_nloaded, also
2396 increment dl_load_adds.
2397 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Replace GL(dl_load_subs)
2398 with equivalent GL(dl_load_adds - GL(dl_nloaded).
2399 (dl_iterate_phdr): Likewise.
2400 * elf/dl-close.c (_dl_close): Delete increment of GL(dl_load_subs).
2401 * elf/dl-support.c: Remove global variable _dl_load_subs.
2402 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2403 _dl_load_subs member.
2405 2004-01-27 Jakub Jelinek <jakub@redhat.com>
2407 * elf/rtld.c (_dl_start_final): Don't set l_relro_* here.
2408 (_dl_start): And neither here.
2409 (dl_main): Set GL(dl_loaded)->l_relro_* and
2410 GL(dl_rtld_map)->l_relro_*.
2412 2004-01-23 David Mosberger <davidm@hpl.hp.com>
2414 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add members
2415 _dl_load_adds and _dl_load_subs.
2416 * elf/dl-support.c (_dl_load_adds): New variable.
2417 (_dl_load_subs): Likewise.
2418 * elf/dl-object.c (_dl_new_object): Increment dl_load_adds.
2419 * elf/dl-close.c (_dl_close): Increment dl_load_subs.
2420 * elf/link.h (struct dl_phdr_info): Add members dlpi_adds and
2422 * include/link.h: Likewise.
2423 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Initialize dlpi_adds
2424 and dlpi_subs members.
2425 (dl_iterate_phdr): Likewise.
2426 * elf/tst-dlmodcount.c: New file.
2427 * elf/Makefile (distribute): Mention tst-dlmodcount.c.
2428 (tests): If build-shared, mention tst-dlmodcount.
2429 ($(objpfx)tst-dlmodcount): If build-shared, build and
2432 2004-01-22 Jakub Jelinek <jakub@redhat.com>
2434 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection
2436 (_dl_protect_relro): New routine.
2437 * sysdeps/generic/ldsodefs.h (_dl_protect_relro): New prototype.
2438 * elf/rtld.c (_dl_start_final): Copy l_relro_addr and l_relro_size
2440 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here.
2441 Call _dl_protect_relro for libraries if prelinking.
2443 2004-01-23 Richard Henderson <rth@redhat.com>
2445 * Versions.def (libm): Replace GLIBC_2.3.3 with GLIBC_2.3.4.
2446 * sysdeps/alpha/fpu/Versions (libm): Likewise.
2447 * sysdeps/alpha/fpu/cfloat-compat.h (cfloat_versions): Likewise.
2448 * sysdeps/alpha/fpu/s_clog10f.c (clog10f): Likewise.
2450 2004-01-22 Andreas Jaeger <aj@suse.de>
2452 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
2453 avoid warnings for builtin function log2.
2455 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
2458 2004-01-20 Ulrich Drepper <drepper@redhat.com>
2460 * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
2461 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2462 Patch by Davide Libenzi.
2464 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2465 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels.
2467 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale.
2469 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use off64_t
2470 instead of loff_t. Include <fcntl.h>.
2471 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add readahead prototype.
2472 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Likewise.
2473 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h: Likewise.
2474 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Likewise.
2475 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2476 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2477 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
2478 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2479 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2480 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2481 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2482 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2484 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen.
2486 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros.
2488 2003-12-31 Bruno Haible <bruno@clisp.org>
2490 * iconvdata/iso_6937-2.c (to_ucs4): Map 0x7E to U+007E, not U+203E.
2491 Map 0xA6 to U+0023. Map 0xA8 to U+00A4.
2492 (to_ucs4_comb): Map 0xC5 0x20 to U+00AF.
2493 (from_ucs4): Map U+00ED to 0xC2 0x69, not 0xC2 0xE9.
2494 (BODY for TO_LOOP): Don't map U+02DC. Map U+02DD to 0xCD 0x20, not
2495 0x00 0x20. Don't map U+2500..U+25E3.
2497 2004-01-19 Jakub Jelinek <jakub@redhat.com>
2499 * posix/regexec.c (get_subexp): Remove bkref_str variable.
2500 Extend buffers if needed before comparisons.
2501 (get_subexp_sub): Handle clean_state_log_if_needed failure.
2503 2004-01-17 Ulrich Drepper <drepper@redhat.com>
2505 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using
2506 atomic_decrement. Patch by Davin McCall.
2508 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
2510 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions)
2511 (__sim_disabled_exceptions, __sim_round_mode): Declare with
2512 hidden data and nocommon.
2513 * sysdeps/powerpc/nofpu/soft-supp.h (__sim_exceptions)
2514 (__sim_disabled_exceptions, __sim_round_mode): Use
2516 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions)
2517 (__sim_disabled_exceptions, __sim_round_mode): Likewise.
2519 2004-01-16 Ulrich Drepper <drepper@redhat.com>
2521 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and
2524 2004-01-16 Richard Henderson <rth@redhat.com>
2526 * include/unistd.h (__libc_enable_secure): Mark attribute_relro.
2527 (__libc_enable_secure_internal): Likewise.
2529 * elf/dl-load.c: Don't declare __libc_stack_end.
2530 * sysdeps/generic/libc-start.c: Likewise.
2531 * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
2532 * sysdeps/generic/segfault.c: Likewise. Include ldsodefs.h.
2533 * sysdeps/generic/backtrace.c: Likewise.
2535 2004-01-15 Ulrich Drepper <drepper@redhat.com>
2537 * Versions.def: Add GLIBC_2.3.4.
2539 2004-01-15 Richard Henderson <rth@redhat.com>
2541 * sysdeps/unix/alpha/sysdep.h: Revert last change.
2543 2004-01-15 Richard Henderson <rth@redhat.com>
2545 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal.
2547 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use
2550 2004-01-15 Richard Henderson <rth@redhat.com>
2552 * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
2553 ucontext-offsets.sym.
2554 * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
2555 * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
2556 * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
2557 * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
2558 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.
2560 2004-01-15 Richard Henderson <rth@redhat.com>
2562 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
2563 __syscall_, move nop inside, adjust users by +4.
2565 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
2567 * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
2568 (_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
2569 (_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
2571 * sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
2572 gen-as-const-headers.
2573 * sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
2574 * sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
2575 Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
2576 * sysdeps/unix/sysv/linux/kernel-features.h
2577 (__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
2578 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
2579 Declare mcontext_t inline and include altivec state for 64-bit.
2580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
2581 versions for setcontext, getcontext, and swapcontext.
2583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
2584 versions for setcontext, getcontext, swapcontext, and makecontext.
2585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
2586 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
2587 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_getcontext):
2588 Compatible with GLIBC_2.3.3 release.
2589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
2590 (__makecontext): Use parm save area instead of compiler_dw to hold
2592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2593 (__setcontext): Upgrade to restore Altivec regs and version
2595 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_setcontext):
2596 Compatible with GLIBC_2.3.3 release.
2597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2598 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
2599 [SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)] (__novec_swapcontext):
2600 Compatible with GLIBC_2.3.3 release.
2601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
2602 (SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
2604 2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
2606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
2607 versions for setcontext, getcontext, swapcontext, and makecontext.
2608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2609 (__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
2610 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_getcontext):
2611 Compatible with GLIBC_2.3.3 release.
2612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
2613 (__makecontext): Upgrade to align for Altivec regs and version
2615 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_makecontext):
2616 Compatible with GLIBC_2.3.3 release.
2617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2618 (__setcontext): Upgrade to restore Altivec regs and version
2620 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)] (__novec_setcontext):
2621 Compatible with GLIBC_2.3.3 release.
2622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2623 (__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
2624 [SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
2625 (__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
2626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
2627 (_UC_VSCR, _UC_VRSAVE): Define.
2628 (_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
2629 _FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
2631 2004-01-15 Ulrich Drepper <drepper@redhat.com>
2633 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.
2635 2004-01-16 Alfred M. Szmidt <ams@kemisten.nu>
2637 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
2640 2004-01-15 Ulrich Drepper <drepper@redhat.com>
2642 * elf/elf.h: Fix typo in comment.
2644 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.
2645 * elf/rtld.c: Initialize _dl_argv to allow aliasing.
2647 * resolv/resolv.h: Add RES_USEBSTRING.
2648 * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
2649 RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
2650 * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
2651 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
2652 bytestring IPv6 lookup with RES_USEBSTRING option is selected.
2653 Otherwise use the two nibble formats.
2655 2004-01-14 Ulrich Drepper <drepper@redhat.com>
2657 * configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
2658 * config.h.in: Add entry for HAVE_Z_RELRO.
2659 * include/libc-symbols.h: Define attribute_relro.
2660 * elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
2661 max_capstrlen, and max_dirnamelen definitions.
2662 * elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
2663 load_time, start_time, library_path, preloadlist, version_info,
2665 Remove rtld_total_time. Make it a local variable. Pass pointer to
2666 it to print_statistics. Change print_statistics accordingly.
2667 * sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv. Use
2668 attribute_relro instead of explicitly assigning variable to the
2669 .data.rel.ro section for __libc_enable_secure and __libc_stack_end.
2670 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
2671 _dl_argv, _dl_argv_internal with attribute_relro.
2673 2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
2675 * Makerules (gen-as-const): Don't silently continue on failure.
2677 2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
2679 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
2680 rtld_hidden_data_def.
2682 2004-01-14 Ulrich Drepper <drepper@redhat.com>
2684 * libio/libio.h: Add const to function tables types.
2685 * libio/libioP.h: Likewise.
2686 * login/utmp-private.h: Likewise.
2687 * libio/fileops.c: Add const to jump table variable definition.
2688 * libio/genops.c: Likewise.
2689 * libio/iofopncook.c: Likewise.
2690 * libio/iopopen.c: Likewise.
2691 * libio/memstream.c: Likewise.
2692 * libio/obprintf.c: Likewise.
2693 * libio/oldfileops.c: Likewise.
2694 * libio/oldiopopen.c: Likewise.
2695 * libio/strops.c: Likewise.
2696 * libio/vsnprintf.c: Likewise.
2697 * libio/vswprintf.c: Likewise.
2698 * libio/wfileops.c: Likewise.
2699 * libio/wstrops.c: Likewise.
2700 * login/getutent_r.c: Likewise.
2701 * login/getutid_r.c Likewise.
2702 * login/getutline_r.c: Likewise.
2703 * sysdeps/generic/utmp_file.c: Likewise.
2705 2004-01-09 Bruno Haible <bruno@clisp.org>
2707 * intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
2708 * intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
2709 (_nl_load_domain): Treat major revision 1 like major revision 0.
2711 2004-01-11 Bruno Haible <bruno@clisp.org>
2713 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
2714 width or precision has been seen.
2716 2004-01-08 Bruno Haible <bruno@clisp.org>
2718 * intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
2719 dependent segment not known to this version of the library, ignore
2720 the string pair instead of crashing.
2722 2004-01-13 Ulrich Drepper <drepper@redhat.com>
2724 * configure.in: Rewrite test to give gcc to clean up after itself.
2725 Patch by Greg Schafer.
2727 * posix/regex.c: Support crappy compilers and platforms which have
2728 problems with alloca.
2729 * posix/regex_internal.h: Likewise.
2730 Patch by Paolo Bonzini.
2732 2004-01-12 Paolo Bonzini <bonzini@gnu.org>
2734 * posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
2735 Drop code to support this, it is never true.
2736 (build_range_exp) [!_LIBC]: Do not create a range
2737 in MBCSET for a single-byte character set.
2738 (build_range_exp) [_LIBC]: Do not create a range
2739 in MBCSET for a single-byte character set without
2741 (init_dfa): Do not conditionalize on _LIBC, it
2742 just makes the code less clear.
2743 (parse_bracket_exp): Use NON_MATCH variable in
2744 addition to "mbcset->non_match", not as an
2746 (build_charclass_op): rename NOT parameter to
2747 NON_MATCH, use it instead of declaring a variable.
2748 (parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
2749 if the character set is single-byte.
2751 2004-01-14 Jakub Jelinek <jakub@redhat.com>
2753 * posix/regcomp.c (peek_token_bracket): Check remaining
2754 string length before re_string_peek_byte (x, 1).
2755 (parse_bracket_symbol): Likewise.
2756 * posix/regex_internal.h (re_string_is_single_byte_char): Return
2757 true at last byte in the string.
2758 * posix/bug-regex22.c (main): Add new test.
2760 2004-01-13 Ulrich Drepper <drepper@redhat.com>
2762 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
2765 * sysdeps/x86_64/dl-machine.h: Include <tls.h>.
2767 * elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
2768 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
2769 rtld_hidden_def and move into .data.rel.ro section.
2770 * sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
2772 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
2775 2004-01-13 Richard Henderson <rth@redhat.com>
2777 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
2779 2004-01-13 Ulrich Drepper <drepper@redhat.com>
2781 * sysdeps/unix/sysv/linux/dl-execstack.c
2782 (_dl_make_stack_executable): Move common code in front. Use
2785 * sysdeps/unix/sysv/linux/dl-execstack.c: Change interface. Add
2786 challenge for caller.
2787 * sysdeps/generic/ldsodefs.h: Change declaration and type of hook
2788 member in rtld_global appropriately.
2789 * elf/dl-support.c: Likewise.
2790 * elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
2791 Pass it on to the changed function.
2792 (_dl_map_object): Pass new parameter to _dl_map_object_from_fd.
2794 2004-01-13 Richard Henderson <rth@redhat.com>
2796 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
2797 Cast old up to uint64_t before back down to inner width.
2798 (__arch_compare_and_exchange_xxx_16_int): Likewise.
2799 (__arch_compare_and_exchange_xxx_32_int): Likewise.
2800 (__arch_compare_and_exchange_xxx_64_int): Likewise.
2801 (__arch_compare_and_exchange_val_8_int): Cast result to
2802 the type of the memory.
2803 (__arch_compare_and_exchange_val_16_int): Likewise.
2804 (__arch_compare_and_exchange_val_32_int): Likewise.
2805 (__arch_compare_and_exchange_val_64_int): Likewise.
2806 (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
2807 (atomic_compare_and_exchange_bool_rel): Likewise.
2809 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
2810 based on HAVE___THREAD instead of USE_TLS.
2812 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
2813 (__adjtimex_tv64): Use it.
2815 * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
2816 to void* rather than directly to the compatibility structure type.
2817 * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.
2819 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
2822 2004-01-13 Richard Henderson <rth@redhat.com>
2824 * Versions.def (libm): Add GLIBC_2.3.3.
2825 * sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
2826 * sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
2827 sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
2828 sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
2829 sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
2830 sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
2831 sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
2832 sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
2833 sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
2834 sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
2835 sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
2836 sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
2837 sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
2838 * sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
2839 functions for gcc 3.3.
2841 * sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
2842 sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
2843 sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
2844 sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
2845 sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
2846 sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
2847 sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
2848 sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
2849 sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
2850 weak_alias if the function name has been #defined.
2852 * math/cabsf.c: Move ...
2853 * sysdeps/generic/cabsf.c: ... here.
2854 * math/cargf.c: Move ...
2855 * sysdeps/generic/cargf.c: ... here.
2856 * math/cimagf.c: Move ...
2857 * sysdeps/generic/cimagf.c: ... here.
2858 * math/conjf.c: Move ...
2859 * sysdeps/generic/conjf.c: ... here.
2860 * math/crealf.c: Move ...
2861 * sysdeps/generic/crealf.c: ... here.
2863 2004-01-13 Ulrich Drepper <drepper@redhat.com>
2865 * Makeconfig: Define relro-LDFLAGS if have-z-relro==yes. Add it to
2866 LDFLAGS.so and LDFLAGS-rtld.
2867 (+link): Add relro-LDFLAGS.
2868 * Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
2869 __libc_thread_subfreeres sections after .jcr section.
2870 * config.make.in: Add have-z-relro.
2871 * configure.in: Add check for -z relro option.
2872 * include/link.h (struct link_map): Add relro_addr and relro_size
2874 * elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
2875 * elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
2876 part of loaded segments read-only.
2877 * elf/elf.h: Define PT_GNU_RELRO.
2878 * elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
2879 (dl_main): Recognize PT_GNU_RELRO of the application. Call
2880 _dl_debug_initialize and initialize l_info[DT_DEBUG] before
2883 2004-01-12 Jakub Jelinek <jakub@redhat.com>
2885 * sysdeps/x86_64/strcspn.S: Fix typo in last patch.
2887 2004-01-11 Andreas Jaeger <aj@suse.de>
2889 * sysdeps/x86_64/__longjmp.S: Add cfi directives.
2891 2004-01-10 Andreas Jaeger <aj@suse.de>
2893 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
2894 * sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
2895 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2896 * sysdeps/x86_64/strcspn.S: Likewise.
2897 * sysdeps/x86_64/strspn.S: Likewise.
2899 2004-01-08 Jakub Jelinek <jakub@redhat.com>
2901 * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
2902 right before syscall and cfi_startproc before PSEUDO_END.
2903 Clear %rbp in thread_start.
2905 2004-01-05 Jakub Jelinek <jakub@redhat.com>
2907 * posix/regcomp.c (regcomp): Fix comment typo.
2908 (regfree): Free preg->translate, clear buffer, allocated, fastmap
2909 and translate fields.
2911 * posix/regcomp.c (build_charclass, buld_charclass_op): Change first
2912 argument to unsigned RE_TRANSLATE_TYPE.
2913 * posix/regex_internal.h (re_string_t): Change trans type to
2914 unsigned RE_TRANSLATE_TYPE.
2915 * posix/regex_internal.c (re_string_construct_common): Cast
2916 trans to unsigned RE_TRANSLATE_TYPE.
2917 (re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
2918 path if pstr->trans. Never translate the character through
2920 * posix/Makefile (tests): Add bug-regex22.
2921 (bug-regex22-ENV): Set.
2922 * posix/bug-regex22.c: New test.
2924 2004-01-02 Paolo Bonzini <bonzini@gnu.org>
2926 * posix/regex_internal.c (re_node_set_add_intersect,
2927 re_node_set_merge): Rewritten.
2928 (re_node_set_insert, re_node_set_remove_at):
2929 Avoid memmove, we know what direction we should copy and that we
2930 are copying 32-bit words.
2931 (re_node_set_compare): Iterate backwards.
2933 2003-12-30 Paul Eggert <eggert@twinsun.com>
2935 * time/mktime.c (verify): New macro.
2936 (time_t_is_integer, twos_complement_arithmetic,
2937 right_shift_propagates_sign, base_year_is_a_multiple_of_100,
2938 C99_integer_division): Document these longstanding assumptions in the
2939 code, and verify them at compile-time.
2941 2004-01-02 Jakub Jelinek <jakub@redhat.com>
2943 * posix/regex_internal.h (re_match_context_t): Add dfa member.
2944 * posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
2945 match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
2946 prune_impossible_nodes, check_halt_state_context, proceed_next_node,
2947 sift_states_backward, update_cur_sifted_state, check_dst_limits,
2948 check_dst_limits_calc_pos, sift_states_bkref, transit_state,
2949 check_subexp_matching_top, transit_state_sb, transit_state_mb,
2950 transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
2951 check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
2952 Remove dfa parameter. Get dfa from mctx. Adjust callers.
2953 (re_search_internal): Initialize mctx.dfa.
2955 * posix/regex_internal.c (re_node_set_insert): Remove unused variables.
2957 * posix/regex_internal.h (re_dfa_t): Add syntax field.
2958 * posix/regcomp.c (parse): Initialize dfa->syntax.
2959 * posix/regexec.c (acquire_init_state_context,
2960 prune_impossible_nodes, check_matching, check_halt_state_context,
2961 proceed_next_node, sift_states_iter_mb, sift_states_backward,
2962 update_cur_sifted_state, sift_states_bkref, transit_state,
2963 transit_state_sb, transit_state_mb, transit_state_bkref,
2964 get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
2965 build_trtable): Remove preg argument, add dfa argument instead
2966 and remove dfa = preg->buffer initialization in the body.
2968 (check_node_accept_bytes, group_nodes_into_DFAstates,
2969 check_node_accept): Likewise. Use dfa->syntax instead of
2971 (check_arrival_add_next_nodes): Remove preg argument.
2973 * posix/regex_internal.h (re_match_context_t): Make input
2974 re_string_t instead of a pointer to it.
2975 * posix/regex_internal.c (re_string_construct_common): Don't clear
2977 (re_string_construct): ... but only here.
2978 * posix/regexec.c (match_ctx_init): Remove input argument. Don't
2979 initialize fields to zero.
2980 (re_search_internal): Move input into mctx.input.
2981 (acquire_init_state_context, check_matching,
2982 check_halt_state_context, proceed_next_node,
2983 clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
2984 transit_state, transit_state_sb, transit_state_mb,
2985 transit_state_bkref, get_subexp, check_arrival,
2986 check_arrival_add_next_nodes, check_node_accept, extend_buffers):
2987 Change mctx->input into &mctx->input and mctx->input->field into
2990 2004-01-02 Jakub Jelinek <jakub@redhat.com>
2991 Paolo Bonzini <bonzini@gnu.org>
2993 * posix/regex_internal.h (re_const_bitset_ptr_t): New type.
2994 (re_string_t): Add newline_anchor, word_char and word_ops_used fields.
2995 (re_dfa_t): Change word_char type to bitset. Add word_ops_used field.
2996 (re_string_context_at, re_string_reconstruct): Remove last argument.
2997 * posix/regex_internal.c (re_string_allocate): Initialize
2998 pstr->word_char and pstr->word_ops_used.
2999 (re_string_context_at): Remove newline_anchor argument.
3000 Use input->newline_anchor instead, swap && conditions.
3001 Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
3002 Use input->word_char bitmap instead of IS_WORD_CHAR.
3003 (re_string_reconstruct): Likewise.
3004 Adjust re_string_context_at caller.
3005 * posix/regexec.c (acquire_init_state_context,
3006 check_halt_state_context, transit_state, transit_state_sb,
3007 transit_state_mb, transit_state_bkref, check_arrival,
3008 check_node_accept): Adjust re_string_context_at and
3009 re_string_reconstruct callers.
3010 (re_search_internal): Likewise. Set input.newline_anchor.
3011 (build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
3012 * posix/regcomp.c (init_word_char): Change return type to void.
3013 Set dfa->word_ops_used.
3014 (free_dfa_content): Don't free dfa->word_char.
3015 (parse_expression): Remove error handling for init_word_char.
3017 2004-01-01 Paolo Bonzini <bonzini@gnu.org>
3019 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
3022 * posix/regex_internal.c (re_node_set_insert): Rewrite.
3024 2004-01-01 Ulrich Drepper <drepper@redhat.com>
3026 * posix/getconf.c: Update copyright year.
3027 * nss/getent.c: Likewise.
3028 * nscd/nscd_nischeck.c: Likewise.
3029 * iconv/iconvconfig.c: Likewise.
3030 * iconv/iconv_prog.c: Likewise.
3031 * elf/ldconfig.c: Likewise.
3032 * catgets/gencat.c: Likewise.
3033 * csu/version.c: Likewise.
3034 * elf/ldd.bash.in: Likewise.
3035 * elf/sprof.c (print_version): Likewise.
3036 * locale/programs/locale.c: Likewise.
3037 * locale/programs/localedef.c: Likewise.
3038 * nscd/nscd.c (print_version): Likewise.
3039 * debug/xtrace.sh: Likewise.
3040 * malloc/memusage.sh: Likewise.
3041 * malloc/mtrace.pl: Likewise.
3043 2004-01-01 Petter Reinholdtsen <pere@hungry.com>
3045 * stdlib/strfmon.c: Make formatting of left-justified currency
3046 values match the the POSIX standard. When using format string
3047 "[%-14#5.4n]" to print -123.45, the result should be
3048 "[-$ 123.4500 ]", not "[-$123.4500 ]".
3050 2004-01-01 Andreas Jaeger <aj@suse.de>
3052 * resolv/Makefile (generated): New.
3054 2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
3056 * CONFORMANCE: Update.
3058 2003-12-30 Paul Eggert <eggert@twinsun.com>
3060 * time/mktime.c: (my_mktime_localtime_r):
3061 Remove. All uses changed to __localtime_r.
3062 (__localtime_r) [!defined _LIBC]: New macro. Include "time_r.h" to
3063 get its implementation.
3064 Fix compile-command to allow for TIME_R_POSIX.
3066 * time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
3067 Remove. All uses changed to __localtime_r and __gmtime_r.
3068 (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
3069 Include "time_r.h" to get their implementations.
3071 * time/timegm.c: Allow use in GNU applications outside glibc.
3072 [defined HAVE_CONFIG_H]: Include <config.h>.
3073 [!defined _LIBC]: Include "timegm.h", <time_r.h>.
3074 Define __gmtime_r, and declare __mktime_internal.
3075 (timegm): Define via a prototype, since we can safely assume C89 now.
3077 * time/mktime.c (check_result): Use less-confusing report format.
3078 "long" -> "long int", as per usual GNU style.
3080 Don't loop if the iteration overflows time_t.
3081 Allow a negative step in the iteration.
3083 * time/mktime.c: Assume freestanding C89 or better.
3084 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
3086 (__P): Remove; not used.
3087 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
3088 (mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
3089 Prototypes use const * where appropriate.
3090 (main) [DEBUG]: Fix typo in testing code uncovered by above changes,
3091 which caused the testing code to dump core on some hosts.
3093 2003-12-31 Ulrich Drepper <drepper@redhat.com>
3095 * locale/setlocale.c (setlocale): Avoid duplicating locale names
3096 if we can reuse old strings.
3098 * inet/rcmd.c: Provide better error message in case of unknown
3099 host. Remove USE_IN_LIBIO.
3101 * nscd/nscd.init: Updated version, more conforming with current
3102 init file standards.
3104 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
3105 /var/run/nscd directory.
3106 (_PATH_NSCDSOCKET): Likewise.
3108 * test-skeleton.c (timeout_handler): Fix error message.
3110 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
3113 2003-12-30 Jakub Jelinek <jakub@redhat.com>
3115 * posix/regexec.c (get_subexp): Only set bkref_str after the first
3116 loop, use buf + bkref_str_off in the loop instead.
3117 * posix/bug-regex11.c (tests): Add 3 new tests.
3119 * posix/regexec.c (clean_state_log_if_need): Rename to...
3120 (clean_state_log_if_needed): ...this.
3121 (transit_state_mb, get_subexp_sub): Adjust callers.
3123 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
3124 failed. Reported by Steve Grubb.
3126 2003-12-29 Ulrich Drepper <drepper@redhat.com>
3128 * elf/elf.h: Add a few definitions from Solaris 9.
3130 2003-12-29 Andreas Schwab <schwab@suse.de>
3132 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
3133 $(fno_unit_at_a_time) to avoid reordering assembler output.
3135 2003-12-29 Jakub Jelinek <jakub@redhat.com>
3137 * posix/regexec.c (re_copy_regs): Revert comment change.
3138 Avoid memory leak if realloc fails.
3139 (proceed_next_node): Return -2 if re_node_set_insert fails.
3140 Return -2 if push_fail_stack fails.
3141 (push_fail_stack): Change fs->alloc only after successful realloc.
3142 (pop_fail_stack): Formatting.
3143 (set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.
3144 (check_arrival_add_next_nodes): Merge identical statements
3147 * signal/Makefile (tests): Add tst-raise.
3148 * signal/tst-raise.c: New test.
3150 2003-12-28 Ulrich Drepper <drepper@redhat.com>
3152 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.
3154 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
3155 (push_fail_stack): Add missing check for failed memory allocation.
3157 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
3158 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and
3161 2003-12-28 Andreas Jaeger <aj@suse.de>
3163 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
3164 overflow for 0 as argument. Raise Invalid exception for negative args.
3165 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3166 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
3167 * sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
3168 * sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
3169 * sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
3170 * sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
3171 * sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
3172 * sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
3173 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3174 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3175 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3177 * math/libm-test.inc (yn_test): Expect invalid exception for
3179 (y0_test): Likewise.
3180 (y1_test): Likewise.
3182 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
3183 execptions for exp(NaN).
3185 2003-12-23 Paolo Bonzini <bonzini@gnu.org>
3187 * posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
3188 * posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
3189 among the tokens, rather than among the epsilon-transiting nodes.
3190 (re_token_t): Add the opt_subexp flag.
3191 * posix/regcomp.c (optimize_utf8, calc_first,
3192 calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
3193 (mark_opt_subexp, mark_opt_subexp_iter): New functions.
3194 (parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
3195 OP_DUP_ASTERISK and marking optional subexpressions
3196 as such using mark_opt_subexp.
3197 * posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
3198 and pass it to update_regs.
3199 (update_regs): Use the PREV_INDEX_MATCH parameter, together
3200 with the opt_subexp flag, in order to discard a final empty
3201 match of a repeated subexpression.
3202 * posix/BOOST.tests: Adjust test vectors.
3203 * posix/PCRE.tests: Likewise.
3204 * posix/rxspencer/tests: Likewise.
3206 2000-05-22 Jakub Jelinek <jakub@redhat.com>
3208 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
3209 with omitted middle operand.
3211 2003-12-22 Jakub Jelinek <jakub@redhat.com>
3213 * posix/regcomp.c: Remove C99-ism.
3214 * posix/tst-rxspencer.c: Likewise.
3215 Based on a patch by Alex Davis <alex14641@yahoo.com>.
3217 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
3219 * posix/regex_internal.h [!_LIBC] (internal_function): Define.
3220 (re_string_allocate, re_string_construct, re_string_reconstruct,
3221 re_string_realloc_buffers, build_wcs_buffer,
3222 build_wcs_upper_buffer, build_upper_buffer,
3223 re_string_translate_buffer, re_string_destruct,
3224 re_string_elem_size_at, re_string_char_size_at,
3225 re_string_wchar_at, re_string_context_at,
3226 re_node_set_alloc, re_node_set_init_1
3227 re_node_set_init_2, re_node_set_init_copy,
3228 re_node_set_add_intersect, re_node_set_init_union,
3229 re_node_set_merge, re_node_set_insert
3230 re_node_set_compare, re_node_set_contains
3231 re_node_set_remove_at, re_dfa_add_node,
3232 re_acquire_state, re_acquire_state_context,
3233 free_state): Add internal_function to declaration.
3235 * posix/regexec.c (match_ctx_init, match_ctx_clean,
3236 match_ctx_free, match_ctx_free_subtops,
3237 match_ctx_add_entry, search_cur_bkref_entry,
3238 match_ctx_clear_flag, match_ctx_add_subtop,
3239 match_ctx_add_sublast, sift_ctx_init,
3240 re_search_internal, re_search_2_stub, re_search_stub,
3241 re_copy_regs, acquire_init_state_context,
3242 prune_impossible_nodes, check_matching,
3243 check_halt_node_context, check_halt_state_context
3244 update_regs, proceed_next_node, push_fail_stack,
3245 pop_fail_stack, set_regs, free_fail_stack_return,
3246 sift_states_iter_mb, sift_states_backward
3247 update_cur_sifted_state, add_epsilon_src_nodes,
3248 sub_epsilon_src_nodes, check_dst_limits,
3249 check_dst_limits_calc_pos, check_subexp_limits,
3250 sift_states_bkref, clean_state_log_if_need,
3251 merge_state_array, transit_state,
3252 check_subexp_matching_top, transit_state_sb,
3253 transit_state_mb, transit_state_bkref,
3254 get_subexp, get_subexp_sub, find_subexp_node,
3255 check_arrival, check_arrival_add_next_nodes,
3256 find_collation_sequence_value, check_arrival_expand_ecl,
3257 check_arrival_expand_ecl_sub, expand_bkref_cache,
3258 build_trtable, check_node_accept_bytes, extend_buffers,
3259 group_nodes_into_DFAstates, check_node_accept): Likewise.
3261 * posix/regex_internal.c (re_string_construct_common,
3262 re_string_skip_chars, create_newstate_common,
3263 register_state, create_ci_newstate, create_cd_newstate,
3264 calc_state_hash): Likewise.
3265 (re_string_peek_byte_case, re_fetch_byte_case): Change
3266 declaration from ANSI to K&R.
3268 2003-12-16 Paolo Bonzini <bonzini@gnu.org>
3270 * posix/regexec.c (build_trtable): Don't allocate the trtable
3271 until state->word_trtable is known. Don't hardcode UINT_BITS
3272 iterations on each bitset item.
3274 2003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3276 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
3277 Initialize REF before passing it to _dl_lookup_symbol.
3279 2003-12-21 Roland McGrath <roland@frob.com>
3281 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
3283 2003-12-21 Jakub Jelinek <jakub@redhat.com>
3285 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
3287 * posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
3288 NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
3289 * posix/bug-regex19.c (tests): Add new tests.
3291 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.
3293 * posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
3294 after checking syntax. Optimize.
3295 (calc_first): Fix comment.
3296 * posix/bug-regex13.c (tests): Add new tests.
3298 2003-12-21 Roland McGrath <roland@redhat.com>
3300 * manual/arith.texi (Parsing of Integers): Typo fix.
3302 2003-12-20 Roland McGrath <roland@frob.com>
3304 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo:
3305 add missing dereference of IFREQS before counting loop.
3307 2003-12-21 Andreas Schwab <schwab@suse.de>
3309 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory
3312 2003-12-20 Ulrich Drepper <drepper@redhat.com>
3314 * elf/rtld.c (dl_main): Optimize order of subexpressions in if().
3316 2003-12-18 Ulrich Drepper <drepper@redhat.com>
3318 * stdio-common/printf_fp.c: Add support to use alternative decimal
3320 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to
3321 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>.
3323 2003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca>
3325 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC,
3326 reload PIC if we need to call __syscall_error, cleanup asm.
3328 2003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca>
3330 * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Right shift
3331 FE_ALL_EXCEPT before complimenting.
3332 * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Use asm 'ma,' completer,
3333 and gcc '+r' constraint.
3334 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
3335 * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
3336 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Read raised
3337 exception bits, OR with envp, pass to fesetenv.
3338 * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Add delayed
3339 exception flushing, FE_UNDERFLOW is DBL_MIN/3.0, FE_INEXACT is
3340 triggered by M_PI/69.69 converted to single precision.
3341 * sysdeps/hppa/fpu/fsetexcptflg.c (fesetexceptflag): Set enable
3342 bits not raised exception bits.
3344 * sysdeps/hppa/Makefile: Add dl-symaddr and dl-fptr to the
3345 correct build strings.
3346 * sysdeps/hppa/dl-fptr.h: New file.
3347 * sysdeps/hppa/dl-fptr.c: Removed.
3348 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Use _dl_make_ftpr,
3349 remove const qualifier for map.
3350 (_dl_function_address): Removed.
3351 * sysdeps/hppa/dl-lookupcfg.h: DL_LOOKUP_ADDRESS must clear
3352 PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
3353 DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and
3354 DL_DT_FINI_ADDRESS use the previous two macros.
3356 2003-12-17 Jakub Jelinek <jakub@redhat.com>
3358 * malloc/mtrace.c (tr_old_memalign_hook): New variable.
3359 (tr_memalignhook): New function.
3360 (mtrace): Register tr_memalignhook.
3361 (muntrace): Deregister tr_memalignhook.
3362 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL,
3363 call it directly instead of memalign_internal.
3365 2003-12-17 Ulrich Drepper <drepper@redhat.com>
3367 * misc/mntent_r.c: Change encoding to match recently changed decoder.
3368 Patch by Alexander Achenbach <xela@slit.de>.
3370 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
3372 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
3375 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
3377 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend
3378 conditional to include typedef elf_vrreg_t.
3380 2003-12-17 Paolo Bonzini <bonzini@gnu.org>
3382 * posix/regexec.c (re_search_internal): Limit search to the
3383 beginning of the buffer if the initial states are empty for
3384 contexts that do not include CONTEXT_BEGBUF or, if
3385 !preg->newline_anchor, that do not include any one of
3386 CONTEXT_BEGBUF and CONTEXT_NEWLINE.
3388 2003-12-17 Andreas Jaeger <aj@suse.de>
3390 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by
3391 Kevin Pedretti <pedretti@ieee.org>.
3393 2003-12-17 Ulrich Drepper <drepper@redhat.com>
3395 * elf/rtld.c: Don't use strong_alias to define _rtld_local. This
3396 removes the visibility attributes which might be defined earlier
3397 for some gcc versions. Instead spell out what strong_alias does
3398 plus the visibility.
3400 2003-12-16 Petter Reinholdtsen <pere@hungry.com>
3402 * posix/regex_internal.h: Make sure the regex code compile
3403 with non-GCC compilers by hiding attributes.
3405 2003-12-16 Jakub Jelinek <jakub@redhat.com>
3406 Paolo Bonzini <bonzini@gnu.org>
3408 * posix/regexec.c (group_nodes_into_DFAstates): Never produce
3409 dests_ch items that are empty.
3411 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
3413 * posix/regexec.c (check_arrival): Remove duplicate test.
3415 2003-12-15 Ulrich Drepper <drepper@redhat.com>
3417 * posix/regcomp.c: Make !RE_ENABLE_I18N work again.
3418 * posix/regex_internal.c: Likewise.
3419 * posix/regexec.c: Likewise.
3420 Patch by Paolo Bonzini.
3422 2003-12-14 Paolo Bonzini <bonzini@gnu.org>
3424 * posix/regex_internal.c (re_acquire_state_context):
3425 Compare the node sets after all the other comparisons.
3427 2003-12-13 Paolo Bonzini <bonzini@gnu.org>
3429 * posix/regexec.c (find_subexp_node, check_arrival,
3430 check_arrival_add_next_nodes, check_arrival_expand_ecl,
3431 check_arrival_expand_ecl_sub, expand_bkref_cache):
3432 Rename the FL_OPEN parameter to TYPE, which is either
3433 OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP. Callers adjusted.
3435 2003-12-12 Andreas Jaeger <aj@suse.de>
3437 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument
3440 2003-12-11 Ulrich Drepper <drepper@redhat.com>
3442 * sysdeps/unix/sysv/linux/kernel-features.h: Remove __ASSUME_VSYSCALL.
3443 There might always be processes which have no vDSO.
3444 * sysdeps/generic/dl-sysdep.c: Remove __ASSUME_VSYSCALL uses.
3445 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3447 2003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca>
3449 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old
3452 2003-12-01 Jes Sorensen <jes@wildopensource.com>
3454 * rt/tst-clock.c (do_test): Print message when skipping
3455 CLOCK_PROCESS_CPUTIME_ID test.
3457 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: New file.
3458 Provide CLOCK_PROCESS_CPUTIME_ID only if /proc/sal/itc_drift is 0.
3460 2003-12-02 David Mosberger <davidm@hpl.hp.com>
3462 * sysdeps/ia64/elf/initfini.c: Add unwind info.
3464 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with
3466 (elf_machine_dynamic): Mark with attributes "unused" and "const".
3467 (elf_machine_runtime_setup): Likewise.
3469 * sysdeps/generic/dl-fptr.c (make_fptr_table): Mark with
3470 attribute "always_inline".
3471 * sysdeps/ia64/dl-machine.h (__ia64_init_bootstrap_fdesc_table):
3474 * configure.in: Check whether compiler has libunwind support.
3475 * config.make.in (have-cc-with-libunwind): New variable.
3476 * config.h.in (HAVE_CC_WITH_LIBUNWIND): New macro.
3477 * Makeconfig (gnulib): If have-cc-with-libunwind is "yes", also
3480 2003-11-12 David Mosberger <davidm@hpl.hp.com>
3482 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Define DO_CALL_VIA_BREAK.
3483 Redefine DO_CALL to use vdso if supported, otherwise DO_CALL_VIA_BREAK.
3484 Likewise for DO_INLINE_SYSCALL. Make INTERNAL_SYSCALL use
3487 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK()
3488 instead of DO_CALL().
3490 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead
3493 * sysdeps/unix/sysv/linux/ia64/brk.S (__curbrk): Restructure it
3494 to take advantage of DO_CALL() macro.
3495 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
3496 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
3498 * elf/rtld.c (dl_main): Restrict dl_sysinfo_dso check to first
3499 program header. On ia64, the check failed previously because
3500 there are two program headers.
3502 2003-12-10 Andreas Jaeger <aj@suse.de>
3503 Ruediger Oertel <ro@suse.de>
3505 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used.
3507 2003-12-07 Ulrich Drepper <drepper@redhat.com>
3509 * sysdeps/i386/fpu/s_nexttowardf.c: Construct overflow value correctly.
3510 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
3511 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3512 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
3513 * sysdeps/generic/s_nexttowardf.c: Likewise.
3514 * math/Makefile (tests): Add bug-nexttoward.
3515 * math/bug-nexttoward.c: New file.
3517 * sysdeps/generic/s_nextafter.c: Make sure overflow exception is set.
3518 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3519 * math/bug-nextafter.c (main): Add tests for overflow and negative
3522 2003-12-06 Ulrich Drepper <drepper@redhat.com>
3524 * math/Makefile (tests): Add bug-nextafter.
3525 * math/bug-nextafter.c: New file.
3526 * sysdeps/generic/s_nextafter.c: Construct overflow value correctly.
3527 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
3528 * math/libm-test.inc (nextafter_test): Add test for overflow after
3531 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
3533 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
3535 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
3537 2003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3539 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END
3541 * sysdeps/s390/s390-64/elf/setjmp.S (setjmp, __setjmp): Likewise.
3542 * sysdeps/s390/s390-32/sysdep.h (ENTRY): Add cfi_startproc directive.
3543 (END): Add cfi_endproc directive.
3544 * sysdeps/s390/s390-64/sysdep.h (ENTRY, END): Likewise.
3545 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Remove
3546 cfi_startproc and cfi_endproc directive.
3547 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
3548 * sysdeps/s390/s390-32/addmul_1.S (__mpn_addmul_1): Add CFI directives.
3549 * sysdeps/s390/s390-32/add_n.S (__mpn_add_n): Likewise.
3550 * sysdeps/s390/s390-64/add_n.S (__mpn_add_n): Likewise.
3551 * sysdeps/s390/s390-32/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3553 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3555 * sysdeps/s390/s390-32/mul_1.S (__mpn_mul_1): Likewise.
3556 * sysdeps/s390/s390-32/sub_n.S (__mpn_sub_n): Likewise.
3557 * sysdeps/s390/s390-64/sub_n.S (__mpn_sub_n): Likewise.
3558 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64): Likewise.
3559 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap): Likewise.
3560 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap): Likewise.
3561 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Likewise.
3562 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
3563 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
3565 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
3567 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add CFI
3568 directives. Move thread_start out of ENTRY/PSEUDO_END block to
3569 make backchain terminate.
3570 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3572 * sysdeps/s390/s390-32/backtrace.c (trace_arg): New structure.
3573 (unwind_backtrace, unwind_getip): New variables.
3574 (init, __backchain_backtrace, backtrace_helper): New functions.
3575 (__backtrace): Use unwind info for backtrace instead of backchain
3576 walking if the unwind functions can be found.
3577 * sysdeps/s390/s390-64/backtrace.c: Likewise.
3579 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file.
3581 * sysdeps/unix/sysv/linux/s390/sys/procfs.h (ELF_NGREG32): New #define.
3582 (elf_greg_t32, elf_gregset_t32, elf_fpregset_t32): New types.
3583 (elf_prstatus32, elf_prpsinfo32): New structures.
3584 (prgregset32_t, prfpregset32_t, prstatus32_t, prpsinfo32_t): New types.
3586 * scripts/data/c++-types-s390-linux-gnu.data: New file.
3587 * scripts/data/c++-types-s390x-linux-gnu.data: New file.
3589 2003-11-30 Petter Reinholdtsen <pere@hungry.com>
3591 * stdlib/strfmon.c: Correct formatting of international currency
3592 values. The international currency formatting should prefer the
3593 int_* values if they are set for a locale, and use the domestic
3594 values if the int_* values are unset.
3596 2003-12-03 Jakub Jelinek <jakub@redhat.com>
3598 * posix/Makefile (distribute): Add BOOST.tests.
3599 (tests): Add tst-boost, depend on tst-boost-mem.
3600 (generated): Add tst-boost-mem and tst-boost.mtrace.
3601 (tst-boost-ARGS, tst-boost-ENV): Set.
3602 ($(objpfx)tst-boost-mem): New.
3603 * posix/tst-boost.c: New test.
3604 * posix/BOOST.tests: New file.
3606 * posix/Makefile (distribute): Add PCRE.tests.
3607 (tests): Add tst-pcre, depend on tst-pcre-mem.
3608 (generated): Add tst-pcre-mem and tst-pcre.mtrace.
3609 (tst-pcre-ARGS, tst-pcre-ENV): Set.
3610 ($(objpfx)tst-pcre-mem): New.
3611 * posix/tst-pcre.c: New test.
3612 * posix/PCRE.tests: New file.
3614 2003-12-02 Jakub Jelinek <jakub@redhat.com>
3616 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l.
3618 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
3619 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3621 2003-12-03 Ulrich Drepper <drepper@redhat.com>
3623 * locale/programs/locarchive.c (enlarge_archive): Print size info
3624 only in verbose mode.
3626 * locale/iso-3166.def: Three letter code of Romania changed.
3628 2003-12-02 Roland McGrath <roland@redhat.com>
3630 * scripts/config.sub: Update from master, timestamp='2003-10-20'.
3631 * scripts/config.guess: Update from master, timestamp='2003-10-20'.
3633 2003-11-30 Andreas Jaeger <aj@suse.de>
3635 * config.make.in (fno-unit-at-a-time): Define.
3637 * configure.in: Add test for -fno-unit-at-a-time.
3640 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time).
3641 * locale/Makefile (CFLAGS-loadlocale.c): Likewise.
3643 2003-12-01 Automatic
3645 * version.h (VERSION): Bump to 2.3.3.
3647 2003-11-30 Andreas Jaeger <aj@suse.de>
3649 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to
3650 decrease stack usage.
3652 2003-11-30 Andreas Schwab <schwab@suse.de>
3654 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL)
3655 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
3657 2003-11-29 Ulrich Drepper <drepper@redhat.com>
3659 * misc/mntent_r.c (decode_name): Be compatible with util-linux and
3660 recognize \134 as well.
3662 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
3664 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>.
3666 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
3668 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include
3670 (struct ia64_fpreg): New definition.
3672 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include
3674 (ELF_NGREG): New #define.
3675 (ELF_NFPREG): Likewise.
3676 (elf_greg_t): New type.
3677 (elf_gregset_t): Likewise.
3678 (elf_fpreg_t): Likewise.
3679 (elf_fpregset_t): Likewise.
3681 2003-10-08 H.J. Lu <hongjiu.lu@intel.com>
3683 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include
3685 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS.
3686 (pt_all_user_regs): New type.
3688 2003-10-10 Simon Josefsson <jas@extundo.com>
3690 * argp/argp-namefrob.h [!_LIBC]: Include mempcpy.h, strcase.h,
3691 strchrnul.h, strndup.h (from gnulib).
3692 * argp/argp-parse.c: Add alloca.h include snippet verbatim from
3694 * argp/argp-help.c: Replace alloca.h include snipper with verbatim
3695 Autoconf manual version.
3696 * argp/argp.h: Map __restrict to restrict or empty string when
3697 necessary, copied verbatim from posix/regex.h.
3699 2003-10-09 Steven Munroe <sjmunroe@us.ibm.com>
3701 * Makefile: Allow for c++-types-$(config-machine)-$(config-os).data in
3702 addition to c++-types-$(base-machine)-$(config-os).data.
3703 * scripts/data/c++-types-powerpc-linux-gnu.data: New file.
3704 * scripts/data/c++-types-powerpc64-linux-gnu.data: New file.
3706 2003-11-28 Ulrich Drepper <drepper@redhat.com>
3708 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding
3710 * manual/sysinfo.texi (mtab): Adjust description accordingly.
3711 Reported by Andries.Brouwer@cwi.nl.
3713 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes
3714 to compensate other setup.
3716 2003-11-27 Andreas Jaeger <aj@suse.de>
3718 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test.
3720 * math/libm-test.inc (atan2_test): Add test that run infinitly.
3721 Reported by "Willus" <etc231etc231@willus.com>.
3723 2003-11-27 Michael Matz <matz@suse.de>
3725 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem
3728 2003-11-28 Jakub Jelinek <jakub@redhat.com>
3730 * posix/regexec.c (acquire_init_state_context): Make inline.
3731 Add always_inline attribute.
3732 (check_matching): Add BE macro. Move if (cur_state->has_backref)
3733 into if (dfa->nbackref).
3734 (sift_states_backward): Fix comment.
3735 (transit_state): Add BE macro. Move if (next_state->has_backref)
3736 into if (dfa->nbackref && next_state). Don't check for next_state
3738 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx
3740 (parse_expression): Only call init_word_char if word context will be
3743 * posix/bug-regex11.c (tests): Add new tests.
3745 * posix/tst-regex.c: Include getopt.h.
3746 (timing): New variable.
3747 (main): Set timing to 1 if --timing argument is present.
3749 (run_test, run_test_backwards): Handle timing.
3751 2003-11-27 Jakub Jelinek <jakub@redhat.com>
3753 * posix/regex_internal.h (re_string_t): Remove mbs_case field.
3754 Add offsets, valid_raw_len, raw_len, raw_stop, mbs_allocated and
3755 offsets_needed fields. Change icase, is_utf8 and map_notascii
3756 type from int bitfield to unsigned char.
3757 (MBS_ALLOCATED, MBS_CASE_ALLOCATED): Remove.
3758 (build_wcs_upper_buffer): Change prototype to return int.
3759 (re_string_peek_byte_case, re_string_fetch_byte_case): Remove
3760 defines, add prototypes.
3761 * posix/regex_internal.c (re_string_allocate): Don't initialize
3762 stop here. Don't initialize mbs_case. Set valid_raw_len.
3763 Use mbs_allocated instead of MBS_* macros.
3764 (re_string_construct): Don't initialize stop and valid_len here.
3765 Don't initialize mbs_case. Use mbs_allocated instead of MBS_*
3766 macros. Reallocate buffers if build_wcs_upper_buffer converted
3767 too few bytes. Set valid_len to bufs_len only for single byte
3768 no translation and set in that case valid_raw_len as well.
3769 (re_string_realloc_buffers): Reallocate offsets if not NULL.
3770 Use mbs_allocated instead of MBS_ALLOCATED. Don't reallocate
3772 (re_string_construct_common): Initialize raw_len, mbs_allocated,
3774 (build_wcs_buffer): Apply pstr->trans before mbrtowc instead of
3775 after it. Set valid_raw_len. Don't set mbs_case.
3776 (build_wcs_upper_buffer): Return REG_NOERROR or REG_ESPACE.
3777 Only use the fast path if !pstr->offsets_needed. Apply pstr->trans
3778 before mbrtowc instead of after it. If upper case character
3779 uses different number of bytes than lower case, goto to the
3780 slow path. Don't call towupper unnecessarily twice. Set
3781 valid_raw_len as well. Handle in the slow path the case if
3782 lower and upper case use different number of characters.
3784 (re_string_skip_chars): Use valid_raw_len instead of valid_len.
3785 (build_upper_buffer): Don't set mbs_case. Add BE macro. Set
3787 (re_string_translate_buffer): Set mbs instead of mbs_case. Set
3789 (re_string_reconstruct): Use raw_len/raw_stop to initialize
3790 len/stop. Clear valid_raw_len and offsets_needed when clearing
3791 valid_len. Use mbs_allocated instead of MBS_* macros.
3792 Check original offset against valid_raw_len instead of valid_len.
3793 Remove mbs_case handling. Adjust valid_raw_len together with
3794 valid_len. If is_utf8 and looking for tip context, apply
3795 pstr->trans first. If buffers start with partial multi-byte
3796 character, initialize mbs array as well if mbs_allocated.
3797 Check return value of build_wcs_upper_buffer.
3798 (re_string_peek_byte_case): New function.
3799 (re_string_fetch_byte_case): New function.
3800 (re_string_destruct): Use mbs_allocated instead of MBS_ALLOCATED.
3801 Don't free mbs_case. Free offsets.
3802 * posix/regcomp.c (init_dfa): Only check if charset name is UTF-8
3804 * posix/regexec.c (re_search_internal): Initialize input.raw_stop
3805 as well. Use valid_raw_len instead of valid_len when looking
3806 through fastmap. Adjust registers through input.offsets.
3807 (extend_buffers): Allow build_wcs_upper_buffer to fail.
3808 * posix/bug-regex18.c (tests): Enable #ifdefed out tests. Add new
3811 2003-11-26 Jakub Jelinek <jakub@redhat.com>
3813 * posix/regexec.c (check_subexp_limits): Only check close
3814 subexpression limitation if one is found. Formatting.
3815 (sift_states_backward, check_arrival, check_arrival_add_next_nodes):
3817 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests.
3820 2003-11-26 Ulrich Drepper <drepper@redhat.com>
3822 * sysdeps/unix/sysv/linux/kernel-features.h
3823 (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up.
3824 * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code
3825 if __ASSUME_PROT_GROWSUPDOWN is defined.
3827 2003-11-26 Andreas Jaeger <aj@suse.de>
3829 * sysdeps/unix/sysv/linux/dl-execstack.c
3830 (_dl_make_stack_executable): Set dl_stack_flags always for
3833 2003-06-22 Petter Reinholdtsen <pere@hungry.com>
3835 * locale/program/ld-monetary.c: Only check the first three
3836 characters in int_curr_symbol against ISO-4217, to make the
3837 separator character used by a locale independent of the content
3839 * locale/iso-4217.def: Remove the space character from all
3840 currency values to get the new test code in ld-monetary.c working.
3842 2003-11-21 David Mosberger <davidm@hpl.hp.com>
3844 * elf/soinit.c (_fini): Put _fini() in .init_array section if
3845 HAVE_INITFINI_ARRAY is defined.
3847 2003-11-25 Ulrich Drepper <drepper@redhat.com>
3849 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol.
3850 Define it appropriately after last change. Use it where __sqrtl
3853 2003-11-25 H.J. Lu <hongjiu.lu@intel.com>
3855 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline
3856 sqrt for gcc 3.3 and above.
3858 2003-11-25 Ulrich Drepper <drepper@redhat.com>
3860 * posix/runptests.c (main): Make errors fatal.
3861 * posix/PTESTS: One test in GA135 and GA136 check functionality
3862 which seems not guaranteed.
3864 2003-11-25 Jakub Jelinek <jakub@redhat.com>
3866 * posix/regexec.c (re_search_internal): If prune_impossible_nodes
3867 returned REG_NOMATCH, set match_last to -1. Don't initialize
3868 pmatch[0] needlessly. Fix comment.
3869 (prune_impossible_nodes): Don't segfault on NULL state_log entry.
3870 (set_regs): Fix comment.
3871 * posix/regcomp.c (parse_bracket_exp): Only set has_plural_match
3872 if adding both SIMPLE_BRACKET and COMPLEX_BRACKET.
3873 (build_charclass_op): Set has_plural_match if adding both
3874 SIMPLE_BRACKET and COMPLEX_BRACKET.
3875 * posix/bug-regex11.c (tests): Fix register values for one commented
3876 out test. Add new tests.
3878 * posix/regex_internal.c (re_string_allocate): Make sure init_len
3879 is at least dfa->mb_cur_max.
3880 (re_string_reconstruct): If is_utf8, don't fall back into
3881 re_string_skip_chars just because idx points into a middle of
3882 valid UTF-8 character. Instead, set the wcs bytes which correspond
3883 to the partial character bytes to WEOF.
3884 * posix/regexec.c (re_search_internal): Allocate input.bufs_len + 1
3885 instead of dfa->nodes_len + 1 state_log entries initially.
3886 * posix/bug-regex20.c (main): Uncomment backwards case insensitive
3889 2003-11-24 Jakub Jelinek <jakub@redhat.com>
3891 * posix/regex_internal.h (re_token_t): Add word_char bit. Add
3893 (re_dfa_t): Add sb_char field.
3894 (bitset_mask): New function.
3895 * posix/regcomp.c (free_dfa_content): Free sb_char.
3896 (init_dfa): Don't initialize word_char unnecessarily.
3898 (duplicate_node): Don't duplicate !word_char CHARACTERs with
3899 NEXT_WORD_CONSTRAINT constraint or word_char CHARACTERs with
3900 NEXT_NOTWORD_CONSTRAINT. Return -1 in *new_idx instead.
3901 (duplicate_node_closure): Handle clone_dest == -1 from
3903 (peek_token): Initialize word_char bit.
3904 (parse_expression, parse_dup_op): Add comments.
3905 (parse_bracket_exp): Don't set bitmask bits for multi-byte char
3906 starting bytes here at the beginning. Mask off the bits right
3907 before creating SIMPLE_BRACKET.
3908 (build_charclass_op): Likewise.
3909 * posix/regexec.c (group_nodes_into_DFAstates) <case OP_PERIOD>: Only
3910 set accept bits for single-byte characters.
3911 (group_nodes_into_DFAstates): Don't rely on characters 0 .. 127
3912 being single byte encoded and the rest multi-byte.
3913 * posix/bug-regex19.c (tests): Add new tests.
3914 (do_mb_tests): Initialize t to *test.
3915 (main): Fail even on do_mb_tests errors.
3917 2003-11-23 Ulrich Drepper <drepper@redhat.com>
3919 * posix/regexec.c: Correct several memory allocation problems.
3921 * posix/regex_internal.c: Likewise.
3922 * posix/regcomp.c: Likewise.
3924 * posix/regexec.c: Add const in a number of places.
3925 * posix/regex_internal.h: Make EPSILON_BIT a macro to help
3926 debugging. Its value isn't important.
3928 2003-11-22 Ulrich Drepper <drepper@redhat.com>
3930 * posix/PTESTS: Fix first test of GA143.
3932 2003-11-21 Ulrich Drepper <drepper@redhat.com>
3934 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation
3937 * locale/programs/charmap.c (charmap_read): If encoding is found
3938 not ASCII compatible, set enc_not_ascii_compatible.
3939 * locale/programs/charmap.h: Declare enc_not_ascii_compatible.
3940 * locale/programs/ld-ctype.c (ctype_startup): If
3941 enc_not_ascii_compatible is set, initialize to_nonascii to 1.
3943 2003-11-22 Jakub Jelinek <jakub@redhat.com>
3945 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS
3946 if !__libc_enable_secure.
3948 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global
3950 * elf/rtld.c (_rtld_global): Initialize _dl_use_load_bias field.
3951 (dl_main): Set GL(dl_use_load_bias) default.
3952 (process_envvars): Set GL(dl_use_load_bias) from LD_USE_LOAD_BIAS.
3953 Add EXTRA_LD_ENVVARS_13.
3954 * elf/dl-support.c (_dl_use_load_bias): New variable.
3955 * elf/dl-load.c (_dl_map_object_from_fd): Mask c->mapstart
3956 with GL(dl_use_load_bias).
3957 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add
3959 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Remove.
3960 (EXTRA_LD_ENVVARS_LINUX): Renamed to...
3961 (EXTRA_LD_ENVVARS_13): ... this. Remove case at the beginning.
3962 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
3963 Don't undefine first. Remove EXTRA_LD_ENVVARS_LINUX.
3965 2003-11-21 Ulrich Drepper <drepper@redhat.com>
3967 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable.
3969 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a
3970 pointer. Adjust callers.
3972 * posix/regcomp.c (fetch_token): Change interface to match
3973 peek_token. This avoids some copying and reduces code size.
3975 2003-11-21 Jakub Jelinek <jakub@redhat.com>
3977 * posix/bug-regex19.c (tests): Add more tests.
3979 * posix/bug-regex11.c: And one more commented out test.
3981 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte
3982 tests multiple times unnecessarily.
3984 * posix/bug-regex19.c (BRE, ERE): Define.
3985 (tests): Add many new tests, remove UTF-8 ones.
3986 (do_one_test, do_mb_tests): New functions.
3987 (main): Rewritten using do_one_test and do_mb_tests.
3989 2003-11-20 Ulrich Drepper <drepper@redhat.com>
3991 * posix/PTESTS: Fix first test in GA143.
3993 2003-11-20 Jakub Jelinek <jakub@redhat.com>
3995 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search.
3997 * posix/regex_internal.c (create_newstate_common, free_state):
3998 Don't free trtable_search.
3999 * posix/regexec.c (check_matching): Remove fl_search argument.
4000 (transit_state_sb): Likewise. #ifdef out as unused.
4001 (build_trtable): Remove fl_search argument. Set state->word_trtable
4002 and state->trtable. Build separate word and non-word tables if
4003 multi-byte and they differ for some character.
4004 (transit_state): Remove fl_search argument. Don't update
4005 state->trtable here. Handle state->word_trtable.
4006 #ifdef out unused call to transit_state_sb.
4007 (re_search_internal): Update check_matching caller.
4008 (group_nodes_into_DFAstates): Don't clear non-ascii chars in accepts
4009 bitmask for multi-byte locales.
4010 * posix/bug-regex19.c (tests): Enable some commented out tests, add
4012 * posix/tst-rxspencer.c (mb_tests): Don't test [[=b=]] for now as
4013 multi-byte. Don't run identical multi-byte tests multiple times
4015 (main): Check setlocale return value.
4016 * posix/Makefile (tst-rxspencer-ARGS): Add --utf8 argument.
4017 (tst-rxspencer-ENV): Remove MALLOC_TRACE, add LOCPATH.
4018 ($(objpfx)tst-rxspencer-mem): Run another tst-rxspencer test
4019 here, without --utf8 argument but with MALLOC_TRACE.
4021 2003-11-19 Jakub Jelinek <jakub@redhat.com>
4023 * posix/regexec.c (extend_buffers): Don't allocate
4024 twice as big state_log as needed. Don't modify pstr->valid_len
4025 for mb_cur_max == 1 !icase !trans.
4027 * posix/regcomp.c (free_bin_tree): Removed.
4028 (create_tree): Add dfa argument. Don't call re_malloc for
4029 each tree, instead allocate from str_tree_storage.
4030 (re_dfa_add_tree_node): New function.
4031 (free_dfa_content): Handle freeing if dfa->nodes == NULL
4032 or dfa->state_table == NULL.
4033 (re_compile_internal): Call free_dfa_content if init_dfa
4034 fails. Call free_workarea_compile, re_string_destruct
4035 and free_dfa_content for most of the other failure paths.
4036 (init_dfa): Initialize str_tree_storage_idx.
4037 Don't clear any fields on allocation failure.
4038 (free_workarea_compile): Free str_tree_storage chunks
4039 instead of free_bin_tree (dfa->str_tree).
4040 (parse): Call re_dfa_add_tree_node instead of re_dfa_add_node
4041 followed by create_tree. Add dfa argument to remaining
4042 create_tree calls. Remove new_idx variable. Remove calls
4044 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp,
4045 parse_dup_op, parse_bracket_exp, build_charclass_op): Likewise.
4046 (duplicate_tree): Remove calls to free_bin_tree, add dfa
4047 argument to create_tree.
4048 * posix/regex_internal.h (BIN_TREE_STORAGE_SIZE): Define.
4049 (bin_tree_storage_t): New type.
4050 (re_dfa_t): Add str_tree_storage and str_tree_storage_idx
4052 * posix/Makefile (tests): Add bug-regex21.
4053 (generated): Add bug-regex21-mem, bug-regex21.mtrace,
4054 tst-rxspencer-mem and tst-rxspencer.mtrace.
4055 (tests): Depend on $(objpfx)bug-regex21-mem
4056 and $(objpfx)tst-rxspencer-mem.
4057 (bug-regex21-ENV, tst-rxspencer-ENV): Set.
4058 ($(objpfx)bug-regex21-mem, $(objpfx)tst-rxspencer-mem): New.
4059 * posix/tst-rxspencer.c (main): Add call to mtrace.
4060 Free line at the end.
4061 * posix/bug-regex21.c: New test.
4063 2003-11-19 Ulrich Drepper <drepper@redhat.com>
4065 * posix/bug-regex20.c: Correct invalid UTF-8 sequences.
4067 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc
4068 fails, just use the byte, do no fancy conversions.
4070 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len
4072 (re_string_is_single_byte_char): Likewise.
4074 2003-11-18 Ulrich Drepper <drepper@redhat.com>
4076 * posix/regexec.c (get_subexp): After calling get_subexp_sub
4077 reload buf and bkref_str. Little optimization by avoiding memcmp.
4079 2003-11-14 David Mosberger <davidm@hpl.hp.com>
4081 * sysdeps/unix/sysv/linux/ia64/sysdep.h
4082 (GAS_ALIGN_BREAKS_UNWIND_INFO): Define this macro to indicate
4083 that all existing GAS versions have a problem with .align inside
4085 * sysdeps/ia64/memccpy.S: Work around GAS_ALIGN_BREAKS_UNWIND_INFO bug.
4086 * sysdeps/ia64/memcpy.S: Likewise.
4087 * sysdeps/ia64/memset.S: Likewise.
4088 * sysdeps/ia64/memmove.S: Likewise. Also move the jump-table to
4089 out of .text into .rodata, where it belongs.
4091 * sysdeps/unix/sysv/linux/ia64/pipe.S: There is no need to
4092 save/restore input-arguments, because they're necessarily
4093 preserved by the kernel to support syscall-restart.
4095 2003-11-18 Jakub Jelinek <jakub@redhat.com>
4097 * posix/regex_internal.h (re_token_type_t): Remove unused ALT,
4098 END_OF_RE_TOKEN_T and SUBEXP. Reorder values. Add OP_UTF8_PERIOD
4100 (IS_EPSILON_NODE): Just test if EPSILON_BIT is set.
4101 (ACCEPT_MB_NODE): Return 1 for OP_UTF8_PERIOD as well.
4102 * posix/regex_internal.c (create_ci_newstate, create_cd_newstate):
4103 Handle OP_UTF8_PERIOD.
4104 (re_string_reconstruct): Set valid_len for single byte char searching
4105 with no translation and case sensitivity.
4106 * posix/regcomp.c (re_compile_fastmap_iter, calc_first): Handle
4108 (re_compile_internal): Don't call optimize_utf8 if preg->translate
4110 (optimize_utf8): Remove BACK_SLASH case.
4111 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be
4113 (parse_bracket_exp): Don't create SIMPLE_BRACKET if it doesn't have
4114 any bits set and COMPLEX_BRACKET is used.
4115 * posix/regexec.c (transit_state_mb): Fix comment typo.
4116 (group_nodes_into_DFAstates, check_node_accept): Handle
4118 (check_node_accept_bytes): Likewise. Reorder slightly so that
4119 re_string_char_size_at and re_string_elem_size_at are called
4121 * posix/bug-regex20.c (BRE, ERE): Define.
4122 (tests): Use them to make lines shorter. Expect . to be
4123 optimized. Add lots of new tests.
4124 (main): Run (ATM just case sensitive) test with backwards searching
4127 2003-11-18 Jakub Jelinek <jakub@redhat.com>
4129 * io/bug-ftw4.c: Include string.h.
4130 * posix/fnmatch.c (mbsinit): Remove define.
4132 2003-11-17 Jakub Jelinek <jakub@redhat.com>
4134 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as
4136 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char
4137 followed by dup operator is expected to be optimized.
4139 * posix/regexec.c (check_node_accept_bytes): Move nrules and j
4140 variables to the block where they are only used, initialize
4141 nrules only immediately before using it.
4143 2003-11-15 Andreas Jaeger <aj@suse.de>
4145 * sysdeps/x86_64/fpu/s_scalbnl.S: New file.
4146 * sysdeps/x86_64/fpu/s_truncl.S: New file.
4147 * sysdeps/x86_64/fpu/s_nearbyintl.S: New file.
4148 * sysdeps/x86_64/fpu/s_floorl.S: New file.
4149 * sysdeps/x86_64/fpu/s_ilogbl.S: New file.
4150 * sysdeps/x86_64/fpu/e_remainderl.S: New file.
4152 * math/libm-test.inc (floor_test): Test also ±0.25.
4153 (ceil_test): Test -0.25.
4155 2003-11-17 Ulrich Drepper <drepper@redhat.com>
4157 * sysdeps/posix/getaddrinfo.c: Add support for destination address
4158 selection according to RFC 3484.
4160 2003-11-15 Ulrich Drepper <drepper@redhat.com>
4162 * posix/regex_internal.h: Add forward declaration of re_dfa_t.
4163 Replace last two parameters of re_string_allocate and
4164 re_string_construct with pointer to DFA.
4165 (re_dfa_t): Add map_notascii field.
4166 * posix/regcomp.c (re_compile_internal): Add call of
4167 re_string_construct.
4168 (init_dfa): Initialize map_notascii.
4169 * posix/regex_internal.c: Adjust definitions of re_string_allocate
4170 and re_string_construct.
4171 Pass DFA to re_string_construct. Adjust definition. Initialize
4173 (build_wcs_upper_buffer): If map_notascii is zero use simplified
4174 method to map ASCII values to upper case.
4175 * posix/regex.c: Include localeinfo.h.
4176 * posix/regexec.c: Adjust call of re_string_allocate.
4178 * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII.
4179 * locale/localeinfo.h (LIMAGIC): Change value.
4180 * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII.
4181 * locale/C-ctype.h: Likewise.
4182 * locale/programs/ld-ctype.c: Compute whether any mapping maps from
4183 ASCII to non-ASCII value. Write out that value.
4185 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
4186 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
4188 2003-11-14 Jakub Jelinek <jakub@redhat.com>
4190 * posix/tst-rxspencer.c (check_match): @ without any following
4191 characters must match only end of string.
4192 (main): Fix filename in error message.
4194 2003-11-12 David Mosberger <davidm@hpl.hp.com>
4196 * sysdeps/ia64/dl-machine.h: Force inlining of
4197 elf_machine_runtime_setup().
4199 2003-11-13 Andreas Jaeger <aj@suse.de>
4201 * math/Makefile (CFLAGS-test-float.c): Add -fno-builtin.
4202 (CFLAGS-test-double.c): Likewise.
4203 (CFLAGS-test-ldouble.c): Likewise.
4204 (CPPFLAGS-test-ifloat.c): Likewise.
4205 (CPPFLAGS-test-idouble.c): Likewise.
4206 (CPPFLAGS-test-ildoubl.c): Likewise.
4208 * math/libm-test.inc (ceil_test): Test ceil (0.25).
4210 2003-11-04 Ulrich Drepper <drepper@redhat.com>
4212 * sysdeps/unix/sysv/linux/ifaddrs.c: Make sure it's the kernel who
4213 sends the netlink data.
4214 * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
4216 2003-11-13 Jakub Jelinek <jakub@redhat.com>
4218 * posix/regcomp.c (optimize_utf8): Optimize even if SIMPLE_BRACKET
4219 with no bits set for >= 0x80 chars is seen.
4220 * posix/bug-regex20.c (tests): Add new tests. Expect [ABC] to be
4222 (main): Run all tests with RE_ICASE as well.
4224 2003-11-13 Ulrich Drepper <drepper@redhat.com>
4226 * posix/Makefile: Add rules to build and run tst-rxspencer.
4227 (distribute): Add rxspencer/tests and rxspencer/COPYRIGHT.
4228 * posix/tst-rxspencer.c: New file.
4229 * posix/rxspencer/tests: New file.
4230 * posix/rxspencer/COPYRIGHT: New file.
4231 Patch mostly by Jakub Jelinek.
4233 * posix/regcomp.c (parse_bracket_exp): Don't check for range if
4234 this is no option given the first token.
4236 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after
4237 hyphen in range expression. Return EBRACK in this case.
4239 * posix/regcomp.c (parse_bracket_element): Reject hyphens unless
4240 we expect them or it's the last element in the bracket expression.
4241 Indicated by new parameter. Adjust all callers.
4243 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
4244 Prettier error messages.
4246 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
4247 number in {,} expression is larger.
4249 2003-11-13 Andreas Jaeger <aj@suse.de>
4251 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4252 Define appropriately for x86_64.
4253 (__ASSUME_UTIMES): Likewise.
4254 (__ASSUME_CLONE_THREAD_FLAGS): Likewise.
4256 * sysdeps/x86_64/fpu/s_ceill.S: New file.
4258 2003-11-13 Ulrich Drepper <drepper@redhat.com>
4260 * posix/regcomp.c (parse_expression): In BRE consecutive
4261 duplications are not allowed.
4263 2003-11-12 Ulrich Drepper <drepper@redhat.com>
4265 * posix/regcomp.c (parse_bracket_exp): If end of expression is
4266 seen, return EBRACK error, not BADPAT.
4268 * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM
4269 and RE_CONTEXT_INVALID_DUP syntax flag is set, fail.
4270 * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro.
4271 (RE_SYNTAX_POSIX_BASIC): Use RE_CONTEXT_INVALUD_OPS.
4273 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( )
4276 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2.
4277 * posix/runptests.c (main): Handle comments.
4278 * posix/PTESTS2C.sed: Handle comments.
4280 2003-11-12 Jakub Jelinek <jakub@redhat.com>
4282 * posix/regcomp.c (optimize_utf8): New function.
4283 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead
4285 (re_compile_internal): Call optimize_utf8 if not case insensitive
4286 and in UTF-8 locale.
4287 * posix/regex_internal.h: Ifdef out some prototypes if
4288 RE_NO_INTERNAL_PROTOTYPES is defined to shut up warnings.
4289 * posix/Makefile (tests): Add bug-regex20.
4290 (bug-regex20-ENV): Add LOCPATH.
4291 * posix/bug-regex20.c: New test.
4293 2003-11-12 Jakub Jelinek <jakub@redhat.com>
4295 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes.
4297 2003-11-12 Jakub Jelinek <jakub@redhat.com>
4299 * posix/tst-regex.c (umemlen): New variable.
4300 (test_expr): Add expectedicase argument. Test case insensitive
4301 searches as well as backwards searches (case sensitive and
4303 (run_test): Add icase argument. Use it to compute regcomp flags.
4304 (run_test_backwards): New function.
4305 (main): Cast read to size_t to avoid warning. Set umemlen.
4306 Add expectedicase arguments to test_expr.
4307 * posix/regex_internal.c (re_string_reconstruct): If is_utf8,
4308 find previous character by walking back instead of converting
4309 all chars from beginning.
4311 2003-11-12 Jakub Jelinek <jakub@redhat.com>
4313 * posix/regex_internal.h (struct re_string_t): Add is_utf8
4314 and mb_cur_max fields.
4315 (struct re_dfa_t): Likewise. Reorder fields to make structure
4316 smaller on 64-bit arches.
4317 (re_string_allocate, re_string_construct): Add mb_cur_max and
4319 (re_string_char_size_at, re_string_wchar_at): Use pstr->mb_cur_max
4320 instead of MB_CUR_MAX.
4321 * posix/regcomp.c (re_compile_fastmap_iter): Use dfa->mb_cur_max
4322 instead of MB_CUR_MAX.
4323 (re_compile_internal): Pass new arguments to re_string_construct.
4324 (init_dfa): Initialize mb_cur_max and is_utf8 fields.
4325 (peek_token, peek_token_bracket): Use input->mb_cur_max instead
4327 (parse_expression, parse_bracket_exp, parse_charclass_op): Use
4328 dfa->mb_cur_max instead of MB_CUR_MAX.
4329 * posix/regex_internal.c (re_string_construct_common): Add
4330 mb_cur_max and is_utf8 arguments. Initialize fields with them.
4331 (re_string_allocate, re_string_construct): Add mb_cur_max and
4332 is_utf8 arguments, pass them to re_string_construct_common.
4333 Use mb_cur_max instead of MB_CUR_MAX.
4334 (re_string_realloc_buffers): Use pstr->mb_cur_max instead of
4336 (re_string_reconstruct): Likewise.
4337 (re_string_context_at): Use input->mb_cur_max instead of
4339 (create_ci_newstate, create_cd_newstate): Use dfa->mb_cur_max
4340 instead of MB_CUR_MAX.
4341 * posix/regexec.c (re_search_internal): Likewise.
4342 Pass new arguments to re_string_allocate.
4343 (check_matching, transit_state_sb): Use dfa->mb_cur_max instead of
4345 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX.
4347 2003-11-12 Jakub Jelinek <jakub@redhat.com>
4349 * posix/Makefile (tests): Add bug-regex19.
4350 (bug-regex19-ENV): Add LOCPATH.
4351 * posix/bug-regex19.c: New test.
4353 2003-11-11 Jakub Jelinek <jakub@redhat.com>
4355 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE
4356 with MB_CUR_MAX > 1 locales in the fastmap.
4358 2003-11-11 Jakub Jelinek <jakub@redhat.com>
4360 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo.
4361 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead
4363 * posix/Makefile (tests): Add bug-regex17 and bug-regex18.
4364 (bug-regex17-ENV, bug-regex18-ENV): Add LOCPATH.
4365 * posix/bug-regex17.c: New file
4366 * posix/bug-regex18.c: New file.
4368 2003-10-08 Thorsten Kukuk <kukuk@suse.de>
4370 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite):
4371 Define __NR_pread/__NR_pwrite if not done in kernel headers
4373 2003-11-11 Roland McGrath <roland@redhat.com>
4375 * manual/xtract-typefun.awk: Swallow [(){}*] from function names.
4377 * manual/Makefile (info): Don't depend on dir-add.info.
4378 (libc.dvi libc.pdf libc.info): Depend on dir-add.texi.
4379 (dir-add.info): Target removed, replaced with ...
4380 (dir-add.texi): New target.
4381 (distribute): Add it.
4382 (install): Remove variant with --section arguments.
4383 Let the @dircategory directives do their work.
4384 (mostlyclean): Don't remove dir-add.info here.
4385 (realclean): Remove dir-add.texi here.
4386 * manual/libc.texinfo: @include dir-add.texi
4387 * configure.in: Remove check for old Debian install-info.
4388 * configure: Regenerated.
4389 * config.make.in (OLD_DEBIAN_INSTALL_INFO): Variable removed.
4391 2003-11-08 Andreas Schwab <schwab@suse.de>
4393 * scripts/data/c++-types-ia64-linux-gnu.data: New file.
4395 2003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca>
4397 * io/ftwtest-sh: Fix nested sed commands.
4399 2003-11-10 Jakub Jelinek <jakub@redhat.com>
4401 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond
4402 valid_len wide chars.
4404 2003-11-09 Roland McGrath <roland@redhat.com>
4406 * manual/examples/dir2.c (one): Add const to argument type.
4407 Reported by J de Haan <j.de.haan@home.nl>.
4409 2003-11-07 Ulrich Drepper <drepper@redhat.com>
4411 * po/pl.po: Update from translation team.
4413 2003-11-07 Jakub Jelinek <jakub@redhat.com>
4415 * io/ftw.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
4416 (ftw_dir, ftw_startup): Add __attribute ((noinline)).
4417 (NFTW_OLD_NAME, NFTW_NEW_NAME): New functions.
4418 (NFTW_NAME): Only define if !_LIBC, add versioned_symbol
4420 * io/ftw64.c (NFTW_OLD_NAME, NFTW_NEW_NAME): Define.
4421 * io/Versions (libc): Export nftw@@GLIBC_2.3.3
4422 and nftw64@@GLIBC_2.3.3.
4424 * io/ftw.h (FTW_ACTIONRETVAL): New flag.
4425 (FTW_CONTINUE, FTW_STOP, FTW_SKIP_SUBTREE, FTW_SKIP_SIBLINGS): New.
4426 * io/ftw.c (ftw_dir): Add old_dir argument.
4427 Clear result if it was FTW_SKIP_SIBLINGS after processing all
4428 dir entries. Change cwd back if old_dir != NULL.
4429 (process_entry): Adjust caller. Don't change cwd back here.
4430 Change FTW_SKIP_SUBTREE result to 0.
4431 (ftw_startup): Adjust ftw_dir caller.
4432 Clear result if it was FTW_SKIP_SUBTREE or FTW_SKIP_SIBLINGS.
4433 * io/ftwtest.c (skip_subtree, skip_siblings): New variables.
4434 (options, main): Add --skip-subtree and --skip-siblings options.
4435 (cb): Use return FTW_CONTINUE instead of return 0.
4436 Handle --skip-subtree and --skip-siblings.
4437 * io/ftwtest-sh: Add tests for FTW_ACTIONRETVAL.
4438 * manual/filesys.texi: Document FTW_ACTIONRETVAL.
4440 2003-11-04 Jakub Jelinek <jakub@redhat.com>
4442 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns
4444 * io/Makefile (tests): Add bug-ftw4.
4445 * io/bug-ftw4.c: New test.
4447 2003-10-27 Daniel Jacobowitz <drow@mvista.com>
4449 * libio/libioP.h [_IO_USE_OLD_IO_FILE]
4450 (struct _IO_FILE_complete_plus): New type.
4451 * libio/oldiofopen.c (_IO_old_fopen): Use _IO_FILE_complete_plus.
4452 * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
4453 * libio/oldiopopen.c (struct _IO_proc_file, _IO_old_popen): Likewise.
4454 Call _IO_old_init instead of _IO_init.
4456 2003-11-03 Ulrich Drepper <drepper@redhat.com>
4458 * intl/locale.alias: nb_NO is now the correct name, not no_NO.
4460 * locale/iso-639.def: Add Blin.
4461 Patch by Daniel Yacob <locales@geez.org>.
4463 2003-10-31 Steven Munroe <sjmunroe@us.ibm.com>
4465 * sysdeps/powerpc/powerpc32/strncmp.S: New File.
4466 * sysdeps/powerpc/powerpc64/strncmp.S: New File.
4468 2003-11-01 Randolph Chung <tausq@debian.org>
4470 * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
4471 LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
4472 Add missing parentheses.
4474 2003-11-01 Roland McGrath <roland@redhat.com>
4476 * libio/bug-ftell.c (do_test): Add a cast.
4478 2003-09-26 Daniel Jacobowitz <drow@mvista.com>
4480 * Makerules (shlib.lds): Make sure that ld doesn't try to link
4481 anything while generating the linker script.
4483 2003-10-31 Roland McGrath <roland@redhat.com>
4485 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's
4488 2003-10-29 Ulrich Drepper <drepper@redhat.com>
4490 * po/be.po: Update from translation team.
4492 2003-10-27 Ulrich Drepper <drepper@redhat.com>
4494 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to
4497 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate
4500 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip
4501 rest of line. We use getline which means this cannot happen.
4503 2003-10-26 Ulrich Drepper <drepper@redhat.com>
4505 * sysdeps/unix/sysv/linux/internal_statvfs.c (__internal_statvfs):
4506 Avoid infinite loops in case the mounts file is hosed.
4507 * io/Makefile: Add rules to build and run tst-statvfs.
4508 * io/tst-statvfs.c: New file.
4510 * include/dlfcn.h (__RTLD_OPENEXEC): Define.
4511 * elf/dl-load.c (_dl_map_object_from_fd): Don't allow loading
4512 executables unless __RTLD_OPENEXEC flag is present.
4513 * elf/rtld.c (dl_main): Pass __RTLD_OPENEXEC flag to
4514 _dl_map_object when loading the executable.
4516 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping
4518 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping.
4520 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default
4521 reverse lookup format for IPv6 addresses is using bitstring and
4523 * resolv/ns_name.c: Implement encoding and decoding bitstring in
4526 2003-10-23 Jakub Jelinek <jakub@redhat.com>
4528 * locale/programs/locale.c (show_info): Fix printing word values on
4529 64-bit big-endian architectures.
4531 2003-10-19 Bruno Haible <bruno@clisp.org>
4533 * intl/hash-string.c (hash_string): Zero-extend each char from the
4534 string; the old code did a sign-extend on some platforms.
4536 2003-10-22 Steven Munroe <sjmunroe@us.ibm.com>
4538 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't
4539 append options to these.
4540 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise.
4542 2003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca>
4544 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error.
4546 2003-10-15 Roland McGrath <roland@redhat.com>
4548 * elf/dl-iteratephdr.c [! SHARED] (dl_iterate_phdr): New function.
4549 Fake an entry for the main executable and then call __dl_iterate_phdr.
4550 * elf/Makefile (routines): Remove dl-iteratephdr-static.
4551 (elide-routines.os): Likewise.
4552 (CFLAGS-dl-iterate-phdr-static.c): Variable removed.
4553 * sysdeps/generic/dl-iteratephdr-static.c: File removed.
4554 * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: File removed.
4556 2003-10-15 Jakub Jelinek <jakub@redhat.com>
4558 * elf/rtld.c (print_statistics): Print also number of relative
4561 2003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca>
4563 * sysdeps/hppa/sysdep.h: Undef JUMPTARGET before use.
4564 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Define PSEUDO_ERRVAL,
4565 SYSCALL_ERROR_LABEL under all conditions, INTERNAL_SYSCALL_DECL,
4566 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO, INTERNAL_SYSCALL,
4567 and undef JUMPTARGET before use.
4568 [PIC]: Save pic register around syscall.
4569 * sysdeps/unix/sysv/linux/hppa/sysdep.c (syscall):
4570 Cleanup asm statment.
4572 2003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4574 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD
4575 after trapa instruction.
4577 2003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4579 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid.
4581 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
4583 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
4585 2003-10-09 Roland McGrath <roland@redhat.com>
4587 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there
4590 2003-10-08 Jakub Jelinek <jakub@redhat.com>
4592 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate
4593 two identical copies of strings.
4595 2003-10-06 Ulrich Drepper <drepper@redhat.com>
4597 * posix/bug-regex11.c: Add some more tests which fail so far.
4598 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>.
4600 2003-10-05 Paolo Bonzini <bonzini@gnu.org>
4602 * posix/bug-regex11.c: Add more backreference-related test cases.
4603 (main): Show the failing regex in the error messages.
4604 * posix/regexec.c (check_dst_limits_calc_pos):
4605 Simplify some nested conditionals. Replace if's with a switch
4607 (check_dst_limits_calc_pos <TYPE_BKREF>): Rename parameter NODE to
4608 FROM_NODE, it shadows a local variable; don't recurse if FROM_NODE
4609 does not change in the recursive invocation, fixing an infinite loop
4610 in the ()\1*\1* regex.
4611 (sift_states_backward): Fix function comment.
4612 * posix/regcomp.c (calc_epsdest): Add an assertion.
4614 2003-10-06 Ulrich Drepper <drepper@redhat.com>
4616 * manual/examples/testopt.c: Fix warnings. Better error message
4617 for missing -c argument.
4618 Patch mostly by Gitonga Marete <bgmarete@comcast.net>.
4620 * timezone/asia: Update from tzdata2003d.
4621 * timezone/australasia: Likewise.
4622 * timezone/backward: Likewise.
4623 * timezone/europe: Likewise.
4624 * timezone/iso3166.tab: Likewise.
4625 * timezone/northamerica: Likewise.
4626 * timezone/southamerica: Likewise.
4627 * timezone/zone.tab: Likewise.
4629 2003-10-05 Jakub Jelinek <jakub@redhat.com>
4631 * sysdeps/ia64/backtrace.c: New file.
4632 * sysdeps/x86_64/backtrace.c: New file.
4633 * sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
4634 (_Unwind_Backtrace): New prototype.
4636 2003-10-03 Ulrich Drepper <drepper@redhat.com>
4638 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub.
4639 * sysdeps/i386/elf/setjmp.S: Likewise.
4641 2003-10-02 Roland McGrath <roland@redhat.com>
4643 * argp/argp-help.c (__argp_short_program_name): Move inside [! _LIBC].
4644 * argp/argp-namefrob.h
4645 [_LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME]
4646 (__argp_short_program_name): Don't declare fn, define it as a macro.
4648 2003-08-22 Simon Josefsson <jas@extundo.com>
4650 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing.
4652 * argp/argp-help.c: Don't include malloc.h, some platforms
4653 complain and it doesn't appear to be used.
4654 [!_LIBC && HAVE_STRERROR_R && !HAVE_DECL_STRERROR_R]: Declare
4656 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare
4658 (hol_entry_long_iterate): Change __attribute to __attribute__.
4659 (_help, __argp_error, __argp_failure) [!_LIBC && (HAVE_FLOCKFILE
4660 && HAVE_FUNLOCKFILE)]: Protect call to flockfile and funlockfile.
4661 (__argp_basename) [!_LIBC]: New. Taken from LSH, by Niels Möller,
4662 modified after comments from Ulrich Drepper.
4663 (__argp_short_program_name): Ditto.
4664 (__argp_state_help, __argp_error, __argp_failure): Use it.
4665 (__argp_failure): Use strerror when necessary.
4667 * argp/argp-namefrob.h (__flockfile, __funlockfile, __mempcpy)
4668 (__strchrnul, __strerror_r, __strndup) [!_LIBC]: Remove __-prefix.
4669 (clearerr_unlocked, feof_unlocked, ferror_unlocked)
4670 (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
4671 (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
4672 (putc_unlocked, putchar_unlocked) [!_LIBC && !HAVE_DECL_*]: Map to
4673 non-unlocked functions.
4674 [!_LIBC]: Add prototypes for __argp_basename and
4675 __argp_short_program_name.
4677 * argp/argp-parse.c (argp_default_parser): Only use
4678 program_invocation{_short,}_name if declared.
4679 (parser_init): Use __argp_short_program_name.
4681 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for
4682 '#include features.h'.
4684 * argp/argp.h [!__attribute__]: Define to nothing.
4686 2003-09-26 Paolo Bonzini <bonzini@gnu.org>
4688 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
4689 for the first token in a subexpression as well.
4691 2003-10-02 Jakub Jelinek <jakub@redhat.com>
4693 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
4695 (parse_reg_exp): Likewise.
4696 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
4698 * posix/bug-regex11.c (tests): Add new tests.
4699 * posix/bug-regex12.c (tests): Add new test.
4701 2003-10-01 Thorsten Kukuk <kukuk@suse.de>
4703 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
4704 variables only used if TLS_DTV_AT_TP is defined into the #if branch.
4706 2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx>
4708 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from
4709 the old thread-m.h header too.
4711 2003-10-02 Ulrich Drepper <drepper@redhat.com>
4713 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go
4714 back to 131027 since this is what the kernel enforces.
4716 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and
4717 define it with libc_freeres_ptr.
4719 2003-10-01 Roland McGrath <roland@redhat.com>
4721 * elf/rtld.c (dl_main): Add cast in last change.
4723 2003-09-10 Chris Demetriou <cgd@broadcom.com>
4725 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Remove
4726 "#if 0" surrounding most of contents.
4727 (SYSCALL_ERROR_LABEL): Define.
4728 (__SYSCALL_CLOBBERS): Add $10.
4729 (internal_syscall7): Remove.
4730 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
4732 2003-09-30 Ulrich Drepper <drepper@redhat.com>
4734 * elf/rtld.c (dl_main): Also set l_map_start.
4736 2003-09-30 Daniel Jacobowitz <drow@mvista.com>
4738 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO
4739 to work around kernel problem.
4741 2003-09-27 Wolfram Gloger <wg@malloc.de>
4743 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of
4744 "thread-m.h", so that default parameters can be overridden in a
4745 system-specific malloc-machine.h. Remove extra ; from extern "C"
4747 * sysdeps/generic/malloc-machine.h: New file.
4748 * sysdeps/mach/hurd/malloc-machine.h: New file.
4749 * malloc/thread-m.h: Removed.
4750 * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it
4751 is in sysdeps/generic/malloc-machine.h now.
4753 2003-09-29 Ulrich Drepper <drepper@redhat.com>
4755 * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of
4756 variables only used if TLS_TCB_AT_TP is defined into the #if
4759 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
4760 well to cover using long long in C90.
4762 2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
4764 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
4765 Redefine and use __libc_cleanup_region_end instead.
4767 2003-09-29 Thorsten Kukuk <kukuk@suse.de>
4769 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and
4770 fix prototypes for picky C++ compilers.
4772 2003-09-27 Ulrich Drepper <drepper@redhat.com>
4774 * sysdeps/unix/sysv/linux/ustat.c (ustat): Set errno to EINVAL if
4775 the device ID is invalid and return -1.
4776 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
4778 2003-09-26 Andreas Schwab <schwab@suse.de>
4780 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to
4781 rt_sigprocmask system call.
4783 2003-09-25 Roland McGrath <roland@redhat.com>
4785 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
4786 Don't check for zero __libc_stack_end, it should be initialized.
4787 [_STACK_GROWS_DOWN] [PROT_GROWSDOWN]: Try using PROT_GROWSDOWN flag
4788 and fall back if it fails with EINVAL.
4789 [_STACK_GROWS_UP] [PROT_GROWSUP]: Likewise for PROT_GROWSUP.
4791 2003-09-25 Jakub Jelinek <jakub@redhat.com>
4793 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
4794 sysdeps/i386/dl-procinfo.c instead of
4795 sysdeps/unix/sysv/linux/i386/dl-procinfo.c.
4796 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Avoid using
4799 2003-09-25 Ulrich Drepper <drepper@redhat.com>
4801 * posix/regcomp.c (peek_token): Remove recent changes for anchor
4803 (parse_reg_exp): Likewise.
4804 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE.
4806 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle
4809 * nis/nis_table.c (nis_list): Always strdup string used with
4810 ibreq->ibr_name. Add several NULL pointer checks.
4812 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value
4814 * nis/nss_nisplus/nisplus-ethers.c: Likewise.
4815 * nis/nss_nisplus/nisplus-grp.c: Likewise.
4816 * nis/nss_nisplus/nisplus-hosts.c: Likewise.
4817 * nis/nss_nisplus/nisplus-netgrp.c: Likewise.
4818 * nis/nss_nisplus/nisplus-network.c: Likewise.
4819 * nis/nss_nisplus/nisplus-proto.c: Likewise.
4820 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4821 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4822 * nis/nss_nisplus/nisplus-rpc.c: Likewise.
4823 * nis/nss_nisplus/nisplus-service.c: Likewise.
4824 * nis/nss_nisplus/nisplus-spwd.c: Likewise.
4826 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN
4828 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
4829 * sysdeps/unix/sysv/linux/cris/bits/mman.h: Likewise.
4830 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
4831 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4832 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
4833 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
4834 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
4835 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4836 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4837 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4838 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
4840 2003-09-25 Jakub Jelinek <jakub@redhat.com>
4842 * misc/syslog.c: Include locale.h.
4843 (vsyslog): Add date always in C locale %h %e %T format.
4845 2003-09-24 Paul Eggert <eggert@twinsun.com>
4847 * argp/argp-fmtstream.c (__argp_fmtstream_ensure): Check for
4848 size_t overflow when reallocating storage.
4849 * argp/argp-help.c (make_hol, hol_append): Likewise.
4850 (SIZE_MAX): New macro.
4852 2003-08-07 Alfred M. Szmidt <ams@kemisten.nu>
4854 * sysdeps/mach/hurd/bits/libc-lock.h
4855 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
4857 2003-08-01 Alfred M. Szmidt <ams@kemisten.nu>
4859 * sysdeps/i386/dl-procinfo.h: New file, contents taken from ...
4860 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: ... here.
4861 #include_next dl-procinfo.h to get them.
4862 (_DL_HWCAP_COUNT): Moved to sysdeps/i386/dl-procinfo.h.
4863 (_DL_PLATFORMS_COUNT): Likewise.
4864 (_DL_FIRST_PLATFORM): Likewise.
4865 (_DL_HWCAP_PLATFORM): Likewise.
4866 (HWCAP_I386_FPU, HWCAP_I386_VME, HWCAP_I386_DE, HWCAP_I386_PSE,
4867 HWCAP_I386_TSC, HWCAP_I386_MSR, HWCAP_I386_PAE, HWCAP_I386_MCE,
4868 HWCAP_I386_CX8, HWCAP_I386_APIC, HWCAP_I386_SEP, HWCAP_I386_MTRR,
4869 HWCAP_I386_PGE, HWCAP_I386_MCA, HWCAP_I386_CMOV,
4870 HWCAP_I386_FCMOV, HWCAP_I386_MMX, HWCAP_I386_OSFXSR,
4871 HWCAP_I386_XMM, HWCAP_I386_XMM2, HWCAP_I386_AMD3D,
4872 HWCAP_IMPORTANT): Likewise.
4873 (_DL_PROCINFO_H_): Likewise.
4874 (_dl_hwcap_string, _dl_platform_string, _dl_string_hwcap): Likewise.
4875 (_dl_string_platform): Likewise.
4876 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Moved to ...
4877 * sysdeps/i386/dl-procinfo.c: ... here, new file.
4879 2003-09-24 Ulrich Drepper <drepper@redhat.com>
4881 * sysdeps/unix/sysv/linux/dl-execstack.c
4882 (_dl_make_stack_executable): Remember that we changed the permission.
4884 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of
4885 __libc_stack_end. Patch by David Mosberger.
4887 2003-09-24 Jakub Jelinek <jakub@redhat.com>
4889 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of
4890 __libc_stack_end@GLIBC_PRIVATE.
4892 * sysdeps/generic/dl-sysdep.c (DL_STACK_END): Define if not defined.
4893 (_dl_sysdep_start): Set __libc_stack_end here.
4894 * sysdeps/alpha/dl-machine.h (RTLD_START): Remove setting of
4896 * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
4897 * sysdeps/cris/dl-machine.h (RTLD_START): Likewise.
4898 * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
4899 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
4900 * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
4901 * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
4902 * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
4903 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
4904 * sysdeps/ia64/dl-machine.h (DL_STACK_END): Define.
4905 * sysdeps/sparc/sparc32/dl-machine.h (DL_STACK_END): Define.
4906 (RTLD_START): Remove setting of __libc_stack_end.
4907 * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Define.
4908 (RTLD_START): Remove setting of __libc_stack_end.
4910 2003-09-24 Ulrich Drepper <drepper@redhat.com>
4912 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add gnu_dev_ prefix to
4913 function definitions. Adjust macro expansions accordingly.
4914 * sysdeps/unix/sysv/linux/Versions: Add gnu_dev_ prefix to major,
4915 minor, makedev name.
4916 * sysdeps/unix/sysv/linux/makedev.c: Likewise.
4918 2003-09-24 Jakub Jelinek <jakub@redhat.com>
4920 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
4923 2003-09-24 Jakub Jelinek <jakub@redhat.com>
4925 * nscd/Makefile (others): Add nscd before including ../Rules.
4927 2003-09-24 Ulrich Drepper <drepper@redhat.com>
4929 * nscd/Makefile: Add rules to build nscd as a PIE.
4930 * configure.in: Check for -fpie and -pie compiler options.
4931 * config.make.in (have-fpie): Define.
4933 2003-09-23 Ulrich Drepper <drepper@redhat.com>
4935 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger
4937 * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed.
4938 * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
4939 * sysdeps/unix/sysv/linux/makedev.c: New file.
4940 * sysdeps/unix/sysv/linux/Dist: Add makedev.c.
4941 * sysdeps/unix/sysv/linux/Makefile [subdir=misc]
4942 (sysdep_routines): Add makedev.
4943 * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.3.3): Add
4944 major, minor, makedev.
4945 * sysdeps/unix/sysv/linux/ustat.c (ustat): Adjust for 32-bit
4947 * sysdeps/unix/sysv/linux/alpha/ustat.c: Removed.
4948 * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
4949 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Removed.
4950 Code by Alexander Viro <aviro@redhat.com>.
4952 2003-09-23 Ulrich Drepper <drepper@redhat.com>
4954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc]
4955 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and
4957 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct change
4958 for include Altivec support for PPC32. It was not compatible.
4959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: Adjust
4960 offsets for ucontext_t change.
4961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Adjust
4962 for ucontext_t change. Add compatibility code.
4963 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
4964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
4965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
4966 Patch by Paul Mackerras <paulus@samba.org>.
4968 2003-02-25 Randolph Chung <tausq@debian.org>
4970 * sysdeps/hppa/Makefile: Include compat code in build.
4971 * sysdeps/hppa/libgcc-compat.c: New file.
4972 * sysdeps/hppa/Dist: Add libgcc-compat.c.
4973 * sysdeps/hppa/Versions [GLIBC_2.2]: Add __clz_tab.
4975 2003-09-23 Roland McGrath <roland@redhat.com>
4977 * elf/rtld.c (dl_main): In rtld_is_main case, reinitialize
4978 GL(dl_stack_flags) according to rtld's own PT_GNU_STACK.
4979 Move GL(dl_make_stack_executable_hook) initialization up.
4980 * elf/tst-execstack-prog.c: New file.
4981 * elf/Makefile (tests-execstack-yes): Add it.
4982 (LDFLAGS-tst-execstack-prog): New variable.
4984 2003-09-23 Jakub Jelinek <jakub@redhat.com>
4986 * sysdeps/x86_64/dl-machine.h (RTLD_START): Set __libc_stack_end
4987 before calling _dl_start, using %rip relative access.
4988 Use %rip relative access to _dl_skip_args, _rtld_local._dl_loaded
4991 2003-09-23 Roland McGrath <roland@redhat.com>
4993 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before
4994 calling _dl_start, using GOTOFF access.
4996 * configure.in (libc_cv_z_execstack): New check.
4997 * configure: Regenerated.
4998 * config.make.in (have-z-execstack): New variable set by it.
4999 * elf/tst-execstack.c: New file.
5000 * elf/tst-execstack-mod.c: New file.
5001 * elf/tst-execstack-needed.c: New file.
5002 * elf/Makefile (tests-execstack-yes, modules-execstack-yes): New
5004 (tests, modules-names): Conditionally include them.
5005 (distribute): Add tst-execstack-mod.c here.
5006 ($(objpfx)tst-execstack, $(objpfx)tst-execstack.out): New targets.
5007 (LDFLAGS-tst-execstack, LDFLAGS-tst-execstack-mod): New variables.
5008 ($(objpfx)tst-execstack-needed): New target.
5009 (LDFLAGS-tst-execstack-needed): New variable.
5011 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add _dl_stack_flags
5012 and _dl_make_stack_executable_hook. Declare _dl_make_stack_executable.
5013 * elf/rtld.c (_rtld_global): Add initializer for _dl_stack_flags.
5014 (dl_main): Reset _dl_stack_flags according to PT_GNU_STACK phdr.
5015 Initialize _dl_make_stack_executable_hook.
5016 * elf/dl-support.c: Define those new variables.
5017 (_dl_non_dynamic_init): Scan phdrs for PT_GNU_STACK.
5018 (_dl_phdr): Fix type.
5019 * elf/dl-load.c (_dl_map_object_from_fd): Grok PT_GNU_STACK phdr and
5020 enable execute permission for the stack if necessary.
5021 * sysdeps/generic/dl-execstack.c: New file.
5022 * elf/Makefile (dl-routines): Add it.
5023 * elf/Versions (ld: GLIBC_PRIVATE): Add _dl_make_stack_executable.
5024 * sysdeps/unix/sysv/linux/dl-execstack.c: New file.
5026 2003-09-23 Ulrich Drepper <drepper@redhat.com>
5028 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker.
5030 2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
5032 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
5033 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
5036 2003-09-22 Ulrich Drepper <drepper@redhat.com>
5038 * malloc/malloc.c: Include <stdint.h>.
5040 2003-09-20 Paolo Bonzini <bonzini@gnu.org>
5042 * posix/regcomp.c (build_word_op): Rename like...
5043 (build_charclass_op): ...this. Accept two extra parameters,
5044 CLASS_NAME and EXTRA. Add EXTRA to the result, not only _.
5045 (peek_token): Accept \s and \S as OP_SPACE and OP_NOTSPACE.
5046 (parse_expression): Replace build_word_op with
5047 build_charclass_op, add new arguments, accept OP_SPACE
5049 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE
5052 * posix/regcomp.c (peek_token): Don't look back for ( or |
5053 to check whether to treat a caret as special. It fails
5054 for the (extended) regex \(^.
5055 (parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
5056 * posix/regex.h: Define RE_CARET_ANCHORS_HERE.
5058 * posix/regexec.c: Check out of bounds value before shifting.
5060 * posix/regex_internal.h: Define __attribute for non-gcc.
5062 2003-09-22 Jakub Jelinek <jakub@redhat.com>
5064 * include/atomic.h (atomic_compare_and_exchange_val_rel,
5065 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments
5068 * sysdeps/unix/opendir.c: Include string.h.
5070 2003-09-22 Ulrich Drepper <drepper@redhat.com>
5072 * timezone/zdump.c: Update from tzcode2003c.
5073 * timezone/zic.c: Likewise.
5074 * timezone/leapseconds: Update from tzdata2003c.
5076 2003-09-19 Ulrich Drepper <drepper@redhat.com>
5078 * elf/Makefile ($(objpfx)librtld.os): Create link map also for
5079 final build to ease quality control.
5081 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for
5082 ld.so, don't include NULL buffer pointer handling.
5084 2003-09-19 Jakub Jelinek <jakub@redhat.com>
5086 * dlfcn/dlopen.c (dlopen): Add static_link_warning.
5088 2003-09-18 Jakub Jelinek <jakub@redhat.com>
5090 * libio/memstream.c (open_memstream): Use _IO_init instead of
5093 2003-09-17 Ulrich Drepper <drepper@redhat.com>
5095 * sysdeps/generic/wordexp.c (eval_expr_val): Use strtol since we
5096 have to recognize octal and hexadecimal numbers as well. Simplify
5097 function, signs are handled in strtol.
5098 * posix/wordexp-test.c: Add tests for octal and hexadecimal
5099 numbers in arithmetic expressions.
5101 2003-09-17 Jakub Jelinek <jakub@redhat.com>
5103 * elf/Makefile (distribute): Add tst-alignmod.c.
5104 (tests): Add tst-align.
5105 (modules-names): Add tst-alignmod.
5106 (CFLAGS-tst-align.c, CFLAGS-tst-alignmod.c): Add
5107 $(stack-align-test-flags).
5108 ($(objpfx)tst-align): Depend on libdl.
5109 ($(objpfx)tst-align.out): Depend on tst-alignmod.so.
5110 * elf/tst-align.c: New file.
5111 * elf/tst-alignmod.c: New file.
5112 * misc/Makefile (CFLAGS-tst-tsearch.c): Add $(stack-align-test-flags).
5113 * misc/tst-tsearch.c: Include tst-stack-align.h.
5114 (stack_align_check): New array.
5115 (cmp_fn, walk_action): Use TEST_STACK_ALIGN ().
5116 (main): Report error if stack was not enough aligned
5117 in cmp_fn or walk_action.
5118 * stdlib/Makefile (CFLAGS-tst-qsort.c): Add $(stack-align-test-flags).
5119 * stdlib/tst-qsort.c: Include tst-stack-align.h.
5120 (align_check): New var.
5121 (compare): Use TEST_STACK_ALIGN () macro.
5122 (main): Report error if stack was not enough aligned in compare.
5123 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Remove
5124 unneeded -mpreferred-stack-boundary=4.
5125 * sysdeps/x86_64/tst-stack-align.h: New file.
5127 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure.
5128 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions.
5130 2003-09-17 Philip Blundell <philb@gnu.org>
5132 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted.
5134 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little.
5136 * sysdeps/arm/sysdep.h (DO_RET): New.
5138 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork
5139 required but not defined. Improve test of error code.
5141 2003-09-17 Jakub Jelinek <jakub@redhat.com>
5143 * sysdeps/i386/Makefile (stack-align-test-flags): Add
5144 -malign-double -mpreferred-stack-boundary=4.
5146 2003-09-17 Ulrich Drepper <drepper@redhat.com>
5148 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
5149 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
5151 2003-09-15 Jakub Jelinek <jakub@redhat.com>
5153 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu
5154 subdir, add -mpreferred-stack-boundary=4, with few exceptions.
5156 2003-09-17 Jakub Jelinek <jakub@redhat.com>
5158 * Makeconfig (stack-align-test-flags): Set.
5159 * stdlib/Makefile (CFLAGS-tst-bsearch.c): Add
5160 $(stack-align-test-flags).
5161 * stdlib/tst-bsearch.c: Include tst-stack-align.h.
5162 (align_check): New var.
5163 (comp): Use TEST_STACK_ALIGN macro.
5164 (do_test): Fail if align_check != 1.
5165 * sysdeps/generic/tst-stack-align.h: New file.
5166 * sysdeps/i386/i686/Makefile (stack-align-test-flags): Add -msse.
5167 * sysdeps/i386/i686/tst-stack-align.h: New file.
5169 2003-09-17 Ulrich Drepper <drepper@redhat.com>
5171 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a
5172 stack which is aligned (mod 16).
5174 2003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net>
5175 Hans-Peter Nilsson <hp@axis.com>
5177 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify
5178 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment.
5180 2003-09-17 Jakub Jelinek <jakub@redhat.com>
5182 * dirent/scandir.c: Include bits/libc-lock.h.
5183 (struct scandir_cancel_struct): New type.
5184 (cancel_handler): New function.
5185 (SCANDIR): Add __libc_cleanup_{push,pop}, save state into
5186 scandir_cancel_struct.
5188 2003-09-16 Ulrich Drepper <drepper@redhat.com>
5190 * sysdeps/unix/sysv/linux/Dist: Remove internal_statvfs.c.
5191 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5192 Add internal_statvfs.
5193 * sysdeps/unix/sysv/linux/fstatvfs.c: Call __internal_statvfs
5194 instead of including "internal_statvfs.c".
5195 * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
5196 * sysdeps/unix/sysv/linux/internal_statvfs.c: Make it a real function.
5197 Add code to avoid the stat calls on all the reported mount points
5198 when we can determine mismatch in advance.
5199 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add AUTOFS_SUPER_MAGIC and
5200 USBDEVFS_SUPER_MAGIC.
5202 2003-09-16 Jakub Jelinek <jakub@redhat.com>
5204 * posix/Versions (sched_getaffinity, sched_setaffinity): Change
5205 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version.
5207 2003-09-16 Bruno Haible <bruno@clisp.org>
5209 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after
5210 invoking msgfmt, not before.
5212 2003-09-15 Jakub Jelinek <jakub@redhat.com>
5214 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW.
5215 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add
5217 * dirent/Makefile (CFLAGS-scandir.c, CFLAGS-scandir64.c): Likewise.
5218 * elf/Makefile (CFLAGS-dl-iterate-phdr.c,
5219 CFLAGS-dl-iterate-phdr-static.c): Add $(uses-callbacks).
5220 * elf/dl-iteratephdr.c (cancel_handler): New function.
5221 (__dl_iterate_phdr): Add __libc_cleanup_{push,pop}.
5222 * elf/link.h (dl_iterate_phdr): Remove __THROW.
5223 * io/Makefile (CFLAGS-fts.c): Merge into one assignment.
5224 Add $(uses-callbacks).
5225 (CFLAGS-ftw.c, CFLAGS-ftw64.c): Add $(uses-callbacks).
5226 * misc/Makefile (CFLAGS-tsearch.c, CFLAGS-lsearch.c): Change
5227 $(exceptions) to $(uses-callbacks).
5228 * Makeconfig (uses-callbacks): Set to $(exceptions).
5229 * posix/Makefile (CFLAGS-glob.c, CFLAGS-glob64.c): Add
5231 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c):
5234 2003-09-15 Andreas Schwab <schwab@suse.de>
5236 * sysdeps/m68k/setjmp.c: Add hidden_def.
5238 2003-09-14 Ulrich Drepper <drepper@redhat.com>
5240 * libio/memstream.c (open_memstream): Don't allow wide char operations.
5242 * dirent/dirent.h: Remove __THROW from scandir.
5244 2003-09-14 Philip Blundell <philb@gnu.org>
5246 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known
5249 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little.
5251 * sysdeps/arm/memset.S: Rewrite.
5253 2003-09-12 Jakub Jelinek <jakub@redhat.com>
5255 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New.
5256 (__SSIZE_T_TYPE): Define to __SWORD_TYPE for gcc 2.95.x and
5257 __SLONGWORD_TYPE otherwise.
5259 2003-09-14 Ulrich Drepper <drepper@redhat.com>
5261 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions.
5262 (CFLAGS-ftw64.c): Likewise.
5264 2003-09-13 Ulrich Drepper <drepper@redhat.com>
5266 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions.
5267 (CFLAGS-nscd_getgr_r.c): Likewise.
5268 (CFLAGS-nscd_gethst_r.c): Likewise.
5270 2003-09-12 Ulrich Drepper <drepper@redhat.com>
5272 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable
5275 * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c,
5276 CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c,
5277 CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions.
5278 * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c,
5279 CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise.
5280 * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c):
5282 * misc/Makefile (CFLAGS-err.c): Likewise.
5283 * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c,
5284 CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c,
5285 CFLAGS-glob64.c): Likewise.
5286 * pwd/Makefile (CFLAGS-getpw.c): Likewise.
5287 * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c,
5288 CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise.
5289 * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise.
5290 * sunrpc/Makefile (CFLAGS-openchild.c): Likewise.
5292 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition.
5294 * libio/stdio.h: Remove __THROW from cuserid prototype.
5296 * locale/loadarchive.c: Use only non-cancelable interfaces.
5297 * resolv/herror.c (herror): Likewise.
5299 * malloc/hooks.c: Before using IO stream mark stream so it uses
5300 only non-cancelable interfaces.
5301 * malloc/malloc.c: Likewise.
5302 * posix/getopt.c: Likewise.
5305 2003-09-11 Jakub Jelinek <jakub@redhat.com>
5307 * Makerules (LDFLAGS-c.so): Remove -u __register_frame.
5309 2003-09-12 Ulrich Drepper <drepper@redhat.com>
5311 * stdio-common/stdio_ext.h: Mark most functions with __THROW.
5313 * misc/err.h: Remove __THROW from all prototypes.
5315 * posix/getopt.h (__THROW): Define if not already defined. Add
5316 __THROW to the getopt functions.
5318 2003-09-11 Ulrich Drepper <drepper@redhat.com>
5320 * io/Makefile (CFLAGS-lockf.c): Add -fexceptions.
5321 (CFLAGS-fts.c): Likewise.
5322 * io/fcntl.h: Remove __THROW from lockf prototypes.
5323 * io/fts.h: Remove most __THROW.
5325 2003-09-11 H.J. Lu <hongjiu.lu@intel.com>
5327 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64.
5331 2003-09-11 Jakub Jelinek <jakub@redhat.com>
5333 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to
5334 _IO_free_backup_area call.
5336 2003-09-10 Chris Demetriou <cgd@broadcom.com>
5338 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
5340 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
5341 * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
5342 Also, only assert off_t size is 4 for N32 and O32, and clean up
5344 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
5346 2003-09-10 Roland McGrath <roland@redhat.com>
5348 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr):
5349 Don't use c_ispeed under [! _HAVE_STRUCT_TERMIOS_C_ISPEED].
5350 Don't use c_ospeed under [! _HAVE_STRUCT_TERMIOS_C_OSPEED].
5351 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
5352 Reported by Daniel Jacobowitz <drow@mvista.com>.
5354 2003-09-10 Jakub Jelinek <jakub@redhat.com>
5356 * string/Makefile (strop-tests): Add memccpy.
5357 * string/test-memccpy.c: New test.
5359 2003-09-09 Jakub Jelinek <jakub@redhat.com>
5361 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): Add
5362 siginfo_t * argument before, change into struct ucontext *.
5363 (SIGCONTEXT_EXTRA_ARGS): Define to _si,.
5364 (GET_PC, GET_FRAME, GET_STACK): Adjust for ctx being a pointer
5365 instead of structure.
5366 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (REGISTER_DUMP):
5369 2003-09-09 Ulrich Drepper <drepper@redhat.com>
5371 * string/stratcliff.c (main): Check memccpy.
5373 2003-04-11 Jes Sorensen <jes@wildopensource.com>
5375 * sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
5376 character is found during recovery, use correct register when
5377 determining the position of the found character.
5379 2003-04-01 Jes Sorensen <jes@wildopensource.com>
5381 * sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
5382 avoid segfaults when reading from unmapped pages. For aligned
5383 reload and continue, for misaligned, roll back and use byte copy.
5384 Save ar.ec on entry and restore on exit.
5386 2003-09-09 Chris Demetriou <cgd@broadcom.com>
5388 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.
5390 2003-09-08 Chris Demetriou <cgd@broadcom.com>
5392 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to
5393 the top of the list.
5394 * sysdeps/mips/mips64/n64/Implies: Likewise.
5396 2003-09-08 Roland McGrath <roland@frob.com>
5398 * sysdeps/unix/sysv/linux/speed.c
5399 (cfsetospeed): Only set c_ospeed under [_HAVE_STRUCT_TERMIOS_C_OSPEED].
5400 (cfsetispeed): Only set c_ispeed under [_HAVE_STRUCT_TERMIOS_C_ISPEED].
5401 * sysdeps/unix/sysv/linux/bits/termios.h
5402 (_HAVE_STRUCT_TERMIOS_C_ISPEED, _HAVE_STRUCT_TERMIOS_C_OSPEED): Define.
5403 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
5404 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
5406 2003-09-08 Ulrich Drepper <drepper@redhat.com>
5408 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change.
5409 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
5411 2003-09-08 Jakub Jelinek <jakub@redhat.com>
5413 * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit.
5414 (__u_quad_t): Make unsigned long int if 64-bit.
5415 (__SQUAD_TYPE): Make long int if 64-bit.
5416 (__UQUAD_TYPE): Make unsigned long int if 64-bit.
5417 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove.
5419 2003-09-08 Ulrich Drepper <drepper@redhat.com>
5421 * Makefile (tests): Run check-c++-types.sh if possible.
5422 * scripts/check-c++-types.h: New file.
5423 * scripts/data/c++-types-i386-linux-gnu.data: New file.
5425 2003-09-08 Andreas Jaeger <aj@suse.de>
5427 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5428 Use struct sigcontext.
5430 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
5431 Use struct sigcontext.
5433 (GET_FRAME): Likewise.
5434 (GET_STACK): Likewise.
5436 2003-09-08 Wolfram Gloger <wg@malloc.de>
5438 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into
5439 contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.
5440 (mALLOPt): Avoid requirement of C99.
5442 2003-09-08 Ulrich Drepper <drepper@redhat.com>
5444 * libio/bug-ftell.c: Include <sys/types.h>.
5445 (main): Mark cp as const.
5447 2003-09-07 Jakub Jelinek <jakub@redhat.com>
5449 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove.
5450 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove.
5452 2003-09-05 Roland McGrath <roland@redhat.com>
5454 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Fill in c_ispeed
5455 and c_ospeed fields.
5456 * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Set c_ospeed field.
5457 (cfsetispeed): Set c_ispeed field.
5458 * sysdeps/unix/sysv/linux/tcsetattr.c (IBAUD0): Define unconditionally
5459 to match corresponding speed.c code.
5461 2003-09-06 Ulrich Drepper <drepper@redhat.com>
5463 * libio/wfileops.c (_IO_wfile_underflow): Mark beginning of the
5464 narrow character buffer.
5465 * libio/Makefile: Add rules to build and run bug-ftell.
5466 * libio/bug-ftell.c: New file.
5468 * stdio-common/vfprintf.c: Don't use the first grouping number twice.
5470 * stdio-common/vfscanf.c (vfscanf): Fix recognition of characters
5471 matching the decimal point and possibly leading the thousands
5472 separator. This caused the recognition of thousands separators to
5475 2003-09-05 Ulrich Drepper <drepper@redhat.com>
5477 * libio/fileops.c (_IO_new_file_overflow): Handle switching to
5478 write mode from read in backup buffer.
5479 * libio/Makefile (tests): Add bug-ungetc2.
5480 * libio/bug-ungetc2.c: New file.
5482 2003-09-05 Roland McGrath <roland@redhat.com>
5484 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable.
5486 2003-09-04 Roland McGrath <roland@frob.com>
5488 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID,
5489 EOPNOTSUPP, or ENOSYS, change it to ENODEV.
5491 2003-09-04 H.J. Lu <hongjiu.lu@intel.com>
5493 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ):
5496 2003-09-05 Andreas Jaeger <aj@suse.de>
5498 * sysdeps/i386/bits/string.h (__memrchr): Do addition in assembler
5499 to make it conforming C.
5500 * sysdeps/i386/i486/bits/string.h (__memrchr): Likewise.
5502 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Change
5503 prototype to use variable argument lists and get the possible one
5504 argument via va_arg.
5505 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Likewise.
5506 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: New.
5508 2003-09-04 Ulrich Drepper <drepper@redhat.com>
5510 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf.
5512 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
5513 Report correct value for vxfs.
5514 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define VXFS_SUPER_MAGIC.
5516 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling
5519 * sysdeps/generic/utmp_file.c: Use not-cancelable syscalls all
5520 over the place. It would be allowed to have these functions as
5521 cancellation points but the cleanup would be ugly and a lot of
5524 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define.
5525 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define.
5527 * include/fcntl.h (__fcntl_nocancel): Declare.
5528 * sysdeps/unix/sysv/linux/fcntl.c: New file.
5529 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Only enable
5530 cancellation if absolutely needed.
5531 (__fcntl_nocancel): Define.
5533 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment.
5534 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add
5536 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use
5539 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status
5542 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove
5543 unnecessary errno handling.
5545 * nss/getXXbyYY_r.c (INTERNAL): Use better variable name.
5546 Initialize it in all cases. Change it to be a bit more like the
5549 2003-09-04 Jakub Jelinek <jakub@redhat.com>
5551 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add
5553 (_IO_file_open): Likewise. Use close_not_cancel.
5555 2003-09-04 Ulrich Drepper <drepper@redhat.com>
5557 * libio/libio.h: Define _IO_FLAGS2_NOTCANCEL.
5558 * libio/fileops.c [_LIBC]: Remove close macro.
5559 (_IO_file_open): If _IO_FLAGS2_NOTCANCEL is set, use open_not_cancel.
5560 (_IO_new_file_open): Recognize 'c' flag in mode string.
5561 (_IO_file_read): If _IO_FLAGS2_NOTCANCEL is set use read_not_cancel.
5562 (_IO_new_file_write): If _IO_FLAGS2_NOTCANCEL is set use
5564 * iconv/gconv_conf.c: Use fopen with 'c' mode flag.
5565 * inet/rcmd.c: Likewise.
5566 * inet/ruserpass.c: Likewise.
5567 * intl/localealias.c: Likewise.
5568 * malloc/mtrace.c: Likewise.
5569 * misc/getpass.c: Likewise.
5570 * misc/getttyent.c: Likewise.
5571 * misc/mntent_r.c: Likewise.
5572 * misc/getusershell.c: Likewise.
5573 * nss/nsswitch.c: Likewise.
5574 * resolv/res_hconf.c: Likewise.
5575 * resolv/res_init.c: Likewise.
5576 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5577 * time/getdate.c: Likewise.
5578 * time/tzfile.c: Likewise.
5579 * misc/fstab.h: Undo last change.
5580 * misc/mntent.h: Likewise.
5581 * misc/Makefile: Remove CFLAGS-mntent_r.c, CFLAGS-mntent.c, and
5582 CFLAGS-fstab.c definition.
5584 2003-09-04 Jakub Jelinek <jakub@redhat.com>
5586 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype.
5588 2003-09-03 Ulrich Drepper <drepper@redhat.com>
5590 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid
5591 returning ERANGE if this wasn't intended.
5593 2003-09-03 Jakub Jelinek <jakub@redhat.com>
5595 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as
5596 function-like macros.
5598 2003-09-03 Ulrich Drepper <drepper@redhat.com>
5600 * grp/Makefile (CFLAGS-getgrent_r.c): Add -fexceptions.
5601 (CFLAGS-getgrent.c): Likewise.
5602 * pwd/Makefile (CFLAGS-getpwent_r.c): Add -fexceptions.
5603 (CFLAGS-getpwent.c): Likewise.
5604 * shadow/Makefile (CFLAGS-getspent_r.c): Add -fexceptions.
5605 (CFLAGS-getspent.c): Likewise.
5607 * inet/Makefile: Add -fexceptions to CFLAGS for the various
5608 getXXent and getXXbyYY functions.
5610 * locale/loadlocale.c: Use not-cancelable variants of open, close,
5613 2003-09-02 Jakub Jelinek <jakub@redhat.com>
5615 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
5616 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and
5618 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction):
5620 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove
5621 unused __syscall_ stubs.
5622 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove
5624 * sysdeps/unix/sysv/linux/cris/Makefile: Removed.
5625 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
5626 (__syscall_recvfrom, __syscall_sendto): Remove unused aliases.
5627 * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove
5628 unused __syscall_ stubs.
5629 * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*.
5630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
5631 (__syscall_*): Remove unused __syscall_ stubs.
5632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
5633 (__syscall_*): Likewise.
5634 * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove
5636 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*):
5637 Remove unused __syscall_ stubs.
5638 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*.
5639 * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed.
5640 * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed.
5641 * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed.
5642 * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed.
5643 * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed.
5644 * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed.
5645 * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed.
5646 * sysdeps/unix/sysv/linux/s_pread64.c: Removed.
5647 * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed.
5648 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused
5649 __syscall_* prototypes.
5650 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise.
5651 * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
5652 * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
5653 * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
5654 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5655 * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5656 * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
5657 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5658 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5659 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
5660 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
5661 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
5662 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
5663 * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5664 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5665 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5666 * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5667 * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5668 * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5669 * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
5670 * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5671 * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise.
5672 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5673 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5674 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
5675 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
5676 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
5677 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5678 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
5679 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
5680 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
5681 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
5682 * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5683 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5684 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5685 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5686 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5687 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5688 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5689 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5690 * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5691 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5692 * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5693 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5694 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5695 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
5696 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5697 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5698 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
5699 * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5700 * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5701 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5702 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
5703 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
5704 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5705 * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
5706 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise.
5707 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
5708 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
5709 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
5710 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
5711 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise.
5712 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
5713 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5714 * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5715 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5716 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5717 * sysdeps/unix/sysv/linux/execve.c: Likewise.
5718 * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5719 * sysdeps/unix/sysv/linux/reboot.c: Likewise.
5720 * sysdeps/unix/sysv/linux/_exit.c: Likewise.
5721 * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
5722 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5723 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5724 * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
5725 * sysdeps/unix/sysv/linux/readahead.c: Likewise.
5726 * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5727 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5728 * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5729 * sysdeps/unix/sysv/linux/readv.c: Likewise.
5730 * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
5731 * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5732 * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise.
5733 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5734 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5735 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5736 * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
5737 * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5738 * sysdeps/unix/sysv/linux/poll.c: Likewise.
5739 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5740 * sysdeps/unix/sysv/linux/writev.c: Likewise.
5741 * sysdeps/unix/sysv/linux/pread.c: Likewise.
5742 * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5743 * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5744 * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5745 * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5746 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5747 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5748 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5749 * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5750 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5751 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5753 2003-09-02 Jakub Jelinek <jakub@redhat.com>
5755 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change.
5756 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file.
5757 * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file.
5759 2003-09-02 Ulrich Drepper <drepper@redhat.com>
5761 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
5763 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
5764 open, close, and read.
5766 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
5769 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid.
5771 * libio/Makefile (CFLAGS-oldtmpfile.c): Add -fexceptions.
5772 * sysdeps/generic/tmpfile.c (tmpfile): Use __unlink instead of remove.
5773 * libio/oldtmpfile.c (__old_tmpfile): Likewise.
5775 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions.
5777 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions.
5778 (CFLAGS-fstatfs.c): Likewise.
5779 (CFLAGS-statvfs.c): Likewise.
5780 (CFLAGS-fstatvfs.c): Likewise.
5782 2003-09-01 Ulrich Drepper <drepper@redhat.com>
5784 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions.
5785 * posix/unistd.h: Remove __THROW from pathconf, fpathconf,
5787 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions.
5788 (CFLAGS-pathconf.c): Likewise.
5789 (CFLAGS-fpathconf.c): Likewise.
5791 * misc/Makefile (CFLAGS-fstab.c): Add -fexceptions.
5792 * misc/fstab.h: Remove all __THROW.
5793 * misc/Makefile (CFLAGS-mntent.c): Add -fexceptions.
5794 (CFLAGS-mntent_r.c): Likewise.
5795 * misc/mntent.h: Remove most __THROW.
5797 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
5798 (CFLAGS-mkstemp64.c): Likewise.
5800 * sysdeps/generic/wordexp.c (parse_comm): Disable cancellation
5801 around call to exec_comm.
5802 * posix/wordexp.h: Remove __THROW from wordexp.
5803 * posix/Makefile (CFLAGS-wordexp.c): Add -fexceptions.
5805 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use
5806 not-cancelable functions.
5808 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions.
5809 (CFLAGS-iofopen.c): Likewise.
5810 (CFLAGS-iofopen64.c): Likewise.
5812 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output
5814 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions.
5815 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg.
5817 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt.
5818 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions.
5820 2003-09-01 Thorsten Kukuk <kukuk@suse.de>
5822 * nis/nss_compat/compat-spwd.c (getspnam_plususer): Return
5823 NSS_STATUS_SUCCESS if entry was found.
5824 (getspent_next_file): Store user in blacklist after entry
5825 was found, use innetgr.
5827 2003-09-01 Jakub Jelinek <jakub@redhat.com>
5829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New.
5830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New.
5832 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Fix tls offset
5833 computation for TCB_AT_TP. Support l_firstbyte_offset != 0 for
5834 DTV_AT_TP, optimize.
5836 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5838 * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and
5839 posix_fallocate64 at GLIBC_2.3.3.
5840 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define.
5841 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
5843 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
5845 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_
5848 2003-08-31 Ulrich Drepper <drepper@redhat.com>
5850 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
5851 Code by Richard Henderson.
5853 2003-08-31 Philip Blundell <philb@gnu.org>
5855 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
5856 posix_fallocate64 at GLIBC_2.3.3.
5858 2003-08-31 Ulrich Drepper <drepper@redhat.com>
5860 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET.
5861 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp.
5863 2003-08-30 Jakub Jelinek <jakub@redhat.com>
5865 * sysdeps/generic/sysdep.h (cfi_window_save, CFI_WINDOW_SAVE): Define.
5866 * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Allow file to be
5867 included multiple times.
5868 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Pass
5869 ptid, tls, ctid arguments to the kernel.
5870 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
5871 Use INTERNAL_SYSCALL instead of __syscall_getpagesize.
5872 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5873 (__libc_sigaction): Use INLINE_SYSCALL instead of
5874 __syscall_rt_sigaction.
5875 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
5876 (__syscall_getgroups, __syscall_getpagesize, __syscall__llseek,
5877 __syscall_setfsgid, __syscall_setfsuid, __syscall_setgid,
5878 __syscall_setgroups, __syscall_setregid, __syscall_setreuid,
5879 __syscall_ipc, __syscall_setuid, __syscall_rt_sigaction,
5880 __syscall_rt_sigpending, __syscall_rt_sigprocmask,
5881 __syscall_rt_sigqueueinfo, __syscall_rt_sigsuspend,
5882 __syscall_rt_sigtimedwait): Remove unneeded syscall stubs.
5883 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (sysdep_routines):
5884 Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait,
5885 rt_sigqueueinfo, rt_sigaction and rt_sigpending.
5886 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5887 (__CLONE_SYSCALL_STRING): Define.
5888 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Add
5890 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5891 (__CLONE_SYSCALL_STRING): Define.
5892 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):
5894 * sysdeps/unix/sysv/linux/sparc/system.c: New file.
5896 2003-08-30 Ulrich Drepper <drepper@redhat.com>
5898 * sunrpc/rpc/clnt.h: Remove a few __THROW.
5899 * sunrpc/Makefile (CFLAGS-auth_unix.c): Add -fexceptions.
5900 (CFLAGS-key_call.c): Likewise.
5901 (CFLAGS-pmap_rmt.c): Likewise.
5902 (CFLAGS-clnt_perr.c): Likewise.
5903 * sunrpc/rpc/auth.h: Remove serveral __THROW.
5905 * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
5906 (CFLAGS-gethstbynm_r.c): Likewise.
5907 (CFLAGS-gethstbynm2_r.c): Likewise.
5908 (CFLAGS-rcmd.c): Likewise.
5909 * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
5911 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
5912 (CFLAGS-argp-fmtstream.c): Likewise.
5913 * argp/argp.h: Remove a number of __THROW.
5915 * misc/sys/syslog.h (vsyslog): Remove __THROW.
5917 * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.
5918 * misc/getpass.c (getpass): Add cleanup handler to ensure the
5919 stream is closed even if the thread is canceled.
5920 (call_fclose): New function.
5921 * posix/unistd.h: Remove __THROW from getpass prototype.
5923 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions.
5925 * signal/signal.h (psignal): Remove __THROW.
5926 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
5928 * misc/Makefile (CFLAGS-error.c): Define.
5929 * misc/error.c (error): Disable cancellation handling around the
5930 actual output. The message should in any case be printed.
5931 (error_at_line): Likewise.
5933 * misc/error.h: Protect parameter names with leading __.
5935 2003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca>
5937 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop.
5939 2003-08-29 Jakub Jelinek <jakub@redhat.com>
5941 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the
5944 2003-08-29 Ulrich Drepper <drepper@redhat.com>
5946 * libio/stdio.h: Remove a few more __THROW.
5948 2003-08-29 Jakub Jelinek <jakub@redhat.com>
5950 * libio/Makefile: Compile fputc.c, fputwc.c, freopen64.c, freopen.c,
5951 fseek.c, fseeko64.c, fseeko.c, ftello64.c, ftello.c, fwide.c, getc.c,
5952 getchar.c, getwc.c, getwchar.c, iofclose.c, iofflush.c, iofgetpos64.c,
5953 iofgetpos.c, iofgets.c, iofgetws.c, iofputs.c, iofputws.c, iofread.c,
5954 iofsetpos64.c, iofsetpos.c, ioftell.c, iofwrite.c, iogetdelim.c,
5955 iogetline.c, iogets.c, iogetwline.c, ioputs.c, ioseekoff.c,
5956 ioseekpos.c, iosetbuffer.c, iosetvbuf.c, ioungetc.c, ioungetwc.c,
5957 oldfileops.c, oldiofclose.c, oldiofgetpos64.c, oldiofgetpos.c,
5958 oldiofsetpos64.c, oldiofsetpos.c, peekc.c, putc.c, putchar.c, putwc.c,
5959 putwchar.c and rewind.c with exceptions.
5960 * sysdeps/generic/bits/stdio-lock.h (_IO_acquire_lock,
5961 _IO_release_lock): Define.
5962 * libio/fileops.c (_IO_new_file_underflow): Use it.
5963 * libio/fputc.c (fputc): Likewise.
5964 * libio/fputwc.c (fputwc): Likewise.
5965 * libio/freopen64.c (freopen64):
5966 * libio/freopen.c (freopen): Likewise.
5967 * libio/fseek.c (fseek): Likewise.
5968 * libio/fseeko64.c (fseeko64): Likewise.
5969 * libio/fseeko.c (fseeko): Likewise.
5970 * libio/ftello64.c (ftello64): Likewise.
5971 * libio/ftello.c (ftello): Likewise.
5972 * libio/fwide.c (fwide): Likewise.
5973 * libio/getc.c (_IO_getc): Likewise.
5974 * libio/getchar.c (getchar): Likewise.
5975 * libio/getwc.c (_IO_getwc): Likewise.
5976 * libio/getwchar.c (getwchar): Likewise.
5977 * libio/iofclose.c (_IO_new_fclose):
5978 * libio/iofflush.c (_IO_fflush): Likewise.
5979 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
5980 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
5981 * libio/iofgets.c (_IO_fgets): Likewise.
5982 * libio/iofgetws.c (fgetws): Likewise.
5983 * libio/iofputs.c (_IO_fputs): Likewise.
5984 * libio/iofputws.c (fputws): Likewise.
5985 * libio/iofread.c (_IO_fread): Likewise.
5986 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
5987 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
5988 * libio/ioftell.c (_IO_ftell): Likewise.
5989 * libio/iofwrite.c (_IO_fwrite): Likewise.
5990 * libio/iogetdelim.c (_IO_getdelim): Likewise.
5991 * libio/iogets.c (_IO_gets): Likewise.
5992 * libio/ioputs.c (_IO_puts): Likewise.
5993 * libio/ioseekoff.c (_IO_seekoff): Likewise.
5994 * libio/ioseekpos.c (_IO_seekpos): Likewise.
5995 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
5996 * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
5997 * libio/ioungetc.c (_IO_ungetc): Likewise.
5998 * libio/ioungetwc.c (ungetwc): Likewise.
5999 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6000 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
6001 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
6002 * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
6003 * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
6004 * libio/peekc.c (_IO_peekc_locked): Likewise.
6005 * libio/putc.c (_IO_putc): Likewise.
6006 * libio/putchar.c (putchar): Likewise.
6007 * libio/putwc.c (putwc): Likewise.
6008 * libio/putwchar.c (putwchar): Likewise.
6009 * libio/rewind.c (rewind): Likewise.
6010 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
6012 2003-08-29 Ulrich Drepper <drepper@redhat.com>
6014 * signal/signal.h: sighold, sigrelse, sigignore, sigset were
6015 available in XPG4.2.
6017 2003-08-27 Phil Knirsch <pknirsch@redhat.com>
6018 Jakub Jelinek <jakub@redhat.com>
6020 * sunrpc/svc.c (svc_getreqset): Fix fds_bits reading on 64-bit
6021 big endian arches. Don't read beyond end of fds_bits array.
6023 2003-04-27 Bruno Haible <bruno@clisp.org>
6025 * manual/message.texi (Advanced gettext functions): Add information
6026 about Korean, Portuguese, Latvian. Gaeilge is also known as Irish.
6027 Add section about Lithuanian, reported by Ricardas Cepas
6028 <rch@richard.eu.org>.
6029 Add information about Croatian.
6030 Ukrainian is like Russian, reported by Andy Rysin <arysin@yahoo.com>.
6031 Remove remark about continuation lines that is not true for PO files.
6032 Fix formula for Slovenian, reported by Roman Maurer
6033 <roman.maurer@amis.net>.
6035 2003-08-27 Ulrich Drepper <drepper@redhat.com>
6037 * math/math_private.h: Declare __copysignf.
6038 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of
6041 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf,
6042 __signbit, and __signbitl inline functions.
6044 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use
6045 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit().
6047 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp.
6048 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp.
6050 2003-08-27 Jakub Jelinek <jakub@redhat.com>
6052 * inet/inet_mkadr.c (inet_makeaddr): Optimize.
6054 2003-08-27 Ulrich Drepper <drepper@redhat.com>
6056 * include/stdio.h: Add declarations for __builtin_fwrite and
6057 __builtin_fwrite_unlocked.
6059 2003-08-27 Jakub Jelinek <jakub@redhat.com>
6061 * sysdeps/unix/opendir.c (__opendir): Make sure even struct dirent64
6062 fits into allocation. Add padding on 32-bit arches so that
6063 dirp->data is enough aligned for struct dirent64.
6064 Avoid clearing of the buffer, just clear DIR structure.
6066 2003-08-26 Ulrich Drepper <drepper@redhat.com>
6068 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function.
6069 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function.
6071 2003-08-26 Steven Munroe <sjmunroe@us.ibm.com>
6073 * sysdeps/powerpc/powerpc64/elf/Makefile: New file.
6075 2003-08-26 Jakub Jelinek <jakub@redhat.com>
6077 * login/programs/utmpdump.c (print_entry): Cast tv_usec to long
6078 to match format string.
6079 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c (union semun): Add
6081 (__new_semctl): Shut up warning.
6082 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
6083 (_dl_string_hwcap): Add __attribute__ ((always_inline)).
6085 2003-08-26 Jakub Jelinek <jakub@redhat.com>
6087 * elf/ldconfig.c (search_dir): When checking for GNU-style .so
6088 link file use the real file name, not the resolved name we got by
6089 following the symlinks.
6091 2003-08-25 Ulrich Drepper <drepper@redhat.com>
6093 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field
6094 if the object size is large enough.
6096 2003-08-25 Jakub Jelinek <jakub@redhat.com>
6098 * elf/ldconfig.c (search_dir): Treat symlink as regular file
6099 if it won't point to itself unless it is .so symlink for the linker.
6101 2003-08-25 Ulrich Drepper <drepper@redhat.com>
6103 * libio/libio.h (_IO_fwide): In the mode==0 optimization, don't
6104 use _mode if _IO_fwide_maybe_incompatible.
6105 * libio/iofwide.c (_IO_fwide): Move the test for mode == 0 after
6106 the compatibility test.
6108 2003-08-25 Jakub Jelinek <jakub@redhat.com>
6110 * elf/cache.c (save_cache): Don't write beyond end of file_entries
6112 Duplicate last old cache entry if the count would be odd.
6114 2003-08-25 Andreas Jaeger <aj@suse.de>
6116 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of
6117 __LONG_LONG_PAIR to long.
6119 2003-08-25 Philip Blundell <philb@gnu.org>
6121 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
6122 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.
6124 2003-08-18 Alfred M. Szmidt <ams@kemisten.nu>
6126 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine
6127 and use __libc_cleanup_region_end instead.
6129 2003-08-25 Ulrich Drepper <drepper@redhat.com>
6131 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21.
6133 2003-08-22 Ulrich Drepper <drepper@redhat.com>
6135 * io/fcntl.h (posix_fallocate): Change type of third parameter to
6137 (posix_fallocate64): Change type of third parameter to off64_t.
6138 * sysdeps/generic/posix_fallocate.c: Adjust for type change.
6139 * sysdeps/posix/posix_fallocate.c: Likewise.
6140 * sysdeps/generic/posix_fallocate64.c: Likewise.
6141 * sysdeps/posix/posix_fallocate64.c: Likewise. Add compatibility
6142 code for 32-bit platforms.
6143 * sysdeps/unix/sysv/linux/i386/Versions: Add new version for
6145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Likewise.
6146 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
6147 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
6149 2003-08-19 Ulrich Drepper <drepper@redhat.com>
6151 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to
6152 the type, not to name.
6154 * stdio-common/test-vfprintf.c (main): Don't write temporary file
6155 into source directory.
6157 * malloc/malloc.c (_int_free): Add cheap test for some invalid
6160 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in
6163 2003-08-18 Ulrich Drepper <drepper@redhat.com>
6165 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error
6168 2003-08-18 H.J. Lu <hongjiu.lu@intel.com>
6170 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type.
6171 (elf_machine_lazy_rel): Likewise.
6173 2003-08-18 Art Haas <ahaas@airmail.net>
6175 * malloc/malloc.h: Remove unneeded ';' where closing the C++
6178 2003-08-18 Ulrich Drepper <drepper@redhat.com>
6180 * sysdeps/ia64/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Support
6181 loading big binaries where @gprel(sym) cannot be handled in 'add'
6182 but instead has to be used with 'movl'.
6184 2003-08-17 Juergen Kreileder <jk@blackdown.de>
6185 Andreas Jaeger <aj@suse.de>
6187 * sysdeps/x86_64/bits/byteswap.h: New file.
6189 2003-08-17 Andreas Jaeger <aj@suse.de>
6191 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo.
6193 2003-08-16 Jakub Jelinek <jakub@redhat.com>
6195 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_ERRVAL,
6196 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
6197 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_ERRVAL,
6198 PSEUDO_RET_ERRVAL, ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
6199 * sysdeps/unix/alpha/sysdep.h (PSEUDO_ERRVAL,
6200 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
6201 * sysdeps/unix/mips/sysdep.h (PSEUDO_ERRVAL,
6202 ret_ERRVAL, PSEUDO_END_ERRVAL): Define.
6203 * sysdeps/unix/sparc/sysdep.h (PSEUDO_ERRVAL,
6204 ret_ERRVAL): Define.
6205 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_ERRVAL,
6206 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
6207 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO_ERRVAL,
6208 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
6209 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO_ERRVAL):
6211 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_ERRVAL,
6212 PSEUDO_END_ERRVAL, ret_ERRVAL): Define.
6213 * sysdeps/unix/sysdep.h (PSEUDO_END_ERRVAL): Define.
6215 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64,
6216 posix_fadvise64_64): Remove.
6217 * sysdeps/unix/sysv/linux/alpha/syscalls.list (posix_fadvise64): Add
6219 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64):
6221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
6222 (posix_fadvise64): Likewise.
6223 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
6224 (posix_fadvise64): Likewise.
6225 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
6226 (posix_fadvise64): Likewise.
6227 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (posix_fadvise64):
6229 * sysdeps/unix/sysv/linux/i386/posix_fadvise64_64.S: Moved to...
6230 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: ...here.
6231 (__posix_fadvise64_l64): Fix a typo in fadvise64 syscall invocation.
6232 (__posix_fadvise64_l32): New function.
6233 * sysdeps/unix/sysv/linux/i386/Makefile: Revert last change.
6234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Export
6235 posix_fadvise64@@GLIBC_2.3.3.
6236 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
6237 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
6238 * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Return
6240 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file.
6242 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6243 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD.
6245 2003-08-15 Jakub Jelinek <jakub@redhat.com>
6247 * sysdeps/sparc/sparc32/dl-machine.h (WEAKADDR): Remove.
6248 (elf_machine_matches_host): Remove weak extern stuff.
6249 Use GL(dl_hwcap) unconditionally and GL(dl_hwcap_mask) if SHARED.
6250 (elf_machine_runtime_setup, sparc_fixup_plt): Remove weak extern
6251 stuff. Use GL(dl_hwcap) unconditionally.
6253 2003-08-16 Alan Modra <amodra@bigpond.net.au>
6255 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after
6256 __libc_start_main branch.
6258 2003-08-16 Jakub Jelinek <jakub@redhat.com>,
6259 Andreas Jaeger <aj@suse.de>
6261 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
6262 instead of setting errno.
6263 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
6265 2003-08-16 Andreas Jaeger <aj@suse.de>
6267 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
6268 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
6270 2003-08-15 Ulrich Drepper <drepper@redhat.com>
6272 * io/fcntl.h (posix_fadvise64): Change type of third parameter to
6274 * sysdeps/unix/sysv/linux/posix_fadvise.c: Adjust definition.
6275 * sysdeps/unix/make-syscalls.sh: Recognize V prefix to the parameter
6276 description indicating the error value is returned, not -1.
6277 * sysdeps/unix/sysv/linux/kernel-features.h: Add definition of
6278 __ASSUME_FADVISE64_64_SYSCALL.
6279 * sysdeps/unix/sysv/linux/syscalls.list: Don't define madvise and
6280 posix_madvise in one file. Have posix_madvise defined with error
6282 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64
6284 * sysdeps/unix/sysv/linux/i386/posix_fadvise.S: New file.
6285 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_ERRVAL,
6286 PSEUDO_END_ERRVAL, and ret_ERRVAL.
6287 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
6288 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6289 * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.3.3]: Add
6292 * posix/Makefile (routines): Add posix_madvise.
6293 * sysdeps/generic/madvise.c: Don't define posix_madvise.
6294 * sysdeps/generic/posix_madvise.c: New file.
6295 * sysdeps/unix/sysv/aix/posix_madvise.c: New file.
6296 * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (subdir_routines):
6297 Add posix_fadvise64_64.
6299 2003-08-15 Jakub Jelinek <jakub@redhat.com>
6301 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
6302 3.0, not for !gcc or gcc < 3.0.
6304 2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
6306 * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
6307 Address passed to test_in_mod1 and test_in_mod2 without casting.
6308 * dlfcn/defaultmod1.c: Change prototype of test_in_mod1.
6309 (test_in_mod1): Cast dlsym loaded value to same type as mainp.
6310 * dlfcn/defaultmod2.c: Change prototype of test_in_mod2.
6311 (test_in_mod2): Cast dlsym loaded value to same type as mainp.
6313 2003-08-15 Jakub Jelinek <jakub@redhat.com>
6315 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls):
6316 Change quotes before using [].
6318 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file.
6320 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock):
6322 (__sparc32_atomic_locks): ...this. Change into 64-byte array.
6323 (__sparc32_atomic_do_lock, __sparc32_atomic_do_unlock): Add addr
6324 argument. Select one of 64 locks from address bits.
6325 (atomic_compare_and_exchange_val_acq,
6326 atomic_compare_and_exchange_bool_acq): Pass memory address to
6327 __sparc32_atomic_do_{,un}lock.
6329 2003-08-14 Ulrich Drepper <drepper@redhat.com>
6331 * assert/assert.h (assert): Use !! in front of expression to allow
6334 * iconvdata/cp932.c: Fixed checking of a few border of code areas.
6335 Changed conversion of JIS X 0201 from using a table to calculating.
6336 * iconvdata/euc-jp-ms.c: Fixed conversion table and rewrote
6337 conversion routine. Changed CHARSET_NAME definition from EUCJP-MS to
6339 * iconvdata/tst-tables.sh: Add CP932 and EUC-JP-MS.
6340 * iconvdata/CP932.irreversible: New file.
6341 * iconvdata/EUC-JP-MS.irreversible: New file.
6342 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
6344 2003-08-13 Ulrich Drepper <drepper@redhat.com>
6346 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall.
6348 * elf/Makefile: Use LC_ALL=C in a few cases where we call external
6349 text processing tools.
6351 * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid
6352 element unless BROKEN_THREAD_SIGNALS is defined.
6353 (struct requestlist): Likewise.
6354 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in
6355 caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined.
6356 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
6357 * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid
6358 parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers.
6359 Pass current PID to __aio_sigqueue.
6360 * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only
6361 call. Don't initialize caller_pid field of waitlist element.
6363 2003-08-12 Jakub Jelinek <jakub@redhat.com>
6365 * libio/libioP.h (_IO_vtable_offset): Define.
6366 * libio/freopen.c (freopen): Use it.
6367 * libio/ioputs.c (_IO_puts): Likewise.
6368 * libio/freopen64.c (freopen64): Likewise.
6369 * libio/genops.c (__underflow, __uflow, _IO_flush_all_lockp):
6371 * libio/iofclose.c (_IO_new_fclose): Likewise.
6372 * libio/iofputs.c (_IO_fputs): Likewise.
6373 * libio/ioftell.c (_IO_ftell): Likewise.
6374 * libio/iofwrite.c (_IO_fwrite): Likewise.
6375 * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
6376 * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
6377 * stdio-common/vfprintf.c (ORIENT, vfprintf): Likewise.
6378 * stdio-common/vfscanf.c (ORIENT): Likewise.
6380 2003-08-11 Ulrich Drepper <drepper@redhat.com>
6382 * assert/assert.h: Use __builtin_expect in assert and
6383 assert_perror definitions if possible.
6385 2003-08-07 Jakub Jelinek <jakub@redhat.com>
6387 * sysdeps/generic/ldsodefs.h (_rtld_global): Add
6388 _dl_rtld_lock_recursive and _dl_rtld_unlock_recursive.
6389 * elf/rtld.c (rtld_lock_default_lock_recursive,
6390 rtld_lock_default_unlock_recursive): New functions.
6391 (dl_main): Initialize _dl_rtld_lock_recursive and
6392 _dl_rtld_unlock_recursive.
6394 2003-08-05 Jakub Jelinek <jakub@redhat.com>
6396 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to
6397 config_file directories instead of prepending.
6399 2003-08-02 Ulrich Drepper <drepper@redhat.com>
6401 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6402 __ASSUME_CLONE_STOPPED.
6404 2003-08-01 Ulrich Drepper <drepper@redhat.com>
6406 * sysdeps/generic/bits/libc-lock.h
6407 (__libc_cleanup_push,__libc_cleanup_pop): Define even here.
6409 2003-08-01 Roland McGrath <roland@frob.com>
6411 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c.
6413 2003-07-31 Jakub Jelinek <jakub@redhat.com>
6415 * sysdeps/generic/bits/types.h (__ssize_t): Use __SSIZE_T_TYPE
6416 instead of __SWORD_TYPE.
6417 * sysdeps/generic/bits/typesizes.h (__SSIZE_T_TYPE): Define.
6418 * sysdeps/mach/hurd/bits/typesizes.h (__SSIZE_T_TYPE): Define.
6419 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h (__SSIZE_T_TYPE):
6421 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE):
6423 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE):
6425 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file.
6427 * dlfcn/dlerror.c (once): New.
6428 (dlerror): Call __libc_once.
6429 (_dlerror_run): Remove once.
6431 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6432 Sync with 2.5.7 and 2.5.73 kernel changes.
6434 * dlfcn/eval.c (funcall): Add noinline attribute to shut up warnings.
6435 * elf/rtld.c (dl_main): Cast ElfW(Addr) arguments with %Zx/%Zd
6437 * elf/dl-lookup.c (_dl_debug_bindings): Likewise.
6438 * elf/tst-tls6.c (do_test): Use %zd format for l_tls_modid.
6439 * elf/tst-tls8.c (do_test): Use %zd format for modid1 and modid2.
6440 * gmon/tst-sprofil.c (main): Add parens to shut up warning.
6441 * iconv/tst-iconv3.c (main): Use %td instead of %zd for pointer
6442 difference argument.
6443 * stdio-common/tst-wc-printf.c (main): Cast arguments with %C
6445 * stdlib/tst-limits.c (main): For WORD_BIT and LONG_BIT, use
6446 %d format and cast expected value to int.
6447 * sysdeps/generic/libc-start.c (STATIC): Add
6448 __attribute__((always_inline) if LIBC_START_MAIN is already defined.
6449 * sysdeps/powerpc/fpu/w_sqrt.c (a_nan, a_inf): Change from uint32_t
6450 to ieee_float_shape_type.
6451 (__sqrt): Avoid type punning.
6452 * sysdeps/powerpc/fpu/w_sqrtf.c (a_nan, a_inf): Change from uint32_t
6453 to ieee_float_shape_type.
6454 (__sqrtf): Avoid type punning.
6455 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Don't define
6456 refsym if in dl-conflict.c.
6457 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6458 * sysdeps/unix/sysv/linux/i386/semctl.c (union semun): Add __old_buf.
6459 (__new_semctl): Shut up warning.
6460 * sysdeps/unix/sysv/linux/semctl.c (union semun): Add __old_buf.
6461 (__new_semctl): Shut up warning.
6462 * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Wrap long lines.
6463 Change old into union of __old_shmid_ds and __old_shminfo structs.
6465 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t.
6467 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Fix actime and
6468 modtime computation.
6469 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
6470 * sysdeps/posix/utimes.c (__utimes): Likewise.
6472 2003-07-30 Jakub Jelinek <jakub@redhat.com>
6474 * elf/dl-reloc.c (_dl_allocate_static_tls): Don't return any value,
6475 call dl_signal_error directly. If already relocated, call
6476 GL(dl_init_static_tls) directly, otherwise queue it for later.
6477 (CHECK_STATIC_TLS): Undo 2003-07-24 change.
6478 * elf/rtld.c (dl_main): Initialize GL(dl_init_static_tls).
6479 * elf/dl-open.c (dl_open_worker): Call GL_dl_init_static_tls
6480 for all static TLS initializations delayed in _dl_allocate_static_tls.
6481 * elf/dl-support.c (_dl_init_static_tls): New variable.
6482 * include/link.h (struct link_map): Add l_need_tls_init.
6483 * sysdeps/generic/ldsodefs.h (_rtld_global): Add _dl_init_static_tls.
6484 (_dl_nothread_init_static_tls): New prototype.
6485 (_dl_allocate_static_tls): Adjust prototype.
6487 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive.
6489 2003-07-31 Alexandre Oliva <aoliva@redhat.com>
6491 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
6492 elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
6493 reloc_addr is aligned.
6494 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
6495 elf_machine_rela_relative): Adjust.
6496 * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
6497 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
6498 * sysdeps/cris/dl-machine.h (elf_machine_rela,
6499 elf_machine_rela_relative): Adjust.
6500 * sysdeps/hppa/dl-machine.h (elf_machine_rela,
6501 elf_machine_rela_relative): Adjust.
6502 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
6503 elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
6504 * sysdeps/ia64/dl-machine.h (elf_machine_rela,
6505 elf_machine_rela_relative): Adjust.
6506 * sysdeps/m68k/dl-machine.h (elf_machine_rela,
6507 elf_machine_rela_relative): Adjust.
6508 * sysdeps/mips/dl-machine.h (elf_machine_rela,
6509 elf_machine_rela_relative): Adjust.
6510 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
6511 elf_machine_rela_relative): Adjust.
6512 * sysdeps/powerpc/powerpc64/dl-machine.h
6513 (elf_machine_rela_relative, elf_machine_rela): Adjust.
6514 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
6515 elf_machine_rela_relative): Adjust.
6516 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
6517 elf_machine_rela_relative): Adjust.
6518 * sysdeps/sh/dl-machine.h (elf_machine_rela,
6519 elf_machine_rela_relative): Adjust.
6520 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
6521 elf_machine_rela_relative): Adjust.
6522 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
6523 elf_machine_rela_relative): Adjust.
6524 * sysdeps/x86_64/dl-machine.h (elf_machine_rela,
6525 elf_machine_rela_relative): Adjust.
6527 2003-07-29 Ulrich Drepper <drepper@redhat.com>
6529 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Restore
6530 alignment of TCB used before the last change so that it matches
6531 ld's output for IE code.
6533 2003-07-29 Jakub Jelinek <jakub@redhat.com>
6535 * include/ctype.h (__ctype_b_loc, __ctype_toupper_loc,
6536 __ctype_tolower_loc): Avoid "dereferencing type-punned pointer will
6537 break strict-aliasing rules" warnings.
6539 2003-07-29 Roland McGrath <roland@redhat.com>
6541 * elf/Makefile: Revert accidental changes in last commit.
6542 * elf/dl-support.c: Likewise.
6544 * rt/tst-timer2.c: New file.
6545 * rt/Makefile (tests): Add it.
6547 2003-07-25 Jakub Jelinek <jakub@redhat.com>
6549 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute.
6551 2003-07-29 Roland McGrath <roland@redhat.com>
6553 * elf/Makefile (tests) [$(build-shared) = yes]:
6554 Depend on $(test-modules).
6555 * dlfcn/Makefile: Likewise.
6557 2003-07-28 Roland McGrath <roland@redhat.com>
6559 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro.
6560 Use that instead of `typedef' when using __*_TYPE macros in rhs.
6562 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this.
6563 * elf/tst-tlsmod14a.c: Likewise.
6565 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h>
6566 before <linux/sysctl.h>.
6568 2003-07-27 Ulrich Drepper <drepper@redhat.com>
6570 * sysdeps/unix/sysv/syscalls.list: time syscall never fails.
6571 * sysdeps/unix/sysv/linux/x86_64/time.S: time syscall never fails.
6572 * sysdeps/unix/sysv/i386/time.S: time syscall never fails.
6573 * sysdeps/unix/syscalls.list: umask syscall never fails.
6575 2003-07-27 Andreas Jaeger <aj@suse.de>
6577 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used.
6579 2003-07-25 Jakub Jelinek <jakub@redhat.com>
6581 * sysdeps/unix/sysv/linux/a.out.h: Replace with i386 version.
6582 Include bits/a.out.h.
6583 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6585 * sysdeps/unix/sysv/linux/bits/a.out.h: New file.
6586 * sysdeps/unix/sysv/linux/i386/bits/a.out.h: New file.
6587 * sysdeps/unix/sysv/linux/m68k/bits/a.out.h: New file.
6588 * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: New file.
6589 * sysdeps/unix/sysv/linux/alpha/a.out.h: New file.
6590 * sysdeps/unix/sysv/linux/alpha/bits/a.out.h: New file.
6591 * sysdeps/unix/sysv/linux/sparc/a.out.h: New file.
6592 * sysdeps/unix/sysv/linux/sparc/bits/a.out.h: New file.
6594 2003-07-24 Jakub Jelinek <jakub@redhat.com>
6596 * sysdeps/pthread/aio_cancel.c (aio_cancel): Return AIO_ALLDONE
6597 if aiocbp != NULL and has already completed. Return -1/EINVAL if
6598 aiocbp->aio_fildes does not match fildes.
6600 2003-07-24 Ulrich Drepper <drepper@redhat.com>
6602 * timezone/zic.c (rpytime): Replace cheap overflow check with a
6605 * include/link.h (struct link_map): Add l_tls_firstbyte_offset field.
6606 * sysdeps/generic/dl-tls.c [TLS_TCB_AT_TP] (_dl_determine_tlsoffset):
6607 Fix calculation of offsets to take misalignment of first byte in
6609 * elf/dl-load.c (_dl_map_object_from_fd): Initialize
6610 l_tls_firstbyte_offset field.
6611 * elf/rtld.c (_dl_start_final, _dl_start, dl_main): Likewise.
6612 * elf/dl-reloc.c (_dl_allocate_static_tls): Change return type to int.
6613 Take l_tls_firstbyte_offset information into account.
6614 (CHECK_STATIC_TLS): _dl_allocate_static_tls can fail now.
6615 * sysdeps/generic/ldsodefs.h: Adjust _dl_allocate_static_tls prototype.
6616 * elf/Makefile: Add rules to build and run tst-tls14.
6617 * elf/tst-tls14.c: New file.
6618 * elf/tst-tlsmod14a.c: New file.
6619 * elf/tst-tlsmod14b.c: New file.
6621 2003-07-23 Jakub Jelinek <jakub@redhat.com>
6623 * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define.
6624 (lio_listio): Use it.
6625 * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of
6626 after few defines to avoid duplication.
6628 2003-07-22 Jakub Jelinek <jakub@redhat.com>
6630 * include/stdio.h (__libc_fatal): Add libc_hidden_proto.
6631 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
6633 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose):
6634 Add libc_hidden_def.
6635 * sysdeps/generic/libc_fatal.c (__libc_fatal): Likewise.
6636 * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
6637 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Likewise.
6638 * elf/Versions (libc): Export __libc_dlopen_mode@@GLIBC_PRIVATE,
6639 __libc_dlsym@@GLIBC_PRIVATE and __libc_dlclose@@GLIBC_PRIVATE.
6640 * libio/Versions (libc): Export __libc_fatal@@GLIBC_PRIVATE.
6641 * sysdeps/generic/unwind-dw2.c: Readd #ifs removed during last
6643 * sysdeps/generic/unwind.inc: Removed.
6645 * include/resolv.h (__resp): Declare. Define to __libc_resp
6647 (_res): If USE___THREAD, define to (*__resp).
6648 * resolv/res_libc.c (_res): Normal .bss variable with compat_symbol
6649 even if USE___THREAD.
6650 (__resp): New __thread variable.
6651 (__libc_resp): New alias.
6652 * resolv/Versions (libc): Export _res@GLIBC_2.0 even if
6653 USE_TLS && HAVE___THREAD. Export __resp@@GLIBC_PRIVATE.
6654 * sysdeps/generic/res-state.c (__res_state): Return __resp
6657 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
6659 * elf/dl-support.c (_dl_hwcap): New variable.
6660 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries.
6662 * sysdeps/i386/fpu/fclrexcpt.c: Include <unistd.h>, <ldsodefs.h>
6663 and <dl-procinfo.h>.
6664 (__feclearexcept): Clear MXCSR if needed.
6665 * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
6667 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document
6668 that newer hardware needs more than these macros.
6670 * sysdeps/i386/setfpucw.c: New file.
6672 2003-07-22 Jakub Jelinek <jakub@redhat.com>
6674 * elf/Makefile (CFLAGS-ldconfig.c): Define IS_IN_ldconfig.
6675 * elf/ldconfig.c: Include dl-procinfo.c.
6676 (PROCINFO_CLASS): Define.
6677 * sysdeps/generic/ldsodefs.h (PROCINFO_CLASS): Define.
6678 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: New file.
6679 * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: New file.
6680 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (PROCINFO_CLASS):
6681 Define if not yet defined. Use it instead of EXTERN. Undefine
6682 at the end of the file.
6683 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (PROCINFO_CLASS):
6685 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c
6686 (PROCINFO_CLASS): Likewise.
6687 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c
6688 (PROCINFO_CLASS): Likewise.
6690 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
6692 * elf/ldconfig.c (main): Issue a fatal error if relative path
6693 is used to build cache.
6695 2003-07-22 Ulrich Drepper <drepper@redhat.com>
6697 * elf/readlib.c (process_file): Avoid possible overflow in assignment.
6699 2003-07-21 Art Haas <ahaas@airmail.net>
6701 * manual/charset.texi (Converting a Character): Fix example code so a
6702 valid pointer is returned.
6704 2003-07-22 Andreas Jaeger <aj@suse.de>
6706 * elf/readlib.c (process_file): Check that file is a shared
6709 * elf/sofini.c (__FRAME_END__): Use attribute used so that gcc
6710 will not optimize it away.
6711 (__DTOR_END__): Likewise.
6712 (__CTOR_END__): Likewise.
6714 * include/libc-symbols.h (_elf_set_element): Use attribute used so
6715 that gcc will not optimize it away.
6716 (link_warning): Likewise.
6718 2003-07-22 Ulrich Drepper <drepper@redhat.com>
6720 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling.
6721 * wcsmbs/Makefile (tests): Add tst-wcpncpy.
6722 * wcsmbs/tst-wcpncpy.c: New file.
6724 2003-07-21 Ulrich Drepper <drepper@redhat.com>
6726 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define.
6728 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of
6729 stmxcsr and ldmxcsr.
6731 * Makerules (build-module-helper): Add -z defs unless explicitly said
6733 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs
6734 which has undefined symbols.
6735 * elf/Makefile: Likewise.
6737 * sysdeps/i386/fpu/fedisblxcpt.c: Use dl_hwcap, not dl_hwcap_mask.
6738 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
6739 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
6740 * sysdeps/i386/fpu/fesetround.c: Likewise.
6741 * sysdeps/i386/fpu/ftestexcept.c: Likewise.
6743 2003-07-21 HJ Lu <hongjiu.lu@intel.com>
6745 * elf/ldconfig.c (search_dir): Treat symlink as regular file
6746 if it won't point to itself.
6748 2003-07-20 Ulrich Drepper <drepper@redhat.com>
6750 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int.
6752 2003-07-20 Andreas Jaeger <aj@suse.de>
6754 * iconvdata/cp932.c (BODY): STANDARD_ERR_HANDLER is now called
6755 STANDARD_TO_LOOP_ERR_HANDLER.
6756 * iconvdata/euc-jp-ms.c (BODY): Likewise.
6758 2003-07-19 Ulrich Drepper <drepper@redhat.com>
6760 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo.
6762 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls.
6764 2003-07-16 Daniel Jacobowitz <drow@mvista.com>
6765 Andreas Jaeger <aj@suse.de>
6767 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to
6768 256K, remove unneeded declaration of __getpagesize.
6770 2003-07-16 Andreas Schwab <schwab@suse.de>
6772 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>.
6774 2003-07-15 Ulrich Drepper <drepper@redhat.com>
6776 * io/test-utime.c (main): Make test yet more robust.
6778 2003-07-14 Ulrich Drepper <drepper@redhat.com>
6780 More cancellation handling fixups.
6781 * sysdeps/unix/sysv/linux/not-cancel.h: Add waitpid_not_cancel.
6782 * sysdeps/generic/not-cancel.h: Likewise.
6783 * catgets/open_catalog.c: Use not-cancelable syscalls.
6784 * time/Makefile (CFLAGS-getdate.c): Add -fexceptions.
6785 * sysdeps/unix/sysv/linux/llseek.c: Must not be cancelable.
6786 * sysdeps/unix/syscalls.list: Don't mark lseek as cancelable.
6787 * dlfcn/dlfcn.h: Mark dlopen with __THROW again.
6788 * io/fcntl.h: Don't mark posix_fallocate with __THROW.
6789 * libio/fileops.c: Use not-cancelable syscalls for fclose.
6790 * libio/iopopen.c: Use no-cancelable syscalls.
6791 * libio/stdio.h: Mark popen and pclose with __THROW again.
6792 * misc/Makefile (CFLAGS-syslog.c): Add -fexceptions.
6793 * misc/syslog.c: Fix locking and cancellation cleanup handling.
6794 * posix/unistd.h: Mark ttyname and ttyname_r again with __THROW.
6795 * stdio-common/Makefile (CFLAGS-tmpfile.c, CFLAGS-tmpfile64.c,
6796 CFLAGS-tempname.c): Add -fexceptions.
6797 * stdlib/Makefile (CFLAGS-mkstemp.c): Add -fexceptions.
6798 * string/string.h: Mark strerror and strerror_r with _THROW again.
6799 * sysdeps/generic/unwind.inc: New file. Copied from gcc.
6800 * sysdeps/generic/unwind-dw2.c: Update from gcc version. Remove
6801 #ifs since we now need all the code compiled.
6802 * sysdeps/posix/spawni.c: Use close_not_cancel instead of close.
6803 * sysdeps/unix/closedir.c: Use not-cancelable syscalls.
6804 * sysdeps/unix/opendir.c: Likewise.
6806 * iconvdata/Makefile (modules): Add CP932 and EUC-JP-MS.
6807 Add rule for EUC-JP-MS dependency.
6808 * iconvdata/cp932.c: New file.
6809 * iconvdata/eucjp-ms.c: New file.
6810 * iconvdata/gconv-modules: Add entries for CP932 and EUC-JP-MS.
6811 Patch by MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>.
6813 2003-07-15 Jakub Jelinek <jakub@redhat.com>
6815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add
6818 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6820 * sysdeps/unix/sysv/linux/kernel-features.h
6821 (__ASSUME_FIXED_CLONE_SYSCALL): New macro.
6822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Use it.
6824 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h.
6826 2003-07-14 Ulrich Drepper <drepper@redhat.com>
6828 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6829 __ASSUME_TGKILL for Alpha appropriately.
6831 2003-07-12 Ulrich Drepper <drepper@redhat.com>
6833 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define.
6834 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE):
6836 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE):
6839 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6840 __ASSUME_UTIMES for x86 and kernels > 2.5.75.
6842 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with
6843 second parameter == NULL.
6844 * sysdeps/unix/sysv/linux/utimes.c: New file.
6846 2003-07-12 Jakub Jelinek <jakub@redhat.com>
6848 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h.
6849 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix
6852 2003-07-12 Ulrich Drepper <drepper@redhat.com>
6854 * time/sys/time.h: Namespace cleanup.
6855 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6856 __ASSUME_UTIMES for the architectures which always had the syscall.
6857 * sysdeps/unix/sysv/linux/futimes.c: New file.
6859 2003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6861 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR
6862 register across CENABLE and CDISABLE.
6864 2003-07-11 Jakub Jelinek <jakub@redhat.com>
6866 * sysdeps/unix/sysv/linux/sigwait.c: Include string.h.
6867 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
6868 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
6869 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Cast value to unsigned
6870 int before assigning to max to avoid warnings.
6872 2003-07-11 Jakub Jelinek <jakub@redhat.com>
6874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add
6876 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise.
6877 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise.
6879 2003-07-10 Jakub Jelinek <jakub@redhat.com>
6881 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of
6882 .data.rel.ro.local to "aw".
6884 2003-07-10 Ulrich Drepper <drepper@redhat.com>
6886 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition.
6887 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag.
6888 (PIC-ccflag): Define.
6890 2003-07-04 Jakub Jelinek <jakub@redhat.com>
6892 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code
6894 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6896 2003-07-07 Jakub Jelinek <jakub@redhat.com>
6898 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address)
6899 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL.
6901 2003-07-07 Ulrich Drepper <drepper@redhat.com>
6903 * sysdeps/unix/sysv/linux/kernel-features.h: Version
6904 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible.
6906 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
6907 compilation with HAVE_AUX_SECURE defined.
6909 2003-07-05 Richard Henderson <rth@redhat.com>
6911 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end.
6913 2003-07-03 Ulrich Drepper <drepper@redhat.com>
6915 * configure.in: Also check for .cfi_rel_offset pseudo-op.
6917 2003-07-03 Jakub Jelinek <jakub@redhat.com>
6919 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a
6922 2003-07-03 Ulrich Drepper <drepper@redhat.com>
6924 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK):
6926 * sysdeps/unix/sysv/linux/prof-freq.h: New file.
6928 2003-07-02 Jakub Jelinek <jakub@redhat.com>
6930 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo
6931 decl and use with #ifdef NEED_DL_SYSINFO.
6933 2003-07-02 Ulrich Drepper <drepper@redhat.com>
6935 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't set
6936 GL(dl_sysinfo) unles GL(dl_sysinfo_dso) is also set.
6937 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6938 __ASSUME_VSYSCALL only for 2.5.69 and up since this is when the
6939 vsyscall DSO was added.
6941 * posix/bits/posix1_lim.h (_POSIX_NGROUPS_MAX): Define to 8 or 0
6942 depending on selected standard.
6943 (NGROUPS_MAX): Define to 8 if not defined.
6945 2003-07-02 Andreas Jaeger <aj@suse.de>
6947 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file.
6949 2003-05-04 H.J. Lu <hongjiu.lu@intel.com>
6951 * malloc/arena.c (arena_get2): Add atomic_write_barrier.
6952 * malloc/thread-m.h: Include <atomic.h>.
6953 (atomic_full_barrier): Provide default.
6954 (atomic_read_barrier): Likewise.
6955 (atomic_write_barrier): Likewise.
6956 * sysdeps/ia64/bits/atomic.h (atomic_full_barrier): New #define.
6958 2003-06-30 Ulrich Drepper <drepper@redhat.com>
6960 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET.
6962 2003-06-30 Richard Henderson <rth@redhat.com>
6964 * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_bool_*_int):
6965 Invert the sense of the return value.
6966 (__arch_exchange_16_int): Fix paste-o.
6967 (__arch_exchange_{32,64}_int): Fix think-o.
6969 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly.
6971 2003-06-30 Richard Henderson <rth@redhat.com>
6973 * include/sys/resource.h (__getrusage): Mark hidden.
6974 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise.
6975 * include/sys/wait.h (__wait4): Likewise.
6977 2003-06-17 Guido Guenther <agx@sigxcpu.org>
6979 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT
6981 (xstat_conv): Rename to __xstat_conv and remove static inline.
6982 (xstat64_conv): Likewise.
6984 2003-06-29 Ulrich Drepper <drepper@redhat.com>
6986 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter
6987 values which cannot be handled in one nanosleep call.
6989 2003-06-25 Alfred M. Szmidt <ams@kemisten.nu>
6991 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros.
6992 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them.
6994 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix.
6996 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
6998 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header,
7001 2003-06-26 Steven Munroe <sjmunroe@us.ibm.com>
7003 * sysdeps/unix/sysv/linux/xstatconv.h [!STAT_IS_KERNEL_STAT]:
7004 Conditionalize function definitions that use struct kernel_stat.
7005 * sysdeps/unix/sysv/linux/fxstat.c: Remove __syscall_fstat extern.
7006 * sysdeps/unix/sysv/linux/lxstat.c: Remove __syscall_lstat extern.
7007 * sysdeps/unix/sysv/linux/xstat.c: Remove __syscall_stat extern.
7009 2003-06-28 Ulrich Drepper <drepper@redhat.com>
7011 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real
7014 2003-06-07 Thorsten Kukuk <kukuk@suse.de>
7016 * nis/nss_compat/compat-grp.c: Remove unused nis_first variable.
7017 (getgrent_next_file): Don't store group name to early in blacklist.
7019 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result
7020 and use memcpy instead of strcpy.
7022 2003-06-28 Ulrich Drepper <drepper@redhat.com>
7024 * nis/nss_compat/compat-grp.c: Optimize several little things. Use
7026 * nis/nss_compat/compat-initgroups.c: Likewise.
7027 * nis/nss_compat/compat-pwd.c: Likewise.
7028 * nis/nss_compat/compat-spwd.c: Likewise.
7030 2003-06-27 Thorsten Kukuk <kukuk@suse.de>
7032 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+
7033 functions, dlopen corresponding NSS module instead.
7035 2003-06-27 Jeroen Dekkers <jeroen@dekkers.cx>
7037 * sysdeps/mach/hurd/alpha/init-first.c: Remove call to __libc_init.
7038 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
7039 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
7040 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
7042 2003-06-27 Ulrich Drepper <drepper@redhat.com>
7044 * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
7046 2003-06-26 Roland McGrath <roland@frob.com>
7048 * sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
7049 * sysdeps/mach/configure: Regenerated.
7050 * sysdeps/mach/hurd/times.c (times_init): Function removed.
7051 (__times): Assume `creation_time' field is available.
7052 * sysdeps/mach/hurd/Makefile [$(subdir) = csu] (sysdep_routines):
7053 Don't append set-init.
7054 * sysdeps/mach/hurd/set-init.c: File removed.
7056 2003-06-26 Roland McGrath <roland@redhat.com>
7058 * elf/elf.h (AT_SECURE): New macro.
7059 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Grok it,
7060 set __libc_enable_secure.
7061 (_dl_show_auxv): Add AT_SECURE to name table.
7062 * elf/dl-support.c (_dl_aux_init): Grok AT_SECURE, set
7063 __libc_enable_secure and __libc_enable_secure_decided.
7064 * sysdeps/unix/sysv/linux/ldsodefs.h
7065 [__ASSUME_AT_SECURE] (HAVE_AUX_SECURE): Define it.
7066 * sysdeps/unix/sysv/linux/kernel-features.h
7067 [__LINUX_KERNEL_VERSION >= 132426] (__ASSUME_AT_SECURE): Define it.
7069 2003-06-26 Ulrich Drepper <drepper@redhat.com>
7071 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower
7072 boundary test to take rounding of nanoseconds into account.
7074 * sysdeps/unix/sysv/linux/bits/stat.h: Define _STATBUF_ST_NSEC.
7075 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7076 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Likewise.
7077 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
7078 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7079 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7080 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7082 2003-06-26 Andreas Schwab <schwab@suse.de>
7084 * sysdeps/m68k/fpu/bits/mathinline.h: Don't inline frexp.
7085 * sysdeps/m68k/fpu/s_frexp.c: Put implementation here.
7086 * sysdeps/m68k/fpu/s_frexpl.c: Fix to handle unnormalized numbers.
7088 2003-06-17 Thorsten Kukuk <kukuk@suse.de>
7090 * nis/Makefile: Remove NIS/NIS+ files from nss_compat module.
7091 * nis/nss_compat/compat-grp.c: Don't use our own NIS/NIS+ functions,
7092 dlopen corresponding NSS module instead.
7093 * nis/nss_compat/compat-pwd.c: Likewise.
7094 * nis/nss_compat/compat-spwd.c: Likewise.
7095 * nis/nss_compat/compat-initgroups.c: Disabled for now.
7096 * nss/Versions: Export __nss_lookup_function.
7098 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
7100 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features
7101 for the SH architecture.
7103 2003-06-25 Thorsten Kukuk <kukuk@suse.de>
7105 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h.
7107 2003-06-25 Andreas Jaeger <aj@suse.de>
7109 * stdlib/tst-strtod.c (main): Declare constant long double as
7110 suggested by Jakub Jelinek and Andreas Schwab.
7112 * posix/tst-nanosleep.c: Include <time.h> for nanosleep
7115 * stdio-common/tst-fphex.c: Fix format string.
7117 * posix/transbug.c: Include <string.h> for memset and strlen
7120 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
7122 * stdlib/tst-strtod.c (main): Pass long double value.
7124 * test-skeleton.c: Include <time.h> for nanosleep declaration.
7126 2003-06-25 Ulrich Drepper <drepper@redhat.com>
7128 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is
7131 2003-06-11 Jakub Jelinek <jakub@redhat.com>
7133 * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
7134 * elf/dl-libc.c (struct dl_open_hook): New.
7135 (_dl_open_hook): New variable.
7136 (do_dlsym_private): New function.
7137 (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
7138 and initialize it if found.
7139 (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
7140 call dlopen_mode hook.
7141 (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
7143 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
7146 2003-06-25 Ulrich Drepper <drepper@redhat.com>
7148 * sysdeps/unix/sysv/linux/cris/sysdep.h (INLINE_SYSCALL): Cast
7149 result to long int so that extensions to long long int work.
7150 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
7152 2003-06-19 Jakub Jelinek <jakub@redhat.com>
7154 * elf/ldconfig.c (main): Use add_system_dir instead of add_dir.
7155 * sysdeps/generic/dl-cache.h (add_system_dir): Define.
7156 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: Include sparc
7158 * sysdeps/unix/sysv/linux/s390/dl-cache.h: New file.
7159 * sysdeps/unix/sysv/linux/mips/dl-cache.h: New file.
7160 * sysdeps/unix/sysv/linux/powerpc/dl-cache.h: New file.
7161 * sysdeps/unix/sysv/linux/sparc/dl-cache.h: New file.
7163 2003-06-19 Jakub Jelinek <jakub@redhat.com>
7165 * test-skeleton.c (timeout_handler): If waitpid returned 0,
7166 retry once after a second. If killed == 0, assume
7167 WTERMSIG (status) == SIGKILL.
7169 2003-06-18 Roland McGrath <roland@redhat.com>
7171 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized
7172 elements in the table instead of printing an empty name string.
7174 2003-06-05 Roland McGrath <roland@redhat.com>
7176 * elf/elf.h (PT_GNU_STACK): New macro.
7178 2003-06-24 Ulrich Drepper <drepper@redhat.com>
7180 * include/time.h: Define CLOCK_IDFIELD_SIZE.
7181 * sysdeps/posix/clock_getres.c: Recognize thread CPU clock IDs.
7182 * sysdeps/unix/clock_gettime.c: Likewise.
7183 * sysdeps/unix/clock_settime.c: Likewise.
7184 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Adjust for new
7185 clock id for thread CPU clocks.
7187 * sysdeps/unix/sysv/linux/fstatfs64.c (__fstatfs64): Add support
7188 for the fstatfs64 syscall.
7189 * sysdeps/unix/sysv/linux/statfs64.c (__statfs64): Add support for
7190 the statfs64 syscall.
7192 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7193 __ASSUME_STATFS64 appropriately.
7195 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field
7196 from statfs structure if it has been filled in.
7198 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize
7200 (struct statfs64): Likewise.
7201 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise.
7202 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
7204 2003-06-24 Richard Henderson <rth@redhat.com>
7206 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use
7207 the 64-bit syscall name.
7209 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue.
7211 * sysdeps/alpha/fpu/bits/mathinline.h: Honor
7212 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit.
7214 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET.
7215 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use
7217 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7218 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto
7221 * sysdeps/alpha/bits/atomic.h: New file.
7223 2003-06-24 Andreas Schwab <schwab@suse.de>
7225 * sysdeps/m68k/fpu/libm-test-ulps: Update.
7227 2003-06-24 Andreas Jaeger <aj@suse.de>
7229 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid
7230 redeclaration with 32-bit code.
7232 2003-05-19 Ed Connell <ed.connell@sas.com>
7234 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain
7235 floating point mask.
7236 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise.
7238 2003-06-23 Ulrich Drepper <drepper@redhat.com>
7240 * sysdeps/pthread/aio_misc.h: Mark __aio_requests_mutex,
7241 __aio_enqueue_request, __aio_find_req, __aio_find_req_fd,
7242 __aio_free_request, __aio_notify, and __aio_sigqueue as hidden.
7244 * sysdeps/pthread/aio_suspend.c (aio_suspend): Set errno to the result
7245 of pthread_cond_wait if there was an error. Use pthread_cleanup_*
7246 instead of __libc_cleanup_region_*.
7248 2003-06-20 Richard Henderson <rth@redhat.com>
7250 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases.
7251 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New.
7253 2003-06-20 Richard Henderson <rth@redhat.com>
7255 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
7256 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
7258 (__ASSUME_TIMEVAL64): Set for alpha.
7259 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
7260 adjtimex, osf_sigprocmask, old_adjtimex.
7261 * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
7262 __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
7263 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
7264 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7265 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7266 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7267 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7268 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7269 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7270 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7271 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
7273 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7274 * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
7275 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
7276 * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
7277 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
7278 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
7279 sys_ustat, sys_mknod, adjtimex, old_adjtimex.
7280 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
7281 defer to __syscall_name; error for rt_sigaction.
7282 * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
7284 2003-06-18 Ulrich Drepper <drepper@redhat.com>
7286 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it
7287 hasn't happened yet.
7289 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
7290 Fix completely broken implementation. The second parameter is of
7291 type struct ucontext*.
7293 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always
7296 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash.
7297 * sysdeps/generic/dl-hash.h: Likewise.
7299 * sysdeps/generic/memcmp.c: Remove inline from
7300 memcmp_common_alignment and memcmp_not_common_alignment definition.
7302 * intl/localealias.c (read_alias_file): Determine whether line is
7303 read incompletely early, before we modify the line.
7305 2003-06-17 Jakub Jelinek <jakub@redhat.com>
7307 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
7308 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
7310 2003-06-17 Paul Mackerras <paulus@samba.org>
7312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
7313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: New file.
7314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: New file.
7315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: New file.
7316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h: New file.
7317 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Adjust.
7319 2003-06-17 Jakub Jelinek <jakub@redhat.com>
7321 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class.
7323 2003-06-17 Ulrich Drepper <drepper@redhat.com>
7325 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep
7326 takes care of enabling cancellation.
7328 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend
7329 cancelable. It's not correct to disable cancellation. Instead of
7332 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined
7333 and part of the incoming set, create a temporary set without this
7335 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
7336 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
7338 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before
7339 returning because seconds==0. Add __builtin_expect.
7341 2003-06-16 Ulrich Drepper <drepper@redhat.com>
7343 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information.
7345 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result
7348 2003-06-16 Thorsten Kukuk <kukuk@suse.de>
7350 * include/libc-symbols.h: Add static_link_warning macro.
7351 * grp/initgroups.c: Print linker warning if this function
7352 is called in a static linked binary.
7353 * nss/getXXbyYY.c: Likewise.
7354 * nss/getXXbyYY_r.c: Likewise.
7355 * nss/getXXent.c: Likewise.
7356 * nss/getXXent_r.c: Likewise.
7357 * sysdeps/posix/getaddrinfo.c: Likewise.
7359 2003-06-16 Bruno Haible <bruno@clisp.org>
7361 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15,
7363 (ISO-8859-16): Add aliases ISO_8859-16:2001, ISO_8859-16.
7364 (IBM1047): Add alias IBM-1047.
7365 (GBK): Add aliases MS936, WINDOWS-936.
7367 2003-06-16 Jakub Jelinek <jakub@redhat.com>
7369 * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Define even if
7370 defined __ASSUME_STAT64_SYSCALL && defined XSTAT_IS_XSTAT64.
7371 (__xstat64_conv): Change xstat_conv to __xstat_conv.
7373 2003-06-16 Ulrich Drepper <drepper@redhat.com>
7375 * locale/iso-639.def: Update from current official ISO 639.
7377 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed.
7379 2003-06-15 Andreas Jaeger <aj@suse.de>
7381 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting
7383 * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7384 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
7385 Reported by Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>.
7387 * math/tgmath.h (carg): Handle real arguments.
7393 * math/Makefile (CFLAGS-test-tgmath-ret.c): New.
7394 (tests): Add test-tgmath-ret.
7395 * math/test-tgmath-ret.c: New file.
7397 * math/tgmath.h (ilogb): Return always an int.
7399 2003-06-16 Ulrich Drepper <drepper@redhat.com>
7401 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr
7402 computation so that prelinking works.
7404 2003-06-15 Ulrich Drepper <drepper@redhat.com>
7406 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic
7408 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the
7409 dynamic linker's map.
7411 Fix cancellation point handling wrt exception based cleanup.
7412 * io/Makefile: Compile fcntl.c, poll.c, and lockf.c with exceptions.
7413 * misc/Makefile: Compile pselect.c, readv.c, writev.c, and usleep.c
7415 * posix/Makefile: Compile pread.c, pread64.c, pwrite.c, pwrite64.c,
7416 sleep.c, wait.c, waitid.c, and waitpid.c with exceptions.
7417 * rt/Makefile: Compile aio_suspend.c and clock_nanosleep.c with
7419 * signal/Makefile: Compile sigpause.c, sigsuspend.c, sigtimedwait.c,
7420 sigwait.c, and sigwaitinfo.c with exceptions.
7421 * stdlib/Makefile: Compile system.c with exceptions.
7422 * sysvipc/Makefile: Compile msgrcv.c and msgsnd.c with exceptions.
7423 * termios/Makefile: Compile tcdrain.c with exceptions.
7424 * sysdeps/generic/lockf.c: Add comment explaining the cancellation
7426 * sysdeps/generic/pselect.c: Likewise.
7427 * sysdeps/posix/sigpause.c: Likewise.
7428 * sysdeps/posix/system.c: Likewise.
7429 * sysdeps/posix/waitid.c: Likewise.
7430 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
7431 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
7432 * sysdeps/unix/sysv/linux/i386/sysdep.h: Major rewrite of
7433 INTERNAL_SYSCALL to not use push inside asm statement so that
7434 unwind info is correct around the syscall.
7435 * sysdeps/unix/clock_nanosleep.c: Add cancellation support.
7436 * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7438 2003-06-15 Andreas Jaeger <aj@suse.de>
7440 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7443 2003-06-15 Guido Guenther <agx@sigxcpu.org>
7445 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and
7448 2003-06-14 Ulrich Drepper <drepper@redhat.com>
7450 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close,
7453 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def.
7454 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto
7457 * inet/netinet/ip6.h (IP6OPT_PAD1, IP6OPT_PADN): Define.
7458 * inet/netinet/in.h: Add prototypes for inet6_option_* functions.
7459 * inet/Makefile (routines): Add inet6_option.
7460 * inet/inet6_option.c: New file.
7461 * inet/Versions [GLIBC_2.3.3] (libc): Add inet6_option_space,
7462 inet6_option_init, inet6_option_append, inet6_option_alloc,
7463 inet6_option_next, and inet6_option_find.
7465 2003-06-13 Ulrich Drepper <drepper@redhat.com>
7467 * inet/netinet/ip6.h (struct ip6_ext): Define.
7469 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc.
7471 Fixing gcc 3.3 warnings, part II.
7472 * argp/argp-help.c (hol_entry_long_iterate): Always inline.
7473 * elf/dl-load.c (cache_rpath): Don't inline.
7474 * iconvdata/cns11642l2.h: Always inline all functions.
7475 * iconvdata/iso-ir-165.h: Likewise.
7476 * locale/Makefile (aux): Add coll-lookup.
7477 * locale/coll-lookup.c: New file.
7478 * locale/coll-lookup.h (collidx_table_lookup): Do not define here.
7479 (collseq_table_lookup): Likewise.
7480 * locale/weightwc.h: Adjust collidx_table_lookup calls for name change.
7481 * posix/fnmatch_loop.c: Adjust collseq_table_lookup calls for name
7483 * posix/regcomp.c: Likewise.
7484 * posix/regexec.c: Likewise.
7485 * locale/programs/3level.h (*_get): Always inline.
7486 * locale/programs/locfile.h: Move definition of handle_copy to...
7487 * locale/programs/locfile.c: ...here.
7488 * locale/programs/ld-collate.c (obstack_int32_grow): Always inline.
7489 (obstack_int32_grow_fast): Likewise.
7490 (utf8_encode): Likewise.
7491 (find_element): Avoid aliasing problems.
7492 (insert_value): Likewise.
7493 (collate_read): Likewise.
7494 * nss/getent.c (print_hosts): Don't inline
7495 (print_networks): Likewise.
7496 (print_shadow): Likewise.
7497 (build_doc): Likewise.
7498 * nss/nss_files/files-parse.c [ENTDATA] (parser_stclass): Don't
7500 * posix/regcomp.c (re_set_fastmap): Always inline.
7501 (seek_collating_symbol_entry): Likewise.
7502 (lookup_collation_sequence_value): Likewise.
7503 (build_range_exp): Likewise.
7504 (build_collating_symbol): Likewise.
7505 * posix/regexec.c (acquire_init_state_context): Don't inline.
7506 (clean_state_log_if_need): Likewise.
7507 * resolv/res_send.c (eConsIovec): Rewrite to not return struct and
7509 (evConsTime): Likewise.
7510 (evAddTime): Likewise.
7511 (evSubTime): Likewise.
7512 (evNowTime): Likewise.
7513 (evTimeSpec): Removed.
7514 (__libc_res_nsend): Avoid aliasing problem.
7515 * sysdeps/unix/sysv/linux/ifreq.h: Move old_siocgifconf definition to..
7516 * sysdeps/unix/sysv/linux/ifreq.c: ...here.
7517 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_string_hwcap):
7519 (_dl_string_platform): Likewise.
7520 * wctype/wchar-lookup.h (wctype_table_lookup): Always inline.
7521 (wcwidth_table_lookup): Likewise.
7522 (wctrans_table_lookup): Likewise.
7524 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>.
7526 2003-06-12 Ulrich Drepper <drepper@redhat.com>
7528 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
7530 2003-05-29 Jim Meyering <jim@meyering.net>
7532 * time/strftime.c (my_strftime) [!defined _NL_CURRENT
7533 && HAVE_STRFTIME]: Use underlying_strftime for %r.
7534 Suggested by Daniel Yacob <locales@geez.org>.
7536 2003-06-12 Steven Munroe <sjmunroe@us.ibm.com>
7538 * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Replace
7539 @got notation with @toc.
7540 * sysdeps/powerpc/powerpc64/sysdep.h (CALL_MCOUNT): Likewise.
7541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Likewise.
7543 2003-06-12 Ulrich Drepper <drepper@redhat.com>
7545 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also
7546 if only PF_INET address is needed.
7548 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in
7551 * scripts/config.guess: Update from upstream version.
7552 * scripts/config.sub: Likewise.
7554 2003-06-12 Jakub Jelinek <jakub@redhat.com>
7556 * locale/programs/ld-time.c (time_output): Also copy the era format,
7559 2003-06-12 H.J. Lu <hongjiu.lu@intel.com>
7561 * posix/transbug.c (run_test): Return 1 for failure.
7562 (do_test): Compare only if run_test is successful.
7564 2003-06-12 Simon Josefsson <jas@extundo.com>
7566 * argp/argp.h [!__THROW]: Define if undefined.
7568 2003-06-12 Ulrich Drepper <drepper@redhat.com>
7570 * sysdeps/unix/sysv/linux/cris/sysdep.h: Fix handling of syscalls with
7571 more than four parameters.
7572 Patch by Uwe Reimann <libc-alpha@pulsar.homelinux.net>.
7574 2003-06-12 Jakub Jelinek <jakub@redhat.com>
7576 * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7577 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: New file.
7578 * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: New file.
7580 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.
7582 2003-06-12 Roland McGrath <roland@redhat.com>
7584 * Makerules ($(objpfx)stubs): Rewrite sed magic.
7586 2003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
7588 * posix/regcomp.c (parse_expression): Deliver translation to
7589 build_word_op, and build_charclass.
7590 (build_charclass): Apply translation for character classes too.
7591 (build_word_op): Deliver translation to build_charclass.
7592 * posix/transbug.c: New file.
7593 * posix/Makefile (tests): Add transbug.
7595 2003-06-04 Paolo Bonzini <bonzini@gnu.org>
7597 * posix/regexec.c (group_nodes_into_DFAstates): Check for
7598 NEXT_ENDBUF_CONSTRAINT. Move check for constraints which do a
7599 'continue' before the others.
7601 2003-06-11 Ulrich Drepper <drepper@redhat.com>
7603 * dirent/scandir.c (SCANDIR): Reset errno after calling selector
7604 function [PR libc/5045].
7606 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction
7609 * time/tzfile.c: Add a couple of __builtin_expect.
7611 Remove warnings gcc 3.3 shows.
7612 * argp/argp-help.c (hol_entry_short_iterate): Don't inline.
7613 * elf/dl-load.c (fillin_rpath): Likewise.
7614 (add_path): Likewise.
7615 * elf/dl-version.c (find_needed): Always inline.
7616 * elf/do-lookup.c (FCT): Don't inline.
7617 * iconv/Makefile: Extend vpath to intl subdir.
7618 (iconvconfig-modules): Add hash-string.
7619 * iconv/gconv_charset.h (strip): Don't inline.
7620 (upstr): Always inline.
7621 Move __gconv_compare_alias prototype to...
7622 * iconv/gconv_int.h: ...here.
7623 * iconv/gconv_db.c: Don't include gconv_charset.h.
7624 * iconv/gconv_conf.c (add_alias): Don't inline.
7625 (insert_module): Likewise.
7626 * iconv/gconv_simple.c (internal_ucs4_loop): Always inline.
7627 (internal_ucs4_loop_unaligned): Likewise.
7628 (internal_ucs4_loop_single): Likewise.
7629 (ucs4_internal_loop): Likewise.
7630 (ucs4_internal_loop_unaligned): Likewise.
7631 (ucs4_internal_loop_single): Likewise.
7632 (internal_ucs4le_loop): Always inline.
7633 (internal_ucs4le_loop_unaligned): Likewise.
7634 (internal_ucs4le_loop_single): Likewise.
7635 (ucs4le_internal_loop): Likewise.
7636 (ucs4le_internal_loop_unaligned): Likewise.
7637 (ucs4le_internal_loop_single): Likewise.
7638 * iconv/loop.c: Always inline the defined functions.
7639 * iconvdata/cns11642.h: Likewise.
7640 * iconvdata/cns11642l1.h: Likewise.
7641 * iconvdata/euc-kr.c: Likewise.
7642 * iconvdata/gb2312.h: Likewise.
7643 * iconvdata/jis0201.h: Likewise.
7644 * iconvdata/jis0208.h: Likewise.
7645 * iconvdata/jis0212.h: Likewise.
7646 * iconvdata/jisx0213.h: Likewise.
7647 * iconvdata/ksc5601.h: Likewise.
7648 * iconvdata/utf-7.c (base64): Don't inline.
7649 * include/libc-symbols.h (symbol_set_first_element): Add cast
7650 (symbol_set_end_p): Likewise.
7651 * include/set-hooks (RUN_HOOK): Likewise.
7652 * inet/Makefile (aux): Add ifreq.
7653 * intl/Makefile (aux): Add some entries from routines. Add
7655 * intl/hash-string.c: New file.
7656 * intl/hash-string.h: Remove hash_string definition. Declare
7658 * iconv/gconv_cache.c (find_module_idx): Adjust hash_string caller.
7659 * iconv/iconvconfig.c (new_name): Likewise.
7660 * intl/dcigettext.c (_nl_find_msg): Likewise.
7661 * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7662 * io/ftw.c (open_dir_stream): Always inline.
7663 (process_entry): Don't inline.
7664 * locale/findlocale.c: Include gconv_int.h.
7665 * locale/setlocale.c (new_composite_name): Don't inline.
7666 * locale/weight.h (findidx): Always inline.
7667 * locale/weightwc.h (findidx): Likewise.
7668 * locale/programs/linereader.c (lr_ignore_rest): Define here.
7669 * locale/programs/linereader.h (lr_ignore_rest): Don't define here,
7671 (lr_getc): Always inline.
7672 (lr_ungetc): Likewise.
7673 * nss/nss_files/files-parse.c (parse_list): Likewise.
7674 * stdio-common/Makefile (aux): Add printf-parsemb and
7676 * stdio-common/_itoa.h (_itoa_word): Always inline.
7677 (_fitoa_word, _fitoa): Don't define here, only declare.
7678 * stdio-common/_itoa.c (_iftoa_word): Add here.
7680 * stdio-common/_itowa.h (_itowa_word): Always inline.
7681 * stdio-common/printf-parse.h (read_int): Don't inline.
7682 (find_spec): Don't define.
7683 Declare __find_specmb and __find_specwc.
7684 (parse_one_spec): Don't define.
7685 Declare __parse_one_specmb and __parse_one_specwc.
7686 * stdio-common/printf-parsemb.c: New file.
7687 * stdio-common/printf-parsewc.c: New file.
7688 * stdio-common/vfprintf.c: Update calls to find_spec and
7689 parse_one_spec for new names.
7690 * stdio-common/printf-prs.c: Likewise. Define DONT_NEED_READ_INT.
7691 * stdlib/Makefile (aux): Add grouping and groupingwc.
7692 * stdlib/grouping.c: New file.
7693 * stdlib/groupingwc.c: New file.
7694 * stdlib/grouping.h (correctly_grouped_prefix): Don't define here.
7696 * stdlib/rpmatch.c (try): Don't inline.
7697 * stdlib/strtod.c (round_and_return): Don't line.
7698 (str_to_mpn): Likewise.
7699 (__mpn_lshift_1): Always inline. Optimize only for constant count.
7700 Adjust for name change of correctly_grouped_prefix.
7701 * sysdeps/generic/strtol.c: Adjust for name change of
7702 correctly_grouped_prefix.
7703 * string/strxfrm.c (utf8_encode): Don't inline.
7704 * sysdeps/generic/dl-cache.c: Define _dl_cache_libcmp.
7705 * sysdeps/generic/dl-cache.h: Just declare _dl_cache_libcmp.
7706 * sysdeps/generic/ifreq.c: New file.
7707 * sysdeps/unix/sysv/linux/ifreq.c: New file.
7708 * sysdeps/generic/ifreq.h (__ifreq): Only declare here.
7709 * sysdeps/unix/sysv/linux/ifreq.h: Likewise.
7710 * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Always inline.
7711 * sysdeps/generic/unwind-dw2-fde.c (start_fde_sort): Don't inline.
7712 (fde_split): Likewise.
7713 (fde_merge): Likewise.
7714 (end_fde_sort): Likewise.
7715 (init_object): Likewise.
7716 (binary_search_unencoded_fdes): Likewise.
7717 (binary_search_single_encoding_fdes): Likewise.
7718 (binary_search_mixed_encoding_fdes): Likewise.
7719 * sysdeps/generic/wordexp.c (w_addchar): Don't inline.
7720 * sysdeps/i386/dl-machine.c (elf_machine_runtime_setup): Always inline.
7721 * sysdeps/posix/sprofil.c (profil_count): Don't inline.
7722 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7724 * sysdeps/unix/sysv/linux/xstatconv.h: New file.
7725 * sysdeps/unix/sysv/linux/xstatconv.c: Don't inline the function.
7726 Export them. Prepend __ to name.
7727 * sysdeps/unix/sysv/linux/Dist: Add xstatconv.h.
7728 * sysdeps/unix/sysv/linux/fxstat.c: Adjust for name change of
7729 conversion functions.
7730 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
7731 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
7732 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
7733 * sysdeps/unix/sysv/linux/xstat.c: Likewise.
7734 * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
7735 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
7736 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
7737 * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
7738 * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max,
7739 __statfs_filesize_max, __statfs_symlinks): Define here. __ prepended
7740 to name. Change callers.
7741 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max,
7742 __statfs_filesize_max, __statfs_symlinks): Don't define here, just
7744 * sysdeps/unix/sysv/linux/fpathconf.c: Change all callers.
7745 * time/tzfile.c (decode): Always inline.
7746 * wcsmbs/wcsnrtombs.c: Change type of inbuf to unsigned char*.
7747 Remove cast in tomb function call.
7748 * wcsmbs/wcsrtombs.c Likewise.
7749 * wcsmbs/wcstob.c: Introduce new temp variable to take pointer in
7752 2003-06-10 Ulrich Drepper <drepper@redhat.com>
7754 * po/zh_CN.po: Update from translation team.
7756 2003-06-10 Jakub Jelinek <jakub@redhat.com>
7758 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST,
7759 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define.
7761 2003-06-10 Ulrich Drepper <drepper@redhat.com>
7763 * inet/Makefile (aux): Add check_pf.
7764 * include/ifaddrs.h: Add prototype for __check_pf.
7765 * sysdeps/generic/check_pf.c: New file.
7766 * sysdeps/unix/sysv/linux/check_pf.c: New file.
7767 * sysdeps/unix/sysv/linux/ifaddrs.h (__no_netlink_support): Renamed
7768 from no_netlink_support. Export.
7769 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call getifaddrs,
7772 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def.
7774 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory
7775 from getifaddr calls.
7777 2003-06-09 Jakub Jelinek <jakub@redhat.com>
7779 * sysdeps/unix/sysv/linux/kernel-features.h
7780 (__ASSUME_SETRESGID_SYSCALL): Define.
7781 * sysdeps/unix/sysv/linux/setegid.c: Use __ASSUME_SETRESGID_SYSCALL
7782 instead of __ASSUME_SETRESUID_SYSCALL.
7783 (setegid): Only use setresgid32 inline syscall if __NR_setresgid32 is
7785 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Only use setresgid32
7786 inline syscall if __NR_setresuid32 is defined.
7787 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
7788 __ASSUME_SETRESGID_SYSCALL instead of __ASSUME_SETRESUID_SYSCALL.
7789 * sysdeps/unix/sysv/linux/i386/setregid.c: Backout last changes.
7790 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
7791 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Protect
7792 code handling non-existant setresgid32 syscall with
7793 #if __ASSUME_SETRESGID_SYSCALL == 0.
7795 2003-06-09 Andreas Schwab <schwab@suse.de>
7797 * sunrpc/Makefile (generated): Remove rpc-proto.c, rpc-proto.d.
7798 ($(rpcsvc:%.x=$(objpfx)x%$o)): Don't depend on
7799 $(objpfx)rpc-proto.d.
7800 (rpcsvc-dt-files, rpcsvc-depfiles): Define. Include
7801 $(rpcsvc-depfiles) instead of $(objpfx)rpc-proto.d.
7802 ($(objpfx)rpc-proto.d, $(objpfx)rpc-proto.c): Remove rules.
7804 2003-06-08 Ulrich Drepper <drepper@redhat.com>
7806 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
7807 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
7808 defined drop compatibility code.
7809 * sysdeps/unix/sysv/linux/setegid.c (setegid): Use setresgid32
7810 syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
7811 defined drop compatibility code.
7812 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Use
7813 setresuid32 syscall directly if possible.
7814 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Use
7815 setresgid32 syscall directly if possible.
7816 * sysdeps/unix/sysv/linux/i386/setregid.c (__setregid): Make POSIX
7817 compliant. Don't change sgid.
7818 * sysdeps/unix/sysv/linux/i386/setreuid.c (__setreuid): Make POSIX
7819 compliant. Don't change suid.
7821 * config.h.in: Add have-forced-unwind.
7822 * configure.in: Add AC_SUBST(libc_cv_forced_unwind).
7824 2003-06-07 Ulrich Drepper <drepper@redhat.com>
7826 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that
7827 returned status from child matches.
7829 * Makeconfig (gnulib): Add -lgcc_eh once again.
7831 2003-06-06 Ulrich Drepper <drepper@redhat.com>
7833 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid.
7835 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Only allow
7836 %edx for first parameter. This means no pushl and therefore the
7837 unwind info isn't screwed up.
7839 2003-06-04 Richard Henderson <rth@redhat.com>
7841 * sysdeps/alpha/dl-machine.h (RTLD_START): Fix top-of-stack backtrace.
7842 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7843 * sysdeps/alpha/elf/start.S: Likewise. Remove pointless allocation.
7844 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Use standard ldgp
7845 entry sequence and explicit relocs. Add unwind info for sigreturn
7847 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state.
7849 * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): New.
7850 Annotate some parameters.
7851 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_semtimedop): New.
7853 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion.
7855 * include/libc-symbols.h (symbol_set_declare): Use arrays
7856 of unspecified size.
7858 2003-06-04 Jakub Jelinek <jakub@redhat.com>
7860 * config.make.in (ASFLAGS-config): New.
7861 * Makeconfig (ASFLAGS): Append $(ASFLAGS-config).
7862 * configure.in (libc_cv_as_noexecstack): New check.
7863 (ASFLAGS_config): Substitute.
7865 2003-06-04 Jakub Jelinek <jakub@redhat.com>
7867 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
7868 hypot, logb): Protect with #ifdef __FAST_MATH__.
7870 2003-06-04 Thorsten Kukuk <kukuk@suse.de>
7872 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
7873 #ifdef __FAST_MATH__.
7875 2003-06-03 Ulrich Drepper <drepper@redhat.com>
7877 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
7878 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
7879 * posix/globtest.sh: Adjust for this change.
7881 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
7882 to get the actual PID value used in the records passed up.
7883 (getifaddrs): Don't initialize nh.pid here.
7885 2003-06-02 Ulrich Drepper <drepper@redhat.com>
7887 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
7890 * po/zh_CN.po: Update from translation team.
7892 * posix/getconf.c (main): Also recognize names without the
7895 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
7897 2003-06-02 Bernd Schmidt <bernds@redhat.com>
7899 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
7900 ldexpf, ldexpl): Only define if __FAST_MATH__.
7902 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
7904 Replace hard-coded offsets into struct sigcontext with generated file.
7905 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
7906 * sysdeps/unix/sysv/linux/ia64/Makefile
7907 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
7908 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
7909 defining SC_* macros here.
7911 2003-06-02 Jakub Jelinek <jakub@redhat.com>
7913 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
7915 2003-06-01 Jakub Jelinek <jakub@redhat.com>
7917 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
7919 2003-06-01 Ulrich Drepper <drepper@redhat.com>
7921 * test-skeleton.c (main): Request getopt to not reorder the
7924 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
7926 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
7929 2003-05-31 Ulrich Drepper <drepper@redhat.com>
7931 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
7933 2003-05-31 Jakub Jelinek <jakub@redhat.com>
7935 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
7937 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
7938 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
7939 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
7941 2003-05-31 Ulrich Drepper <drepper@redhat.com>
7943 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
7946 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
7948 * libio/fileops.c (_IO_file_open): Don't mark as inline.
7950 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
7953 2003-05-30 Ulrich Drepper <drepper@redhat.com>
7955 * scripts/config.guess: Update from master copy.
7956 * scripts/config.sub: Likewise.
7958 2003-05-30 Guido Guenther <agx@sigxcpu.org>
7960 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
7961 SETUP_GP64 and friends.
7962 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
7963 names in internal_syscall{6,7}.
7964 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
7965 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
7966 number of syscall arguments.
7967 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7968 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7969 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7971 2003-05-30 Andreas Jaeger <aj@suse.de>
7973 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7976 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
7979 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
7981 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7984 2003-05-30 Jakub Jelinek <jakub@redhat.com>
7986 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
7989 2003-05-11 Andreas Schwab <schwab@suse.de>
7991 * Makerules: Always use -MP together with -MD.
7992 (sed-remove-dotot): Substitute $(..) also at start of line.
7993 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
7994 Generated defines with a single compiler call.
7995 Use $(sed-remove-dotdot).
7996 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
7997 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
7998 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
7999 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
8000 * sysdeps/unix/sysv/linux/mips/Makefile
8001 ($(objpfx)syscall-%.h): Likewise.
8003 2003-05-28 Roland McGrath <roland@redhat.com>
8005 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
8007 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
8009 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
8011 2003-05-28 Roland McGrath <roland@redhat.com>
8013 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
8014 rt_sigprocmask system call.
8015 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
8016 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
8018 2003-05-28 Ulrich Drepper <drepper@redhat.com>
8020 * include/libc-symbols.h: Define hidden attribute for real also if
8021 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
8023 * csu/Makefile: Add rules to build Scrt1.o.
8024 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
8025 * sysdeps/x86_64/elf/start.S: Likewise.
8027 2003-05-27 Jakub Jelinek <jakub@redhat.com>
8029 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
8030 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
8031 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
8032 pa_short_int, pa_u_short_int and pa_float.
8034 2003-05-26 Jakub Jelinek <jakub@redhat.com>
8036 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
8037 _IO_str_init_static_internal.
8038 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
8039 change size argument to _IO_size_t, don't limit sprintf to 64M.
8040 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
8041 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
8042 _IO_size_t, don't limit swprintf to 256M.
8043 (_IO_wstr_init_readonly): Remove.
8044 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
8046 (_IO_wstr_init_readonly): Remove prototype.
8047 * libio/iovsprintf.c (_IO_vsprintf): Use
8048 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
8049 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8050 * libio/memstream.c (open_memstream): Likewise.
8051 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
8052 * libio/vasprintf.c (_IO_vasprintf): Likewise.
8053 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8054 * stdio-common/tst-sprintf.c (main): Add new test.
8056 2003-05-26 Ulrich Drepper <drepper@redhat.com>
8058 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
8059 other implementation in respect of multiple uses of parameter with
8062 2003-05-25 Ulrich Drepper <drepper@redhat.com>
8064 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8065 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
8067 2003-05-22 Andreas Jaeger <aj@suse.de>
8069 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
8071 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
8072 * sysdeps/x86_64/strtok.S: Likewise.
8074 2003-05-20 Guido Guenther <agx@sigxcpu.org>
8076 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
8077 to -60 and define SI_TKILL.
8079 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
8081 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
8082 (feexcp_mask_test): Likewise.
8084 2003-05-21 Ulrich Drepper <drepper@redhat.com>
8086 * locale/programs/locale.c (main): Fix typo in last patch.
8088 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
8089 __init_array_start, __init_array_end, __fini_array_start, and
8090 __fini_array_end as hidden.
8092 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
8094 * locale/programs/locale.c (main): Report an error if setlocale()
8095 fails [PR libc/2254].
8097 2003-05-21 Jakub Jelinek <jakub@redhat.com>
8099 * sysdeps/unix/sysv/linux/s390/system.c: New file.
8101 2003-05-21 Jakub Jelinek <jakub@redhat.com>
8103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
8104 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
8105 LOADARGS_6): Don't error if syscall argument is a string literal.
8106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
8107 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
8108 LOADARGS_6): Likewise.
8110 2003-05-21 Andreas Jaeger <aj@suse.de>
8112 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
8113 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
8114 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
8116 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
8120 * configure.in: Test for asm cfi directives.
8122 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
8124 2003-05-17 Andreas Jaeger <aj@suse.de>
8126 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
8128 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
8130 2003-05-16 Ulrich Drepper <drepper@redhat.com>
8132 * rt/Makefile (tests): Add tst-clock_nanosleep.
8133 * rt/tst-clock_nanosleep.c: New file.
8134 * posix/Makefile (tests): Add tst-nanosleep.
8135 * posix/tst-nanosleep.c: New file.
8137 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
8139 * include/features.h (__USE_XOPEN2K): Define also for
8140 _POSIX_C_SOURCE>=200112L.
8142 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
8143 SI_TKILL code into SI_USER.
8144 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
8146 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
8148 2003-05-15 Jakub Jelinek <jakub@redhat.com>
8150 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
8151 Remove sym argument, always use refsym.
8152 (__process_machine_rela): Adjust callers.
8153 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
8155 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
8157 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8159 2003-05-15 Ulrich Drepper <drepper@redhat.com>
8161 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
8162 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
8163 print numeric values.
8165 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
8167 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
8169 2003-05-14 Andreas Schwab <schwab@suse.de>
8171 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
8173 2003-05-14 Jakub Jelinek <jakub@redhat.com>
8175 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
8176 even if no DT_NEEDED is present.
8178 2003-05-13 David Mosberger <davidm@hpl.hp.com>
8180 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
8181 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
8182 __sigjmp_save) so we can't keep the saved unat value in a scratch
8183 register (r16). Use loc2 instead.
8185 2003-05-13 Ulrich Drepper <drepper@redhat.com>
8187 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
8188 binaries it has to be relocatable.
8190 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
8192 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
8194 * sysdeps/powerpc/bits/atomic.h
8195 (__arch_compare_and_exchange_bool_8_rel): Define.
8196 (__arch_compare_and_exchange_bool_16_rel): Define.
8197 (__ARCH_REL_INSTR): Define if not already defined.
8198 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
8199 (__arch_atomic_decrement_if_positive_32):
8200 Add "memory" to clobber list.
8201 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
8202 (__arch_compare_and_exchange_val_32_rel): Define.
8203 (__arch_atomic_exchange_32): Remove.
8204 (__arch_atomic_exchange_32_acq): Define.
8205 (__arch_atomic_exchange_32_rel): Define.
8206 (atomic_compare_and_exchange_val_rel): Define.
8207 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
8208 (atomic_exchange_rel): Define.
8209 * sysdeps/powerpc/powerpc32/bits/atomic.h
8210 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
8211 (__arch_compare_and_exchange_bool_32_rel): Define.
8212 (__arch_compare_and_exchange_bool_64_rel): Define.
8213 (__arch_compare_and_exchange_val_64_rel): Define.
8214 (__arch_atomic_exchange_64): Remove.
8215 (__arch_atomic_exchange_64_acq): Define.
8216 (__arch_atomic_exchange_64_rel): Define.
8217 * sysdeps/powerpc/powerpc64/bits/atomic.h
8218 (__arch_compare_and_exchange_bool_32_rel): Define.
8219 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
8220 (__arch_compare_and_exchange_bool_64_rel): Define.
8221 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
8222 (__arch_compare_and_exchange_val_64_rel): Define.
8223 (__arch_atomic_exchange_64): Remove.
8224 (__arch_atomic_exchange_64_acq): Define.
8225 (__arch_atomic_exchange_64_rel): Define.
8226 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
8227 (__arch_atomic_decrement_if_positive_64):
8228 Add "memory" to clobber list.
8229 [!UP](__ARCH_REL_INSTR): Define as lwsync.
8231 2003-05-11 Andreas Schwab <schwab@suse.de>
8233 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
8235 2003-05-11 Ulrich Drepper <drepper@redhat.com>
8237 * time/tst-strftime.c (do_test): Add tests for - flag.
8239 2003-05-11 Jim Meyering <jim@meyering.net>
8241 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
8242 the space-padded-by-default conversion specifiers, %e, %k, %l.
8244 2003-05-11 Andreas Schwab <schwab@suse.de>
8246 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
8248 2003-05-10 Ulrich Drepper <drepper@redhat.com>
8250 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
8251 already defined and when really needed.
8252 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8254 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
8256 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
8257 headers, add defines from kernel header, move it from here...
8258 * inet/netinet/igmp.h: ... to here.
8259 * inet/Makefile (headers): Add netinet/igmp.h.
8260 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
8261 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
8263 2003-05-10 Ulrich Drepper <drepper@redhat.com>
8265 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
8266 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
8268 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
8270 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
8271 (remove __THROW from possible cancellation points).
8273 2003-05-10 Ulrich Drepper <drepper@redhat.com>
8275 * posix/sched.h (CPU_SETSIZE): Define.
8277 2003-05-09 Ulrich Drepper <drepper@redhat.com>
8279 * Makeconfig (gnulib): Remove -lgcc_eh again.
8281 * posix/sched.h: Change prototypes of sched_getaffinity and
8282 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
8283 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
8284 * sysdeps/generic/sched_setaffinity.c: Likewise.
8285 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
8286 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
8287 __CPU_CLR, and __CPU_ISSET.
8288 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8289 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
8290 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
8292 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
8293 (atomic_exchange_rel): New #define.
8294 * sysdeps/ia64/bits/atomic.h: Likewise.
8295 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
8297 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
8298 * sysdeps/powerpc/bits/atomic.h: Likewise.
8299 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
8300 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
8301 * sysdeps/x86_64/bits/atomic.h: Likewise.
8302 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
8304 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
8306 2003-05-08 Ulrich Drepper <drepper@redhat.com>
8308 * malloc/thread-m.h: Remove special handling of thread_atfork if
8309 HAVE_register_atfork_malloc is defined.
8311 2003-05-07 Andreas Jaeger <aj@suse.de>
8313 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
8316 2003-05-06 Ulrich Drepper <drepper@redhat.com>
8318 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
8319 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8320 * libio/libioP.h: Declare _IO_old_init.
8321 * libio/genops.c (_IO_no_init): Split in two. New function
8324 2003-05-05 Ulrich Drepper <drepper@redhat.com>
8326 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
8328 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
8330 * include/unistd.h: Declare __libc_enable_secure_decided.
8331 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
8332 and AT_EGID. If all found, set __libc_enable_secure and
8333 __libc_enable_secure_decided.
8335 * sysdeps/generic/libc-start.c [!SHARED]: Call
8336 __libc_check_standard_fds after __libc_init_first.
8338 2003-05-05 Roland McGrath <roland@redhat.com>
8340 * Makerules (common-before-compile): New variable.
8341 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
8342 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
8343 to after all setting of before-compile.
8345 2003-05-05 Jakub Jelinek <jakub@redhat.com>
8347 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
8348 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
8349 * sysdeps/powerpc/powerpc32/bits/atomic.h
8350 (__arch_compare_and_exchange_val_64_acq): Likewise.
8351 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
8352 (__arch_compare_and_exchange_val_8_acq,
8353 __arch_compare_and_exchange_val_16_acq,
8354 __arch_compare_and_exchange_val_64_acq): Likewise.
8355 * sysdeps/sparc/sparc64/bits/atomic.h
8356 (__arch_compare_and_exchange_val_8_acq,
8357 __arch_compare_and_exchange_val_16_acq): Likewise.
8358 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
8359 __arch_compare_and_exchange_val_16_acq,
8360 __arch_compare_and_exchange_val_64_acq): Likewise.
8361 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
8362 (__arch_compare_and_exchange_val_64_acq): Likewise.
8363 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
8365 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
8367 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8368 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
8369 Return long instead of int.
8370 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
8371 0xfffff001u with -4095UL.
8373 2003-05-05 Andreas Jaeger <aj@suse.de>
8375 * sysdeps/x86_64/fpu_control.h: New from i386.
8377 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
8378 Define if not defined.
8380 * sunrpc/Makefile (generated-dirs): New variable.
8381 * resolv/Makefile (generated): New variable.
8383 2003-05-04 Roland McGrath <roland@redhat.com>
8385 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
8386 Depend on $(before-compile).
8388 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
8389 pattern rule. The implicit rule could be ruled out when $(objpfx)
8390 didn't exist at the time of its consideration (ugh!).
8392 * Makerules (+make-deps): Fix target matching.
8393 Use $(sed-remove-dotdot).
8395 2003-05-03 Ulrich Drepper <drepper@redhat.com>
8397 * nscd/nscd.c (main): Parse config file right after parsing
8398 parameters. Then, if get_stats is true, call receive_print_stats.
8399 Drop parameter from nscd_init call.
8400 (get_stats): New variable.
8401 (parse_opt): Set get_stats, don't call receive_print_stats here.
8402 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
8404 * nscd/connections.c (stat_user, stat_uid): New variables.
8406 (nscd_init): Don't read configuration file here. Drop parameter.
8407 (handle_request): Cleanup handling of non-database lookup requests.
8408 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
8409 Get UID of the specified user. Use xstrdup instead of strdup.
8410 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
8412 * nscd/Makefile (nscd-modules): Add xstrdup.
8413 * nscd/nscd.conf: Document stat-user entry.
8415 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
8417 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
8420 2003-04-22 Roland McGrath <roland@redhat.com>
8422 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
8423 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8424 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
8425 * elf/dl-support.c: Update defn.
8426 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
8427 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
8428 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
8429 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
8430 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
8431 set, set up a link_map for the preloaded, prelinked object.
8433 2003-05-03 Roland McGrath <roland@redhat.com>
8435 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
8436 * stdio-common/Makefile: ... not here.
8438 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
8439 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
8441 2003-05-02 Ulrich Drepper <drepper@redhat.com>
8443 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
8445 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
8447 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
8448 comparing ftab elements.
8449 (_dl_unmap): Fix typo in test.
8450 (_dl_make_fptr): Fix typos introduced in last change.
8452 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
8453 original patch. Use non-exported symbols. Mark translatable
8454 strings. Pretty printing.
8456 2003-05-02 Roland McGrath <roland@redhat.com>
8458 * Makerules (do-stamp): Do $(make-target-directory).
8460 2003-04-07 H.J. Lu <hjl@gnu.org>
8462 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
8464 2003-04-03 H.J. Lu <hjl@gnu.org>
8466 * sysdeps/ia64/dl-fptr.c: Moved to ...
8467 * sysdeps/generic/dl-fptr.c: Here.
8469 * sysdeps/generic/dl-fptr.h: New.
8470 * sysdeps/ia64/dl-fptr.h: New.
8472 * sysdeps/ia64/dl-symaddr.c: Moved to ...
8473 * sysdeps/generic/dl-symaddr.c: here.
8475 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
8476 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
8477 (ia64_fdesc): Likewise.
8478 (ia64_fdesc_table): Likewise.
8479 (__ia64_make_fptr): Likewise.
8480 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
8481 with _dl_boot_fptr_table.
8482 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
8484 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
8486 2003-05-01 Roland McGrath <roland@redhat.com>
8488 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
8489 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
8491 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
8492 Use $(make-target-directory).
8493 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
8495 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
8496 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
8497 (compile-command.s, compile-command.c): Likewise.
8498 ($(objpfx)%.d): All such pattern rules removed.
8499 ($(+sysdir_pfx)sysd-rules): Don't generate them.
8500 ($(common-objpfx)dummy.d): Target removed.
8501 (make-dummy-dep): Variable removed.
8502 (generate-md5): Likewise.
8503 (%.d: %.dt): New pattern rule.
8504 (+depfiles): Use $(wildcard) function to get just existing *.d files
8505 and .d files for existing *.dt files.
8506 (common-clean): Remove all *.d and *.dt files.
8507 (before-compile): Add $(objpfx). when it doesn't exist,
8508 regardless of $(no_deps).
8509 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
8510 (rtld-depfiles): Use .os.d instead of .d names.
8511 Include existing *.d files and .d files for existing *.dt files.
8513 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
8514 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
8516 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
8517 Do s-*.d includes only if we have some syscall routines in this subdir.
8519 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
8520 @nobits. The former is accepted by gas on any ELF platform.
8522 2003-05-01 Ulrich Drepper <drepper@redhat.com>
8524 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
8526 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
8528 2003-04-29 Andreas Schwab <schwab@suse.de>
8530 * string/test-strcat.c (do_one_test): Fix attribute name.
8532 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
8534 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
8535 uc_flags long for all ABIs.
8537 2003-04-30 Andreas Jaeger <aj@suse.de>
8539 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
8540 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
8541 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
8542 Add bi-arch support.
8544 2003-04-30 Ulrich Drepper <drepper@redhat.com>
8546 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
8547 (__posix_memalign): Use __memalign_internal instead of memalign.
8549 2003-04-29 Roland McGrath <roland@redhat.com>
8551 * configure.in: Search for AUTOCONF unconditionally.
8552 Just don't complain about missing it under --without-cvs.
8554 * include/libc-symbols.h (__symbol_set_attribute): New macro,
8555 give hidden for [SHARED] and weak for [! SHARED].
8556 (symbol_set_declare): Use that. Never need weak_extern these days.
8557 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
8558 Depend on $(..)Makerules.
8560 2003-04-29 Ulrich Drepper <drepper@redhat.com>
8562 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
8563 variants of socket, bind, recvmsg, and sendto.
8565 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
8567 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
8568 * signal/sigaddset.c: Add libc_hidden_def.
8569 * signal/sigdelset.c: Likewise.
8571 2003-04-29 Jakub Jelinek <jakub@redhat.com>
8573 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
8574 to the end of the file.
8576 * configure.in: Change __oline__ to $LINENO.
8577 (HAVE_BUILTIN_REDIRECTION): New check.
8578 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
8579 * include/libc-symbols.h (libc_hidden_builtin_proto,
8580 libc_hidden_builtin_def, libc_hidden_builtin_weak,
8581 libc_hidden_builtin_ver): Define.
8582 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
8583 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
8584 strspn, strstr): Add libc_hidden_builtin_proto.
8585 * intl/plural.y: Include string.h.
8586 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
8587 libc_hidden_builtin_def.
8588 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
8589 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
8590 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
8591 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
8592 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
8593 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
8594 * sysdeps/alpha/memchr.S (memchr): Likewise.
8595 * sysdeps/alpha/memset.S (memset): Likewise.
8596 * sysdeps/alpha/strcat.S (strcat): Likewise.
8597 * sysdeps/alpha/strchr.S (strchr): Likewise.
8598 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
8599 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
8600 * sysdeps/alpha/strlen.S (strlen): Likewise.
8601 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
8602 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
8603 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
8604 * sysdeps/arm/memset.S (memset): Likewise.
8605 * sysdeps/arm/strlen.S (strlen): Likewise.
8606 * sysdeps/generic/memchr.c (memchr): Likewise.
8607 * sysdeps/generic/memcpy.c (memcpy): Likewise.
8608 * sysdeps/generic/memmove.c (memmove): Likewise.
8609 * sysdeps/generic/memset.c (memset): Likewise.
8610 * sysdeps/generic/strcat.c (strcat): Likewise.
8611 * sysdeps/generic/strchr.c (strchr): Likewise.
8612 * sysdeps/generic/strcmp.c (strcmp): Likewise.
8613 * sysdeps/generic/strcpy.c (strcpy): Likewise.
8614 * sysdeps/generic/strcspn.c (strcspn): Likewise.
8615 * sysdeps/generic/strlen.c (strlen): Likewise.
8616 * sysdeps/generic/strncmp.c (strncmp): Likewise.
8617 * sysdeps/generic/strncpy.c (strncpy): Likewise.
8618 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
8619 * sysdeps/generic/strrchr.c (strrchr): Likewise.
8620 * sysdeps/generic/strspn.c (strspn): Likewise.
8621 * sysdeps/generic/strstr.c (strstr): Likewise.
8622 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
8623 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
8624 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
8625 * sysdeps/i386/i586/memset.S (memset): Likewise.
8626 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
8627 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
8628 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
8629 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
8630 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
8631 * sysdeps/i386/i686/memset.S (memset): Likewise.
8632 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
8633 * sysdeps/i386/memchr.S (memchr): Likewise.
8634 * sysdeps/i386/memset.c (memset): Likewise.
8635 * sysdeps/i386/strchr.S (strchr): Likewise.
8636 * sysdeps/i386/strcspn.S (strcspn): Likewise.
8637 * sysdeps/i386/strlen.c (strlen): Likewise.
8638 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
8639 * sysdeps/i386/strrchr.S (strrchr): Likewise.
8640 * sysdeps/i386/strspn.S (strspn): Likewise.
8641 * sysdeps/ia64/memchr.S (memchr): Likewise.
8642 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
8643 * sysdeps/ia64/memmove.S (memmove): Likewise.
8644 * sysdeps/ia64/memset.S (memset): Likewise.
8645 * sysdeps/ia64/strcat.S (strcat): Likewise.
8646 * sysdeps/ia64/strchr.S (strchr): Likewise.
8647 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
8648 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
8649 * sysdeps/ia64/strlen.S (strlen): Likewise.
8650 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
8651 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
8652 * sysdeps/m68k/memchr.S (memchr): Likewise.
8653 * sysdeps/m68k/strchr.S (strchr): Likewise.
8654 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
8655 * sysdeps/mips/mips64/memset.S (memset): Likewise.
8656 * sysdeps/mips/memcpy.S (memcpy): Likewise.
8657 * sysdeps/mips/memset.S (memset): Likewise.
8658 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8659 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
8660 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
8661 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
8662 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
8663 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8664 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8665 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
8666 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
8667 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
8668 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
8669 * sysdeps/powerpc/strcat.c (strcat): Likewise.
8670 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
8671 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
8672 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
8673 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
8674 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
8675 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
8676 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
8677 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
8678 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
8679 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
8680 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
8681 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
8682 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
8683 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
8684 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
8685 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
8686 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
8687 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
8688 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
8689 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
8690 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
8691 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
8692 * sysdeps/sh/memcpy.S (memcpy): Likewise.
8693 * sysdeps/sh/memset.S (memset): Likewise.
8694 * sysdeps/sh/strlen.S (strlen): Likewise.
8695 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
8696 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
8697 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
8698 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
8699 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
8700 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
8701 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
8702 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
8703 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
8704 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
8705 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
8706 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
8707 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
8708 * sysdeps/x86_64/memset.S (memset): Likewise.
8709 * sysdeps/x86_64/strcat.S (strcat): Likewise.
8710 * sysdeps/x86_64/strchr.S (strchr): Likewise.
8711 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
8712 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
8713 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
8714 * sysdeps/x86_64/strlen.S (strlen): Likewise.
8715 * sysdeps/x86_64/strspn.S (strspn): Likewise.
8716 * string/string-inlines.c: Move...
8717 * sysdeps/generic/string-inlines.c: ...here.
8718 (__memcpy_g, __strchr_g): Remove.
8719 (__NO_INLINE__): Define before including <string.h>,
8720 undefine after. Include bits/string.h and bits/string2.h.
8721 * sysdeps/i386/i486/string-inlines.c: New file.
8722 * sysdeps/i386/string-inlines.c: New file.
8723 * sysdeps/i386/i486/Versions: Remove.
8724 All GLIBC_2.1.1 symbols moved...
8725 * sysdeps/i386/Versions (libc): ...here.
8727 2003-04-29 Ulrich Drepper <drepper@redhat.com>
8729 * sysdeps/i386/fpu/Makefile: New file.
8730 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
8731 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
8732 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
8733 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
8736 2003-04-28 Ulrich Drepper <drepper@redhat.com>
8738 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
8739 * nscd/nscd_getpw_r.c: Likewise.
8740 * nscd/nscd_gethst_r.c: Likewise.
8742 2003-04-27 Ulrich Drepper <drepper@redhat.com>
8744 * nscd/pwdcache.c: Initialize .version element in result.
8745 * nscd/grpcache.c: Likewise.
8746 * nscd/pwdcache.c: Likewise.
8748 2003-04-27 Andreas Schwab <schwab@suse.de>
8750 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
8753 2003-04-27 Andreas Schwab <schwab@suse.de>
8755 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
8757 2003-04-27 Ulrich Drepper <drepper@redhat.com>
8759 * nscd/connections.c (client_queued): New variable.
8760 (nscd_run): Revamp the loop. Don't call poll except for cleanup
8761 threads. Keep track of the number of delays caused because of busy
8763 * nscd/nscd.h: Declare client_queued.
8764 * nscd/nscd_stat.c: Transmit and print client_queued information.
8766 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
8768 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
8769 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
8771 2003-04-26 Ulrich Drepper <drepper@redhat.com>
8773 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
8774 tracking of freed memory in static TLS block.
8775 * elf/Makefile: Add rules to build and run tst-tls13.
8776 * elf/tst-tls13.c: New file.
8777 * elf/tst-tlsmod13.c: New file.
8778 * elf/tst-tlsmod13a.c: New file.
8780 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
8782 * elf/dl-reloc.c: Pretty printing.
8784 2003-04-26 Roland McGrath <roland@redhat.com>
8786 * Makerules ($(common-objpfx)shlib.lds): New target.
8787 (common-generated): Add it.
8788 (build-shlib, build-module): Use that instead of generating every time.
8789 ($(common-objpfx)libc.so): Depend on it.
8790 (lib%.so rule): Likewise.
8791 (build-module-helper-objlist): Remove %.lds.
8792 (LDSEDCMD-c.so): Variable removed.
8793 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
8794 Depend on $(common-objpfx)shlib.lds.
8795 * dlfcn/Makefile ($(test-modules)): Likewise.
8797 2003-04-26 Roland McGrath <roland@frob.com>
8799 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
8801 2003-04-26 Andreas Schwab <schwab@suse.de>
8803 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
8805 2003-04-25 Ulrich Drepper <drepper@redhat.com>
8807 * nscd/cache.c (cache_search): Keep track of how many chain links
8808 we searched and update table statistics.
8809 (cache_add): Keep track of how many values are in the table.
8810 (prune_cache): Likewise. Keep track of locking success.
8811 Print messages about removed entries in separate pass.
8812 * nscd/connections.c (handle_request): Don't print debug message here.
8813 The caller will do it. Keep track of locking success.
8814 (nscd_run): Print debug message. Also print PID of the client process.
8815 * nscd/nscd.c (start_time): New variable.
8816 (main): Remember start time.
8817 * nscd/nscd.h: Declare start_time.
8818 (struct database): Add more members for new statistics.
8819 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
8822 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
8824 2003-04-22 Jakub Jelinek <jakub@redhat.com>
8826 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
8827 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
8828 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
8830 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
8831 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
8832 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
8833 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
8836 2003-04-24 Ulrich Drepper <drepper@redhat.com>
8838 * nss/getent.c: Implement alternative host database lookup via
8841 * include/ifaddrs.h: New file.
8842 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
8844 * resolv/netdb.h: ...here.
8845 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
8846 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8847 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
8850 2003-04-24 Roland McGrath <roland@redhat.com>
8852 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
8854 2003-04-24 Jakub Jelinek <jakub@redhat.com>
8856 * elf/dl-reloc.c (allocate_static_tls): Rename to...
8857 (_dl_allocate_static_tls): ... this function. No longer static.
8858 (CHECK_STATIC_TLS): Adjust.
8859 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
8860 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
8861 Add SYM_MAP argument.
8862 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
8863 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
8864 TLS relocs here. #ifdef out relocs which never appear in
8865 .gnu.conflict section from dl-conflict.c processing.
8866 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8867 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
8869 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
8870 out relocs which never appear in .gnu.conflict section from
8871 dl-conflict.c processing.
8872 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
8873 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8874 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
8875 Use r_type in RESOLVE macro.
8877 2003-04-23 Ulrich Drepper <drepper@redhat.com>
8879 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
8880 NULL. Remove code made redundant by this assumption.
8881 (__yp_unbind): Add call to free. Adjust all callers.
8883 * nis/ypclnt.c (yp_all): Free the dom_binding object after
8886 * grp/initgroups.c (getgrouplist): Don't copy too much into the
8887 user buffer if more groups are found than fit into it.
8889 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
8892 2003-04-23 Jakub Jelinek <jakub@redhat.com>
8894 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
8895 not rc == errno. Use extend_alloca.
8897 * elf/tst-tls12.c (main): Fix declaration.
8898 * elf/tst-tls10.c (dummy): Make hidden instead of static.
8899 * elf/tst-tlsmod7.c (dummy): Likewise.
8900 * elf/tst-tlsmod8.c (dummy): Likewise.
8901 * elf/tst-tlsmod9.c (dummy): Likewise.
8903 2003-04-22 Roland McGrath <roland@redhat.com>
8905 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
8906 (open_not_cancel): Make last argument non-optional.
8907 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
8908 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
8909 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8911 * include/tls.h: Protect against multiple inclusion.
8913 2003-04-22 Ulrich Drepper <drepper@redhat.com>
8915 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
8916 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
8917 open_socket. Not static anymore.
8918 (nscd_gethst_r): Use __nscd_open_socket.
8919 * nscd/nscd_getgr_r.c (open_socket): Removed.
8920 (nscd_getgr_r): Use __nscd_open_socket.
8921 * nscd/nscd_getpw_r.c (open_socket): Removed.
8922 (nscd_getpw_r): Use __nscd_open_socket.
8924 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
8925 * nscd/connections.c (handle_request): Add cast to avoid warning.
8927 2003-04-21 Ulrich Drepper <drepper@redhat.com>
8929 * signal/sigfillset.c: Moved to...
8930 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
8931 do not set the corresponding bit.
8933 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
8935 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
8936 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
8937 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
8938 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
8939 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
8941 2003-04-20 Ulrich Drepper <drepper@redhat.com>
8943 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
8944 first syscall parameter to const char*.
8946 2003-04-19 Ulrich Drepper <drepper@redhat.com>
8948 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
8950 * configure.in: Add AC_PROG_CXX.
8951 * config.make.in (CXX): Define.
8953 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
8954 __len to size_t to avoid warnings.
8956 2003-04-18 Jes Sorensen <jes@wildopensource.com>
8958 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
8960 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8962 2003-04-19 Ulrich Drepper <drepper@redhat.com>
8964 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
8965 UNREGISTER_ATFORK if d == NULL.
8967 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
8968 * dirent/dirent.h: Likewise.
8969 * dlfcn/dlfcn.h: Likewise.
8970 * grp/grp.h: Likewise.
8971 * iconv/iconv.h: Likewise.
8972 * io/fcntl.h: Likewise.
8973 * io/ftw.h: Likewise.
8974 * libio/stdio.h: Likewise.
8975 * misc/sys/mman.h: Likewise.
8976 * misc/sys/select.h: Likewise.
8977 * misc/sys/syslog.h: Likewise.
8978 * misc/sys/uio.h: Likewise.
8979 * posix/spawn.h: Likewise.
8980 * posix/unistd.h: Likewise.
8981 * posix/sys/wait.h: Likewise.
8982 * pwd/pwd.h: Likewise.
8983 * resolv/netdb.h: Likewise.
8984 * rt/aio.h: Likewise.
8985 * shadow/shadow.h: Likewise.
8986 * signal/signal.h: Likewise.
8987 * socket/sys/socket.h: Likewise.
8988 * stdlib/stdlib.h: Likewise.
8989 * streams/stropts.h: Likewise.
8990 * string/string.h: Likewise.
8991 * sysdeps/gnu/utmpx.h: Likewise.
8992 * sysvipc/sys/msg.h: Likewise.
8993 * termios/termios.h: Likewise.
8994 * time/time.h: Likewise.
8995 * wcsmbs/wchar.h: Likewise.
8996 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
8998 * misc/daemon.c: Likewise.
8999 * sysdeps/generic/backtracesymsfd.c: Likewise.
9000 * sysdeps/generic/check_fds.c: Likewise.
9001 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
9002 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
9003 * sysdeps/generic/not-cancel.h: New file.
9004 * csu/Makefile (distribute): Add not-cancel.h.
9005 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
9006 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
9007 for assert.c and assert-perr.c to include <fatal-prepare.h>.
9008 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
9010 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
9011 errno and unlink first.
9013 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
9015 2003-04-18 Ulrich Drepper <drepper@redhat.com>
9017 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
9018 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
9020 2003-04-17 Ulrich Drepper <drepper@redhat.com>
9022 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
9024 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
9025 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
9028 * signal/Makefile (tests): Add tst-sigsimple.
9029 * signal/tst-sigsimple.c: New file.
9031 2003-04-16 Jakub Jelinek <jakub@redhat.com>
9033 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
9035 (tests): Add tst-tls1[0-2].
9036 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
9037 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
9038 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
9039 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
9040 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
9041 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
9042 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
9043 * elf/tst-tls10.c: New test.
9044 * elf/tst-tls11.c: New test.
9045 * elf/tst-tls12.c: New test.
9046 * elf/tst-tls10.h: New file.
9047 * elf/tst-tlsmod7.c: New file.
9048 * elf/tst-tlsmod8.c: New file.
9049 * elf/tst-tlsmod9.c: New file.
9050 * elf/tst-tlsmod10.c: New file.
9051 * elf/tst-tlsmod11.c: New file.
9052 * elf/tst-tlsmod12.c: New file.
9054 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
9056 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
9057 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
9058 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
9060 2003-04-17 Ulrich Drepper <drepper@redhat.com>
9062 * posix/regex.h: Include <sys/types.h>.
9064 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
9065 The signal number must be checked.
9066 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
9067 The signal number must be checked [PR libc/5004].
9069 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
9070 don't do anything fancy.
9072 * sysdeps/generic/bits/libc-lock.h: Define
9073 __rtld_lock_define_initialized_recursive.
9075 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
9076 contacting nscd if NOT_USENSCD_NAME > 0.
9077 * nss/nsswitch.c (__nss_disable_nscd): New function.
9078 * nss/nsswitch.h: Declare it.
9079 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
9080 * nscd/nscd.c (main): Call __nss_disable_nscd.
9082 2003-04-16 Ulrich Drepper <drepper@redhat.com>
9084 * stdio-common/perror.c (perror): We don't need to set the offset
9085 to _IO_pos_bad, this is how streams are initialized.
9087 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
9088 (time_output): If necessary, allocate new buffer for .name string if
9089 padding is required.
9091 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
9092 before copying. This might leave holes in the list. Adjust
9093 pointers if necessary.
9094 (netlink_receive): Allocate only one block.
9095 (free_netlink_handle): Adjust appropriately.
9096 (getifaddrs): Lots of cleanups.
9098 * string/test-strncpy.c (do_one_test): Mark start and stop as
9100 * string/test-memchr.c: Likewise.
9101 * string/test-memcmp.c: Likewise.
9102 * string/test-memcpy.c: Likewise.
9103 * string/test-memmove.c: Likewise.
9104 * string/test-memset.c: Likewise.
9105 * string/test-strcat.c: Likewise.
9106 * string/test-strchr.c: Likewise.
9107 * string/test-strcmp.c: Likewise.
9108 * string/test-strcpy.c: Likewise.
9109 * string/test-strlen.c: Likewise.
9110 * string/test-strncmp.c: Likewise.
9111 * string/test-strpbrk.c: Likewise.
9112 * string/test-strrchr.c: Likewise.
9113 * string/test-strspn.c: Likewise.
9115 2003-04-15 Roland McGrath <roland@redhat.com>
9117 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
9119 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
9120 INTUSE(__register_frame_info_bases).
9122 2003-04-15 Ulrich Drepper <drepper@redhat.com>
9124 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
9125 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
9126 AT_SYSINFO_EH_FRAME. Adjust string width.
9127 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
9128 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
9129 Add _dl_sysinfo_eh_frame field.
9130 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
9131 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
9133 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
9134 if _dl_sysinfo_eh_frame is non-NULL.
9136 * Makeconfig (gnulib): Add -lgcc_eh.
9138 * config.h.in: Define HAVE_FORCED_UNWIND.
9140 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
9142 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
9143 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
9145 2003-04-15 Jakub Jelinek <jakub@redhat.com>
9147 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
9148 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
9149 against local symbol in conflict processing.
9151 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
9153 * sysdeps/powerpc/bits/atomic.h
9154 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
9155 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
9157 (__arch_compare_and_exchange_val_32_acq): Define.
9158 (atomic_compare_and_exchange_val_acq): Define.
9160 2003-04-15 Ulrich Drepper <drepper@redhat.com>
9162 * include/atomic.h: Pretty printing.
9164 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9166 * stdio-common/vfscanf.c: Add casts to avoid warnings.
9168 2003-04-14 Jakub Jelinek <jakub@redhat.com>
9170 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
9171 * sysdeps/x86_64/bits/atomic.h: Likewise.
9173 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9175 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
9176 POPARGS_1 to emit labels for the mov instructions.
9178 2003-04-14 Jakub Jelinek <jakub@redhat.com>
9180 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
9182 2003-04-14 Roland McGrath <roland@redhat.com>
9184 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
9187 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
9189 2003-04-14 Ulrich Drepper <drepper@redhat.com>
9191 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
9192 position. Reported by jreiser@BitWagon.com.
9194 2003-04-13 Ulrich Drepper <drepper@redhat.com>
9196 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
9197 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
9198 * sysdeps/generic/unwind-dw2.c: Likewise.
9199 * sysdeps/generic/unwind-pe.h: Likewise.
9201 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
9203 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
9204 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
9205 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
9206 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
9207 (mcontext_t): Make it match the 32-bit mips kernel in o32.
9208 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
9209 the mips and mips64 headers.
9210 (struct user): Port to n32/n64.
9212 2003-04-12 Ulrich Drepper <drepper@redhat.com>
9214 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
9217 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
9218 __ASSUME_VSYSCALL is defined don't add restorer.
9219 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9220 __ASSUME_VSYSCALL for 2.5.53.
9222 2003-04-11 Ulrich Drepper <drepper@redhat.com>
9224 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
9225 Remove HAVE_CANCELBUF code. Replace with code using the new
9226 initializers for unwind-based cleanup handling.
9227 * sysdeps/generic/unwind.h: Update from latest gcc version.
9228 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
9229 places to allow unwind data generation.
9230 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
9231 * sysdeps/x86_64/bits/setjmp.h: Likewise.
9232 * sysdeps/sh/bits/setjmp.h: Likewise.
9233 * sysdeps/powerpc/bits/setjmp.h: Likewise.
9234 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
9235 * sysdeps/alpha/bits/setjmp.h: Likewise.
9237 2003-04-11 Roland McGrath <roland@redhat.com>
9239 * csu/tst-empty.c: New file.
9240 * csu/Makefile (tests, tests-static): Add it.
9242 2003-04-11 Jakub Jelinek <jakub@redhat.com>
9244 * string/test-strcmp.c (do_random_tests): Test whether return value
9245 has been promoted to wordsize if the ABI requires caller to do so.
9246 * string/test-strncmp.c (do_random_tests): Likewise.
9247 * string/test-memcmp.c (do_random_tests): Likewise.
9249 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
9252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
9253 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
9254 is not defined, but the prctl constants are.
9256 * string/tester.c (test_strcmp): Fix a typo.
9258 2003-04-09 Ulrich Drepper <drepper@redhat.com>
9260 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
9261 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
9263 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
9265 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
9267 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
9269 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
9271 * sysdeps/mips/mips64/memset.S: Likewise.
9272 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
9273 Use t0 instead of t4 as temporary.
9275 2003-04-07 Ulrich Drepper <drepper@redhat.com>
9277 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
9278 feof_unlocked instead of feof.
9279 (add_dir): Ignore trailing whitespace.
9281 2003-04-07 Jakub Jelinek <jakub@redhat.com>
9283 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
9284 sum of SIZE1 and SIZE2 arguments.
9286 2003-04-06 Ulrich Drepper <drepper@redhat.com>
9288 * iconv/iconv_prog.c (process_block): Don't print message about
9289 invalid input if the -c option is used.
9290 (main): Correctly append IGNORE string for -c option.
9292 2003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9294 * sysdeps/sh/bits/atomic.h: Moved to ...
9295 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
9296 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
9298 (atomic_bit_set, atomic_bit_test_set): Likewise.
9299 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
9301 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
9303 2003-04-06 Roland McGrath <roland@redhat.com>
9305 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
9306 restoration as done for setcontext yesterday.
9308 2003-04-06 Jakub Jelinek <jakub@redhat.com>
9310 * elf/rtld.c: Revert 2003-03-14 change.
9311 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
9312 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
9314 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9316 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
9318 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9319 Always initialize *signgamp before returning an error.
9321 2003-04-05 Roland McGrath <roland@redhat.com>
9323 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
9324 below the stack pointer even if switching to the same context we are
9327 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9329 * catgets/gencat.c (read_input_file): Make sure that \n is not
9330 alone on the line before testing for continuation.
9332 * math/test-tgmath.c (compile_test): Initialize c.
9334 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
9336 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
9337 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
9338 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
9340 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
9341 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
9342 structure on n32 as well.
9343 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
9344 data types on n32 and n64.
9346 2003-04-05 Ulrich Drepper <drepper@redhat.com>
9348 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
9351 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
9352 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
9353 instead of __register_atfork.
9355 2003-04-05 Jakub Jelinek <jakub@redhat.com>
9357 * stdio-common/reg-printf.c (__register_printf_function): Calloc
9358 instead of malloc __printf_arginfo_table and __printf_function_table.
9359 Reported by John Reiser <jreiser@BitWagon.com>.
9361 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
9363 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
9364 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
9366 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
9369 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
9371 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
9374 2003-04-03 Roland McGrath <roland@redhat.com>
9376 * configure.in: Fix up use of compilation flags to match the build:
9377 For .s files, $ASFLAGS;
9378 For .S files, $CPPFLAGS $ASFLAGS;
9379 For .c files, $CFLAGS $CPPFLAGS;
9380 when linking, add $LDFLAGS.
9381 * configure: Regenerated.
9383 2003-04-03 Jakub Jelinek <jakub@redhat.com>
9385 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
9386 for atomic_compare_and_exchange_bool_acq failure.
9388 2003-04-03 Ulrich Drepper <drepper@redhat.com>
9390 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
9391 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
9392 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
9393 Remove declaration of pthread_atfork.
9395 2003-04-02 Ulrich Drepper <drepper@redhat.com>
9397 * locale/iso-639.def: Add many more languages from the current ISO 639.
9399 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
9400 * sysdeps/generic/semtimedop.c: New file.
9401 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
9402 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
9403 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
9404 * sysvipc/Makefile (routines): Add semtimedop.
9405 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
9406 * sysvipc/sys/sem.h: Declare semtimedop.
9408 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
9410 * configure.in: Check for __register_frame_info in both
9412 * configure: Regenerated.
9414 2003-04-01 Roland McGrath <roland@redhat.com>
9416 * scripts/abilist.awk: Allow dots in soname suffix.
9418 * scripts/abilist.awk (emit): Fix bailout condition.
9420 2003-04-01 Jakub Jelinek <jakub@redhat.com>
9422 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
9425 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
9426 register as input to asm.
9428 2003-04-01 Jakub Jelinek <jakub@redhat.com>
9430 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
9432 2003-04-01 Andreas Jaeger <aj@suse.de>
9434 * configure.in: Output as/ld as name if version is too old.
9436 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
9438 * configure.in: Don't require an installed C library in the test
9439 for ".set" assembler support.
9441 2003-03-31 Roland McGrath <roland@redhat.com>
9443 * signal/tst-sigset.c: New file.
9444 * signal/Makefile (tests): Add it.
9446 2003-03-31 Ulrich Drepper <drepper@redhat.com>
9448 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
9449 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
9450 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
9451 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
9452 (__SIGRTMAX): Adjust accordingly.
9453 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
9454 second compatibility symbol set.
9455 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
9457 2003-03-31 Andreas Schwab <schwab@suse.de>
9459 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
9461 (atomic_decrement_and_test): Fix test.
9463 2003-03-31 Jakub Jelinek <jakub@redhat.com>
9465 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
9466 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
9467 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
9468 * sysdeps/sparc/sparc32/atomicity.h: Removed.
9469 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
9470 * sysdeps/sparc/sparc64/atomicity.h: Removed.
9472 2003-03-30 Roland McGrath <roland@redhat.com>
9474 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
9476 * intl/po2test.sed: Anchor substitution regexps to fix last change.
9478 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
9480 * intl/po2test.sed: Unify the transformations for msgid and msgstr
9481 and remove a useless s/// command.
9483 2003-03-27 David Mosberger <davidm@hpl.hp.com>
9485 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
9486 directive into empty .prologue region to ensure that call-chain
9487 is terminated even for the first instruction.
9489 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
9490 to terminate call-chain right from the get-go.
9492 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
9493 stop bit between compare & branch.
9495 2003-03-29 Ulrich Drepper <drepper@redhat.com>
9497 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
9498 point correctly [PR libc/4993].
9500 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
9501 netlink_open calls if netlink is known to not be available.
9503 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
9505 * configure.in: Add mips64* support.
9506 * sysdeps/mips/bits/endian.h: Make it bi-endian.
9507 * sysdeps/mips/mipsel/bits/endian.h: Removed.
9508 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
9509 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
9510 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
9511 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
9512 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
9513 * sysdeps/mips/Implies: Moved wordsize-32 to...
9514 * sysdeps/mips/mips32/Implies: New file.
9515 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
9517 (ret, PSEUDO_END): Moved past END.
9518 (PSEUDO): Moved to...
9519 * sysdeps/unix/mips/mips32/sysdep.h: New file.
9520 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
9521 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
9522 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
9523 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
9524 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
9526 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
9529 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
9531 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
9532 * inet/test-ifaddrs.c: Allow AF_PACKET.
9533 * sysdeps/unix/sysv/linux/kernel-features.h: Add
9534 __ASSUME_NETLINK_SUPPORT.
9536 2003-03-28 Ulrich Drepper <drepper@redhat.com>
9538 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
9540 2003-03-26 H.J. Lu <hjl@gnu.org>
9542 * elf/vismod.h (getvarlocal1): Return const char **.
9543 (getvarinmod1): Likewise.
9544 (getvaritcpt1): Likewise.
9545 (getvarlocal2): Likewise.
9546 (getvarinmod2): Likewise.
9547 (getvaritcpt2): Likewise.
9548 (getvaritcpt3): Likewise.
9549 * elf/vismain.c (do_test): Adjusted.
9550 * elf/vismod1.c (getvarlocal1): Return address.
9551 (getvarinmod1): Likewise.
9552 (getvaritcpt1): Likewise.
9553 * elf/vismod2.c (getvarlocal2): Likewise.
9554 (getvarinmod2): Likewise.
9555 (getvaritcpt2): Likewise.
9556 * elf/vismod3.c (getvaritcpt3): Likewise.
9558 2003-03-28 Roland McGrath <roland@redhat.com>
9560 * elf/vismain.c (do_test): Print both addresses when they don't match.
9562 * scripts/abilist.awk: If given -v filename_regexp and/or -v
9563 libname_regexp when parsing names, then produce output only
9564 for those matching the given regexps. In combine mode, save all
9565 stanzas for a final sorting by stanza header at the end.
9566 Emit a blank line between stanzas.
9568 * scripts/abilist.awk: When given -v combine=1, do parse_names and
9569 emit a single output stream with lib name in stanza header lines.
9571 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
9573 2003-03-27 Roland McGrath <roland@redhat.com>
9575 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
9576 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
9578 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9580 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
9581 Return old value. Make asm output reg constraint earlyclobber.
9583 (__arch_compare_and_exchange_8_acq): ... this.
9584 (__arch_compare_and_exchange_val_16_acq):
9585 Return old value. Make asm output reg constraint earlyclobber.
9587 (__arch_compare_and_exchange_16_acq): ... this.
9588 (__arch_compare_and_exchange_val_32_acq):
9589 Return old value. Make asm output reg constraint earlyclobber.
9591 (__arch_compare_and_exchange_32_acq): ... this.
9592 (__arch_compare_and_exchange_val_64_acq):
9594 (__arch_compare_and_exchange_64_acq): ... this.
9595 (atomic_exchange_and_add): Use local variables and
9596 __arch_compare_and_exchange_val_64_acq.
9597 (atomic_add): Likewise.
9598 (atomic_add_negative, atomic_add_zero): Use local variables.
9600 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
9602 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
9604 2003-03-27 Ulrich Drepper <drepper@redhat.com>
9606 * Makefile: Remove libmd5crypt goal.
9608 2003-03-25 Jakub Jelinek <jakub@redhat.com>
9610 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
9611 special handling of relocations against local symbols.
9613 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
9615 * sysdeps/powerpc/bits/atomic.h
9616 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
9617 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
9618 Define PPC64 specific version.
9619 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
9620 Change (mem) constraint to "b".
9621 [__powerpc64__] (__arch_atomic_exchange_and add_64):
9622 Replace addi with add. Change (value) contraint to "r".
9623 Change (mem) constraint to "b".
9624 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
9625 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
9626 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
9627 (__arch_atomic_decrement_if_positive_32): New macro.
9628 (atomic_decrement_if_positive): Use __arch* macros.
9630 2003-03-27 Jakub Jelinek <jakub@redhat.com>
9632 * sysdeps/ia64/fpu/libm-test-ulps: Update.
9634 2003-03-27 Roland McGrath <roland@redhat.com>
9636 * scripts/rpm2dynsym.sh: New file.
9637 * Makefile (distribute): Add it.
9639 2003-03-27 David Mosberger <davidm@hpl.hp.com>
9641 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
9642 ar.unat before returning. Add missing .mem.offset directives
9643 to ensure file gets assembled without warnings.
9644 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
9646 2003-03-27 Jakub Jelinek <jakub@redhat.com>
9648 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
9649 Return -1 instead of 0 if clock_getres failed.
9651 2003-03-27 Roland McGrath <roland@redhat.com>
9653 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
9654 header lines and write out foo.symlist files for each foo.so.NN listed.
9656 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
9657 This symbol is exported, and we don't want to hide it.
9658 Add libc_hidden_proto instead.
9659 (_IO_file_jumps): Add libc_hidden_proto.
9660 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
9662 * libio/fileops.c (_IO_file_jumps): Likewise.
9663 * libio/stdfiles.c: Don't use INTUSE on them.
9664 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9665 * libio/iofopen.c (__fopen_internal): Likewise.
9666 * libio/freopen.c (freopen): Likewise.
9667 * libio/freopen64.c (freopen64): Likewise.
9668 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9670 * Makerules (check-abi) [$(enable-check-abi) = warn]:
9671 Ignore exit status from diff.
9672 * configure.in (enable_check_abi): Document possible value "warn".
9673 Change default to no for now.
9674 * configure: Regenerated.
9676 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
9677 macro calls and a #include <stub-tag.h> at the end.
9678 * Makerules ($(objpfx)stubs): Tweak sed commands.
9680 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
9681 caller column for *xattr syscalls, since they are in sysdeps/generic.
9683 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
9684 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
9686 2003-03-26 Roland McGrath <roland@redhat.com>
9688 * Makerules (check-abi-config): Use /thread instead of /tls when
9689 use-thread and not just use-tls is set.
9691 * Makerules (update-abi): Put quotes around $(update-abi-config).
9693 * elf/Makefile (check-abi): Depend on check-abi-ld.
9694 (update-abi): Depend on update-abi-ld.
9696 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
9698 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
9699 do not check for errors (unless testing for 32bit variant).
9700 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
9702 2003-03-27 Philip Blundell <philb@gnu.org>
9704 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
9705 unconditional mov. Remove nop.
9707 * sysdeps/unix/sysv/linux/kernel-features.h
9708 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
9709 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
9710 when __ASSUME_VFORK_SYSCALL is defined.
9711 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
9712 __ASSUME_MMAP2_SYSCALL.
9713 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
9714 __ASSUME_REALTIME_SIGNALS.
9716 2003-03-26 Ulrich Drepper <drepper@redhat.com>
9718 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
9719 only if DL_NO_COPY_RELOCS is not defined.
9720 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
9722 2003-03-26 Roland McGrath <roland@redhat.com>
9724 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
9725 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
9726 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
9727 (sysdep_routines): Add stub-syscalls.
9728 ($(objpfx)stub-syscalls.c): New target.
9729 (generated): Add stub-syscalls.c.
9731 * tls.make.c: Also define use-tls according to USE_TLS macro.
9733 2003-03-26 Ulrich Drepper <drepper@redhat.com>
9735 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
9736 no-op padding element.
9737 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
9738 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9739 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9740 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9742 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
9744 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
9745 condition check for the return value of getgroups32.
9747 2003-03-26 Jakub Jelinek <jakub@redhat.com>
9749 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
9751 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
9752 PSEUDO_END_NOERRNO): Define.
9753 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
9754 Define to PSEUDO_END.
9756 2003-03-26 Ulrich Drepper <drepper@redhat.com>
9758 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
9760 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
9762 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
9763 * iconvdata/bug-iconv4.c: New file.
9764 * iconvdata/Makefile (tests): Add bug-iconv4.
9766 2003-03-25 H.J. Lu <hjl@gnu.org>
9768 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
9770 (_dl_lookup_versioned_symbol): Likewise.
9772 2003-03-26 Jakub Jelinek <jakub@redhat.com>
9774 * csu/tst-atomic.c (do_test): Add some new
9775 atomic_compare_and_exchange_val_acq, atomic_add_zero,
9776 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
9777 * include/atomic.h (atomic_add_negative, atomic_add_zero):
9778 Prefix local variable so that it doesn't clash with the one
9779 in atomic_exchange_and_add.
9780 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
9782 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
9783 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
9784 value into register.
9785 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
9786 Cast newval to long.
9787 * sysdeps/x86_64/bits/atomic.h
9788 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
9790 (atomic_exchange): Cast newvalue to long if sizeof == 8.
9791 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
9792 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
9793 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
9795 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
9797 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
9798 bit from backtrace addresses.
9800 2003-03-21 Andreas Schwab <schwab@suse.de>
9802 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
9805 2003-03-25 Roland McGrath <roland@redhat.com>
9807 * config.make.in (enable-check-abi): New variable from configure.
9808 * configure.in (enable_check_abi): New substituted variable,
9809 controlled by --{enable,disable}-check-abi (default yes).
9810 * configure: Regenerated.
9811 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
9812 on check-abi dependency.
9814 2003-03-26 Andreas Schwab <schwab@suse.de>
9816 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
9817 * include/atomic.h: Likewise.
9819 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
9821 2003-03-25 Roland McGrath <roland@redhat.com>
9823 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
9824 (__arch_atomic_exchange_64): New macro.
9825 (atomic_exchange): Use them.
9826 (__arch_atomic_exchange_and_add_32): New macro.
9827 (__arch_atomic_exchange_and_add_64): New macro.
9828 (atomic_exchange_and_add): Use them.
9829 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
9831 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
9833 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
9835 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
9837 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
9838 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
9839 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
9840 to decide whether to add padding.
9841 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
9842 to decide whether to add padding.
9843 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
9844 old_kernel_sigaction): Likewise.
9846 2003-03-25 Ulrich Drepper <drepper@redhat.com>
9848 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
9849 atomic_add_zero were supposed to do.
9850 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
9853 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
9854 This matches the new timer implementation.
9855 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
9857 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
9859 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
9860 timer info for what the kernel provides these days.
9861 (struct sigevent): Add _tid field.
9862 Define SIGEV_THREAD_ID.
9863 Remove struct __pthread_attr_s forward declaration.
9864 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
9865 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9866 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9867 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9869 * Versions.def (librt): Add GLIBC_2.3.3.
9871 * abilist/libpthread.abilist: Update for nptl.
9873 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
9875 * inet/netinet/in.h: Add IPPROTO_SCTP.
9877 2003-03-24 Ulrich Drepper <drepper@redhat.com>
9879 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
9881 2003-03-24 Philip Blundell <philb@gnu.org>
9883 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
9884 Remove a1 from clobber list.
9886 2003-03-24 Ulrich Drepper <drepper@redhat.com>
9888 * timezone/antarctica: Update from tzdata2003a.
9889 * timezone/asia: Likewise.
9890 * timezone/australasia: Likewise.
9891 * timezone/europe: Likewise.
9892 * timezone/iso3166.tab: Likewise.
9893 * timezone/northamerica: Likewise.
9894 * timezone/southamerica: Likewise.
9895 * timezone/zone.tab: Likewise.
9897 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
9899 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
9901 2003-03-23 Ulrich Drepper <drepper@redhat.com>
9903 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
9904 unwanted expansion by definining to ret. Patch by Ian Wienand.
9906 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
9907 the parameter description to denote no error checking. Generate
9908 appropriate pseudo asm code.
9909 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
9910 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
9911 getpgrp, and getppid with 'E'.
9912 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
9913 PSEUDO_END_NOERRNO, and ret_NOERRNO.
9914 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
9915 * sysdeps/unix/sysdep.h: Likewise.
9916 * sysdeps/unix/alpha/sysdep.h: Likewise.
9917 * sysdeps/unix/sparc/sysdep.h: Likewise.
9918 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9919 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
9920 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9921 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9922 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9923 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9924 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9925 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9926 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9927 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
9928 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9930 2003-03-23 Roland McGrath <roland@redhat.com>
9932 * Makeconfig (+includes): Don't use $(last-includes).
9934 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
9936 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
9937 * sysdeps/unix/sysv/linux/configure: Rebuilt.
9939 2003-03-23 Jakub Jelinek <jakub@redhat.com>
9941 * sysdeps/alpha/fpu/libm-test-ulps: Update.
9942 * sysdeps/arm/libm-test-ulps: Update.
9943 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9944 * sysdeps/ia64/fpu/libm-test-ulps: Update.
9945 * sysdeps/mips/fpu/libm-test-ulps: Update.
9946 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9947 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9948 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9949 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9950 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
9951 * sysdeps/s390/fpu/libm-test-ulps: Update.
9952 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9954 2003-03-22 Roland McGrath <roland@redhat.com>
9956 * include/atomic.h: Put parens around all macro arguments.
9957 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
9958 (atomic_compare_and_exchange_val_acq): Use it.
9959 (atomic_compare_and_exchange_bool_acq): Likewise.
9960 (atomic_increment_and_test): Invert sense of test.
9961 (atomic_decrement_and_test): Likewise.
9962 * csu/tst-atomic.c: Update those tests to match.
9964 2003-03-22 Jakub Jelinek <jakub@redhat.com>
9966 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
9967 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
9968 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
9969 __oldval variable in the macro, since it might be macro argument.
9970 (atomic_decrement_if_positive): Initialize __memp, remove setting
9971 of non-existent variable.
9972 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
9973 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
9974 using atomic_compare_and_exchange_val_acq.
9975 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
9976 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
9978 (__arch_compare_and_exchange_bool_8_acq): ... this.
9979 (__arch_compare_and_exchange_val_16_acq): Renamed from...
9980 (__arch_compare_and_exchange_bool_16_acq): ... this.
9981 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
9983 (__arch_compare_and_exchange_bool_32_acq): ... this.
9984 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
9986 (__arch_compare_and_exchange_bool_64_acq): ... this.
9987 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
9988 variables types instead of assuming int.
9989 Change prefix of local variables to __arch.
9990 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
9992 (atomic_compare_and_exchange_val_acq,
9993 atomic_compare_and_exchange_bool_acq): Define.
9995 * csu/tst-atomic.c: New test.
9996 * csu/tst-atomic-long.c: New test.
9997 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
9999 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
10001 * sysdeps/s390/Versions: Add trailing newline.
10003 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
10004 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
10006 2003-03-22 Andreas Schwab <schwab@suse.de>
10008 * sysdeps/m68k/fpu/libm-test-ulps: Update.
10010 * sysdeps/m68k/m68020/bits/atomic.h: New file.
10011 * sysdeps/m68k/m68020/atomicity.h: Removed.
10013 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
10015 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
10016 data structures and macros. Protect from multiple inclusion.
10018 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
10021 2003-03-21 Andreas Jaeger <aj@suse.de>
10023 * sysdeps/i386/fpu/libm-test-ulps: Update.
10025 * math/libm-test.inc (tgamma_test): Recompute some constants with
10026 36 digits precision.
10027 (lgamma_test): Likewise.
10028 (ccos_test): Likewise.
10029 (ccosh_test): Likewise.
10030 (clog10_test): Likewise.
10031 (csin_test): Likewise.
10032 (csinh_test): Likewise.
10033 (ctan_test): Likewise.
10034 (ctanh_test): Likewise.
10036 2003-03-19 Jakub Jelinek <jakub@redhat.com>
10038 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
10040 2003-03-21 Roland McGrath <roland@redhat.com>
10042 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
10043 constraint to permit non-constant BIT argument.
10044 (atomic_bit_test_set): Likewise.
10045 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
10046 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
10047 For quadword case, use "i" constraint if __builtin_constant_p and < 32
10048 or "r" constraint otherwise.
10050 * configure.in: Move AC_PROG_CC and other program-finding before all
10051 the version checks.
10052 * configure: Regenerated.
10054 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
10056 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
10057 unaligned copying of 8-15 bytes. From Chris Demetriou
10058 <cgd@broadcom.com>. Fix label names.
10059 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
10060 change as to memcpy.S.
10061 * sysdeps/mips/memcpy.S: Formatting changes.
10062 * sysdeps/mips/memset.S: Likewise.
10064 2003-03-21 Roland McGrath <roland@redhat.com>
10066 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
10068 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
10070 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
10071 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
10073 2003-03-21 Roland McGrath <roland@redhat.com>
10075 * sysdeps/i386/i486/bits/atomic.h
10076 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
10077 version of the macro to avoid compile-time warnings.
10078 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
10079 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
10080 (atomic_increment, atomic_decrement): Likewise.
10082 2003-03-21 Ulrich Drepper <drepper@redhat.com>
10084 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
10085 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10087 2003-03-21 Roland McGrath <roland@redhat.com>
10089 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
10091 2003-03-20 Ulrich Drepper <drepper@redhat.com>
10093 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
10094 atomic_compare_and_exchange_val_rel,
10095 atomic_compare_and_exchange_bool_acq, and
10096 atomic_compare_and_exchange_bool_rel instead of
10097 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
10098 * sysdeps/i386/i486/bits/atomic.h: Define
10099 __arch_compare_and_exchange_val_*_acq instead of
10100 __arch_compare_and_exchange_*_acq.
10101 * sysdeps/x86_64/bits/atomic.h: Likewise.
10102 * sysdeps/ia64/bits/atomic.h: Define
10103 __arch_compare_and_exchange_bool_*_acq instead of
10104 __arch_compare_and_exchange_*_acq.
10105 * sysdeps/powerpc/bits/atomic.h: Likewise.
10106 * sysdeps/s390/bits/atomic.h: Likewise.
10107 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
10108 * malloc/set-freeres.c: Likewise.
10109 * nscd/cache.c: Likewise.
10110 * stdlib/cxa_finalize.c: Likewise.
10111 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
10113 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
10115 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
10116 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
10117 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
10119 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
10120 into high and low halves on n64.
10121 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10122 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
10123 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10125 2003-03-20 Ulrich Drepper <drepper@redhat.com>
10127 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
10128 correct atomic_compare_and_exchange_acq semantics.
10130 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
10132 * sysdeps/mips/ieee754.h: Remove excess #endif.
10134 2003-03-20 Roland McGrath <roland@redhat.com>
10136 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
10137 variable. Remove superfluous memory clobber.
10139 * include/atomic.h: Syntax braino fix.
10141 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
10142 in decimal. Don't bail if niced at start. Just check that nice call
10143 bumps the total at all.
10145 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
10147 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
10148 including pc, gp, sp and fp, as long long.
10149 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
10150 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
10151 Add gp argument, and set gp in the jmpbuf to it.
10152 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
10154 2003-03-20 Ulrich Drepper <drepper@redhat.com>
10156 * include/atomic.h: Define atomic_exchange and
10157 atomic_decrement_if_positive if not already defined. Add some
10159 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
10160 * sysdeps/x86_64/bits/atomic.h: Likewise.
10161 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
10162 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
10163 atomic_exchange, atomic_exchange_and_add, and
10164 atomic_decrement_if_positive
10166 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
10168 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
10169 with a single instruction.
10171 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
10173 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
10175 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
10176 Word before comparing with gotsym. Take reloc_addr argument as
10177 void*. Remove the code added for the compiler to drop any
10178 alignment assumptions.
10180 2003-03-19 Ulrich Drepper <drepper@redhat.com>
10182 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
10183 * include/atomic.h: New file.
10184 * sysdeps/i386/i486/bits/atomic.h: New file.
10185 * sysdeps/x86_64/bits/atomic.h: New file.
10186 * sysdeps/s390/bits/atomic.h: New file.
10187 * sysdeps/sh/bits/atomic.h: New file.
10188 * sysdeps/ia64/bits/atomic.h: New file.
10189 * sysdeps/powerpc/bits/atomic.h: New file.
10190 * sysdeps/generic/bits/atomic.h: New file.
10191 * sysdeps/i386/i486/atomicity.h: Removed.
10192 * sysdeps/x86_64/atomicity.h: Removed.
10193 * sysdeps/s390/s390-32/atomicity.h: Removed.
10194 * sysdeps/s390/s390-64/atomicity.h: Removed.
10195 * sysdeps/ia64/atomicity.h: Removed.
10196 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
10197 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
10198 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
10199 use of macros from atomicity.h to new names and semantics.
10200 * gmon_mcount.c: Likewise.
10201 * malloc/set-freeres.c: Likewise.
10202 * nscd/cache.c: Likewise.
10203 * stdlib/cxa_finalize.c: Likewise.
10204 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
10206 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
10208 * sysdeps/mips/ieee754.h: New file, suitable to replace both
10209 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
10210 mips-specific for now.
10212 2003-03-19 Ulrich Drepper <drepper@redhat.com>
10214 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
10215 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
10216 * stdlib/tst-strtod.c: Add test for the bug.
10218 * posix/tst-nice.c (do_test): Remove invalid of return value.
10219 Don't run test if initial level != 0.
10221 2003-03-19 Amos Waterland <apw@us.ibm.com>
10223 * posix/tst-nice.c: New file.
10224 * posix/Makefile (tests): Add tst-nice.
10226 2003-03-18 Roland McGrath <roland@redhat.com>
10228 * abilist: New directory of libfoo.abilist files maintained using
10229 scripts/merge-abilist.awk and "make update-abi" rules.
10230 * Makefile (distribute): Add abilist/*.abilist.
10231 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
10232 Depend on check-abi.
10234 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
10235 * configure: Regenerated.
10237 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
10239 2003-03-18 Ulrich Drepper <drepper@redhat.com>
10241 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
10244 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
10246 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
10248 2003-03-18 Ulrich Drepper <drepper@redhat.com>
10250 * Versions.def: Add GLIBC_2.3.3 for libpthread.
10252 2003-03-17 Ulrich Drepper <drepper@redhat.com>
10254 * sysdeps/generic/libc-start.c [!SHARED &&
10255 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
10257 2003-03-17 Roland McGrath <roland@redhat.com>
10259 * include/ctype.h: Revert last change.
10261 2003-03-17 Ulrich Drepper <drepper@redhat.com>
10263 * argp/tst-argp1.c: Use test-skeleton.c.
10264 * locale/tst-C-locale.c: Likewise.
10266 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
10268 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
10269 * sysdeps/mips/mips64/n64/Implies: New file.
10270 * sysdeps/mips/mips64/n64/Makefile: New file.
10271 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
10272 * sysdeps/mips/mips64/n32/Implies: New file.
10273 * sysdeps/mips/mips64/n32/Makefile: New file.
10274 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
10275 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
10276 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
10277 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
10278 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
10279 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
10280 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
10281 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
10282 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
10283 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
10284 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
10285 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
10286 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
10287 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
10289 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
10290 lib64 for mips64/n64 and lib32 for mips64/n32.
10291 (ldd_rewrite_script): Needed for all mips64 configurations.
10292 * sysdeps/unix/sysv/linux/configure: Rebuilt.
10293 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
10294 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
10296 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
10299 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
10300 asm/unistd.h into asm-unistd.h.
10301 * sysdeps/unix/sysv/linux/mips/configure: Generated.
10302 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
10304 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
10305 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
10308 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
10309 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
10310 long type for registers on n32.
10312 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
10314 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
10315 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
10316 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
10317 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
10318 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
10319 * sysdeps/unix/mips/brk.S: Likewise.
10320 * sysdeps/unix/mips/sysdep.S: Likewise.
10321 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
10322 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
10323 * sysdeps/mips/sys/ucontext.h: Likewise.
10324 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
10325 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
10326 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
10327 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
10328 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
10329 * sysdeps/mips/mips64/setjmp.S: Likewise.
10330 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
10331 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
10334 2003-03-16 Ulrich Drepper <drepper@redhat.com>
10336 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
10337 not at function level.
10338 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
10340 2003-03-15 Roland McGrath <roland@redhat.com>
10342 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
10343 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
10344 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
10345 * nis/nis_table.c (__create_ib_request): Likewise.
10347 * posix/fnmatch_loop.c: Add casts for signedness.
10348 * nss/nss_files/files-hosts.c: Likewise.
10349 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
10350 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
10351 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
10353 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
10354 get errors into the log file.
10355 (libc_cv_broken_visibility_attribute): Likewise.
10356 (libc_cv_broken_alias_attribute): Likewise.
10357 (libc_cv_asm_weak_directive): Likewise.
10358 (libc_cv_need_minus_P): Likewise.
10359 (libc_cv_dot_text): Likewise.
10360 (libc_cv_asm_global_directive): Likewise.
10361 (libc_cv_asm_type_prefix): Likewise.
10362 * configure: Regenerated.
10364 * nscd/cache.c (cache_search): Give first arg type `request_type'.
10365 * nscd/nscd.h: Update decl.
10367 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
10368 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10369 * elf/dl-close.c (_dl_close): Likewise.
10370 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
10371 * io/fts.c (fts_build): Likewise.
10372 * elf/cache.c (add_to_cache): Likewise.
10373 * locale/programs/locarchive.c (show_archive_content): Likewise.
10375 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
10377 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
10379 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
10381 2003-03-15 Ulrich Drepper <drepper@redhat.com>
10383 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
10384 code for most parts.
10386 2003-03-15 Roland McGrath <roland@redhat.com>
10388 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
10389 * sysdeps/unix/sysv/linux/system.c: ... here.
10390 (FORK): Don't #define if already #define'd.
10391 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
10392 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
10393 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
10395 * dlfcn/tst-dlinfo.c: New file.
10396 * dlfcn/Makefile (tests): Add tst-dlinfo.
10397 ($(objpfx)tst-dlinfo): New target.
10399 * dlfcn/dlinfo.c: New file.
10400 * dlfcn/Makefile (libdl-routines): Add it.
10401 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
10402 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
10403 [__USE_GNU] (RTLD_DI_*): New enum constants.
10404 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
10405 * elf/dl-load.c (cache_rpath): New inline function.
10406 (_dl_map_object): Use it.
10407 (_dl_rtld_di_serinfo): New function.
10408 * sysdeps/generic/ldsodefs.h: Declare it.
10409 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
10411 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
10412 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
10413 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
10414 (__libc_start_main): Just call the generic one for most of the work.
10416 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
10417 static function by that name instead of BP_SYM (__libc_start_main).
10418 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
10419 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
10420 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
10422 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
10423 Use this macro for extra AT_* cases.
10424 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
10425 New macro, guts from ...
10426 (__aux_init_cache): ... here, function removed.
10427 (DL_PLATFORM_INIT): Don't define this.
10429 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
10430 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
10432 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
10434 2003-03-14 Roland McGrath <roland@redhat.com>
10436 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
10438 2003-03-14 Jakub Jelinek <jakub@redhat.com>
10440 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
10442 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10443 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
10445 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
10447 * sysdeps/mips/fpu/bits/mathdef.h: New.
10448 (__NO_LONG_DOUBLE_MATH): Define for o32.
10450 * sysdeps/mips/sys/asm.h: Formatting changes.
10451 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
10452 (CPADD): Define for all of them.
10453 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
10454 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
10455 NARGSAVE): Define per ABI spec.
10456 (END): Don't redefine.
10457 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
10458 LONG_SRAV): Remove duplicate definitions.
10459 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
10460 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
10461 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
10462 (PTR_LA): Define for all 3 ABIs.
10464 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
10465 (elf_machine_matches_host): Prevent linking of o32 and n32
10467 (elf_machine_dynamic): Document assumption on $gp.
10468 (STRINGXP, STRINGXV, STRINGV_): New macros.
10469 (elf_machine_load_address): Use them to stringize PTR_LA and
10471 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
10472 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
10473 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
10474 (__dl_runtime_resolve): Cast the symtab initializer to the
10476 (RTLD_START): Use it. Adjust it for all 3 ABIs.
10477 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
10478 Handle 64-bit R_MIPS_REL composite relocation and accept
10479 R_MIPS_64 relocations to shift addend size to 64 bits.
10480 Document assumption regarding local GOT entries. Document
10481 backward-compatibility departing from the ABI behavior in
10482 applying relocations that reference section symbols, no longer
10483 used. Support relocations to mis-aligned offsets.
10484 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
10486 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
10488 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
10489 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
10490 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
10491 restore_rt functions. Use them.
10493 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
10494 .set mips2 on new abis.
10496 2003-03-13 Ulrich Drepper <drepper@redhat.com>
10498 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
10499 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
10500 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
10501 * sysdeps/posix/pathconf.c: Likewise.
10502 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
10503 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
10504 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
10506 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
10509 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
10511 * include/gmp.h: Include/gmp-mparam.h.
10512 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
10515 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
10516 ELF_MACHINE_NO_RELA is set.
10517 * elf/rtld.c (dl_main): No prelink support for REL-only.
10519 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
10520 FLAG_MIPS64_LIBN64): Define.
10521 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
10523 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
10524 * sysdeps/mips/memset.S: Likewise.
10525 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
10526 depending on the ABI.
10528 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
10529 Don't .set mips2 on new abi.
10530 (compare_and_swap): Likewise. Support 64-bit longs on n64.
10532 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
10534 2003-03-13 Roland McGrath <roland@redhat.com>
10536 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
10537 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
10539 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
10541 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
10542 literals long long.
10543 * stdlib/fpioconst.c: Likewise.
10544 * stdlib/strtod.c: Likewise.
10546 * sysdeps/mips/add_n.S: Use L macro for local labels.
10547 * sysdeps/mips/addmul_1.S: Likewise.
10548 * sysdeps/mips/lshift.S: Likewise.
10549 * sysdeps/mips/memcpy.S: Likewise.
10550 * sysdeps/mips/memset.S: Likewise.
10551 * sysdeps/mips/mul_1.S: Likewise.
10552 * sysdeps/mips/rshift.S: Likewise.
10553 * sysdeps/mips/sub_n.S: Likewise.
10554 * sysdeps/mips/submul_1.S: Likewise.
10555 * sysdeps/mips/mips64/add_n.S: Likewise.
10556 * sysdeps/mips/mips64/addmul_1.S: Likewise.
10557 * sysdeps/mips/mips64/lshift.S: Likewise.
10558 * sysdeps/mips/mips64/mul_1.S: Likewise.
10559 * sysdeps/mips/mips64/rshift.S: Likewise.
10560 * sysdeps/mips/mips64/sub_n.S: Likewise.
10561 * sysdeps/mips/mips64/submul_1.S: Likewise.
10562 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
10563 conventions. Define END as in sys/asm.h.
10564 * sysdeps/unix/mips/sysdep.S: Likewise.
10565 * sysdeps/unix/mips/wait.S: Likewise.
10566 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
10568 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
10569 Cast shifted values that may be too narrow to mp_limb_t.
10570 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
10572 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
10574 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
10575 (__mpn_extract_long_double): Likewise.
10576 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
10577 (__mpn_construct_long_double): Likewise.
10578 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
10579 (__mpn_extract_long_double): Likewise.
10580 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
10581 (__mpn_construct_long_double): Likewise.
10583 2003-03-13 Roland McGrath <roland@redhat.com>
10585 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
10586 entries in the map file match too.
10588 2003-03-13 Guido Guenther <agx@sigxcpu.org>
10590 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
10591 label .Lthread_start since current binutils don't allow branches
10592 to globally visible symbols.
10594 2003-03-13 Jakub Jelinek <jakub@redhat.com>
10596 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
10597 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
10598 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
10599 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
10600 clobbered by the syscall.
10601 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
10602 ASM_ARGS_6): Change constraints from r to index of corresponding
10604 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
10605 ptid and ctid to match kernel.
10606 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
10608 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
10610 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
10611 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
10612 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
10614 2003-03-11 Roland McGrath <roland@redhat.com>
10616 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10617 Check SYM_MAP rather than SYM as definedness check.
10618 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
10619 Don't handle R_PPC64_REL24 reloc.
10620 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
10622 * sysdeps/powerpc/powerpc64/dl-machine.h
10623 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
10624 block, so we cover all the TPREL16* flavors without 6 ||s.
10625 [USE_TLS] (elf_machine_tprel): New function.
10626 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
10627 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
10628 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
10630 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
10632 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
10633 instead of jalr to invoke subroutine so restoring the $gp register
10634 will work properly.
10636 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
10638 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
10639 to __NR_pread if not defined.
10640 (__NR_pwrite64): Define to __NR_pwrite if not defined.
10642 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10644 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
10645 * sysdeps/unix/sysv/linux/kernel-features.h
10646 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
10649 2003-03-11 Jakub Jelinek <jakub@redhat.com>
10651 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
10652 allocate space even for the trailing '/'.
10653 Reported by John Reiser <jreiser@BitWagon.com>.
10655 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
10656 ASM_CLOBBERS_6): Define.
10657 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
10658 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
10659 to match IA-32 order.
10660 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
10662 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
10664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
10665 Copy extra params for NPTL to registers used in clone syscall.
10667 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
10669 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
10670 call names for pread and pwrite.
10672 2003-03-10 Roland McGrath <roland@redhat.com>
10674 * dlfcn/Makefile (libdl-routines): Add dladdr1.
10675 * dlfcn/dladdr1.c: New file.
10676 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
10677 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
10678 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
10679 a const ElfNN_Sym ** to fill in.
10680 * include/dlfcn.h: Update decl. Include <link.h>.
10681 * dlfcn/dladdr.c (dladdr): Update caller.
10682 * malloc/mtrace.c (tr_where): Likewise.
10683 * sysdeps/generic/elf/backtracesyms.c: Likewise.
10684 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10685 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
10686 * Versions.def (libdl): Define GLIBC_2.3.3 set.
10688 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
10690 * sysdeps/unix/Makefile (compile-syscall): New variable.
10691 Pass -g0 to compiler for assembling syscall stubs from stdin.
10693 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
10694 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
10695 Define these to do nothing.
10697 * configure.in: New check for -g on .S files.
10698 * configure: Regenerated.
10699 * config.make.in (have-cpp-asm-debuginfo): New variable.
10700 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
10701 * Makeconfig (ASFLAGS): New variable, if undefined and
10702 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
10703 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
10705 2003-03-09 Roland McGrath <roland@redhat.com>
10707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
10708 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
10710 2003-03-09 Ulrich Drepper <drepper@redhat.com>
10712 * po/fi.po: Update from translation team.
10713 * po/ca.po: Likewise.
10714 * po/da.po: Likewise.
10716 2003-03-08 Ulrich Drepper <drepper@redhat.com>
10718 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
10720 2003-03-07 Ulrich Drepper <drepper@redhat.com>
10722 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
10724 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
10726 2003-03-07 Roland McGrath <roland@redhat.com>
10728 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
10729 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
10731 2003-03-04 Guido Guenther <agx@sigxcpu.org>
10733 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
10734 stubs, we have INLINE_SYSCALL.
10735 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
10738 2003-03-06 Roland McGrath <roland@redhat.com>
10740 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
10741 permanent extent and add a comment about testing its implicit teardown.
10743 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
10745 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
10747 2003-03-05 Ulrich Drepper <drepper@redhat.com>
10749 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
10750 reversed __builtin_expect expectation.
10752 2003-03-05 Roland McGrath <roland@redhat.com>
10754 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
10755 * libio/swscanf.c: Likewise.
10756 * libio/swprintf.c: Likewise.
10758 2003-03-04 Roland McGrath <roland@redhat.com>
10760 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
10761 (elf_machine_rela): Always use RESOLVE_MAP, needed for
10762 R_PPC64_JMP_SLOT as well as TLS cases.
10763 (BIT_INSERT): Move parenthesis where it ought to have been.
10764 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
10766 * posix/confstr.c (confstr): Correct STRING_LEN values for
10767 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
10768 break. Reported by Alexandre Julliard <julliard@winehq.com>.
10770 2003-03-04 Jakub Jelinek <jakub@redhat.com>
10772 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
10774 2003-03-04 Ulrich Drepper <drepper@redhat.com>
10776 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
10779 * po/sv.po: Update from translation team.
10781 2003-03-04 Andreas Jaeger <aj@suse.de>
10782 Ulrich Drepper <drepper@redhat.com>
10784 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
10786 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10788 * sysdeps/generic/dl-sysdep.h: Add double include protection.
10790 * po/tr.po: Update from translation team.
10792 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
10793 are holes between the segments. Only call mprotect to set
10794 proection to PROT_NONE if there are some.
10796 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
10799 * include/sched.h (__clone2): Use ... instead of adding all the
10802 2003-03-03 Roland McGrath <roland@redhat.com>
10804 * elf/dl-load.c (struct filebuf): Fix typo in last change.
10806 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
10807 PI_STATIC_AND_HIDDEN.
10809 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
10811 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
10813 * include/sched.h: Update clone2 prototype.
10815 2003-03-03 Andreas Jaeger <aj@suse.de>
10817 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
10818 (llrint): Use it to correct return type.
10820 (lround): Likewise.
10821 (llround): Likewise.
10823 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10825 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
10828 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
10829 if ccs parameter isn't valid. Reported by Andreas Schwab.
10831 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
10833 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
10834 for system call numbers > 255.
10835 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
10836 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
10837 INTERNAL_SYSCALL): Likewise.
10838 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
10839 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
10840 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
10841 INTERNAL_SYSCALL): Likewise.
10843 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
10845 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
10846 array if it is the initial dtv.
10848 2003-03-03 Ulrich Drepper <drepper@redhat.com>
10850 * po/es.po: Update from translation team.
10851 * po/fr.po: Likewise.
10852 * po/gl.po: Likewise.
10853 * po/sk.po: Likewise.
10854 * po/sv.po: Likewise.
10856 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
10857 * misc/sys/mman.h: Add prototype for remap_file_pages.
10858 * sysdeps/generic/remap_file_pages.c: New file.
10859 * misc/Makefile (routines): Add remap_file_pages.
10860 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
10862 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
10864 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10865 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
10866 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
10867 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
10868 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10869 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
10870 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
10871 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
10873 2003-03-03 Roland McGrath <roland@redhat.com>
10875 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
10876 * sysdeps/ia64/dl-machine.h: Likewise.
10877 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
10879 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
10881 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
10882 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
10883 * locale/Versions (libc: GLIBC_2.3): Move those to ...
10884 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
10885 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
10886 * Versions.def (libc): Add GLIBC_2.3.3 set.
10888 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
10889 * sysdeps/ia64/dl-machine.h: Update decl.
10891 2003-03-03 Andreas Jaeger <aj@suse.de>
10893 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
10895 2003-03-02 Roland McGrath <roland@redhat.com>
10897 * scripts/abilist.awk: Reject data items with apparent 0 size.
10899 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
10900 after foo.* as if it were a duplicate.
10902 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
10904 2003-03-02 Ulrich Drepper <drepper@redhat.com>
10906 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
10908 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
10909 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
10910 if not already defined. Use SYSDEP_GETRES to allow other files to
10911 provide alternative implementations.
10912 * sysdeps/unix/sysv/linux/clock_getres.c: New file
10913 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
10914 if not already defined. Use SYSDEP_GETTIME to allow other files to
10915 provide alternative implementations.
10916 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
10917 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
10918 if not already defined. Use SYSDEP_GETTIME to allow other files to
10919 provide alternative implementations.
10920 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
10921 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
10922 other files to provide alternative implementations. Rearrange
10923 tests for invalid parameters.
10924 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
10925 * sysdeps/unix/sysv/linux/sysconf.c: New file.
10926 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10927 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
10928 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
10929 _POSIX_MONOTONIC_CLOCK.
10931 2003-03-02 Roland McGrath <roland@redhat.com>
10933 * scripts/merge-abilist.awk: More checks for bogus input.
10934 Uniquify duplicate config names.
10936 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
10938 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
10939 from dl_reloc_overflow, make global.
10940 (__process_machine_rela): Update callers.
10941 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
10942 Add attribute_hidden to __process_machine_rela decl.
10943 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
10945 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
10948 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
10949 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
10950 (elf_machine_rela): Clean up.
10952 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
10954 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
10955 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
10956 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
10957 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
10958 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
10959 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
10960 new relocs for TLS.
10962 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
10963 macros out of [SHARED].
10964 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
10966 * elf/elf.h: Define R_PPC_* relocs for TLS support.
10967 Clean up R_PPC64_* macro definition comments.
10969 * configure.in: In "running configure fragment for" message,
10970 omit $srcdir from the name if we prepended it.
10971 * configure: Regenerated.
10973 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
10974 From Jakub Jelinek <jakub@redhat.com>.
10976 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
10977 which duplicated the O_DIRECT defn.
10979 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
10981 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
10984 2003-03-01 Andreas Schwab <schwab@suse.de>
10986 * resolv/Makefile (tests): Don't depend on
10987 $(objpfx)mtrace-tst-leaks when cross compiling.
10989 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
10990 __libc_stack_end through GOT since it is a global symbol.
10992 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
10994 * argp/argp.h: Fix a typo.
10995 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
10997 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
10999 2003-02-27 Pat Rankin <rankin@pactechdata.com>
11001 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
11003 (get_subexp): Likewise.
11005 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
11007 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
11009 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
11011 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
11013 2003-02-27 Roland McGrath <roland@redhat.com>
11015 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
11016 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
11017 repeat it and avoids the test for the common case.
11018 Clean up and fix calculations for TLS relocs.
11020 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
11021 * sysdeps/powerpc/dl-tls.h: ... here.
11022 (TLS_TP_OFFSET): New macro.
11024 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
11026 2003-02-27 Ulrich Drepper <drepper@redhat.com>
11028 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
11029 code generation changes in recent gcc.
11031 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
11033 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
11034 Rename argument to avoid symbol conflict.
11036 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
11037 [__USE_GNU] (O_DIRECT): New macro.
11039 2003-02-24 David Mosberger <davidm@hpl.hp.com>
11041 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
11044 2003-02-27 Ulrich Drepper <drepper@redhat.com>
11046 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
11047 initializer anymore now that res_thread_freeres is more careful.
11049 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
11050 except the PKTINFO. Reset interface in PKTINFO.
11051 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
11053 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
11055 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
11056 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
11058 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
11059 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
11060 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
11061 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
11063 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
11064 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
11066 2003-02-25 Andreas Jaeger <aj@suse.de>
11068 * manual/memory.texi (Malloc Tunable Parameters): Clarify
11069 behaviour of M_MMAP_THRESHOLD.
11071 2003-02-25 Roland McGrath <roland@redhat.com>
11073 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
11074 zero, inidicating _res was not initialized yet.
11076 2003-02-24 Ulrich Drepper <drepper@redhat.com>
11078 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
11081 2003-02-24 Roland McGrath <roland@redhat.com>
11083 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
11085 2003-02-23 Roland McGrath <roland@redhat.com>
11087 * sysdeps/posix/pause.c: New file.
11088 * sysdeps/unix/common/pause.c: File removed.
11090 2003-02-23 Ulrich Drepper <drepper@redhat.com>
11092 * sysdeps/generic/bits/confname.h: Remove #ifs.
11094 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
11095 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
11097 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
11100 2003-02-22 Ulrich Drepper <drepper@redhat.com>
11102 * sysdeps/generic/dl-sysdep.c: Avoid warning.
11104 2003-02-22 Roland McGrath <roland@redhat.com>
11106 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
11107 * resolv/Makefile (tests): Add tst-leaks.
11108 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
11109 (tst-leaks-ENV): New variable.
11110 ($(objpfx)mtrace-tst-leaks): New target.
11111 (tests): Depend on it.
11113 * include/libc-internal.h: Declare __libc_thread_freeres.
11115 * Makerules: Fix last change to use $($(subdir)-version) when set.
11117 * Makerules (install-lib-nosubdir): Depend on installed
11118 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
11119 regardless of the libfoo.so target's dependencies.
11121 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
11122 Use that in $(MAKE) calls.
11124 2003-02-22 Ulrich Drepper <drepper@redhat.com>
11126 * catgets/gencat.c (read_input_file): Collision between
11127 auto-assigned numbers and user-defined nubmers is not fatal.
11129 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
11130 * catgets/Makefile: Add rules to run test2.msg test.
11131 * catgets/test2.msg: New file.
11133 * catgets/gencat.c (main): Return 1 if messages have been printed.
11135 * iconv/iconv_prog.c (main): Unify messages.
11137 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
11138 when shifting retval.
11139 * stdlib/tst-strtod.c (main): Add strtold test case.
11140 Reported by Fred J. Tydeman <tydeman@tybor.com>.
11142 2003-02-21 Roland McGrath <roland@redhat.com>
11144 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
11145 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
11146 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
11148 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
11149 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
11150 (res_thread_freeres): New function, on __libc_thread_subfreeres and
11153 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
11154 * malloc/thread-freeres.c: New file.
11155 * malloc/Makefile (aux): Add it.
11156 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
11157 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
11158 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
11160 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
11161 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
11163 2003-02-21 Roland McGrath <roland@frob.com>
11165 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
11167 * iconvdata/Makefile (tests): Add bug-iconv3 only if
11168 [$(have-thread-library) = yes].
11170 2003-02-21 Ulrich Drepper <drepper@redhat.com>
11172 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
11174 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
11175 not chechk for errors (unless testing for 32bit variant).
11176 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
11177 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
11178 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
11180 2003-02-21 Jakub Jelinek <jakub@redhat.com>
11182 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
11183 Check for signed overflow, not unsigned.
11185 * sysdeps/sparc/sparc64/elf/configure.in: New file.
11186 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
11187 Use -fcall-used-g6, not -fcall-used-g7.
11189 2003-02-21 Andreas Jaeger <aj@suse.de>
11191 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
11194 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
11195 clear whole mxcsr but only exceptions.
11197 2003-02-21 Roland McGrath <roland@redhat.com>
11199 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
11200 for libfoo.so that need $(make-link) rules.
11202 2003-02-21 Roland McGrath <roland@frob.com>
11204 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
11205 to match existing struct stat layout in mig protocols.
11207 2003-02-20 Ulrich Drepper <drepper@redhat.com>
11209 * version.h (VERSION): Bump to 2.3.2.
11211 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
11212 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
11214 * sysdeps/generic/Dist: Add sysdep-cancel.h.
11215 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
11216 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
11217 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
11218 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
11219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
11221 * Makefile (distribute): Add include/stubs-prologue.h,
11222 include/gnu/stubs.h, scripts/merge-abilist.awk, and
11223 scripts/extract-abilist.awk.
11225 2003-02-20 Roland McGrath <roland@redhat.com>
11227 * math/Makefile (distribute): Don't add generated files.
11229 2003-02-20 Ulrich Drepper <drepper@redhat.com>
11231 * math/Makefile: Rearrange variable definitions slightly to get
11232 definition in the right order.
11234 2003-02-20 Roland McGrath <roland@redhat.com>
11236 * Makerules: Clean up conditional around include of tls.make.
11237 * Make-dist: Export generating=t to prevent using that.
11238 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
11240 2003-02-20 Ulrich Drepper <drepper@redhat.com>
11242 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
11243 around in search if port IPPORT_RESERVED/2 has been test.
11245 2003-02-20 Paolo Bonzini <bonzini@gnu.org>
11247 * posix/regcomp.c: Remove inclusions.
11248 * posix/regexec.c: Likewise.
11249 * posix/regex_internal.c: Likewise.
11250 * posix/regex_internal.h: Add inclusions here.
11251 * posix/regex.c: Only include sys/types.h before regex.h. Include
11252 regex_internal.h here. Include regex_internal.c before regcomp.c
11253 and regexec.c (might expose more opportunities to the C compiler).
11255 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
11257 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
11258 [!_LIBC] (__wcrtomb): New definition.
11259 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
11260 HAVE_LOCALE_H as well.
11262 2003-02-20 Ulrich Drepper <drepper@redhat.com>
11264 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
11265 patch to check for system call errors.
11267 2002-07-24 Philip Blundell <philb@gnu.org>
11269 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
11270 on unknown systems.
11272 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11274 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
11275 * sysdeps/unix/sysv/linux/kernel-features.h
11276 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
11277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
11279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
11280 interprocedure branches.
11281 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
11282 * sysdeps/powerpc/nofpu/Dist: ...here.
11283 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
11284 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
11285 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
11286 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
11287 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
11289 2003-02-18 Alan Modra <amodra@bigpond.net.au>
11291 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
11293 2003-02-20 Philip Blundell <philb@gnu.org>
11295 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
11296 missing arguments to INTERNAL_SYSCALL_ERROR_P and
11297 INTERNAL_SYSCALL_ERRNO.
11299 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11301 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
11302 for __ASSUME_32BITUIDS.
11304 2003-02-20 Andreas Schwab <schwab@suse.de>
11306 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
11307 POSIX_MADV_* constants.
11309 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11311 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
11312 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
11313 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
11314 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
11316 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
11318 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
11320 2003-02-16 Roland McGrath <roland@redhat.com>
11322 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
11324 2003-02-19 Ulrich Drepper <drepper@redhat.com>
11326 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
11327 decimal input digits.
11328 * stdlib/tst-strtod.c (main): Add test for strtof bug.
11330 2003-02-18 Ulrich Drepper <drepper@redhat.com>
11332 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
11333 invalid file descriptors and missing access permissions.
11335 2003-02-17 Ulrich Drepper <drepper@redhat.com>
11337 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
11340 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
11341 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
11342 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
11343 and LOGIN_NAME_MAX.
11345 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
11346 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11348 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
11349 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
11350 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
11351 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11352 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
11354 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11356 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
11357 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
11358 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
11359 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
11360 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
11361 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
11363 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
11364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
11365 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
11366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
11368 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
11369 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
11370 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
11371 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
11373 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
11375 * nss/getent.c (print_hosts): Print all IP addresses of one host.
11377 2003-02-15 Roland McGrath <roland@frob.com>
11379 * sysdeps/mach/hurd/tls.h: New file.
11380 * sysdeps/mach/hurd/i386/tls.h: New file.
11382 * mach/errsystems.awk: Include <errno.h> in generated output.
11384 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
11385 use target mach-before-compile instead of generated.
11386 (mach-before-compile): New target.
11387 * Makerules: Disable use of tls.make if $(generating) is set.
11388 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
11389 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
11390 mach-shortcuts.h so mach/ generation happens before hurd/.
11392 2003-02-14 Ulrich Drepper <drepper@redhat.com>
11394 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
11395 of demorm correctly if low word is zero.
11396 Reported by Fred J. Tydeman <tydeman@tybor.com>.
11397 * math/libm-test.inc (nextafter_test): New test, but disabled due
11400 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
11401 counter and only call __exit_thread if this is not the last thread.
11403 2003-02-13 Jakub Jelinek <jakub@redhat.com>
11405 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
11406 subtracting map->l_tls_offset.
11408 2003-02-12 Ulrich Drepper <drepper@redhat.com>
11410 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
11411 _CS_GNU_LIBPTHREAD_VERSION.
11412 * posix/conststr.c: Handle these new values.
11413 * posix/getconf.c: Likewise.
11415 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
11416 masking of version index.
11417 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
11419 2003-02-11 Ulrich Drepper <drepper@redhat.com>
11421 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
11422 correctly. Reported by Thorsten Kukuk.
11424 2003-02-10 Ulrich Drepper <drepper@redhat.com>
11426 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
11427 _BSD_SOURCE to compiler.
11428 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
11429 Patches by Alan Modra.
11431 2003-02-08 Ulrich Drepper <drepper@redhat.com>
11433 * io/ftwtest.c: Get current working directory before and after the
11434 nftw call and make sure they match.
11436 2003-02-08 Jim Meyering <jim@meyering.net>
11438 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
11439 the current directory, not just when DIR contains a slash.
11440 Reported by Manoj Srivastava.
11442 2003-02-07 Jim Meyering <jim@meyering.net>
11444 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
11445 Include autoconf-recommended block of dirent/NAMELEN-related
11446 definitions and includes. Use NAMELEN throughout, rather than
11448 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
11449 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
11450 (stpcpy): Declare, if necessary.
11451 (mempcpy): Define, if necessary.
11452 [!_LIBC] (__stpcpy, __mempcpy): Define.
11453 [!_LIBC] (LXSTAT, XSTAT): Define.
11454 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
11455 (find_object): Don't use c99-style struct initializer.
11456 Tweak wording in a couple comments.
11458 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11460 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
11462 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
11463 after the trapa instruction.
11464 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
11466 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
11467 (NEED_SYSCALL_INST_PAD): Define.
11468 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
11469 avoid to use definition for the kernel.
11470 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11471 Save and restore the frame pointer.
11472 (SYSCALL_INST_PAD): Define.
11473 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
11474 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
11475 after trapa instruction.
11476 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
11477 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
11479 2003-02-07 Jakub Jelinek <jakub@redhat.com>
11481 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
11482 so that it can have aliases.
11483 * inet/herrno.c (h_errno): Put it into .bss not .data section.
11485 2003-02-07 Ulrich Drepper <drepper@redhat.com>
11487 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
11488 (profile_fixup): Likewise.
11489 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
11491 2002-11-24 Robert Love <rml@tech9.net>
11493 * posix/sched.h: Second parameter of sched_setaffinity and
11494 sched_getaffinity is `unsigned int', not `unsigned long'.
11495 * sysdeps/generic/sched_setaffinity.c: Likewise.
11496 * sysdeps/generic/sched_getaffinity.c: Likewise.
11498 2003-02-05 Ulrich Drepper <drepper@redhat.com>
11500 * debug/catchsegv.sh: Fix typo in error messsage.
11501 Reported by John Levon <levon@movementarian.org>.
11503 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
11504 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
11505 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
11506 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
11508 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11509 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11511 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
11512 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
11514 2003-02-05 Jim Meyering <jim@meyering.net>
11516 Fix a heap-corrupting bug.
11517 * io/ftw.c: Include <limits.h>.
11518 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
11519 (process_entry): Allocate enough space to hold the resulting
11520 file name. Don't presume that 2*dirbufsize is enough.
11521 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
11522 it is guaranteed to be defined.
11524 2003-02-04 Ulrich Drepper <drepper@redhat.com>
11526 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
11527 * iconvdata/bug-iconv3.c: New file.
11529 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
11531 * sysdeps/unix/sysv/linux/s390/system.c: New file.
11533 2003-02-03 Jakub Jelinek <jakub@redhat.com>
11535 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
11537 * config.h.in (BROKEN_SPARC_WDISP22): Add.
11539 2003-02-03 Ulrich Drepper <drepper@redhat.com>
11541 * sysdeps/i386/i686/memmove.S: New file.
11543 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
11545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
11546 Include kernel-features.h
11547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
11548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
11549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
11550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
11552 2003-02-02 Jakub Jelinek <jakub@redhat.com>
11554 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
11556 2003-01-25 Jim Meyering <jim@meyering.net>
11558 * io/ftw.c (object_compare): Compare inode numbers before device
11559 numbers, since the former are much more likely to differ.
11561 2003-02-01 Ulrich Drepper <drepper@redhat.com>
11563 * time/tzfile.c (__tzfile_compute): Change return value type to
11564 void. Adjust return statements.
11565 * include/time.h (__tzfile_compute): Adjust prototype.
11567 2003-02-01 Jim Meyering <jim@meyering.net>
11569 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
11572 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
11574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
11575 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
11577 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
11579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11580 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
11581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11582 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
11583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11584 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
11585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11586 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
11588 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
11590 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
11591 back to 2.4.19 for powerpc64.
11592 * sysdeps/unix/sysv/linux/kernel-features.h
11593 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
11594 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
11596 2003-02-01 Ulrich Drepper <drepper@redhat.com>
11598 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
11599 platforms with strange alignment requirements on wchar_t.
11601 2003-01-31 Andreas Schwab <schwab@suse.de>
11603 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
11604 aliases, already added by make-syscalls.sh.
11605 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
11606 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
11607 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
11608 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
11609 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
11610 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
11611 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
11612 * sysdeps/unix/inet/syscalls.list: Likewise.
11613 * sysdeps/unix/syscalls.list: Likewise.
11615 2003-01-31 Andreas Schwab <schwab@suse.de>
11617 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
11620 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11622 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
11623 not l to load tls from stack.
11625 2003-01-30 Roland McGrath <roland@redhat.com>
11627 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
11628 null argument before all else.
11629 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
11631 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11633 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
11634 Move to RESOLVE protected part of the header.
11635 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
11638 2003-01-30 Ulrich Drepper <drepper@redhat.com>
11640 * stdio-common/Makefile (tests): Add bug15.
11641 (bug15-ENV): Define.
11642 * stdio-common/bug15.c: New file.
11644 2002-10-07 Wolfram Gloger <wg@malloc.de>
11646 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
11647 to foreign sbrk()'s if arena is contiguous. Bug report from
11648 Bruno Haible <bruno@clisp.org>.
11650 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11652 * sysdeps/s390/libc-tls.c: Include stdlib.h.
11654 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11656 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
11659 2003-01-30 Ulrich Drepper <drepper@redhat.com>
11661 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
11663 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
11665 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
11667 2003-01-30 Jakub Jelinek <jakub@redhat.com>
11669 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
11670 (allocate_static_tls): ...here. Add __attribute_noinline__.
11671 Don't return on failure.
11672 (_dl_reloc_bad_type): Add __attribute_noinline__.
11673 * elf/do-rel.h (elf_dynamic_do_rel): Add
11674 __attribute__((always_inline)).
11675 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
11676 elf_machine_rel_relative, elf_machine_rela_relative,
11677 elf_machine_lazy_rel): Add prototypes with
11678 __attribute__((always_inline)).
11680 2003-01-29 David Mosberger <davidm@hpl.hp.com>
11682 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
11684 2003-01-29 Roland McGrath <roland@redhat.com>
11686 * configure.in: Barf if configured in $srcdir.
11688 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
11690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
11691 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
11693 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
11695 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
11696 clone parameters to match the order used on ia32.
11697 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
11699 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
11701 * elf/elf.h: Add new s390 relocs.
11702 * elf/tls-macros.h: Add s390 versions.
11703 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
11704 * sysdeps/s390/dl-tls.h: New file.
11705 * sysdeps/s390/libc-tls.c: New file.
11706 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
11707 relocs for class PLT.
11708 (elf_machine_rela): Handle TLS relocs.
11709 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11710 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
11711 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
11712 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
11713 CLONE_CHILD_*TID flags.
11714 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
11715 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
11717 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
11718 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11719 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
11720 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
11721 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
11723 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
11724 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
11725 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
11727 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
11728 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
11729 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
11730 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
11733 2003-01-28 Ulrich Drepper <drepper@redhat.com>
11735 * sysdeps/unix/common/pause.c (do_pause): New function. Split
11736 from __libc_pause. Implement using sigsuspend.
11737 (__libc_pause): Call do_pause to do the real work.
11739 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
11740 sig_or_mask parameter is is_sig != 0.
11742 2003-01-21 Philip Blundell <philb@gnu.org>
11744 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
11746 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
11748 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
11750 2003-01-27 Ulrich Drepper <drepper@redhat.com>
11752 * stdio-common/bug14.c: Use official name for the locale.
11754 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
11755 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
11756 instead of __libc_cleanup_region_end.
11758 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
11759 as first parameter to __libc_cleanup_region_start.
11761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
11762 (__fe_nomask_env): Use __prctl not prctl.
11763 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
11766 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
11768 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
11770 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
11771 wrap-around in test.
11773 2003-01-26 Andreas Schwab <schwab@suse.de>
11775 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
11776 compatibility symbols. Remove INTDEF for __divdi3.
11777 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
11778 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
11779 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
11781 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
11783 2003-01-24 Jakub Jelinek <jakub@redhat.com>
11785 * elf/tls-macros.h: Add SPARC 32-bit definitions.
11786 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
11787 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
11788 for the first half of the header. Include tls.h.
11789 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
11791 (elf_machine_rela): Handle TLS relocs.
11792 * sysdeps/sparc/dl-tls.h: New file.
11794 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
11797 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
11798 * sysdeps/sparc/sparc32/memchr.S: Likewise.
11799 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
11800 * sysdeps/sparc/sparc32/strcat.S: Likewise.
11801 * sysdeps/sparc/sparc32/strchr.S: Likewise.
11802 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
11803 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
11804 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
11805 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11806 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11807 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
11808 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
11809 * sysdeps/sparc/sparc64/strcat.S: Likewise.
11810 * sysdeps/sparc/sparc64/strchr.S: Likewise.
11811 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
11812 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
11813 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
11814 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
11815 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11816 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11818 2003-01-24 Andreas Schwab <schwab@suse.de>
11820 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
11821 elements, and process them backwards.
11822 * elf/Makefile ($(objpfx)tst-array4): New target.
11823 ($(objpfx)tst-array4.out): Likewise.
11824 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
11825 * elf/tst-array4.c: New file.
11826 * elf/tst-array4.exp: Likewise.
11828 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
11832 2003-01-27 Guido Guenther <agx@sigxcpu.org>
11834 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
11835 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
11836 cancellation handling and handle both __NR_pread64 and __NR_pread.
11837 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11838 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
11839 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
11840 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11841 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
11842 case, use register names consistently.
11844 2003-01-27 Wolfram Gloger <wg@malloc.de>
11846 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
11847 pointer, not of the computed chunk. Bug report from Carlos
11848 O'Donell <carlos@baldric.uwo.ca>.
11850 2003-01-25 Andreas Schwab <schwab@suse.de>
11852 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
11853 addressing to save GOT entries.
11855 2003-01-21 Jakub Jelinek <jakub@redhat.com>
11857 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
11858 inline_syscall1, inline_syscall2, inline_syscall3,
11859 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
11860 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
11861 __attribute__((unused)) to ChEcK.
11863 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11865 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
11866 Fix inline assembler constraints.
11867 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
11870 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
11873 2003-01-20 Segher Boessenkool <segher@koffie.nl>
11875 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
11876 compute the cosine, not the sine, even if x > 0.8.
11878 2003-01-19 Ulrich Drepper <drepper@redhat.com>
11880 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
11881 _nss_nis_setspent. Work around the different prototypes.
11882 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
11883 internal_nis_endrpcent.
11884 (internal_nis_endrpcent): Change return type to void. Change callers.
11885 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
11886 _nss_nis_setpwent. Work around the different prototypes.
11887 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
11888 of the function to...
11889 (internal_nis_endprotoent): ... here. New function.
11890 (internal_nis_setprotoent): Use internal_nis_endprotoent.
11891 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
11892 _nss_nis_setnetent. Work around the different prototypes.
11893 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
11894 of the function to...
11895 (internal_nis_endnetgrent): ... here. New function.
11896 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
11898 2003-01-19 Jim Meyering <jim@meyering.net>
11900 * time/strftime.c: (widen): Merge nearly-identical definitions.
11901 (nl_get_alt_digit) [! defined my_strftime]: Define.
11902 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
11903 _nl_get_alt_digit and _nl_get_walt_digit.
11905 2003-01-19 Ulrich Drepper <drepper@redhat.com>
11907 * time/strftime.c (my_strftime): Handle very large width
11908 specifications for numeric values correctly. Improve checks for
11910 * time/Makefile (tests): Add tst-strftime.
11911 * time/tst-strftime.c: New file.
11913 2003-01-18 Ulrich Drepper <drepper@redhat.com>
11915 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
11916 _nss_nis_sethostent. Work around the different prototypes.
11917 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
11918 _nss_nis_setgrent. Work around the different prototypes.
11919 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
11920 function. Split out from _nss_nis_endetherent.
11921 (internal_nis_setetherent): Use internal_nis_endetherent instead of
11922 duplicating the code.
11923 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
11924 of _nss_nis_setaliasent.
11925 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
11926 internal_nis_endservent code, don't duplicate it.
11928 * inet/rexec.c (rexec_af): Protect socket operations with
11929 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
11930 * inet/rcmd.c (rcmd_af): Likewise.
11932 2003-01-17 Roland McGrath <roland@redhat.com>
11934 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
11935 Add test of value 0.80190127184058835.
11937 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
11939 2003-01-17 Richard Henderson <rth@redhat.com>
11941 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
11942 relocs for class PLT.
11943 * sysdeps/alpha/libc-tls.c: New file.
11944 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
11945 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
11947 2003-01-17 Jakub Jelinek <jakub@redhat.com>
11949 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
11950 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
11951 on _dl_static_lock.
11953 2003-01-17 Andreas Jaeger <aj@suse.de>
11955 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
11957 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
11959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
11960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
11961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
11962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
11963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
11964 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
11965 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
11968 2003-01-16 Ulrich Drepper <drepper@redhat.com>
11970 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
11971 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
11974 * sysdeps/generic/sysconf.c: Unconditionally implement
11975 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
11976 * sysdeps/posix/sysconf.c: Likewise.
11978 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11980 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
11981 set *err to the returned error, not to REG_ESPACE unconditionally.
11982 (build_word_op): Likewise.
11983 * posix/Makefile (tests): Add bug-regex16.
11984 * posix/bug-regex16.c: New test.
11986 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11988 * elf/dl-load.c (_dl_map_object_from_fd): Use
11989 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
11990 been already initialized.
11992 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
11994 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
11996 2003-01-16 Jakub Jelinek <jakub@redhat.com>
11998 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
11999 allocated too. Reported by Al Viro <aviro@redhat.com>.
12001 2003-01-16 Roland McGrath <roland@redhat.com>
12003 Tweak merged .abilist file format to merge duplicate symbols in
12004 different sets into multi-version stanzas with new "| SET regexp..."
12005 header continuation lines.
12006 * scripts/merge-abilist.awk: Rewritten for new format.
12007 * scripts/extract-abilist.awk: Likewise.
12009 2003-01-15 Ulrich Drepper <drepper@redhat.com>
12011 * nscd/connections.c (nscd_run): Remove bogus return which isn't
12012 necessary with gcc 3.2+.
12013 (nscd_init): Don't use error() to print message, use dbg_log.
12015 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
12016 expected size into state.
12017 (UNPACK_BYTES): Do the reverse.
12018 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
12019 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
12020 Reported by Al Viro <aviro@redhat.com>.
12022 * stdio-common/Makefile (tests): Add bug14.
12023 * stdio-common/bug14.c: New file.
12025 * stdio-common/vfscanf.c: When recognizing multibyte characters in
12026 string reset the byte counter after mbrtowc reported it is not a
12027 partial character. Reported by Al Viro <aviro@redhat.com>.
12029 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
12031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
12032 sysdep-cancel.h, not sysdep.h.
12034 2003-01-15 Ulrich Drepper <drepper@redhat.com>
12036 * nscd/connections.c (nscd_run): Protect accept call with
12037 TEMP_FAILURE_RETRY.
12039 2003-01-15 Andreas Schwab <schwab@suse.de>
12041 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
12042 (common-generated): Add s-proto-bp.d.
12043 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
12045 * sysdeps/unix/s-proto-bp.S: New file.
12046 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
12047 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
12048 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
12050 2003-01-15 Roland McGrath <roland@redhat.com>
12052 * Makerules: Use -include for tls.make, suppresses warning.
12053 Move gen-as-const-headers rules up so before-compile is set in time.
12054 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
12056 2003-01-15 Ulrich Drepper <drepper@redhat.com>
12058 * nscd/nscd.c (main): Make code to close all file descriptors
12059 faster and more robust.
12061 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
12062 request with one writev call. Protect all read calls with
12063 TEMP_FAILURE_RETRY.
12064 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12065 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12067 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
12068 Protect writev calls with TEMP_FAILURE_RETRY.
12069 * nscd/grpcache.c: Likewise.
12070 * nscd/pwdcache.c: Likewise.
12072 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
12073 IPv6 address in debug output.
12075 2003-01-14 Roland McGrath <roland@redhat.com>
12077 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
12078 $(objpfx) directories, and get rid of vpath directives. The previous
12079 arrangement resulted in files being written to the source directories
12080 when run in a clean build. Find all .abilist files in $(..)abilist/.
12081 (update-abi-%): Likewise.
12082 (generated): Don't add .symlist files, they'll be intermediates.
12084 * sysdeps/generic/init-first.c: Add a comment.
12086 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
12088 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
12089 #includes and expressions.
12091 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
12092 config list when it already contains cpu-.*-os.* without / part.
12094 * Makerules (sed-remove-dotdot): New variable.
12095 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
12096 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
12097 (check-abi-config): New variable, append /tls or /notls to the tuple.
12098 (check-abi-%): Use that for -v config value.
12099 Find .abilist files in abilist/libfoo.abilist, not in subdir.
12100 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
12102 2003-01-14 Ulrich Drepper <drepper@redhat.com>
12104 * manual/install.texi: Correct description of header preparation for
12105 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
12107 2003-01-14 Guido Guenther <agx@sigxcpu.org>
12109 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
12110 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
12111 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
12113 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
12115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12116 (INTERNAL_SYSCALL): Make use of ERR parameter.
12117 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
12118 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
12119 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
12120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
12122 2003-01-14 Ulrich Drepper <drepper@redhat.com>
12124 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
12126 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
12128 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
12129 Fix entry for bit 31.
12131 * iconvdata/Makefile: Add rules to build IBM866NAV.
12132 * iconvdata/ibm866nav.c: New file.
12133 * iconvdata/tst-tables.sh: Add IBM866NAV.
12134 * iconvdata/gconv-modules: Add entries for IBM866NAV.
12136 2003-01-13 Ulrich Drepper <drepper@redhat.com>
12138 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
12139 to test void* parameters.
12141 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
12142 source pointer before dereferencing.
12143 (__STRING_SMALLL_GET32): Likewise.
12144 (__memset_gc): Add missing parenthesis around macro arguments.
12145 Patch by Denis Zaitsev <zzz@cd-club.ru>.
12147 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
12148 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
12150 2003-01-14 Jakub Jelinek <jakub@redhat.com>
12152 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
12155 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
12157 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
12158 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
12160 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
12162 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
12164 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
12166 (PSEUDO): ... to here.
12167 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
12169 (PSEUDO): ... to here.
12171 2003-01-13 Ulrich Drepper <drepper@redhat.com>
12173 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
12174 dirent64 instead of struct dirent for dirent. Call readdir64
12175 instead of readdir.
12177 * locale/programs/locfile.c (siblings_uncached): Use struct
12178 dirent64 instead of struct dirent for other_dentry. Call
12179 readdir64 instead of readdir.
12181 * elf/ldconfig.c (direntry): Change type to struct dirent64.
12182 (search_dir): Use readdir64 instead of readdir.
12183 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
12185 2003-01-12 Roland McGrath <roland@redhat.com>
12187 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
12188 not strtol. The former is usable in ld.so, the latter not.
12190 * include/fcntl.h: Declare __libc_creat.
12192 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
12193 libhurduser-link.so-no-z-defs): New variables.
12195 * malloc/malloc.c: Revert last change.
12196 * malloc/malloc.h (_int_*): Move these decls to ...
12197 * include/malloc.h: ... here. Add attribute_hidden.
12198 (_int_valloc): Declare it too.
12200 2003-01-12 Ulrich Drepper <drepper@redhat.com>
12202 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
12203 search for removed searchlist. Reported by Roland McGrath.
12205 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
12206 given as start file.
12208 * io/ftw.c (ftw_startup): Use correct name in check for symlink
12209 without existing target. Patch by Jim Meyering.
12211 * Makerules (build-shlib-helper): Don't use -z defs linker option
12212 if no-z-defs is defined either.
12214 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
12216 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
12219 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
12221 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
12222 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12224 2003-01-12 Ulrich Drepper <drepper@redhat.com>
12226 * io/ftwtest-sh: Add test case for relative path with /. at the end.
12228 2003-01-12 Jim Meyering <jim@meyering.net>
12230 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
12231 use the basename if we've already chdir'd into its parent directory.
12233 2003-01-12 Ulrich Drepper <drepper@redhat.com>
12235 * io/ftw.c (process_entry): Use relative path when using chdir()
12236 to change directory after call to ftw_dir.
12237 * io/ftwtest-sh: Add test for relative path argument to nftw()
12238 with FTW_CHDIR option.
12240 2003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12242 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
12243 Define for powerpc.
12244 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
12246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12247 (INTERNAL_SYSCALL): Make use of ERR parameter.
12248 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
12249 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
12250 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
12251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
12253 2003-01-09 Richard Henderson <rth@redhat.com>
12255 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
12256 DTPREL64 and TPREL64 without loadbase applied.
12258 2003-01-09 Richard Henderson <rth@redhat.com>
12260 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
12263 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
12264 * sysdeps/unix/alpha/sysdep.h: ... here.
12265 (PSEUDO_LOADGP): Remove.
12266 (PSEUDO_PROLOGUE): Load GP in non-pic case.
12267 (SYSCALL_ERROR_LABEL): New.
12268 (PSEUDO): Use it in error branch.
12269 (PSEUDO_END): Add $syscall_error label.
12271 2003-01-12 Andreas Jaeger <aj@suse.de>
12273 * math/bits/mathcalls.h: Round is a const function.
12275 2003-01-11 Jim Meyering <jim@meyering.net>
12277 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
12278 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
12279 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
12280 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
12281 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
12282 [!_LIBC] (internal_function, dirent64, MAX): Define.
12283 (__set_errno): Define if not already defined.
12284 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
12285 the basename, not the entire file name.
12286 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
12287 the basename, not the entire file name.
12289 2003-01-12 Ulrich Drepper <drepper@redhat.com>
12291 * string/tester.c (test_strcpy): Disable last added strcpy until
12294 2003-01-11 Philip Blundell <philb@gnu.org>
12296 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
12298 2003-01-11 Andreas Schwab <schwab@suse.de>
12300 * Makerules: Add vpath for %.dynsym and %.so so that the
12301 implicit rule chaining for check-abi works.
12303 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12305 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
12308 2003-01-11 Jakub Jelinek <jakub@redhat.com>
12310 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
12311 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
12313 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
12314 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
12315 Ensure libc.so in DT_NEEDED.
12316 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
12317 CHECK_STATIC_TLS before l_tls_offset use.
12318 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
12320 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12321 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
12322 Allocate TLS_PRE_TCB_SIZE bytes below result.
12323 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
12324 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
12325 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
12326 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
12327 bytes below result and add tcb_offset to memsz.
12328 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
12329 * sysdeps/ia64/dl-machine.h: Include tls.h.
12330 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
12332 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
12333 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
12334 * sysdeps/ia64/libc-tls.c: New file.
12336 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
12338 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
12339 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
12340 Fix type. Move definition out of #if.
12341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
12342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
12343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
12344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
12345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
12346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
12348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
12349 ftruncate64, pread64, pwrite64, truncate64 entries.
12350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12351 (INLINE_SYSCALL): New version that supports function call like
12352 syscalls. Add __builtin_expect.
12353 (LOADARGS_n): Add argument size safety checks.
12354 (INTERNAL_SYSCALL): New Macro.
12355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
12356 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
12357 redefinition of elf_fpreg_t and elf_fpregset_t.
12359 2003-01-12 Ulrich Drepper <drepper@redhat.com>
12361 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
12362 simplify test for unloading. If loader of a DSO is unloaded do not
12363 use its scope anymore. Fall back to own scope and adjust opencounts.
12364 Fix several comments.
12365 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
12366 the l_searchlist, not only for l_initfini.
12368 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
12369 dependencies if objects cannot be removed. Remove object with the
12370 definition as not unloadable if necessary.
12372 * elf/reldep6.c: Create relocation dependency before closing the first
12375 2003-01-10 Guido Günther <agx@sigxcpu.org>
12377 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
12378 * sysdeps/unix/mips/brk.S: Likewise.
12379 * sysdeps/unix/mips/pipe.S: Likewise.
12381 2003-01-10 Andreas Schwab <schwab@suse.de>
12383 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
12385 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
12386 are known to have the vfork syscall.
12388 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
12390 * sysdeps/unix/sysv/linux/kernel-features.h
12391 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
12392 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
12393 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
12395 2003-01-09 Jakub Jelinek <jakub@redhat.com>
12397 * elf/Makefile: Add rules to build and run reldep9 test.
12398 * elf/reldep9.c: New file.
12399 * elf/reldep9mod1.c: New file.
12400 * elf/reldep9mod2.c: New file.
12401 * elf/reldep9mod3.c: New file.
12403 2003-01-09 Jakub Jelinek <jakub@redhat.com>
12405 * elf/Makefile: Add rules to build and run nodelete2 test.
12406 * elf/nodelete2.c: New file.
12407 * elf/nodel2mod1.c: New file.
12408 * elf/nodel2mod2.c: New file.
12409 * elf/nodel2mod3.c: New file.
12411 2003-01-09 Jakub Jelinek <jakub@redhat.com>
12413 * posix/test-vfork.c (noop): Add __attribute_noinline__.
12414 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
12415 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
12417 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
12418 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
12419 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
12420 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
12421 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
12423 2003-01-09 Andreas Schwab <schwab@suse.de>
12425 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
12427 2003-01-08 Ulrich Drepper <drepper@redhat.com>
12429 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
12430 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
12432 (INTERNAL_SYSCALL_DECL): Define.
12434 2003-01-06 Jakub Jelinek <jakub@redhat.com>
12436 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
12437 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
12439 (INTERNAL_SYSCALL_DECL): Define.
12440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
12441 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12442 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12443 (INLINE_SYSCALL): Adjust.
12444 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12445 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12446 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
12447 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12448 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
12449 add err argument to INTERNAL_SYSCALL* macros.
12450 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
12451 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
12452 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
12453 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
12455 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
12456 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
12457 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
12459 2003-01-07 Ulrich Drepper <drepper@redhat.com>
12461 Unify symbols in user namespace exported by libc.so and libc.a.
12462 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
12463 argp_fmtstream_free, and argp_fmtstream_printf.
12464 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
12465 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
12466 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
12467 argp_fmtstream_point.
12468 * gmon/gmon.c: Don't define write_profiling.
12469 * libio/genops.c: Don't define _cleanup.
12471 * intl/explodename.c (_nl_find_language.c): Mark as static.
12472 * intl/loadinfo.h: Remove _nl_find_language prototype.
12474 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
12475 * libio/libioP.h: Remove declaration.
12477 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
12478 * libio/libioP.h: Remove declaration.
12480 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
12481 * sysdeps/generic/framestate.c: Define STATIC before including
12484 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
12486 2003-01-06 Philip Blundell <philb@gnu.org>
12488 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
12489 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
12491 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
12493 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
12494 (SYSCALL_ERROR): New.
12495 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
12497 (INTERNAL_SYSCALL): Define.
12498 (INLINE_SYSCALL): Use it.
12499 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
12500 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
12501 SYSCALL_ERROR in place of __syscall_error.
12503 2003-01-07 Jakub Jelinek <jakub@redhat.com>
12505 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
12506 __bswap_32, __bswap_64): Put x into temporary variable
12508 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
12509 (inline) functions.
12510 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
12511 __bswap_32, __bswap_64): Put x into temporary variable
12513 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
12514 (inline) functions.
12515 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
12518 2003-01-07 Jakub Jelinek <jakub@redhat.com>
12520 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
12523 2003-01-07 Jakub Jelinek <jakub@redhat.com>
12525 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
12526 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
12528 2003-01-07 Ulrich Drepper <drepper@redhat.com>
12530 * math/libm-test.inc (significand_test): New function.
12533 2003-01-06 Roland McGrath <roland@redhat.com>
12535 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
12537 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
12538 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
12539 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
12541 * string/tester.c (test_strcpy): Add test with `void *' arguments.
12543 2003-01-06 Ulrich Drepper <drepper@redhat.com>
12545 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
12546 return significand and not the exponent.
12547 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12549 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
12550 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
12552 * malloc/malloc.c: Mark all _int_* functions as static.
12554 2003-01-06 Jakub Jelinek <jakub@redhat.com>
12556 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
12557 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
12559 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
12561 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12563 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
12564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
12566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
12567 ftruncate64, truncate64, pread64 and pwrite64 entries.
12568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12569 (INLINE_SYSCALL): Add __builtin_expect.
12570 (LOADARGS_n): Add argument size safety checks.
12571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
12572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
12573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
12574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
12575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
12576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
12578 2003-01-06 Jakub Jelinek <jakub@redhat.com>
12580 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
12581 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
12582 (LIBC_CANCEL_HANDLED): Add.
12584 * sysdeps/unix/sysv/linux/alpha/sysdep.h
12585 (inline_syscall_r0_constraint): Rename to...
12586 (inline_syscall_r0_out_constraint): ... this. Add =.
12587 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
12589 2003-01-06 Andreas Schwab <schwab@suse.de>
12591 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
12592 sure this is always inlined.
12593 (elf_machine_rela): Likewise.
12595 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
12597 2003-01-04 Roland McGrath <roland@redhat.com>
12599 * Makeconfig (+mkdep): Add -MP flag.
12600 Suggested by Art Haas <ahaas@airmail.net>.
12602 2003-01-05 Andreas Schwab <schwab@suse.de>
12604 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
12606 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12608 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
12609 SYSCALL_ERROR_HANDLER.
12610 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
12611 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
12612 Add support for cancellation handling.
12613 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
12614 SYSCALL_ERROR_HANDLER.
12615 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
12616 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
12617 Add support for cancellation handling.
12618 (SYSCALL_ERROR_HANDLER): Define PIC variants.
12620 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
12623 __syscall_pread64 and __syscall_pwrite64 cancelable.
12624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12625 (INTERNAL_SYSCALL): New macro.
12626 (LOADARGS_0, LOADARGS_1): Fix.
12628 2003-01-05 Ulrich Drepper <drepper@redhat.com>
12630 * Makerules (build-shlip-helper): Unless told otherwise, add
12631 -Wl,-z,defs to linker command line.
12632 * rt/Makefile (librt.so): Link with ld.so.
12633 * dlfcn/Makefile (libdl.so): Likewise.
12635 2003-01-05 Jakub Jelinek <jakub@redhat.com>
12637 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
12638 cancellation handling.
12639 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
12640 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
12642 2003-01-04 Ulrich Drepper <drepper@redhat.com>
12644 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
12645 order of parameters passed to kill.
12647 2003-01-04 Andreas Schwab <schwab@suse.de>
12649 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
12651 2003-01-03 Paul Eggert <eggert@twinsun.com>
12653 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
12654 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
12655 when compiling Bison 1.875's `bitset bset = obstack_alloc
12656 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
12658 2003-01-04 Ulrich Drepper <drepper@redhat.com>
12660 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
12662 Correct reference counter in case SIGQUIT handler installation failed.
12664 2003-01-03 Ulrich Drepper <drepper@redhat.com>
12666 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
12667 Define using _Pragma(weak ...).
12669 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
12671 * resolv/res_libc.c: Provide declaration for __res_init_weak and
12672 reorder declarations.
12674 2003-01-03 Art Haas <ahaas@airmail.net>
12676 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
12677 initializer syntax to C99.
12678 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
12679 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
12680 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
12681 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
12682 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
12683 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
12684 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
12685 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
12686 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
12687 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
12688 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
12689 * localedata/tests-mbwc/dat_mblen.c: Likewise.
12690 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
12691 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
12692 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
12693 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
12694 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
12695 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
12696 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
12697 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
12698 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
12699 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
12700 * localedata/tests-mbwc/dat_towlower.c: Likewise.
12701 * localedata/tests-mbwc/dat_towupper.c: Likewise.
12702 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
12703 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
12704 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
12705 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
12706 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
12707 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
12708 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
12709 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
12710 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
12711 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
12712 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
12713 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
12714 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
12715 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
12716 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
12717 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
12718 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
12719 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
12720 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
12721 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
12722 * localedata/tests-mbwc/dat_wctob.c: Likewise.
12723 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
12724 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
12725 * localedata/tests-mbwc/dat_wctype.c: Likewise.
12726 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
12728 2003-01-03 Richard Henderson <rth@redhat.com>
12730 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
12731 (inline_syscall_r0_constraint): New.
12732 (inline_syscall[0-6]): Use them.
12734 2003-01-03 Jakub Jelinek <jakub@redhat.com>
12736 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
12737 Add rtld_hidden_proto.
12738 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
12739 (_dl_allocate_tls): Likewise. Remove INTDEF.
12741 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12743 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
12744 Morita <toshiyasu.morita@hsa.hitachi.com>.
12745 * sysdeps/sh/memcpy.S: Likewise.
12747 2003-01-02 Ulrich Drepper <drepper@redhat.com>
12749 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
12750 any, but unify the test.
12752 2003-01-02 Jakub Jelinek <jakub@redhat.com>
12754 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
12755 sigaction): Protect weak_alias and libc_hidden_weak with
12756 #ifndef LIBC_SIGACTION.
12757 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
12758 sigaction): Likewise.
12759 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
12760 sigaction): Likewise.
12761 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
12762 sigaction): Likewise.
12763 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
12764 sigaction): Likewise.
12765 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
12766 sigaction): Likewise.
12767 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
12768 sigaction): Likewise.
12769 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
12770 sigaction): Likewise. Remove SIGCANCEL handling here.
12771 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
12774 2003-01-02 Art Haas <ahaas@airmail.net>
12776 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
12778 2003-01-02 Ulrich Drepper <drepper@redhat.com>
12780 * posix/getconf.c: Update copyright year.
12781 * nss/getent.c: Likewise.
12782 * nscd/nscd_nischeck.c: Likewise.
12783 * iconv/iconvconfig.c: Likewise.
12784 * iconv/iconv_prog.c: Likewise.
12785 * elf/ldconfig.c: Likewise.
12786 * catgets/gencat.c: Likewise.
12787 * csu/version.c: Likewise.
12788 * elf/ldd.bash.in: Likewise.
12789 * elf/sprof.c (print_version): Likewise.
12790 * locale/programs/locale.c: Likewise.
12791 * locale/programs/localedef.c: Likewise.
12792 * nscd/nscd.c (print_version): Likewise.
12793 * debug/xtrace.sh: Likewise.
12794 * malloc/memusage.sh: Likewise.
12795 * malloc/mtrace.pl: Likewise.
12797 2003-01-01 Jakub Jelinek <jakub@redhat.com>
12799 * io/sys/stat.h: Include time.h with __need_timespec even if
12800 __USE_MISC is defined but __USE_XOPEN is not.
12802 2003-01-01 Andreas Jaeger <aj@suse.de>
12804 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
12805 type to avoid strict aliasing problem.
12806 (_nss_dns_gethostbyname2_r): Likewise.
12807 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
12808 (_nss_dns_getnetbyname_r): Likewise.
12809 * resolv/gethnamaddr.c (_gethtent): Likewise.
12810 (gethostbyname2): Likewise.
12812 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12814 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
12815 to avoid using the exported symbols. Define aliases with the
12816 original names separately.
12818 * include/time.h: Add libc_hidden_proto for __strftime_l.
12819 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
12820 * time/strftime.c: Always use libc_hidden_def if _LIBC.
12822 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
12823 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
12825 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
12828 * csu/Makefile (routines): Add dso_handle.
12829 * csu/dso_handle.c: New file.
12831 2002-12-31 Roland McGrath <roland@redhat.com>
12833 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
12834 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
12835 (S-CPPFLAGS): Add -DASSEMBLER here instead.
12836 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
12838 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12840 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
12843 2002-12-31 Andreas Jaeger <aj@suse.de>
12845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
12847 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
12848 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
12849 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
12851 * sysdeps/unix/sysv/linux/kernel_stat.h
12852 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
12854 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
12855 __unused[1-3] since they're needed by some platforms. Handle
12856 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
12858 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
12859 for structs stat and stat64.
12860 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
12861 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
12862 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
12863 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
12865 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
12867 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
12868 nsec resolution changes.
12869 (xstat64_conv): Likewise.
12870 (xstat32_conv): Likewise.
12872 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
12873 struct kernel_stat.
12875 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
12876 structs stat and stat64.
12878 * time/time.h (__timespec_defined): Define for __USE_MISC.
12880 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12882 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
12883 and __libc_current_sigrtmax.
12885 2002-12-31 Jakub Jelinek <jakub@redhat.com>
12887 * include/errno.h (__errno_location): Add prototype.
12888 Use libc_hidden_proto unconditionally.
12889 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
12891 * include/resolv.h (__res_state): Likewise.
12893 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
12894 * include/sys/socket.h (accept): Add libc_hidden_proto.
12895 * include/errno.h (__errno_location): Likewise.
12896 * include/netdb.h (__h_errno_location): Likewise.
12897 * include/resolv.h (__res_state): Likewise.
12898 * include/unistd.h (__lseek): Likewise.
12899 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
12900 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
12901 * sysdeps/generic/res-state.c (__res_state): Likewise.
12902 * sysdeps/generic/accept.c (accept): Likewise.
12903 * sysdeps/generic/lseek.c (__lseek): Likewise.
12904 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
12905 __libc_current_sigrtmax): Likewise.
12906 * sysdeps/mach/hurd/accept.c (accept): Likewise.
12907 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
12908 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
12909 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
12910 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
12911 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
12912 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
12913 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
12914 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
12916 (__GI_accept): New alias to accept.
12917 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
12918 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
12919 New alias to llseek.
12920 (__GI_accept): New alias to accept.
12921 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
12923 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
12925 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
12927 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
12928 strong_alias (name, __GI_name).
12929 * sysdeps/arm/bsd-_setjmp.S : Likewise.
12930 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
12931 * sysdeps/i386/bsd-_setjmp.S : Likewise.
12932 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
12933 * sysdeps/mips/bsd-_setjmp.S : Likewise.
12934 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
12935 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
12936 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
12937 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
12938 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
12939 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
12940 * sysdeps/sh/bsd-_setjmp.S : Likewise.
12941 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
12942 * sysdeps/unix/arm/fork.S : Likewise.
12943 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
12944 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
12945 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
12946 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
12947 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
12948 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
12949 * sysdeps/unix/i386/fork.S : Likewise.
12950 * sysdeps/unix/mips/fork.S : Likewise.
12951 * sysdeps/unix/sparc/fork.S : Likewise.
12952 * sysdeps/unix/sparc/vfork.S : Likewise.
12953 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
12954 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
12955 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
12956 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
12957 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
12958 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
12959 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
12960 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
12961 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
12962 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
12963 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
12964 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
12965 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
12966 * sysdeps/unix/fork.S : Likewise.
12967 * sysdeps/vax/bsd-_setjmp.S : Likewise.
12968 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
12970 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
12973 2002-12-31 Ulrich Drepper <drepper@redhat.com>
12975 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
12976 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
12977 * sysdeps/mach/hurd/fork.c: Likewise.
12978 * sysdeps/unix/sysv/aix/fork.c: Likewise.
12979 * sysdeps/unix/fork.S: Add __GI___fork alias.
12980 * sysdeps/unix/arm/fork.S: Likewise.
12981 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
12982 * sysdeps/unix/i386/fork.S: Likewise.
12983 * sysdeps/unix/mips/fork.S: Likewise.
12984 * sysdeps/unix/sparc/fork.S: Likewise.
12985 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
12986 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
12987 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
12988 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
12989 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
12990 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
12991 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
12992 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
12993 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
12994 * sysdeps/unix/sparc/vfork.S: Likewise.
12995 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
12996 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
12997 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
12998 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
12999 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
13000 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
13001 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
13002 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
13004 * include/time.h: Add libc_hidden_proto for __nanosleep.
13005 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
13006 * sysdeps/mach/nanosleep.c: Likewise.
13007 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
13008 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
13010 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
13011 _IO_list_unlock, and _IO_list_resetlock.
13012 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
13013 _IO_list_unlock, and _IO_list_resetlock.
13015 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
13016 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
13017 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
13018 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
13020 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
13021 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
13022 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
13023 __GI___longjmp alias.
13025 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
13026 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
13027 * sysdeps/arm/bsd-_setjmp.S: Likewise.
13028 * sysdeps/generic/bsd-_setjmp.c: Likewise.
13029 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
13030 * sysdeps/i386/bsd-_setjmp.S: Likewise.
13031 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
13032 * sysdeps/mips/bsd-_setjmp.S: Likewise.
13033 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
13034 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13035 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13036 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
13037 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
13038 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
13039 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
13040 * sysdeps/sh/bsd-_setjmp.S: Likewise.
13041 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
13042 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
13043 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
13044 * sysdeps/vax/bsd-_setjmp.S: Likewise.
13045 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
13047 2002-12-30 Ulrich Drepper <drepper@redhat.com>
13049 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
13051 2002-12-30 Roland McGrath <roland@redhat.com>
13053 * Rules (generated): Target removed.
13054 * mach/Makefile (generated): Define it here instead.
13056 * math/Makefile (generated): Add m_*l and m_*f variants too.
13058 2002-12-30 Ulrich Drepper <drepper@redhat.com>
13060 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
13061 the to-be-deleted objects right away instead of later separately.
13062 The latter fails because the scope data structures of the DSO
13063 might already be gone.
13065 * elf/Makefile: Add rules to build and run reldep8 test.
13066 * elf/reldep8.c: New file.
13067 * elf/reldep8mod1.c: New file.
13068 * elf/reldep8mod2.c: New file.
13069 * elf/reldep8mod3.c: New file.
13070 Contributed by Jakub Jelinek.
13072 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
13074 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
13075 checking of return value ENOSYS from getdents64.
13077 2002-12-28 Andreas Schwab <schwab@suse.de>
13079 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
13080 ($(common-objpfx)s-%.d): Generalized from
13081 $(common-objpfx)s-proto.d rule.
13082 (common-generated): Add s-proto-cancel.d.
13083 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
13084 cancellable syscalls.
13085 * sysdeps/unix/s-proto-cancel.S: New file.
13087 2002-12-29 Roland McGrath <roland@redhat.com>
13089 * resolv/res_libc.c: Move _res defn magic after res_init defn
13090 so _res macro is in effect for that code.
13092 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
13093 pattern for prepending $(..) so it doesn't affect $(foo).
13095 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
13097 2002-12-29 Jakub Jelinek <jakub@redhat.com>
13099 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
13102 2002-12-28 Ulrich Drepper <drepper@redhat.com>
13104 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
13106 2002-12-28 Andreas Jaeger <aj@suse.de>
13108 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
13110 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
13112 2002-12-27 Jakub Jelinek <jakub@redhat.com>
13114 * inet/herrno.c (__h_errno_location): Remove.
13115 * inet/Makefile (routines): Add herrno-loc.
13116 * resolv/res_libc.c (__res_state): Remove.
13117 * resolv/Makefile (routines): Add res-state.
13118 * sysdeps/generic/herrno-loc.c: New file.
13119 * sysdeps/generic/res-state.c: New file.
13121 2002-12-27 Jakub Jelinek <jakub@redhat.com>
13123 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
13124 Only define if USE_DL_SYSINFO is defined.
13126 2002-12-22 Jakub Jelinek <jakub@redhat.com>
13128 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
13129 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
13130 Define. Patch by Richard Henderson and Jes Sorensen.
13131 (PSEUDO): Remove unnecessary ;;.
13132 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
13133 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
13134 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
13135 if not initializing thread pointer.
13136 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
13137 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
13138 make it weak also if NONTLS_INIT_TP.
13139 * sysdeps/unix/common/pause.c: Handle cancellation.
13140 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
13141 (LOADSYSCALL): Remove.
13142 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
13143 (SYSCALL_ERROR_HANDLER): Use it.
13144 (PSEUDO): Don't jump around error handler.
13145 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
13146 jump around error handler.
13147 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
13148 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
13149 to __syscall_error_handler on failure.
13150 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
13151 (LOADSYSCALL): Remove.
13152 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
13153 (SYSCALL_ERROR_HANDLER): Use it.
13154 (PSEUDO): Don't jump around error handler.
13155 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
13156 jump around error handler.
13157 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
13158 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
13159 to __syscall_error_handler on failure.
13161 2002-12-27 Roland McGrath <roland@redhat.com>
13163 * scripts/gen-as-const.awk: New file.
13164 * Makefile (distribute): Add it.
13165 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
13166 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
13168 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
13170 2002-12-27 Andreas Schwab <schwab@suse.de>
13172 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
13174 2002-12-27 Jakub Jelinek <jakub@redhat.com>
13176 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
13179 2002-12-27 Andreas Schwab <schwab@suse.de>
13181 * Makerules ($(common-objpfx)%.make): Filter through
13182 $(sed-remove-objpfx).
13184 2002-12-23 Roland McGrath <roland@redhat.com>
13186 * scripts/abilist.awk: Produce a more compact format, divided into
13187 stanzas for each version set, the set name listed only once.
13188 * scripts/extract-abilist.awk: New file.
13189 * scripts/merge-abilist.awk: New file.
13190 * Makerules (check-abi-%, update-abi-%): New pattern rules.
13191 (update-abi, check-abi): New targets.
13192 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
13194 2002-12-19 Roland McGrath <roland@redhat.com>
13196 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
13198 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
13201 2002-12-21 Andreas Schwab <schwab@suse.de>
13203 * elf/check-textrel.c (handle_file): Swap p_type.
13205 2002-12-21 Andreas Schwab <schwab@suse.de>
13207 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
13208 (INLINE_SYSCALL): Use it.
13209 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
13210 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
13212 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
13213 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
13215 2002-12-20 Art Haas <ahaas@airmail.net>
13217 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
13220 2002-12-21 Philip Blundell <philb@gnu.org>
13222 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
13223 top as seventh arg to __libc_start_main.
13224 Reported by paulnash@wildseed.com.
13226 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
13228 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
13229 compatibility cruft when new enough kernel is assumed.
13231 2002-12-20 Jakub Jelinek <jakub@redhat.com>
13233 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
13234 instead of INLINE_SYSCALL.
13236 2002-12-20 Ulrich Drepper <drepper@redhat.com>
13238 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
13241 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
13242 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
13243 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
13244 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
13245 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
13246 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
13247 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
13248 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
13249 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
13250 Patch by William Lee Irwin <wli@holomorphy.com>.
13252 2002-12-20 Andreas Schwab <schwab@suse.de>
13254 * locale/programs/ld-measurement.c (measurement_output): Fix
13257 2002-12-20 Ulrich Drepper <drepper@redhat.com>
13259 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
13260 Redefine _IO_flockifle and _IO_funlockfile as inlines.
13262 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
13263 builds add "tls" in the search path.
13264 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
13265 (path_hwcap): Recognize "tls".
13267 2002-12-19 Ulrich Drepper <drepper@redhat.com>
13269 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
13270 __waitpid instead of waitpid.
13272 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
13274 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
13275 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
13276 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
13278 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
13279 information for system calls.
13281 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
13284 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
13286 2002-12-19 Roland McGrath <roland@redhat.com>
13288 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
13289 * iconvdata/ibm922.h: Likewise.
13290 * iconvdata/ibm930.h: Likewise.
13291 * iconvdata/ibm932.h: Likewise.
13292 * iconvdata/ibm933.h: Likewise.
13293 * iconvdata/ibm935.h: Likewise.
13294 * iconvdata/ibm937.h: Likewise.
13295 * iconvdata/ibm939.h: Likewise.
13296 * iconvdata/ibm943.h: Likewise.
13297 * iconvdata/isiri-3342.h: Likewise.
13299 2002-12-19 Ulrich Drepper <drepper@redhat.com>
13301 * test-skeleton.c (main): Make sure correct value is seen as
13302 argv[0] after adjustment of argv, and argc.
13304 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
13305 RTLD_CORRECT_DYNAMIC_WEAK is defined.
13307 2002-12-19 Jakub Jelinek <jakub@redhat.com>
13309 * nscd/connections.c (nscd_run): Shut up warning.
13310 * tst-ungetc.c (assert): Undefined before redefining.
13312 2002-12-19 Ulrich Drepper <drepper@redhat.com>
13314 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
13317 2002-12-17 Art Haas <ahaas@airmail.net>
13319 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
13320 * iconvdata/cp775.h: Likewise.
13321 * iconvdata/ibm1046.h: Likewise.
13322 * iconvdata/ibm1124.h: Likewise.
13323 * iconvdata/ibm1129.h: Likewise.
13324 * iconvdata/ibm1132.h: Likewise.
13325 * iconvdata/ibm1133.h: Likewise.
13326 * iconvdata/ibm1160.h: Likewise.
13327 * iconvdata/ibm1161.h: Likewise.
13328 * iconvdata/ibm1162.h: Likewise.
13329 * iconvdata/ibm1163.h: Likewise.
13330 * iconvdata/ibm1164.h: Likewise.
13332 2002-12-19 Ulrich Drepper <drepper@redhat.com>
13334 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
13335 __ASSUME_CLONE_THREAD_FLAGS is defined.
13336 * sysdeps/unix/sysv/linux/kernel-features.h
13337 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
13339 2002-12-18 Ulrich Drepper <drepper@redhat.com>
13341 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
13343 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13345 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
13347 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
13349 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
13351 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
13353 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
13354 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
13355 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
13358 2002-12-18 Jakub Jelinek <jakub@redhat.com>
13360 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
13361 __libc_writev to...
13362 [libc: GLIBC_PRIVATE]: ...here.
13363 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
13364 __libc_msgsnd to...
13365 [libc: GLIBC_PRIVATE]: ...here.
13367 2002-12-18 Ulrich Drepper <drepper@redhat.com>
13369 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
13370 Use it instead of directly int $0x80.
13371 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
13372 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
13373 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
13374 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13375 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
13376 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
13378 2002-12-17 Ulrich Drepper <drepper@redhat.com>
13380 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
13382 * elf/elf.h (AT_SYSINFO): New define.
13383 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
13386 2002-12-17 Jakub Jelinek <jakub@redhat.com>
13388 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
13390 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
13392 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
13394 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
13396 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
13398 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
13400 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
13401 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
13402 available, otherwise __libc_maybe_call.
13403 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
13404 cancellation handling.
13405 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
13407 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
13409 * posix/regcomp.c (free_workarea_compile): Free the new member
13411 (analyze): Initialize ORG_INDICES.
13412 (duplicate_node_closure): Search for a existing node, which is
13413 duplicated from the node ORG_DEST and satisfies the constraint
13414 CONSTRAINT. And use it to avoid inifimite loop.
13415 (search_duplicated_node): New function.
13416 (duplicate_node): Store the index of the original node.
13417 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
13419 * posix/regex_internal.h (re_dfa_t): Add new members.
13421 2002-12-17 Ulrich Drepper <drepper@redhat.com>
13423 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
13425 2002-12-16 Ulrich Drepper <drepper@redhat.com>
13427 * sysdeps/posix/system.c (do_system): Add support for installation
13428 of cancellation handlers.
13429 * sysdeps/unix/sysv/linux/i386/system.c: New file.
13431 * stdlib/Makefile (tests): Add tst-system.
13432 * stdlib/tst-system.c: New file.
13434 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
13435 CENABLE]: Don't lose content of %ebx.
13437 2002-12-17 Jakub Jelinek <jakub@redhat.com>
13439 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
13440 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
13442 2002-12-16 Ulrich Drepper <drepper@redhat.com>
13444 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
13445 fails to return a function pointer don't use it.
13447 2002-12-16 Art Haas <ahaas@airmail.net>
13449 * io/ftw.c: Convert GCC extension initializer syntax to C99.
13450 * iconvdata/iso-ir-165.c: Likewise.
13451 * iconvdata/jis0208.c: Likewise.
13452 * iconvdata/jis0212.c: Likewise.
13454 2002-12-16 Ulrich Drepper <drepper@redhat.com>
13456 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
13457 epoll_ctl, and epoll_wait.
13458 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
13459 epoll_create, epoll_ctl, and epoll_wait.
13460 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
13461 Davide Libenzi <davidel@xmailserver.org>.
13462 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
13463 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
13466 2002-12-16 Art Haas <ahaas@airmail.net>
13468 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
13470 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
13471 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
13472 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
13474 2002-12-16 Ulrich Drepper <drepper@redhat.com>
13476 * stdio-common/Makefile (routines): Remove lockfile. Add
13477 flockfile, ftrylockfile, and funlockfile.
13478 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
13479 * sysdeps/generic/flockfile.c: New file.
13480 * sysdeps/generic/ftrylockfile.c: New file.
13481 * sysdeps/generic/funlockfile.c: New file.
13483 2002-12-16 Jakub Jelinek <jakub@redhat.com>
13485 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
13486 macros instead of doing the calls directly.
13487 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
13488 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
13491 2002-12-16 Jakub Jelinek <jakub@redhat.com>
13493 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
13494 * sysdeps/ieee754/bits/nan.h: Likewise.
13496 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
13497 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
13499 2002-12-16 Roland McGrath <roland@redhat.com>
13501 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
13502 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
13503 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
13505 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
13506 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
13508 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
13509 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
13510 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
13511 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
13512 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
13513 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
13514 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
13515 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
13517 2002-12-13 Paul Eggert <eggert@twinsun.com>
13519 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
13520 is now u_int, not int.
13521 (struct XDR.x_handy): Now u_int, not int.
13522 * sunrpc/xdr_mem.c: Include <limits.h>.
13523 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
13524 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
13525 x_handy is now unsigned, not signed.
13526 Do not decrement x_handy if no change is made.
13527 (xdrmem_setpos): Check for int overflow.
13528 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
13529 (xdr_sizeof): Remove cast that is now unnecessary, now that
13530 x_handy is unsigned.
13532 2002-12-15 Art Haas <ahaas@airmail.net>
13534 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
13535 * iconvdata/gap.awk: Likewise.
13536 * iconvdata/gen-8bit-gap-1.sh: Likewise.
13537 * iconvdata/gen-8bit-gap.sh: Likewise.
13538 * locale/C-address.c: Likewise.
13539 * locale/C-collate.c: Likewise.
13540 * locale/C-ctype.c: Likewise.
13541 * locale/C-identification.c: Likewise.
13542 * locale/C-measurement.c: Likewise.
13543 * locale/C-messages.c: Likewise.
13544 * locale/C-monetary.c: Likewise.
13545 * locale/C-name.c: Likewise.
13546 * locale/C-numeric.c: Likewise.
13547 * locale/C-paper.c: Likewise.
13548 * locale/C-telephone.c: Likewise.
13549 * locale/C-time.c: Likewise.
13550 * nscd/connections.c: Likewise.
13551 * nscd/grpcache.c: Likewise.
13552 * nscd/hstcache.c: Likewise.
13553 * nscd/pwdcache.c: Likewise.
13554 * stdio-common/vfprintf.c: Likewise.
13555 * stdlib/random.c: Likewise.
13556 * sysdeps/generic/siglist.c: Likewise.
13557 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
13558 * sysdeps/ieee754/bits/nan.h: Likewise.
13559 * sysdeps/posix/sprofil.c: Likewise.
13560 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
13561 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
13562 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
13564 2002-12-15 Roland McGrath <roland@redhat.com>
13566 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
13568 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
13569 <tls.h> here, no need for it.
13570 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
13572 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
13573 parameter, not varargs parameter.
13575 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
13576 argument so it's not an unused variable.
13578 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
13579 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
13582 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
13584 2002-12-15 Ulrich Drepper <drepper@redhat.com>
13586 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
13587 original __libc_fcntl code. Just renamed.
13589 2002-12-15 Andreas Schwab <schwab@suse.de>
13591 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
13593 2002-12-14 Olaf Hering <olh@suse.de>
13595 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
13596 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
13598 2002-12-15 Ulrich Drepper <drepper@redhat.com>
13600 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
13602 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
13603 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
13605 * sysdeps/unix/sysv/linux/open64.c: New file.
13607 * sysdeps/generic/pselect.c: Add support for cancellation handling.
13608 * sysdeps/posix/open64.c: Likewise.
13609 * sysdeps/posix/sigpause.c: Likewise.
13610 * sysdeps/posix/sigwait.c: Likewise.
13611 * sysdeps/posix/system.c: Likewise.
13612 * sysdeps/posix/waitid.c: Likewise.
13613 * sysdeps/unix/sysv/linux/accept.S: Likewise.
13614 * sysdeps/unix/sysv/linux/connect.S: Likewise.
13615 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
13616 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13617 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
13618 * sysdeps/unix/sysv/linux/poll.c: Likewise.
13619 * sysdeps/unix/sysv/linux/pread.c: Likewise.
13620 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
13621 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
13622 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
13623 * sysdeps/unix/sysv/linux/readv.c: Likewise.
13624 * sysdeps/unix/sysv/linux/recv.S: Likewise.
13625 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
13626 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
13627 * sysdeps/unix/sysv/linux/send.S: Likewise.
13628 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
13629 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
13630 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
13631 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
13632 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
13633 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
13634 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
13635 * sysdeps/unix/sysv/linux/wait.c: Likewise.
13636 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
13637 * sysdeps/unix/sysv/linux/writev.c: Likewise.
13638 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
13639 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
13641 2002-12-14 Jakub Jelinek <jakub@redhat.com>
13643 * sysdeps/generic/sysdep-cancel.h: New file.
13644 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
13645 cancelable syscall.
13646 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
13647 recvmsg, send, sendmsg, sendto): Make cancelable.
13648 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
13649 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
13650 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13651 sendto, osf_select): Likewise.
13652 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
13653 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
13654 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
13655 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13657 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
13658 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
13659 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
13660 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13662 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
13663 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
13664 sendto, select): Likewise.
13665 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
13666 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
13668 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
13669 select, fcntl): Likewise.
13670 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
13671 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
13672 read, readv, select, sigsuspend, write, writev): Likewise.
13674 2002-12-14 Jakub Jelinek <jakub@redhat.com>
13676 * dirent/bug-readdir1.c: Include unistd.h.
13678 2002-12-13 Jakub Jelinek <jakub@redhat.com>
13680 * locale/programs/locale.c: Include locarchive.h.
13681 (ARCHIVE_NAME): Define.
13682 (write_archive_locales): New function.
13683 (write_locales): Use it. Ensure the same locale is not printed
13684 multiple times in verbose mode.
13685 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
13686 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
13688 (struct nameent): New type.
13689 (nameentcmp): New function.
13691 2002-12-14 Jakub Jelinek <jakub@redhat.com>
13693 * posix/regex_internal.c (re_string_context_at): Guard wide char
13694 code with #ifdef RE_ENABLE_I18N.
13696 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
13698 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
13700 2002-12-13 Roland McGrath <roland@redhat.com>
13702 * posix/bug-regex15.c: New file.
13703 * posix/Makefile (tests): Add it.
13705 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
13706 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
13708 2002-12-13 Ulrich Drepper <drepper@redhat.com>
13710 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
13712 * misc/syslog.c (log_cleanup): Don't use parameter in
13713 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
13714 pass NULL instead of a pointer to syslog_lock.
13716 2002-12-12 Ulrich Drepper <drepper@redhat.com>
13718 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
13719 linker map for all iconv modules.
13720 (distribute): Add gconv.map.
13721 * iconvdata/gconv.map: New file.
13723 * elf/Makefile: Also check all iconv modules for text relocations.
13725 * stdlib/Makefile: Remove code to automatically import GMP.
13727 * elf/Makefile (tests): Add rules to build and run check-textrel.
13728 * elf/check-textrel.c: New file.
13730 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
13733 2002-12-11 Jakub Jelinek <jakub@redhat.com>
13735 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
13738 2002-04-30 Bruno Haible <bruno@clisp.org>
13740 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
13741 the encoding if it already has slashes.
13742 Reported by Perry Rapp <prapp@erols.com>.
13744 2002-12-11 Roland McGrath <roland@redhat.com>
13746 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
13747 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
13748 Turn off PIC for compiling this file.
13750 2002-12-11 Ulrich Drepper <drepper@redhat.com>
13752 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
13753 definitions. Not needed.
13754 [_LIBC]: Use definitions from libc-lock.h instead of referencing
13755 pthread routines directly.
13756 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
13758 (arena_get2): Don't look at return value of mutex_lock.
13760 2002-12-11 Roland McGrath <roland@redhat.com>
13762 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
13763 elf-init.o instead of compiling a PIC version.
13765 2002-12-11 Bruno Haible <bruno@clisp.org>
13767 * intl/gettext.h: Renamed to ...
13768 * intl/gmo.h: ... here.
13769 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
13770 * intl/gettextP.h: Update.
13771 * intl/loadmsgcat.c: Update.
13773 * intl/gettextP.h (PARAMS): Make more portable.
13774 (attribute_hidden): Define as empty macro if not already defined.
13775 * intl/hash-string.h (PARAMS): Make more portable.
13776 * intl/loadinfo.h (PARAMS): Likewise.
13777 * intl/plural-exp.h (PARAMS): Likewise.
13778 (attribute_hidden): Move definition near the definition of
13781 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
13782 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
13784 2002-07-13 Bruno Haible <bruno@clisp.org>
13786 * intl/dcigettext.c (freea): New macro.
13787 (FREE_BLOCKS): Free also the registered blocks.
13788 (DCIGETTEXT): Free the 'search' variable.
13789 Reported by Andreas Fischer <a.fischer@asentics.de>.
13791 2002-04-27 Bruno Haible <bruno@clisp.org>
13793 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
13794 * intl/dcigettext.c: Likewise.
13795 * intl/dcgettext.c: Likewise.
13796 * intl/dgettext.c: Likewise.
13797 * intl/gettext.c: Likewise.
13798 * intl/dcngettext.c: Likewise.
13799 * intl/dngettext.c: Likewise.
13800 * intl/ngettext.c: Likewise.
13801 * intl/textdomain.c: Likewise.
13802 * intl/bindtextdom.c: Likewise.
13803 * intl/plural-exp.h: Likewise.
13805 2002-01-02 Bruno Haible <bruno@clisp.org>
13807 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
13809 2001-04-30 Bruno Haible <bruno@clisp.org>
13811 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
13812 default macro definitions. Needed for mingw32.
13814 2002-12-10 Ulrich Drepper <drepper@redhat.com>
13816 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
13817 __builtin_constant_p to macro parameter.
13819 * sysdeps/generic/sigpause.c: Define all functions as weak.
13820 * sysdeps/posix/sigpause.c: Likewise.
13822 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
13825 2002-12-10 Jakub Jelinek <jakub@redhat.com>
13827 * elf/tst-array1.c (preinit_array, init_array, fini_array):
13828 Explicitly align the array to sizeof (void *).
13829 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
13831 * include/libc-symbols.h: Fix a comment typo.
13833 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
13834 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
13836 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
13838 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
13839 (__libc_sigsuspend): Likewise.
13840 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
13841 (__libc_sigsuspend): Likewise.
13842 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
13843 (creat): New weak alias.
13845 2002-12-10 Roland McGrath <roland@redhat.com>
13847 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
13848 contributes a manual chapter.
13849 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
13852 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
13853 and move contents to ...
13854 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
13855 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
13856 it instead of duplicating its contents.
13857 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
13859 2002-12-09 Jakub Jelinek <jakub@redhat.com>
13861 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
13863 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
13865 (EXTRA_LD_ENVVARS): Use it.
13866 (DL_OSVERSION_INIT): Define.
13867 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
13869 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
13871 2002-12-10 Ulrich Drepper <drepper@redhat.com>
13873 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
13875 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
13876 call. It is not allowed to destroy pthread mutexes which are
13877 still in use even though it is safe for our implementations. If
13878 somebody still uses the descriptor it is a bug.
13880 2002-12-09 Richard Henderson <rth@redhat.com>
13882 * csu/abi-note.S: Use .p2align, not .align.
13884 2002-12-09 Ulrich Drepper <drepper@redhat.com>
13886 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
13887 __libc_select aliases.
13889 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
13892 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
13894 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
13896 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
13898 * sysdeps/unix/syscalls.list: Define __libc_select alias.
13900 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
13902 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
13903 __libc___xpg_sigpause aliases.
13905 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
13907 * misc/error.c: Remove use of USE_IN_LIBIO.
13909 2002-12-08 Roland McGrath <roland@redhat.com>
13911 * elf/Makefile (tests): Uncomment tst-array[123].
13912 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
13913 * csu/elf-init.c: New file.
13914 * csu/Makefile (routines, static-only-routines): Add elf-init.
13915 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
13916 and __libc_csu_fini in place of _fini.
13917 * sysdeps/arm/elf/start.S: Likewise.
13918 * sysdeps/cris/elf/start.S: Likewise.
13919 * sysdeps/hppa/elf/start.S: Likewise.
13920 * sysdeps/i386/elf/start.S: Likewise.
13921 * sysdeps/ia64/elf/start.S: Likewise.
13922 * sysdeps/m68k/elf/start.S: Likewise.
13923 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
13924 * sysdeps/mips/elf/start.S: Likewise.
13925 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
13926 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
13927 * sysdeps/s390/s390-32/elf/start.S: Likewise.
13928 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13929 * sysdeps/sh/elf/start.S: Likewise.
13930 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13931 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13932 * sysdeps/x86_64/elf/start.S: Likewise.
13934 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
13935 struct containing function ptr and value, free it.
13936 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
13937 It's not safe to let the new thread use the SIGEV pointer.
13939 2001-10-20 Paul Eggert <eggert@twinsun.com>
13941 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
13942 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
13943 Use strerror_r that is only a macro, even if it is not a function.
13944 (strerror): Check for HAVE_DECL_STRERROR before declaring.
13945 (private_strerror): Use prototypes, not old-style function definition.
13946 (print_errno_message): New function.
13947 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
13948 char*-flavored one.
13949 (error_tail, error, error_at_line): Use it.
13951 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
13953 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
13955 2002-12-08 Ulrich Drepper <drepper@redhat.com>
13957 * scripts/output-format.sed: Fix bug in one of the s expressions
13958 which used / for one too many things.
13960 * include/unistd.h: Declare __libc_close.
13962 2002-12-07 Ulrich Drepper <drepper@redhat.com>
13964 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
13966 2002-12-07 Roland McGrath <roland@redhat.com>
13968 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
13969 from 2002-12-06, but remove unnecessary memset call without removing
13970 necessary copy of initialization image.
13972 * Makerules ($(common-objpfx)format.lds): New target.
13973 (common-generated): Add it.
13974 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
13975 * scripts/output-format.sed: New file.
13976 * Makefile (distribute): Add it.
13978 2002-12-07 Ulrich Drepper <drepper@redhat.com>
13980 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
13981 Reported by Art Haas <ahaas@airmail.net>.
13983 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
13985 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
13987 2002-12-07 Jakub Jelinek <jakub@redhat.com>
13989 * string/test-strncpy.c (do_random_tests): Improve test coverage.
13991 2002-12-06 Ulrich Drepper <drepper@redhat.com>
13993 * test-skeleton.c (timeout_handler): Allow expected signal to be
13996 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
13998 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
14000 2002-12-07 Jakub Jelinek <jakub@redhat.com>
14002 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
14003 (SYSCALL_ERROR_HANDLER): Fix a pasto.
14004 Reported by Jeff Bailey <jbailey@nisa.net>.
14006 2002-12-06 Ulrich Drepper <drepper@redhat.com>
14008 * sysdeps/generic/libc-tls.c: Undo last patch.
14010 * include/wctype.h: Define iswalnum with libc_hidden_proto.
14012 * include/signal.h: Define raise with libc_hidden_proto.
14014 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
14015 __execve instead of snprintf and execve.
14017 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
14020 2002-12-06 Jakub Jelinek <jakub@redhat.com>
14022 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
14023 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
14025 2002-12-06 Ulrich Drepper <drepper@redhat.com>
14027 * misc/syslog.c (log_cleanup): New function.
14028 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
14029 (closelog): Likewise.
14031 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
14032 * elf/dl-iteratephdr.c: Likewise.
14033 * elf/dl-lookup.c: Likewise.
14034 * elf/dl-misc.c: Likewise.
14035 * elf/dl-open.c: Likewise.
14036 * elf/dl-support.c: Likewise.
14037 * elf/rtld.c: Likewise.
14038 * sysdeps/generic/ldsodefs.h: Likewise.
14039 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
14040 * sysdeps/mach/bits/libc-lock.h: Likewise.
14041 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
14043 2002-12-06 Roland McGrath <roland@redhat.com>
14045 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
14047 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
14048 (malloc_starter, memalign_starter, free_starter): Don't define these.
14049 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
14050 Don't declare them either.
14051 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
14052 __pthread_initialize, so no need to set hooks to *_starter.
14053 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
14054 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
14055 (__libc_malloc_pthread_startup): New function.
14056 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
14058 * malloc/hooks.c (memalign_starter): New function.
14059 * malloc/malloc.c: Declare it.
14060 * malloc/arena.c (save_memalign_hook): New variable.
14061 (ptmalloc_init): Set __memalign_hook to memalign_starter.
14063 * elf/dl-minimal.c (free): Clear the memory.
14064 (calloc): Just call malloc, knowing all memory it returns is cleared.
14066 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
14067 malloc and memset; calloc can avoid the zeroing when redundant.
14068 (_dl_tls_setup): Likewise.
14069 * elf/dl-load.c (decompose_rpath): Likewise.
14070 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
14071 call, since memory from sbrk at startup is already zero.
14073 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
14074 error string for failure, null for success. Update callers.
14075 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
14076 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
14078 2002-12-05 Jakub Jelinek <jakub@redhat.com>
14080 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
14082 (readahead): Change args to i:iii.
14083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
14084 Change args to i:iii.
14085 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
14088 2002-12-05 Roland McGrath <roland@redhat.com>
14090 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
14091 call all functions rather than none.
14092 Reported by Mark P. Mitchell <mark@codesourcery.com>.
14094 2002-12-04 Roland McGrath <roland@redhat.com>
14096 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
14097 on _nl_current_LC_* variables.
14099 2002-12-05 Ulrich Drepper <drepper@redhat.com>
14101 * dirent/bug-readdir1.c (main): Don't call closedir, just close
14102 the file descriptor. This is testing what the bug report was about.
14104 2002-12-04 Ulrich Drepper <drepper@redhat.com>
14106 * po/be.po: New file.
14108 * argp/Makefile (tests): Add tst-argp1.
14110 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
14111 Change type of _attribute to void*.
14112 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
14113 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
14114 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
14115 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
14116 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
14118 2002-12-04 Roland McGrath <roland@redhat.com>
14120 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
14121 members to the end, so a libpthread compiled with !USE_TLS will still
14122 find other members properly.
14124 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
14125 operand for DEST memory. Fix dummy input operand to use SRC.
14126 Reported by Davin McCall <davmac@ozonline.com.au>.
14128 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
14129 alignment when initializing the DTV entry.
14131 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
14132 when TLS has not been set up, try to set it up if we can.
14133 * elf/tst-tls4.c: Revert last change.
14134 * elf/tst-tls5.c: Likewise.
14135 * elf/tst-tls6.c: Likewise.
14136 * elf/tst-tls7.c: Likewise.
14137 * elf/tst-tls8.c: Likewise.
14138 * elf/tst-tls9.c: Likewise.
14140 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
14141 * sysdeps/generic/ldsodefs.h: Declare it.
14142 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
14143 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
14144 function, broken out of __libc_setup_tls.
14145 (init_static_tls): Likewise.
14146 (__libc_setup_tls): Call them.
14147 (_dl_tls_setup): New function, uses new subroutines.
14149 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
14150 Clear the pointer when returning true.
14151 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
14152 first element of the slotinfo list too.
14154 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
14157 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
14158 (_dl_determine_tlsoffset): Likewise.
14160 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
14161 startup_error_tsd, made global.
14162 (dl_main): Update initialization.
14163 * elf/dl-tsd.c: Likewise.
14164 * sysdeps/generic/ldsodefs.h: Declare it.
14166 2002-12-03 Ulrich Drepper <drepper@redhat.com>
14168 * manual/texinfo.tex: Update from latest upstream version.
14170 2002-12-03 Roland McGrath <roland@redhat.com>
14172 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
14173 area surplus in calculation for sbrk call.
14175 * iconvdata/cp1125.c: New file.
14176 * iconvdata/Makefile (distribute): Add it.
14177 (modules): Add CP1125.
14178 (gen-8bit-gap-modules): Add cp1125.
14179 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
14180 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
14182 2002-12-03 Andreas Jaeger <aj@suse.de>
14184 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14186 2002-12-03 Ulrich Drepper <drepper@redhat.com>
14188 * sysdeps/posix/system.c (do_system): Make signal handler
14189 installation thread safe.
14191 2002-12-02 Roland McGrath <roland@redhat.com>
14193 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
14194 caller from EXTRA to -.
14195 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
14196 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
14197 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
14199 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
14201 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
14202 bits of RM are cleared.
14204 2002-12-02 Roland McGrath <roland@redhat.com>
14206 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
14207 TLS setup is required.
14208 * elf/tst-tls5.c: Likewise.
14209 * elf/tst-tls6.c: Likewise.
14210 * elf/tst-tls7.c: Likewise.
14211 * elf/tst-tls8.c: Likewise.
14212 * elf/tst-tls9.c: Likewise.
14214 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
14215 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
14216 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
14217 for being null before calling free_slotinfo.
14218 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
14219 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
14221 2002-11-30 Bruno Haible <bruno@clisp.org>
14223 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
14224 (struct __gconv_step): New field __btowc_fct.
14225 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
14226 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
14228 (__gconv_btwoc_ascii): New declaration.
14229 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
14230 (__gconv_btwoc_ascii): New function.
14231 * iconv/gconv_builtin.h: Add BtowcFct argument to all
14232 BUILTIN_TRANSFORMATION invocations.
14233 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
14234 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
14235 * iconv/gconv_builtin.c (map): New field btowc_fct.
14236 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
14238 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
14239 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
14240 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
14241 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
14242 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
14243 (gconv_init): Initialize __btowc_fct field.
14244 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
14245 * iconv/loop.c: Document ONEBYTE_BODY.
14246 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
14247 Undefine ONEBYTE_BODY at the end.
14248 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
14249 * iconvdata/8bit-gap.c (NONNUL): New macro.
14250 (BODY for FROM_LOOP): Use it.
14251 (ONEBYTE_BODY): New macro.
14252 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
14253 (NONNUL): New macro.
14254 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
14255 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
14256 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
14257 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
14258 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
14259 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
14260 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
14261 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
14262 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
14263 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
14264 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
14265 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
14266 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
14267 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
14268 * iconvdata/ibm932.c: Include <stdbool.h>.
14269 (TRUE, FALSE): Remove macros.
14270 (BODY for FROM_LOOP): Remove unused variable rp1.
14271 (ONEBYTE_BODY): New macro.
14272 (BODY for TO_LOOP): Use bool.
14273 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
14274 * iconvdata/ibm943.c: Include <stdbool.h>.
14275 (TRUE, FALSE): Remove macros.
14276 (BODY for FROM_LOOP): Remove unused variable rp1.
14277 (ONEBYTE_BODY): New macro.
14278 (BODY for TO_LOOP): Use bool.
14279 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
14280 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
14281 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
14282 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
14283 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
14284 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
14285 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
14286 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
14287 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
14288 * iconvdata/gbbig5.c: Tweak comment.
14290 2002-12-02 Ulrich Drepper <drepper@redhat.com>
14292 * po/fi.po: Update from translation team.
14294 2002-12-01 Roland McGrath <roland@redhat.com>
14296 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
14297 testing getdents64 return value.
14299 * scripts/versions.awk: Don't pass -n flag to sort command.
14301 * posix/bug-regex13.c: Include <string.h>.
14303 * sysdeps/generic/libc-start.c (__libc_start_main): Do
14304 DL_SYSDEP_OSCHECK here.
14305 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
14306 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
14308 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
14309 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
14311 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
14312 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
14314 * include/link.h: Comment typo fix.
14316 2002-12-01 Roland McGrath <roland@frob.com>
14318 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
14319 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
14320 _POSIX_MEMORY_PROTECTION): Likewise.
14321 (_POSIX_POLL, _POSIX_SELECT): Removed.
14323 2002-11-28 Ulrich Drepper <drepper@redhat.com>
14325 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
14326 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
14328 2002-11-28 Jakub Jelinek <jakub@redhat.com>
14330 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
14332 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
14335 2002-11-28 Ulrich Drepper <drepper@redhat.com>
14337 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
14338 branch prediction buffers by using unpaired call/ret.
14340 2002-11-27 Ulrich Drepper <drepper@redhat.com>
14342 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
14343 first parameters constraint string.
14344 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
14346 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
14348 * posix/regcomp.c (parse_expression): Set the bit since the back
14349 reference is used in the regular expression.
14350 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
14352 (re_node_set_init_copy): Likewise.
14353 * posix/regex_internal.h (state_array_t): New structure.
14354 (re_sub_match_last_t): Likewise.
14355 (re_sub_match_top_t): Likewise.
14356 (re_match_context_t): Add new members.
14357 (re_dfa_t): Likewise.
14358 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
14359 to check the matching is really correct, and retry if failed.
14360 Move the routin pruning the impossible nodes from here, ...
14361 (prune_impossible_nodes): To this function.
14362 (check_matching): Invoke check_subexp_matching_top, and replace
14363 redundant checking with transit_state_bkref invocation.
14364 (proceed_next_node): Replace strncmp with memcmp. Reported by
14365 Paolo Bonzini <bonzini@gnu.org>.
14366 (update_cur_sifted_state): Remove search_subexp invocation.
14367 (search_subexp): Remove this function.
14368 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
14370 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
14371 Remove unused invocation of match_ctx_add_entry.
14372 (transit_state): Invoke check_subexp_matching_top.
14373 (check_subexp_matching_top): New function.
14374 (transit_state_bkref): Remove unused array.
14375 Merge transit_state_bkref_loop.
14376 (transit_state_bkref_loop): Use get_subexp instead of
14377 sift_states_backward. Use search_cur_bkref_entry for optimization.
14378 Merge this function to transit_state_bkref.
14379 (get_subexp): New function.
14380 (get_subexp_sub): Likewise.
14381 (find_subexp_node): Likewise.
14382 (check_arrival): Likewise.
14383 (check_arrival_expand_ecl): Likewise.
14384 (check_arrival_expand_ecl_sub): Likewise.
14385 (expand_bkref_cache): Likewise.
14386 (match_ctx_init): Initialize new members.
14387 (match_ctx_clean): New function.
14388 (match_ctx_free): Release new members.
14389 (match_ctx_free_subtops): New function.
14390 (match_ctx_add_entry): Fix indent.
14391 (search_cur_bkref_entry): New function.
14392 (match_ctx_add_subtop): Likewise.
14393 (match_ctx_add_sublast): Likewise.
14395 2002-11-25 Ulrich Drepper <drepper@redhat.com>
14397 * iconv/Makefile (tests): Remove tst-iconv4.c
14398 * iconv/tst-iconv4.c: Moved to...
14399 * iconvdata/tst-iconv4.c: ...here. New file.
14400 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
14402 2002-11-25 Roland McGrath <roland@redhat.com>
14404 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
14405 Grok AF_LINK if defined.
14406 From Momchil Velikov <velco@fadata.bg>.
14408 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
14409 brdaddr, or dstaddr, just set those pointers to null and don't fail.
14410 Reported by Momchil Velikov <velco@fadata.bg>.
14412 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
14413 is > sizeof IFR->ifa_addr, advance past the whole longer length.
14414 (__ifreq): Count up NIFS that way too.
14415 Reported by Momchil Velikov <velco@fadata.bg>.
14417 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
14419 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
14420 and <fpu_control.h>.
14422 2002-11-24 Ulrich Drepper <drepper@redhat.com>
14424 * elf/elf.h (EM_ST19): Fix typo.
14426 2002-11-25 Jakub Jelinek <jakub@redhat.com>
14428 * include/errno.h (__set_errno): Define as errno = val
14431 2002-11-24 Roland McGrath <roland@redhat.com>
14433 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
14434 * sysdeps/posix/writev.c: Likewise.
14435 From Momchil Velikov <velco@fadata.bg>.
14437 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
14438 calling *GL(dl_error_catch_tsd) for a thread-local location.
14439 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
14440 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
14441 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
14443 * libio/iofflush.c: Add libc_hidden_def.
14444 * libio/iofwrite.c: Likewise.
14445 * sysdeps/generic/sigtimedwait.c: Likewise.
14446 * sysdeps/generic/sigwaitinfo.c: Likewise.
14447 * sysdeps/posix/sigwait.c: Likewise.
14448 Reported by Momchil Velikov <velco@fadata.bg>.
14450 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
14451 to match <arpa/inet.h> declaration.
14452 * inet/inet_netof.c (inet_netof): Likewise.
14453 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
14454 Reported by Momchil Velikov <velco@fadata.bg>.
14456 * configure.in: Skip AUTOCONF check under --without-cvs.
14457 * configure: Regenerated.
14459 * posix/Makefile (headers): Add bits/pthreadtypes.h.
14460 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
14461 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
14463 2002-11-24 Andreas Schwab <schwab@suse.de>
14465 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
14466 with six arguments.
14468 2002-11-19 Jim Meyering <jim@meyering.net>
14470 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
14472 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
14474 2002-11-23 Roland McGrath <roland@redhat.com>
14476 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
14477 Just produce hex output for datum sizes.
14479 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
14480 Reported by Luca Barbieri <ldb@ldb.ods.org>.
14482 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
14484 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
14485 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
14486 and __unused3 fields.
14487 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
14488 [__WORDSIZE == 32]: Only PPC32 requires __unused1
14489 and __unused2 fields.
14490 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
14491 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
14492 __unused3, and __unused4 fields.
14494 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
14495 obtain lowest address for profiling in __monstartup call.
14497 2002-11-21 Roland McGrath <roland@redhat.com>
14499 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
14500 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
14502 * locale/localeinfo.h (struct locale_data): Revert last change.
14504 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
14505 From Ian Wienand <ianw@gelato.unsw.edu.au>.
14507 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
14508 __NR_pread64 if not defined.
14509 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
14510 From Ian Wienand <ianw@gelato.unsw.edu.au>.
14512 2002-11-21 Roland McGrath <roland@frob.com>
14514 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
14515 __libc_multiple_libcs here. Call __setfpucw.
14517 2002-11-21 Ulrich Drepper <drepper@redhat.com>
14519 * elf/Makefile (tests): Don't run test-arrayX tests for now.
14521 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
14522 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
14523 CLONE_CHILD_*TID flags.
14525 2002-11-20 Andreas Jaeger <aj@suse.de>
14527 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
14528 We pass struct ucontext on x86-64.
14530 (GET_FRAME): Adjust.
14531 (GET_STACK): Adjust.
14533 2002-11-20 Roland McGrath <roland@redhat.com>
14535 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
14536 conditionalize [! DO_VERSIONING] #error.
14538 * scripts/abilist.awk: Grok function descriptor symbols.
14540 * intl/tst-gettext.c (main): Check return values from setlocale.
14541 Add necessary unsetenv's to make LANG=existing-locale check work.
14543 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
14544 so aborted prior runs don't confuse things.
14546 * locale/localeinfo.h (struct locale_data: union locale_data_value):
14547 Use uintptr_t instead of unsigned int for `word' member.
14548 (_NL_CURRENT_WORD): Cast to uint32_t.
14550 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
14553 2002-11-20 Ulrich Drepper <drepper@redhat.com>
14555 * elf/tls-macros.h: Add IA-64 definitions.
14556 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
14558 * iconv/Makefile (tests): Add tst-iconv4.
14559 * iconv/tst-iconv4.c: New file.
14561 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
14562 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
14563 __GCONV_INCOMPLETE_INPUT.
14564 (ucs4le_internal_loop): Likewise.
14565 (ucs4le_internal_loop_unaligned): Likewise.
14566 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
14567 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
14568 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
14570 * iconv/loop.c (LOOPFCT): First test for empty input then for full
14573 * inet/getnameinfo.c: Use extend_alloca where appropriate.
14574 * sysdeps/posix/getaddrinfo.c: Likewise.
14576 * include/alloca.h (extend_alloca): New define. Based on stack
14577 direction it'll try to append to the previouls allocated buffer.
14579 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
14581 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
14582 use the same service for AF_INET and AF_INET6.
14584 2002-11-19 Ulrich Drepper <drepper@redhat.com>
14586 * intl/localealias.c (read_alias_file): Use only about 400 bytes
14587 of stack space instead of 16k.
14589 2002-11-18 Wolfram Gloger <wg@malloc.de>
14592 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
14593 nothing if not initialized. Bug report from Marcus Brinkmann
14594 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
14596 2002-11-19 Roland McGrath <roland@redhat.com>
14598 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
14601 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
14602 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
14603 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
14604 * configure: Regenerated.
14606 2002-11-19 Ulrich Drepper <drepper@redhat.com>
14608 * include/dlfcn.h: __libc_dlopen is now a macro calling
14609 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
14610 (__libc_dlopen_mode): New prototype.
14611 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
14612 new parameter. Store new parameter in mode field of structure passed
14614 (struct do_dlopen_args): Add new field mode.
14615 (do_dlopen): Pass mode from parameter structure to _dl_open.
14617 2002-11-11 Randolf Chung <tausq@debian.org>
14619 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
14620 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
14621 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
14623 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
14625 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
14626 Set -mdisable-fpregs for this file.
14628 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
14630 * sysdeps/unix/sysv/linux/configure.in:
14631 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
14632 from gcc-3.0 era for backwards compatibility.
14633 * sysdeps/unix/sysv/linux/configure: Regenerate.
14635 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
14636 Define mcontext_t as a sigcontext.
14638 2002-11-18 Roland McGrath <roland@redhat.com>
14640 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
14641 Free memory in `last_result' if it was used.
14643 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
14644 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
14645 Do the parsing inline instead of copying strings and calling
14646 inet_network, and properly skip all alias names not matching the form.
14648 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
14650 2002-11-17 Ulrich Drepper <drepper@redhat.com>
14652 * manual/pattern.texi (Wordexp Example): Fix sample code.
14654 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
14655 childs stack which will be loaded into the %esi register.
14657 2002-11-14 Paul Eggert <eggert@twinsun.com>
14659 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
14660 overflow when skipping the question part and when unpacking aliases.
14662 2002-11-15 Roland McGrath <roland@redhat.com>
14664 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
14665 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
14666 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
14668 2002-11-15 Jakub Jelinek <jakub@redhat.com>
14670 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
14671 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
14673 2002-11-15 Roland McGrath <roland@redhat.com>
14675 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
14676 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
14677 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
14678 (+make-include-of-dep): New canned sequence.
14680 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
14681 From Dmitry V. Levin <ldv@altlinux.org>.
14683 2002-11-14 Roland McGrath <roland@redhat.com>
14685 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
14686 * inet/herrno.c (__libc_h_errno): Likewise.
14687 * resolv/res_libc.c (__libc_res): Likewise.
14688 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
14689 (__res_state) [! USE___THREAD]: Don't define as weak.
14690 * csu/Versions: Revert last change.
14691 * resolv/Versions: Revert last change.
14693 * Makerules ($(common-objpfx)%.make): New pattern rule.
14694 * tls.make.c: New file.
14695 * Makefile (distribute): Add it.
14697 * sysdeps/generic/errno.c [! USE___THREAD]
14698 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
14699 with compat_symbol so they are not link-time visible.
14700 [! USE___THREAD] (__libc_errno): New alias for errno.
14701 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
14702 Add __libc_errno here.
14703 * inet/herrno.c [USE___THREAD]: Use this conditional
14704 in place of [USE_TLS && HAVE___THREAD].
14705 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
14706 (h_errno, _h_errno): Declare these with compat_symbol so they are not
14708 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
14709 * resolv/res_libc.c [! USE___THREAD]
14710 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
14711 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
14712 (__libc_res): Define as alias for _res.
14713 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
14714 Add __libc_h_errno and __libc_res here.
14716 2002-11-14 Jakub Jelinek <jakub@redhat.com>
14718 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
14719 * resolv/Versions (h_errno, _res): Likewise.
14721 2002-11-14 Roland McGrath <roland@redhat.com>
14723 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
14724 (%.symlist): Likewise.
14726 2002-11-13 Roland McGrath <roland@redhat.com>
14728 * scripts/abilist.awk: New file.
14729 * Makefile (distribute): Add it.
14730 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
14731 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
14732 [$(subdir) = elf] (tests): Depend on libc.symlist.
14733 (generated, common-generated): Add those files.
14735 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
14736 * configure: Regenerated.
14737 * config.make.in (OBJDUMP): New variable, substituted by configure.
14739 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
14740 (mallochook, reallochook): Set them up.
14741 (checkhdr): Check HDR->magic2 value.
14742 (freehook): Reset HDR->magic2.
14743 (memalignhook): New static function.
14744 (old_memalign_hook): New static variable.
14745 (mcheck, reallochook): Set __memalign_hook to memalignhook.
14747 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
14750 2002-11-13 Andreas Jaeger <aj@suse.de>
14752 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
14754 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
14756 2002-11-11 Paul Eggert <eggert@twinsun.com>
14758 * manual/crypt.texi (Cryptographic Functions): Mention that
14759 the MD5 one-way algorithm is compatible with BSD's.
14761 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
14763 * posix/regex_internal.c (re_string_skip_chars): Also return the last
14765 (re_string_reconstruct): Calculate the context by itself when the
14766 offset points out of the valid range.
14767 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
14768 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
14769 (IS_WIDE_WORD_CHAR): New macro.
14770 (IS_WIDE_NEWLINE): New macro.
14772 2002-11-12 Andreas Jaeger <aj@suse.de>
14774 * sysdeps/x86_64/strchr.S: Don't use one register for two
14775 purposes, this fixes a bug noticed by test-strchr.c.
14777 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
14780 2002-11-12 Roland McGrath <roland@redhat.com>
14782 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
14783 (_G_IO_NO_BACKWARD_COMPAT): Define it.
14785 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
14786 instead of <pt-machine.h>.
14787 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
14789 From Ian Wienand <ianw@gelato.unsw.edu.au>.
14791 2002-11-10 Roland McGrath <roland@redhat.com>
14793 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
14794 Call fputs instead of fwprintf (simpler to follow in debugger).
14796 * crypt/md5-crypt.c: Doc fix.
14798 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
14799 the beginning of generated target commands.
14801 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
14802 dependencies for these in case implicit rule search skipped the
14803 nonexistent source directory.
14804 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
14805 files with $(object-suffixes) as targets too.
14806 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
14807 and a target for it using $(make-target-directory).
14809 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
14811 2002-11-10 Roland McGrath <roland@frob.com>
14813 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
14814 * sysdeps/generic/bits/pthreadtypes.h: ... here.
14816 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
14817 l_start == 0 and l_len == 1 as we do l_len == 0.
14819 2002-11-10 Ulrich Drepper <drepper@redhat.com>
14821 * po/da.po: Update from translation team.
14823 2002-11-10 Roland McGrath <roland@redhat.com>
14825 * config.make.in (includedir): New variable, substituted by configure.
14826 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
14827 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
14829 2002-11-10 Andreas Jaeger <aj@suse.de>
14831 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
14832 REG_OLDMASK and REG_CR2 to synch with kernel header.
14835 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
14837 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
14838 * nss/getnssent_r.c (__nss_getent_r): Likewise.
14839 (__nss_setent): Likewise.
14840 (__nss_getent_r): Likewise.
14841 * inet/getnetgrent_r.c (innetgr): Likewise.
14842 (__internal_setnetgrent_reuse): Likewise.
14843 (internal_getnetgrent_r): Likewise.
14844 * inet/ether_hton.c (ether_hostton): Likewise.
14845 * inet/ether_ntoh.c (ether_ntohost): Likewise.
14846 * sunrpc/netname.c (netname2user): Likewise.
14847 * sunrpc/publickey.c (getpublickey): Likewise.
14848 (getsecretkey): Likewise.
14850 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
14852 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
14853 error in range calculation.
14855 2002-10-09 Jakub Jelinek <jakub@redhat.com>
14857 * string/test-strspn.c (do_test): Ensure zero termination.
14858 * string/test-strpbrk.c (do_test): Likewise.
14859 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
14860 * string/test-strncpy.c (stupid_strncpy): Likewise.
14861 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
14863 2002-10-08 Roland McGrath <roland@redhat.com>
14865 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
14866 nonzero characters.
14868 2002-09-22 H.J. Lu <hjl@gnu.org>
14870 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
14871 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
14872 only if __NR_mmap2 is defined.
14874 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
14875 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
14876 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
14877 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
14879 2002-11-08 Jakub Jelinek <jakub@redhat.com>
14881 * posix/bug-regex13.c (tests): Add new test.
14883 * string/test-strchr.c (stupid_strchr): New function.
14884 (do_random_tests): Make sure the string is zero terminated.
14885 * string/test-strpbrk.c (stupid_strpbrk): New function.
14886 (do_random_tests): Make sure the string is zero terminated.
14887 * string/test-strcmp.c (stupid_strcmp): New function.
14888 (do_random_tests): Make sure the strings are zero terminated.
14889 * string/test-strspn.c (stupid_strspn): New function.
14890 (simple_strspn): Rename rej argument to acc.
14891 (do_random_tests): Make sure the string is zero terminated.
14892 * string/test-strcspn.c (stupid_strcspn): New function.
14893 * string/test-strncpy.c (stupid_strncpy): New function.
14894 * string/test-stpncpy.c (stupid_stpncpy): New function.
14895 * string/test-strncmp.c (stupid_strncmp): New function.
14896 (do_random_tests): Make sure the strings are zero terminated.
14897 * string/test-string.h (impl_t): Change test into long.
14898 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
14900 2002-11-08 Roland McGrath <roland@redhat.com>
14902 * sysdeps/ia64/elf/configure.in: Add TLS check.
14903 From Ian Wienand <ianw@cse.unsw.edu.au>.
14904 * sysdeps/ia64/elf/configure: Regenerated.
14906 2002-11-07 Roland McGrath <roland@redhat.com>
14908 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
14909 place of _IO_new_do_write.
14910 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
14911 #undef before versioned_symbol use.
14913 2002-11-07 Richard Henderson <rth@redhat.com>
14915 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
14916 * configure: Regenerated.
14917 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
14918 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
14919 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
14920 _dl_fini via gp-relative relocations.
14921 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
14923 * elf/tls-macros.h: Add alpha versions.
14924 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
14925 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
14926 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
14927 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
14928 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
14929 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
14930 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
14931 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
14932 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
14933 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
14934 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
14935 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
14936 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
14937 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
14938 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
14939 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
14940 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
14941 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
14943 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
14944 Kill argument registers across the inline syscall.
14946 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
14948 * linuxthreads/sysdeps/alpha/tls.h: New file.
14949 * sysdeps/alpha/dl-tls.h: New file.
14951 2002-10-29 David Mosberger <davidm@hpl.hp.com>
14953 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
14954 (gmon_initializer): New function.
14955 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
14956 __gmon_start__ here. Call it from gmon_initializer() instead.
14958 2002-03-12 H.J. Lu <hjl@gnu.org>
14960 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
14961 tst-array2, and tst-array3.
14962 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
14963 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
14964 ($(objpfx)tst-array1.out): New target.
14965 ($(objpfx)tst-array2): Likewise.
14966 ($(objpfx)tst-array2.out): Likewise.
14967 ($(objpfx)tst-array3.out): Likewise.
14968 * elf/tst-array1.c: New file.
14969 * elf/tst-array1.exp: Likewise.
14970 * elf/tst-array2.c: Likewise.
14971 * elf/tst-array2dep.c: Likewise.
14972 * elf/tst-array2.exp: Likewise.
14973 * elf/tst-array3.c: Likewise.
14975 2002-10-28 David Mosberger <davidm@hpl.hp.com>
14977 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
14978 Don't add L->l_addr to array entry values.
14980 2002-11-07 Jakub Jelinek <jakub@redhat.com>
14982 * string/test-string.h: New file.
14983 * string/test-strlen.c: New file.
14984 * string/test-string.h: New file.
14985 * string/test-strcmp.c: New file.
14986 * string/test-strchr.c: New file.
14987 * string/test-strrchr.c: New file.
14988 * string/test-strcpy.c: New file.
14989 * string/test-stpcpy.c: New file.
14990 * string/test-strncpy.c: New file.
14991 * string/test-stpncpy.c: New file.
14992 * string/test-strpbrk.c: New file.
14993 * string/test-strcspn.c: New file.
14994 * string/test-strspn.c: New file.
14995 * string/test-strcat.c: New file.
14996 * string/test-strncmp.c: New file.
14997 * string/test-memchr.c: New file.
14998 * string/test-memcmp.c: New file.
14999 * string/test-memset.c: New file.
15000 * string/test-memcpy.c: New file.
15001 * string/test-mempcpy.c: New file.
15002 * string/test-memmove.c: New file.
15003 * string/Makefile (strop-tests): New variable.
15004 (tests): Add strop-tests.
15005 (distribute): Add test-string.h.
15007 2002-11-06 Ulrich Drepper <drepper@redhat.com>
15009 * posix/regcomp.c: Use tabs instead of spaces.
15010 * posix/regexec.c: Likewise.
15011 * posix/regex_internal.h: Likewise.
15013 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
15015 2002-11-06 Jakub Jelinek <jakub@redhat.com>
15017 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
15019 (regcomp): Don't set can_be_null here.
15020 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
15021 (re_compile_internal): Clear can_be_null, set regs_allocated.
15023 * posix/regcomp.c (re_set_fastmap): New function.
15024 (re_compile_fastmap_iter): Use it. Remove redundant type ==
15025 COMPLEX_BRACKET check.
15026 * posix/regexec.c (re_search_internal): Optimize searching with
15027 fastmap. Call re_string_reconstruct even if match_first is
15028 smaller than raw_mbs_idx.
15030 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
15032 * posix/regcomp (free_dfa_content): Use free_state.
15033 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
15034 pointers in case that realloc failed.
15035 (re_node_set_merge): Likewise.
15036 (register_state): Likewise.
15037 (create_newstate_common): Invoke memory release functions in case of
15039 (create_ci_newstate): Likewise.
15040 (create_cd_newstate): Likewise.
15041 (free_state): New function.
15042 * posix/regexec.c (re_search_internal): Invoke memory release
15043 functions in case of error conditions.
15044 (sift_states_backward): Likewise.
15045 (merge_state_array): Likewise.
15046 (add_epsilon_src_nodes): Likewise.
15047 (sub_epsilon_src_nodes): Likewise.
15048 (search_subexp): Likewise.
15049 (sift_states_bkref): Likewise.
15050 (transit_state_sb): Likewise.
15051 (transit_state_mb): Likewise.
15052 (transit_state_bkref_loop): Likewise.
15053 (group_nodes_into_DFAstates): Likewise.
15054 (push_fail_stack): Don't edit pointers in case that realloc failed.
15055 (extend_buffers): Likewise.
15056 (match_ctx_add_entry): Likewise.
15058 2002-11-06 Roland McGrath <roland@redhat.com>
15060 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
15061 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
15063 * configure.in: Add checks on as and ld for binutils 2.13 or later.
15064 * configure: Regenerated.
15066 2002-11-06 Ulrich Drepper <drepper@redhat.com>
15068 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
15069 If re_compile_internal failed free fastmap buffer.
15070 (free_dfa_content): Broken out of regfree function. Frees all dfa
15072 (regfree): Add free_dfa_content.
15073 (re_compile_internal): If any of the called functions fails free
15074 all dfa related memory.
15076 2002-11-05 Ulrich Drepper <drepper@redhat.com>
15078 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
15079 warnings from the kernel headers.
15081 2002-11-05 Roland McGrath <roland@redhat.com>
15083 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
15084 From Johannes Stezenbach <js@convergence.de>.
15086 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
15087 #errlist-compat magic comment to give 123 as size.
15088 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
15089 (libc: GLIBC_2.2): ... here.
15090 (libc: GLIBC_2.3): Likewise.
15092 2002-11-05 Ulrich Drepper <drepper@redhat.com>
15094 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
15095 which happens at the beginning so that we can unload modules in
15098 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
15100 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
15101 under [__USE_MISC || _ASM].
15103 * elf/elf.h: Remove the obsolete SH TLS relocations.
15105 2002-11-05 Ulrich Drepper <drepper@redhat.com>
15107 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
15109 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
15112 __NR_pread64 and __NR_pwrite64.
15113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15114 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
15116 Revert change to use INLINE_SYSCALL.
15117 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
15118 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
15119 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
15120 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
15122 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
15124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
15125 Update clobber list and add a comment about the syscall ABI.
15127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
15128 s_pwrite64, s_ftruncate, s_truncate): Re-add.
15130 2002-11-05 Jakub Jelinek <jakub@redhat.com>
15132 * iconv/gconv_dl.c (free_mem): Clear loaded.
15133 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
15136 2002-11-05 Ulrich Drepper <drepper@redhat.com>
15138 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
15140 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
15141 as old code without locking. _IO_seekoff calls this function after
15142 locking the stream.
15143 * libio/ioseekpos.c: Likewise for _IO_seekpos.
15144 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
15145 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
15147 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
15148 of _IO_seekoff_internal.
15149 (_IO_rewind): Likewise.
15150 * libio/ioftell.c: Likewise.
15151 * libio/ftello.c: Likewise.
15152 * libio/ftello64.c: Likewise.
15153 * libio/iofgetpos.c: Likewise.
15154 * libio/iofgetpos64.c: Likewise.
15155 * libio/oldiofgetpos.c: Likewise.
15156 * libio/oldiofgetpos64.c: Likewise.
15157 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
15158 _IO_seekpos_internal.
15159 * libio/iofsetpos64.c: Likewise.
15160 * libio/oldiofsetpos.c: Likewise.
15161 * libio/oldiofsetpos64.c: Likewise.
15163 2002-11-04 Roland McGrath <roland@redhat.com>
15165 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
15166 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
15167 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
15168 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
15169 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
15170 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
15171 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
15172 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
15173 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
15174 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
15175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
15176 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
15177 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
15178 Remove these, no longer used.
15180 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
15183 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
15184 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
15185 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
15186 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
15187 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
15190 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
15191 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
15192 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
15194 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
15195 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
15197 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
15199 2002-11-03 Roland McGrath <roland@redhat.com>
15201 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
15202 `_dl_tls_static_used'.
15203 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
15204 (__libc_setup_tls): Initialize it. Let the initial value of
15205 _dl_tls_static_size indicate some surplus space in the computed value.
15206 * elf/dl-open.c (_dl_tls_static_size): New variable.
15207 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
15208 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
15209 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
15210 (CHECK_STATIC_TLS): Use it.
15211 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
15212 closed objects occupied a trailing contiguous chunk of static TLS area.
15214 2002-10-18 Bruno Haible <bruno@clisp.org>
15216 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
15218 2002-11-04 Ulrich Drepper <drepper@redhat.com>
15220 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
15221 _wide_data->_IO_read_end if adjustment can be made in the current
15224 * sysdeps/unix/sysv/linux/fexecve.c: New file.
15226 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
15227 wide oriented streams are used.
15229 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
15230 service hasn't been used [PR libc/4744].
15232 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
15233 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
15235 * manual/examples/dir.c: Don't include <stddef.h>.
15236 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
15237 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
15239 2002-11-02 H.J. Lu <hjl@gnu.org>
15241 * stdio-common/reg-printf.c: Include <stddef.h>.
15243 2002-11-03 Ulrich Drepper <drepper@redhat.com>
15245 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
15247 * po/ca.po: Update from translation team.
15248 * po/es.po: Likewise.
15250 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
15251 is defined write out memory map.
15252 * sysdeps/unix/sysv/linux/segfault.c: New file.
15254 2002-11-02 Roland McGrath <roland@redhat.com>
15256 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
15257 pointers that can alias.
15258 Reported by Daniel Jacobowitz <drow@mvista.com>.
15260 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
15262 2002-11-02 Roland McGrath <roland@redhat.com>
15264 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
15265 description to be clearer and to say that *RESULT is set to ENTRY.
15267 2002-10-30 Jakub Jelinek <jakub@redhat.com>
15269 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
15270 dests_ch arrays together. Alloca or malloc dest_states,
15271 dest_states_word and dest_states_nl arrays together. Free memory on
15274 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
15276 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
15277 and current_saltbits.
15279 2002-11-02 Roland McGrath <roland@redhat.com>
15281 * stdio-common/reg-printf.c: Include <stdlib.h>.
15283 2002-11-02 H.J. Lu <hjl@gnu.org>
15285 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
15286 caller to EXTRA instead of execve.
15288 2002-11-01 Roland McGrath <roland@redhat.com>
15290 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
15291 in place of [!(USE_TLS && HAVE___THREAD)].
15292 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
15294 2002-10-31 Roger Sayle <roger@eyesopen.com>
15296 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
15298 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
15300 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
15301 without defining FP_ROUNDMODE.
15303 2002-10-29 Jakub Jelinek <jakub@redhat.com>
15305 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
15306 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
15308 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
15309 (OLD_SIGLIST_SIZE): Define.
15310 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
15311 (OLD_SIGLIST_SIZE): Define.
15312 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
15314 2002-11-01 Jakub Jelinek <jakub@redhat.com>
15316 * sysdeps/ia64/strncpy.S: Fix recovery code.
15318 2002-10-30 Jakub Jelinek <jakub@redhat.com>
15320 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
15322 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
15324 * elf/dl-libc.c (free_mem): Likewise.
15325 * iconv/gconv_conf.c (free_mem): Likewise.
15326 * iconv/gconv_db.c (free_mem): Likewise.
15327 * iconv/gconv_dl.c (free_mem): Likewise.
15328 * iconv/gconv_cache.c (free_mem): Likewise.
15329 * intl/finddomain.c (free_mem): Likewise.
15330 * intl/dcigettext.c (free_mem): Likewise.
15331 * locale/setlocale.c (free_mem): Likewise.
15332 * misc/fstab.c (fstab_free): Likewise.
15333 * nss/nsswitch.c (free_mem): Likewise.
15334 * posix/regcomp.c (free_mem): Likewise.
15335 * resolv/gai_misc.c (free_res): Likewise.
15336 * stdlib/fmtmsg.c (free_mem): Likewise.
15337 * sunrpc/clnt_perr.c (free_mem): Likewise.
15338 * sysdeps/generic/setenv.c (free_mem): Likewise.
15339 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
15340 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
15341 * time/tzset.c (free_mem): Likewise.
15342 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
15343 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
15344 * malloc/set-freeres.c (__libc_freeres): Likewise.
15346 * login/getutent.c: Include stdlib.h instead of stddef.h.
15347 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
15348 (__getutent): Allocate buffer the first time it is run.
15349 * login/getutid.c: Include stdlib.h instead of stddef.h.
15350 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
15351 (__getutid): Allocate buffer the first time it is run.
15352 * login/getutline.c: Include stdlib.h instead of stddef.h.
15353 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
15354 (__getutline): Allocate buffer the first time it is run.
15355 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
15356 (mtrace): Allocate malloc_trace_buffer.
15357 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
15358 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
15359 * string/strerror.c: Include libintl.h and errno.h.
15360 (buf): New variable.
15361 (strerror): Only allocate buffer if actually needed (unknown error).
15362 * time/tzfile.c (transitions): Add libc_freeres_ptr.
15365 2002-10-25 Jakub Jelinek <jakub@redhat.com>
15367 * include/libc-symbols.h (libc_freeres_ptr): New macro.
15368 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
15370 (__libc_freeres): Free all pointers in that section.
15371 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
15372 commands when creating .lds script.
15373 (LDSEDCMD-c.so): New variable.
15374 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
15375 (rcmd_af): Use strdup to allocate ahostbuf.
15376 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
15377 (rexec_af): Use strdup to allocate ahostbuf.
15378 * stdio-common/reg-printf.c (printf_funcs): Remove.
15379 (__printf_arginfo_table): Change into printf_arginfo_function **.
15380 Add libc_freeres_ptr.
15381 (__register_printf_function): Allocate __printf_arginfo_table
15382 and __printf_function_table the first time it is called.
15383 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
15384 printf_arginfo_function **.
15385 (parse_one_spec): Add __builtin_expect.
15386 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
15387 (free_mem): Remove.
15388 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
15389 (free_mem): Remove.
15390 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
15391 (string_space, map): Add libc_freeres_ptr.
15392 (free_mem): Remove.
15393 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
15394 (free_mem): Remove.
15395 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
15396 (free_mem): Remove.
15397 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
15398 (buffer): Add libc_freeres_ptr.
15399 (free_mem): Remove for _LIBC.
15400 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
15401 (free_mem): Remove.
15402 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
15403 (free_mem): Remove.
15404 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
15405 (free_mem): Remove.
15406 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
15407 (free_mem): Remove.
15408 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
15409 (free_mem): Remove.
15410 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
15411 (free_mem): Remove.
15412 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
15414 (free_mem): Remove.
15415 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
15417 (free_mem): Remove.
15419 2002-10-30 Jakub Jelinek <jakub@redhat.com>
15421 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
15422 instead of duplicating the whole function in libc.
15424 2002-10-31 Roland McGrath <roland@redhat.com>
15426 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
15427 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
15429 2002-10-30 Jakub Jelinek <jakub@redhat.com>
15431 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
15432 32bit-predefine when creating .new32 list and -U for each
15433 32bit-predefine when creating .new64 list.
15434 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
15436 2002-10-29 Andreas Schwab <schwab@suse.de>
15438 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
15439 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
15441 2002-10-25 Roland McGrath <roland@redhat.com>
15443 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
15444 * sysdeps/unix/sysv/linux/configure: Regenerated.
15446 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
15447 _dl_starting_up decl.
15449 2002-10-20 H.J. Lu <hjl@gnu.org>
15451 * sysdeps/unix/sysv/linux/configure.in: Don't check
15452 /lib/modules/`uname -r`/build/include for kernel headers if
15454 * sysdeps/unix/sysv/linux/configure: Regenerated.
15456 2002-10-25 Roland McGrath <roland@redhat.com>
15458 * math/math.h (M_LOG2El): Correct the value.
15459 From Stephen L Moshier <steve@moshier.net>.
15461 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
15462 conditional from __libc_multiple_libcs access. Remove kludge for weak
15463 symbol access with old compilers we no longer support.
15464 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
15465 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
15467 2002-10-25 Roland McGrath <roland@redhat.com>
15469 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
15470 implement SV_RESETHAND by translating it to SA_RESETHAND.
15472 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
15474 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
15475 type on ELF64 platforms.
15477 2002-10-24 Ulrich Drepper <drepper@redhat.com>
15479 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
15481 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
15483 2002-10-24 Jakub Jelinek <jakub@redhat.com>
15485 * elf/dl-misc.c: Include <sysdep.h>.
15486 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
15488 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
15489 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
15490 (INLINE_SYSCALL): Use that.
15491 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
15492 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
15493 (INLINE_SYSCALL): Use that.
15494 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
15495 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
15496 (INLINE_SYSCALL): Use that.
15497 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
15499 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
15500 (__INTERNAL_SYSCALL_STRING): Define.
15501 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15503 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
15504 (__INTERNAL_SYSCALL_STRING): Define.
15505 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
15506 __SYSCALL_STRING to inline_syscall*.
15507 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
15509 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
15510 inline_syscall4, inline_syscall5, inline_syscall6): Add string
15513 2002-10-24 Roland McGrath <roland@redhat.com>
15515 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
15516 * sysdeps/unix/sysv/linux/init-first.c: Not here.
15517 * sysdeps/powerpc/elf/libc-start.c: Or here.
15518 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
15519 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
15520 * sysdeps/unix/sysv/aix/init-first.c: Or here.
15521 * sysdeps/generic/libc-start.c: Or here.
15522 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
15523 access with [! SHARED].
15524 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
15526 * libio/bug-wfflush.c: New file.
15527 * libio/Makefile (tests): Add bug-wfflush.
15529 2002-10-23 Roland McGrath <roland@redhat.com>
15531 * stdio-common/tst-fphex.c: New file.
15532 * stdio-common/Makefile (tests): Add tst-fphex.
15533 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
15534 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
15535 chars always before the value digits.
15536 Reported by James Antill <james.antill@redhat.com>.
15538 2002-10-24 Jakub Jelinek <jakub@redhat.com>
15540 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
15541 (free_mem): New function.
15542 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
15543 if not cross compiling.
15544 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
15545 (bug-regex14-ENV): Set.
15546 (bug-regex14-mem): New target.
15547 * posix/bug-regex14.c: New file.
15549 2002-10-23 Roland McGrath <roland@redhat.com>
15551 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
15552 target, so we don't touch it when the link fails.
15554 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
15555 Check for the result overflowing off_t and fail with EOVERFLOW.
15556 * libio/ioftell.c (_IO_ftell): Likewise.
15557 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15559 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
15560 use a temporary timeval on the stack for gettimeofday and copy it.
15561 * login/logout.c (logout): Likewise.
15562 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
15564 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
15565 Use __SWORD_TYPE instead of int for member types.
15566 (struct statfs64): Likewise.
15567 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
15568 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
15569 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
15570 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
15571 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
15573 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
15574 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
15575 (ST_NODIRATIME): Restore fixed value of 2048.
15576 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
15577 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
15579 Rearranged <bits/types.h> definitions to reduce duplication.
15580 * sysdeps/generic/bits/types.h: Rewritten, using macros from
15581 <bits/wordsize.h> and new header <bits/typesizes.h>.
15582 * posix/Makefile (headers): Add bits/typesizes.h here.
15583 * sysdeps/generic/bits/typesizes.h: New file.
15584 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
15585 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
15586 * sysdeps/mach/hurd/bits/typesizes.h: New file.
15587 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
15588 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
15589 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
15590 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
15591 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
15592 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
15593 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
15594 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
15595 <bits/pthreadtypes.h> here, not in <bits/types.h>.
15596 * signal/signal.h: Likewise.
15598 * streams/stropts.h: Include <bits/xtitypes.h>.
15599 * streams/Makefile (headers): Add bits/xtitypes.h here.
15600 * sysdeps/generic/bits/xtitypes.h: New file.
15601 * sysdeps/s390/bits/xtitypes.h: New file.
15602 * sysdeps/ia64/bits/xtitypes.h: New file.
15603 * sysdeps/x86_64/bits/xtitypes.h: New file.
15605 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
15606 * sysdeps/generic/bits/ipctypes.h: New file.
15607 * sysdeps/mips/bits/ipctypes.h: New file.
15608 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
15609 * sysdeps/gnu/bits/msq.h: Likewise.
15610 * sysvipc/sys/ipc.h: Likewise.
15612 2002-10-22 Ulrich Drepper <drepper@redhat.com>
15614 * elf/dl-load.c (struct filebuf): For buf element to have the
15615 alignment of ElfXX_Ehdr since this is what will be stored in it.
15617 2002-10-22 Jakub Jelinek <jakub@redhat.com>
15619 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
15620 into pointer to locrec_offset.
15621 (add_locale_to_archive): Adjust callers. Free normalized_name right
15622 before returning, not immediately after add_locale, pass it to
15623 add_alias if not NULL instead of name. Rename second normalized_name
15624 occurence to nnormalized_codeset_name.
15626 * locale/programs/locarchive.c (enlarge_archive): Make sure
15627 string_size is always a multiple of 4.
15628 Reported by Andreas Schwab <schwab@suse.de>.
15630 2002-10-21 Andreas Schwab <schwab@suse.de>
15632 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
15633 caller to EXTRA instead of execve, since the latter has a
15634 higher-priority implementation in linuxthreads.
15636 2002-10-21 Roland McGrath <roland@redhat.com>
15638 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
15639 slotinfo list's len member to the proper size, not just 1.
15640 Initialize static_map.l_tls_initimage.
15642 * elf/dl-open.c (dl_open_worker): Fix loop searching for
15643 dtv_slotinfo_list element containing new modules' l_tls_modid.
15645 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
15646 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
15647 * elf/Makefile (tests): Add tst-tls9.
15648 (tests-static): Add tst-tls9-static.
15649 (tst-tls9-static-ENV): New variable.
15650 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
15652 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
15653 modids used by partially loaded modules being closed can't be known.
15655 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
15657 * posix/Makefile: Add a test case for the bug reported by Aharon
15658 Robbins <arnold@skeeve.com>.
15659 * posix/bug-regex13.c: New file.
15660 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
15662 2002-10-21 Ulrich Drepper <drepper@redhat.com>
15664 * csu/gmon-start.c: Pretty printing.
15666 2002-10-19 Art Haas <ahaas@neosoft.com>
15668 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
15669 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
15670 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
15671 * configure: Regenerated.
15673 2002-10-19 Roland McGrath <roland@redhat.com>
15675 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
15676 and then set $subdirs directly, because the new Autoconf breaks
15677 compatibility in every way imaginable and insists on whining
15678 about usage that worked since the dawn of time.
15679 * configure: Regenerated.
15681 * configure: Regenerated (using Autoconf 2.54).
15682 * sysdeps/alpha/elf/configure: Likewise.
15683 * sysdeps/generic/configure: Likewise.
15684 * sysdeps/i386/elf/configure: Likewise.
15685 * sysdeps/ia64/elf/configure: Likewise.
15686 * sysdeps/mach/hurd/configure: Likewise.
15687 * sysdeps/mach/configure: Likewise.
15688 * sysdeps/unix/configure: Likewise.
15689 * sysdeps/unix/common/configure: Likewise.
15690 * sysdeps/unix/sysv/aix/configure: Likewise.
15691 * sysdeps/unix/sysv/linux/configure: Likewise.
15692 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
15693 * sysdeps/x86_64/elf/configure: Likewise.
15695 * config.make.in: Nix completely-soft nonsense.
15696 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
15697 of machine directories instead of fpu subdirectory.
15698 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
15699 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
15700 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
15701 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
15702 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
15703 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
15704 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
15705 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
15706 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
15707 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
15708 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
15709 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
15710 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
15711 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
15712 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
15713 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
15714 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
15715 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
15716 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
15717 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
15718 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
15719 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
15720 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
15721 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
15722 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
15723 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
15724 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
15725 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
15726 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
15727 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
15728 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
15729 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
15730 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
15731 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
15732 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
15733 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
15734 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
15735 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
15736 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
15737 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
15739 2002-10-19 Bruno Haible <bruno@clisp.org>
15741 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
15743 2002-10-18 Roland McGrath <roland@redhat.com>
15745 * io/Makefile (routines): Add lchmod.
15746 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
15747 * sysdeps/generic/lchmod.c: New file.
15748 * sysdeps/mach/hurd/lchmod.c: New file.
15749 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
15751 2002-10-18 Art Haas <ahaas@neosoft.com>
15753 * configure.in: Remove remaining AC_FD_CC macros, and replace
15754 AC_FD_MSG with AS_MESSAGE_FD.
15756 2002-10-18 Roland McGrath <roland@redhat.com>
15758 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
15759 typos: VALUE -> FINALADDR.
15761 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
15762 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
15763 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
15764 (inline_syscall6): Move these macros ...
15765 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
15767 * configure.in (libc_link_dests, libc_link_sources): Remove these
15768 variables and the AC_LINK_FILES call.
15770 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
15771 change to put new symbols here instead of in GLIBC_2.2.
15772 * sysdeps/powerpc/Subdirs: Move this file ...
15773 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
15775 2002-10-07 Roland McGrath <roland@redhat.com>
15777 * sysdeps/generic/bits/time.h: Replaced with contents of the
15778 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
15779 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
15780 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
15781 macros is ok even for architectures that don't now implement them.
15782 * sysdeps/mach/hurd/bits/time.h: File removed.
15783 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
15784 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
15785 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
15786 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
15787 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
15789 2002-10-18 Jeff Bailey <jbailey@gnu.org>
15791 * configure.in: Replace obsolete AC_OUTPUT syntax with
15792 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
15794 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
15795 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
15797 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
15798 * sysdeps/alpha/elf/configure.in: Likewise.
15799 * sysdeps/i386/elf/configure.in: Likewise.
15800 * sysdeps/mach/hurd/configure.in: Likewise.
15801 * sysdeps/x86_64/elf/configure.in: Likewise.
15803 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
15805 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
15806 * sysdeps/generic/configure.in: Likewise.
15807 * sysdeps/i386/elf/configure.in: Likewise.
15808 * sysdeps/ia64/elf/configure.in: Likewise.
15809 * sysdeps/mach/configure.in: Likewise.
15810 * sysdeps/mach/hurd/configure.in: Likewise.
15811 * sysdeps/unix/configure.in: Likewise.
15812 * sysdeps/unix/common/configure.in: Likewise.
15813 * sysdeps/unix/sysv/aix/configure.in: Likewise.
15814 * sysdeps/unix/sysv/linux/configure.in: Likewise.
15815 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
15816 * sysdeps/x86_64/elf/configure.in: Likewise.
15818 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
15819 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
15820 that it's obvious when extra autoconf machinery is being dragged in.
15822 2002-10-18 Roland McGrath <roland@redhat.com>
15824 * configure.in: Remove bogus echo included in
15825 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
15826 * configure: Regenerated.
15828 2002-10-18 Jakub Jelinek <jakub@redhat.com>
15830 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
15831 (statfs_filesize_max): New function.
15832 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
15833 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
15834 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
15835 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
15836 statfs_filesize_max.
15837 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
15838 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
15839 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
15841 2002-10-17 Roland McGrath <roland@redhat.com>
15843 * configure.in (MIG): Just AC_SUBST it here.
15844 * configure: Regenerated.
15845 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
15846 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
15847 * sysdeps/mach/configure: Regenerated.
15849 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
15850 and AC_PROVIDE([_AS_CR_PREPARE]).
15852 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
15853 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
15855 * elf/dl-support.c: Move _dl_tls_* variables to ...
15856 * sysdeps/generic/libc-tls.c: ... here.
15858 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
15859 allow IDX to be one past the current last slotinfo entry.
15860 (_dl_close): Pass IMAP->l_init_called for that parameter.
15862 2002-10-07 Andreas Schwab <schwab@suse.de>
15864 * aclocal.m4: Fix for autoconf 2.53.
15865 * configure.in: Likewise. Require autoconf 2.53.
15867 2002-10-08 Richard Henderson <rth@redhat.com>
15869 * soft-fp/op-4.h: Handle carry correctly in
15870 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
15871 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
15872 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
15874 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
15876 * configure.in: Compute completely-soft.
15877 * config.make.in: Make completely-soft available to sub-makes.
15878 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
15879 gcc-double-routines. Add sim-full.c. Add fenv_const and
15880 fe_nomask to libm-support.
15881 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
15882 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
15883 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
15884 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
15885 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
15886 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
15887 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
15888 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
15889 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
15890 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
15891 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
15892 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
15893 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
15894 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
15895 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
15896 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
15897 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
15898 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
15899 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
15900 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
15902 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
15903 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
15904 FP_HANDLE_EXCEPTIONS.
15905 Define FP_ROUNDMODE.
15906 Redefine FP_* macros to correspond to the FE_* bit positions.
15907 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
15908 Define externs for __sim_exceptions, __sim_disabled_exceptions,
15909 __sim_round_mode, __simulate_exceptions.
15910 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
15911 * sysdeps/powerpc/bits/fenv.h: ...to here.
15913 2002-10-06 Jakub Jelinek <jakub@redhat.com>
15915 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
15916 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
15917 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
15918 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
15921 2002-10-15 Jakub Jelinek <jakub@redhat.com>
15923 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
15924 __libc_res_nsend): New prototypes.
15925 * resolv/res_query.c (QUERYSIZE): Define.
15926 (__libc_res_nquery): Renamed from res_nquery. Added answerp
15927 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
15928 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
15929 res_nsend, pass answerp.
15930 (res_nquery): Changed into wrapper around __libc_res_nquery.
15931 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
15932 argument. Call __libc_res_nquerydomain and __libc_res_nquery
15933 instead of the non-__libc_ variants, pass them answerp.
15934 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
15935 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
15936 Added answerp argument. Call __libc_res_nquery instead of
15937 res_nquery, pass answerp.
15938 (res_nquerydomain): Changed into wrapper around
15939 __libc_res_nquerydomain.
15940 * resolv/res_send.c: Include sys/ioctl.h.
15941 (MAXPACKET): Define.
15942 (send_vc): Change arguments. Reallocate answer buffer if it is
15944 (send_dg): Likewise.
15945 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
15946 Reallocate answer buffer if it is too small and hooks are in use.
15947 Adjust calls to send_vc and send_dg.
15948 (res_nsend): Changed into wrapper around __libc_res_nsend.
15949 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
15950 just 1K answer buffer on the stack, use __libc_res_nsearch instead
15952 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
15953 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
15954 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
15955 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
15956 (gethostbyaddr): Similarly with __libc_res_nquery.
15957 * resolv/Versions (libresolv): Export __libc_res_nquery and
15958 __libc_res_nsearch at GLIBC_PRIVATE.
15960 2002-10-17 Roland McGrath <roland@redhat.com>
15962 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
15963 * configure: Regenerated.
15965 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
15966 before performing the reloc, not after.
15967 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15969 2002-10-17 Ulrich Drepper <drepper@redhat.com>
15971 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
15972 * locale/programs/linereader.c (lr_open): Likewise.
15973 * locale/programs/charmap-dir.c (charmap_open): Likewise.
15974 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
15976 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
15978 * posix/bug-regex11.c: Add a test case for the bug reported by
15979 Paolo Bonzini <bonzini@gnu.org>.
15980 * posix/regexec.c (sift_states_bkref): Use correct destination of
15981 the back reference.
15983 2002-10-17 Roland McGrath <roland@redhat.com>
15985 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
15986 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
15987 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
15988 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
15989 Call it after performing TPOFF relocs.
15990 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15991 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15992 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
15994 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
15995 when closing a partially-initialized object.
15997 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
15998 instead of _dl_fatal_printf when we see PT_TLS.
16000 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
16001 instead of $(libof-$<).
16003 2002-10-16 Roland McGrath <roland@redhat.com>
16005 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
16006 instead of += to append, to be sure $(lib) gets expanded at defn time.
16007 (libof-$(cpp-src)): New variable, define this instead.
16008 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
16009 (lib): Don't use override.
16010 (CPPFLAGS-$(lib)): New variable, put -D's here.
16011 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
16012 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
16013 LIB found by $(libof-*) for basename, target, or source.
16014 * Makerules (CPPFLAGS-nonlib): New variable.
16015 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
16016 * locale/Makefile (lib): Likewise.
16017 * sunrpc/Makefile (lib): Likewise.
16019 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
16020 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
16021 * sysdeps/unix/sysv/linux/pathconf.h: New file.
16022 (statfs_link_max): New function, guts from fpathconf.c.
16023 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
16024 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
16025 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
16026 to use the linux/pathconf.c code by #include rather than duplication.
16027 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
16029 2002-10-16 Jakub Jelinek <jakub@redhat.com>
16031 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
16032 Use __libc_errno only for libc itself.
16034 2002-10-16 Andreas Jaeger <aj@suse.de>
16036 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
16038 2002-10-16 Ulrich Drepper <drepper@redhat.com>
16040 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
16041 Use __libc_errno only for libc itself.
16043 2002-10-15 Roland McGrath <roland@redhat.com>
16044 Jakub Jelinek <jakub@redhat.com>
16046 * sysdeps/unix/sysv/linux/Makefile
16047 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
16048 sparc/Makefile to produce a bi-arch file as needed.
16049 That's now parameterized by the variable $(64bit-predefine).
16050 Use LC_ALL=C for `comm' commands in that rule.
16051 No longer conditional on [$(no_syscall_list_h)].
16052 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
16053 (64bit-predefine): New variable.
16054 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
16055 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
16056 * sysdeps/unix/sysv/linux/powerpc/Makefile
16057 (64bit-predefine): New variable.
16059 2002-10-15 Roland McGrath <roland@redhat.com>
16061 * sysdeps/unix/sysv/linux/Makefile
16062 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
16064 * login/utmp-private.h: Declare __libc_utmp_lock.
16065 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
16066 and call __libc_utmp_jump_table functions directly, instead of using
16069 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
16070 * sysdeps/unix/sysv/linux/configure: Regenerated.
16072 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
16073 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
16074 Use int32_t for ll_time.
16075 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
16076 Use int32_t instead of long int for ut_session.
16077 Use an anonymous struct with 32-bit fields for ut_tv.
16078 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
16079 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
16080 here as in utmp.h for `struct utmp'.
16081 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
16082 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
16083 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
16084 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
16085 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
16086 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
16088 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
16089 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
16090 All the following files were identical or equivalent to it.
16091 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
16092 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
16093 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
16094 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
16095 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
16096 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
16097 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
16098 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
16099 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
16100 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
16102 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
16103 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
16104 Other than the previously incorrect sign of msg_iovlen, this is a
16105 no-op on 32-bit platforms. On 64-bit platforms it makes this header
16106 match their layouts as well, so the following are now identical to it.
16107 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
16108 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
16109 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
16110 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
16111 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
16113 2002-10-15 Ulrich Drepper <drepper@redhat.com>
16115 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
16116 Define for 2.4+ kernels.
16118 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
16119 are known to have the vfork syscall. Don't confuse the CPUs
16120 branch prediction unit by jumping to the return address.
16122 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
16123 support for reiserfs and xfs.
16125 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
16127 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
16129 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
16131 2002-10-16 Jakub Jelinek <jakub@redhat.com>
16133 * include/libc-symbols.h (attribute_tls_model_ie): Define.
16134 * include/errno.h (errno): Define to __libc_errno in libc.so.
16135 Add attribute_tls_model_ie.
16136 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
16137 Add attribute_tls_model_ie.
16138 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
16139 attribute_tls_model_ie.
16140 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
16142 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
16144 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
16145 attribute_tls_model_ie.
16146 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
16148 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
16149 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
16150 __libc_errno in USE___THREAD case.
16151 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
16153 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
16154 __attribute__((tls_model (""))).
16155 * configure: Rebuilt.
16156 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
16158 2002-10-15 Ulrich Drepper <drepper@redhat.com>
16160 * timezone/asia: Update from tzdata2002d.
16161 * timezone/australasia: Likewise.
16162 * timezone/iso3166.tab: Likewise.
16163 * timezone/southamerica: Likewise.
16164 * timezone/zone-tab: Likewise.
16166 2002-10-15 Roland McGrath <roland@redhat.com>
16168 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
16169 Adjust TCB pointer before calling free, so we get the whole block.
16171 2002-10-14 Roland McGrath <roland@redhat.com>
16173 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
16174 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
16175 extern using attribute_hidden instead of static, avoids warning.
16177 2002-10-09 Jakub Jelinek <jakub@redhat.com>
16179 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
16180 * sysdeps/unix/sysv/linux/configure: Rebuilt.
16182 2002-10-14 Ulrich Drepper <drepper@redhat.com>
16184 * po/sv.po: Update from translation team.
16186 2002-10-12 H.J. Lu <hjl@gnu.org>
16188 * sunrpc/thrsvc.c (PROCQUIT): New.
16189 (struct rpc_arg): New.
16190 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
16191 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
16192 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
16193 (main): Modified for struct rpc_arg *.
16195 2002-10-14 Ulrich Drepper <drepper@redhat.com>
16197 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
16199 2002-10-14 Jakub Jelinek <jakub@redhat.com>
16201 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
16202 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
16203 in ld.so even if __thread is supported.
16205 2002-10-13 Jakub Jelinek <jakub@redhat.com>
16207 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
16208 Add hack to prevent the compiler from clobbering the signal context.
16209 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
16211 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
16214 2002-10-14 Andreas Jaeger <aj@suse.de>
16216 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
16217 Guido Guenther <agx@sigxcpu.org>.
16219 2002-10-14 Ulrich Drepper <drepper@redhat.com>
16221 * po/sk.po: Update from translation team.
16223 2002-09-26 Roland McGrath <roland@redhat.com>
16225 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
16226 dynamic string tag.
16227 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
16228 DL_DST_LIB based on $(slibdir).
16230 2002-10-13 Roland McGrath <roland@frob.com>
16232 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
16234 * sysdeps/mach/hurd/getresuid.c: New file.
16235 * sysdeps/mach/hurd/getresgid.c: New file.
16236 * sysdeps/mach/hurd/setresuid.c: New file.
16237 * sysdeps/mach/hurd/setresgid.c: New file.
16239 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
16240 setresgid): Declare them.
16241 * NEWS: Mention it.
16243 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
16244 add libc_hidden_proto.
16245 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
16246 getresuid, getresgid, setresuid, setresgid here.
16247 * Versions.def (libc): Define GLIBC_2.3.2 set.
16248 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
16249 Add libc_hidden_def.
16250 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
16251 * sysdeps/generic/setresgid.c: New file.
16252 * sysdeps/generic/setresuid.c: New file.
16253 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
16254 (sysdep_routines): Don't add getresuid and getresgid here.
16255 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
16256 (sysdep_routines): Don't add setresuid and setresgid here.
16257 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
16258 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
16259 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
16260 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
16261 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
16262 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
16263 * posix/Makefile (routines): Add them all here instead.
16264 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
16265 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
16266 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
16267 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
16268 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
16269 [! __NR_setresuid]: Include generic file.
16270 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
16271 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
16272 [! __NR_setresuid]: Include generic file.
16273 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
16274 Caller is - now, not EXTRA.
16275 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
16276 (setresuid, setresgid, getresuid, getresgid): Likewise.
16277 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
16278 Add these calls here.
16279 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
16280 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
16281 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
16282 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
16283 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
16284 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
16286 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
16287 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
16289 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
16290 (sysdep_routines): Add setfsuid and setfsgid here.
16291 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
16292 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
16293 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
16294 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
16295 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
16296 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
16297 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
16298 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
16300 * hurd/errno.c: Renamed to ...
16301 * hurd/errno-loc.c: ... this.
16302 * hurd/Makefile (routines): errno -> errno-loc
16304 2002-10-13 Ulrich Drepper <drepper@redhat.com>
16306 * po/de.po: Update from translation team.
16308 * MakeTAGS: Add -E flag to xgettext runs.
16310 2002-10-12 Ulrich Drepper <drepper@redhat.com>
16312 * po/fr.po: Update from translation team.
16314 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
16315 Optimize a bit for use in glibc.
16317 2002-10-12 Roland McGrath <roland@redhat.com>
16319 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
16320 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
16322 2002-10-12 Ulrich Drepper <drepper@redhat.com>
16324 * po/sv.po: Update from translation team.
16326 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
16328 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
16330 (regfree): Likewise.
16331 (create_initial_state): Likewise.
16332 (analyze): Remove the substitutions which became useless.
16333 (calc_first): Likewise.
16334 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
16335 epsilon destination.
16336 (duplicate_node_closure): New function.
16337 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
16338 (calc_inveclosure): Likewise.
16339 (calc_eclosure): Likewise.
16340 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
16341 direct invocation of duplicate_node.
16342 (parse): Don't use comma operator in the return to avoid compiler
16344 (parse_reg_exp): Likewise.
16345 (parse_branch): Likewise.
16346 (parse_expression): Likewise.
16347 (parse_sub_exp): Likewise.
16348 (parse_dup_op): Likewise.
16349 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
16350 which became useless.
16351 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
16352 (create_cd_newstate): Likewise.
16353 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
16354 (re_token_t): Likewise.
16355 (re_dfa_t): Likewise.
16356 (re_node_set_remove): New macro.
16357 * posix/regexec.c (check_matching): Remove the handling
16359 (check_halt_node_context): Likewise.
16360 (proceed_next_node): Likewise.
16361 (pop_fail_stack): Fix the memory leak.
16362 (set_regs): Likewise.
16363 (free_fail_stack_return): New function.
16364 (sift_states_backward): Fix the memory leak. Remove the handling
16366 (update_cur_sifted_state): Append some if clause to avoid redundant
16368 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
16370 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
16371 (check_subexp_limits): Likewise.
16372 (search_subexp): Likewise.
16373 (sift_states_bkref): Likewise.
16374 (transit_state_mb): Likewise.
16375 (transit_state_bkref_loop): Likewise.
16376 (transit_state_bkref_loop): Likewise.
16377 (group_nodes_into_DFAstates): Likewise.
16378 (check_node_accept): Likewise.
16379 (sift_ctx_init): Add initializing.
16381 2002-10-12 Ulrich Drepper <drepper@redhat.com>
16383 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
16386 2002-10-11 Ulrich Drepper <drepper@redhat.com>
16388 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
16389 duplicated variable c.
16391 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
16394 * sysdeps/unix/sysv/linux/i386/sysdep.h
16395 (INTERNAL_SYSCALL_ERROR_P): New define.
16396 (INTERNAL_SYSCALL_ERRNO): Likewise.
16398 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
16399 Add hack to prevent the compiler from clobbering the signal context.
16401 2002-10-11 Roland McGrath <roland@redhat.com>
16403 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
16406 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
16407 * sysdeps/sh/dl-lookupcfg.h: File removed.
16408 * sysdeps/i386/dl-lookupcfg.h: File removed.
16410 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
16411 missing labels and ; from last change.
16413 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
16414 number literals, so they are doubles instead of ints.
16416 2002-10-09 Roland McGrath <roland@redhat.com>
16418 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
16419 changed from [USE_TLS && HAVE___THREAD].
16421 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
16422 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
16423 * sysdeps/x86_64/dl-machine.h
16424 (elf_machine_type_class, elf_machine_rela): Likewise.
16425 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
16428 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
16429 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
16430 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
16432 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
16433 instead of ___tls_get_addr.
16434 (___tls_get_addr_internal): Add attribute_hidden to decl.
16436 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
16437 _dl_error_catch_tsd.
16438 * elf/rtld.c (startup_error_tsd): New function.
16439 (dl_main): Point _dl_error_catch_tsd at that.
16440 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
16441 use new function pointer instead.
16442 * elf/dl-tsd.c: New file.
16443 * elf/Makefile (routines): Add it.
16445 2002-10-07 Roland McGrath <roland@redhat.com>
16447 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
16448 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
16449 take _dl_load_lock around calling __writev.
16451 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
16452 (INLINE_SYSCALL): Use that.
16454 * sysdeps/generic/dl-sysdep.h: New file.
16455 * sysdeps/mach/hurd/dl-sysdep.h: New file.
16456 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
16457 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
16458 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
16459 access it directly.
16460 * elf/dl-minimal.c (__errno_location): Removed.
16461 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
16462 Use GOTOFF access for errno.
16463 * sysdeps/unix/sysv/linux/i386/sysdep.h
16464 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
16466 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
16467 Use PC-relative access for errno.
16468 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16469 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
16471 * include/tls.h: New file.
16472 (USE___THREAD): New macro.
16473 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
16474 libc or libpthread.
16475 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
16476 changed from [USE_TLS && HAVE___THREAD].
16477 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16478 * sysdeps/unix/i386/sysdep.S: Likewise.
16479 * sysdeps/unix/x86_64/sysdep.S: Likewise.
16480 * include/errno.h: Likewise.
16481 * include/netdb.h: Likewise.
16482 * include/resolv.h: Likewise.
16484 * sysdeps/generic/errno.c: New file.
16485 * csu/Makefile (aux): New variable, list errno.
16486 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
16487 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
16488 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
16489 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16490 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16491 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
16492 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
16493 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
16494 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16495 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
16496 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
16497 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
16498 * sysdeps/unix/alpha/sysdep.S: Likewise.
16499 * sysdeps/generic/start.c: Likewise.
16500 * sysdeps/unix/start.c: Likewise.
16501 * sysdeps/unix/arm/start.c: Likewise.
16502 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
16503 * sysdeps/unix/sparc/start.c: Likewise.
16504 * sysdeps/unix/sysv/irix4/start.c: Likewise.
16505 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
16507 * manual/search.texi (Tree Search Function, Hash Search Function):
16508 Mention search.h clearly.
16510 2002-10-05 Roland McGrath <roland@redhat.com>
16512 * elf/dl-fxstat64.c: File removed.
16513 * elf/dl-xstat64.c: File removed.
16514 * elf/Makefile (rtld-routines): Remove them.
16515 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
16516 Instead, use strong_alias instead of versioned_symbol in the
16517 !SHLIB_COMPAT case.
16518 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
16519 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
16521 * include/shlib-compat.h
16522 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
16523 [! NOT_IN_libc] (IS_IN_libc): Define it.
16524 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
16525 * elf/Makefile (CPPFLAGS-.os): Likewise.
16527 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
16528 Return the status instead of calling exit.
16530 * Makeconfig (CFLAGS): Prepend -std=gnu99.
16531 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
16532 Remove superfluous rm command, whose @ plus make bugs hid
16533 all these commands from the make output.
16535 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
16536 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
16537 Use that file's contents instead of literal echo's for the prologue.
16538 * include/features.h: Include <gnu/stubs.h> unconditionally.
16539 * include/gnu/stubs.h: New file.
16541 2002-09-30 Roland McGrath <roland@redhat.com>
16543 * elf/rtld-Rules: New file.
16544 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
16545 $(objpfx)rtld-libc.a): New targets.
16546 (generated): Add them.
16547 (reloc-link): Remove -o $@ from the variable.
16548 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
16549 (distribute): Add rtld-Rules.
16550 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
16551 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
16552 (common-mostlyclean, common-clean): Clean up rtld-* files.
16553 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
16555 2003-05-20 Jakub Jelinek <jakub@redhat.com>
16557 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
16558 If temp != NULL, copy dynamic entries which need relocation to temp
16559 array before relocating.
16560 (DL_RO_DYN_TEMP_CNT): Define.
16561 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
16562 * elf/rtld.c (_dl_start): Likewise.
16563 (dl_main): Likewise. Add dyn_temp static variable.
16565 2002-10-11 Roland McGrath <roland@redhat.com>
16567 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
16568 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
16570 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
16571 proper set of no-op insn prefixes.
16573 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
16575 2002-10-11 Ulrich Drepper <drepper@redhat.com>
16577 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
16578 __pthread_kill_other_threads_np.
16580 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
16582 2002-10-08 Roland McGrath <roland@redhat.com>
16584 * locale/newlocale.c (__newlocale): If setting all categories to "C",
16585 just return &_nl_C_locobj instead of copying it.
16586 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
16587 * locale/duplocale.c (__duplocale): Likewise.
16589 2002-10-07 Roland McGrath <roland@frob.com>
16591 * config.h.in (HAVE_I386_SET_GDT): New #undef.
16592 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
16593 * sysdeps/mach/configure: Regenerated.
16595 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
16598 Add all necessary register outputs for syscall-clobbered registers.
16600 2002-10-02 David Mosberger <davidm@hpl.hp.com>
16602 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
16603 Itanium 2 (and Itanium).
16604 Fix unwind directives and make it fit in 80 columns.
16605 * sysdeps/ia64/memset.S: Likewise.
16606 * sysdeps/ia64/memcpy.S: Likewise.
16607 Move jump table to .rodata section.
16609 2002-10-03 Roland McGrath <roland@frob.com>
16611 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
16614 2002-10-10 Andreas Jaeger <aj@suse.de>
16616 * sysdeps/x86_64/_mcount.S: Restore correct registers.
16618 2002-10-10 Ulrich Drepper <drepper@redhat.com>
16620 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
16622 2002-10-09 Ulrich Drepper <drepper@redhat.com>
16624 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
16625 _dl_allocate_tls_init. Add rtld_hidden_proto.
16626 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
16628 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
16630 * version.h (VERSION): Bump to 2.3.1.
16632 * Make-dist: Add back one of the tar invocations removed before.
16634 * stdlib/Makefile (distribute): Add allocalim.h.
16636 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
16637 (__libc_tsd_address): Use correct variable name.
16638 Patch by Stefan Jones <stefan.jones@multigig.com>.
16640 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
16641 Reported by edwardsg@sgi.com [PR libc/4678].
16643 * Versions.def (libc): Add GLIBC_2.3.1.
16644 (libpthread): Add GLIBC_2.3.1.
16646 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
16647 and __sigtimedwait.
16648 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
16649 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
16651 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
16652 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16654 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
16655 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
16656 and make old name an alias.
16657 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
16658 and make old name an alias.
16659 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
16662 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
16663 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
16665 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
16667 * sysdeps/posix/readv.c: Likewise
16668 * sysdeps/unix/sysv/aix/readv.c: Likewise.
16669 * sysdeps/unix/sysv/linux/readv.c: Likewise.
16670 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
16672 * sysdeps/posix/writev.c: Likewise
16673 * sysdeps/unix/sysv/aix/writev.c: Likewise.
16674 * sysdeps/unix/sysv/linux/writev.c: Likewise.
16676 * include/sys/wait.h: Declare __waitid.
16677 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
16678 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
16680 * sysdeps/posix/waitid.c: Likewise.
16681 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
16683 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
16685 2002-10-07 Jakub Jelinek <jakub@redhat.com>
16687 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
16689 (__MAX_ALLOCA_CUTOFF): Define.
16690 Include allocalim.h.
16691 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
16692 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
16693 host_buffer depending on __libc_use_alloca.
16694 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
16695 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
16696 net_buffer depending on __libc_use_alloca.
16697 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
16698 buf depending on __libc_use_alloca.
16699 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
16700 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
16701 instead of hardcoded constants.
16702 Pass proper size argument to alloca and compute end for wide char
16704 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
16705 instead of hardcoded constants.
16706 * string/strcoll.c (strcoll): Likewise.
16707 * string/strxfrm.c (strxfrm): Likewise.
16708 * sysdeps/posix/readv.c (__readv): Likewise.
16709 * sysdeps/posix/writev.c (__writev): Likewise.
16710 * sysdeps/generic/allocalim.h: New file.
16712 2002-10-08 Roland McGrath <roland@redhat.com>
16714 * configure.in (aux_missing warning): Change "too old" to
16715 "incompatible versions", since for autoconf it's "too new" right now.
16716 * configure: Regenerated.
16718 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
16719 one found doesn't work on our configure.in.
16720 * configure: Regenerated.
16721 * config.make.in (AUTOCONF): New substituted variable.
16722 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
16723 (autoconf-it): ... here, use that instead of defining conditionally.
16724 Use $(AUTOCONF) instead of literal autoconf.
16725 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
16726 with this condition.
16727 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
16729 2002-10-08 Ulrich Drepper <drepper@redhat.com>
16731 * Make-dist (dist): Cleanup a bit. We are not interested in the
16732 14 char filename limit anymore. Remove intermediate files and
16735 2002-10-05 Ulrich Drepper <drepper@redhat.com>
16737 * po/sk.po: Update from translation team.
16738 * po/tr.po: Likewise.
16739 * po/gl.po: Likewise.
16741 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
16743 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
16745 2002-10-03 Ulrich Drepper <drepper@redhat.com>
16747 * version.h (RELEASE): Change to stable.
16749 2002-10-03 Jakub Jelinek <jakub@redhat.com>
16751 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
16752 __syscall_exit_group): New prototypes.
16754 2002-10-03 Ulrich Drepper <drepper@redhat.com>
16756 * glibc 2.3 released.
16759 See ChangeLog.13 for earlier changes.