12004-04-19 Roland McGrath <roland@redhat.com> 2 3 * rt/tst-mqueue9.c (do_test): Initialize RESULT. 4 52004-04-19 Jakub Jelinek <jakub@redhat.com> 6 7 * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Change EPERM into 8 EACCES. 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 12 name component. 13 142004-04-19 Ulrich Drepper <drepper@redhat.com> 15 16 * rt/tst-mqueue7.c (do_test): Make newargv const. 17 182004-04-18 Randolph Chung <tausq@debian.org> 19 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. 23 242004-04-18 Ulrich Drepper <drepper@redhat.com> 25 26 * sysdeps/unix/sysv/linux/powerpc/rt-sysdep.c: New file. 27 * sysdeps/unix/sysv/linux/powerpc/Makefile (librt-routines): Add 28 rt-sysdep. 29 30 * rt/tst-mqueue5.c (mqsend): Don't inline. 31 (mqrecv): Likewise. 32 33 * rt/tst-timer4.c: Include <string.h>. 34 352004-04-17 Jakub Jelinek <jakub@redhat.com> 36 37 * rt/Makefile (tests): Add tst-mqueue8. 38 * rt/tst-mqueue8.c: New test. 39 40 * sysdeps/unix/sysv/linux/s390/Makefile (librt-routines): Add 41 rt-sysdep. 42 * sysdeps/unix/sysv/linux/s390/rt-sysdep.S: New file. 43 442004-03-26 H.J. Lu <hongjiu.lu@intel.com> 45 46 * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c (__fxstat): Don't 47 use "struct kernel_stat". 48 492004-04-02 H.J. Lu <hongjiu.lu@intel.com> 50 51 * sysdeps/ia64/memcmp.S: Fix symbol. 52 532004-04-04 Carlos O'Donell <carlos@baldric.uwo.ca> 54 55 * sysdeps/hppa/Dist: Add bits/link.h elf/entry.h. 56 57 * sysdeps/hppa/bits/link.h: New file. 58 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 63 elf_machine_dynamic. 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)). 81 822004-04-05 Carlos O'Donell <carlos@baldric.uwo.ca> 83 84 * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Use only sw[0] 85 and call feraiseexcept. 86 872003-11-15 Randolph Chung <tausq@debian.org> 88 89 * gmon/gmon.c (__monstartup): Round kcountsize to multiples of 90 the froms[] array so the array is properly aligned. 91 922004-04-05 H.J. Lu <hongjiu.lu@intel.com> 93 94 * Makeconfig (libgcc_eh): Add -Wl,. 95 96 * configure.in: Add -lgcc_s for --as-needed check. 97 982004-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp> 99 100 * sysdeps/sh/elf/configure.in: New file. 101 1022004-04-17 Ulrich Drepper <drepper@redhat.com> 103 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. 111 112 * rt/tst-timer4.c: Disable some tests, mark errors better. 113 1142004-04-16 Ulrich Drepper <drepper@redhat.com> 115 116 * rt/tst-mqueue6.c (mqsend): Don't inline. 117 (mqrecv): Likewise. 118 119 * rt/tst-mqueue3.c (do_test): Cope with kernel without mq support. 120 121 * sysdeps/ieee754/bits/nan.h (__nan_union): Add __attribute_used__ 122 attribute to keep gcc quiet. 123 1242004-04-16 Jakub Jelinek <jakub@redhat.com> 125 126 * misc/syslog.c (vsyslog): Avoid freeing failbuf. 127 1282004-04-15 Jakub Jelinek <jakub@redhat.com> 129 130 * rt/Makefile (tests): Add tst-timer4. 131 * rt/tst-timer4.c: New test. 132 1332004-04-15 Jakub Jelinek <jakub@redhat.com> 134 135 * rt/tst-mqueue5.c (rtmin_code): New variable. 136 (rtmin_handler): Set it. 137 (thr, do_child, do_test): Also check rtmin_code. 138 1392004-04-14 Jakub Jelinek <jakub@redhat.com> 140 141 * rt/Makefile (tests): Add tst-mqueue7. 142 (tst-mqueue7-ARGS): Set. 143 * rt/tst-mqueue7.c: New test. 144 1452004-04-13 Jakub Jelinek <jakub@redhat.com> 146 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. 160 (PREPARE): Define. 161 (CLEANUP_HANDLER): Change to do_cleanup (). 162 163 * rt/tst-timer3.c: Don't fail if _POSIX_THREADS is not available. 164 1652004-04-13 Thorsten Kukuk <kukuk@suse.de> 166 167 * sysdeps/s390/ffs.c: Include limits.h 168 1692004-04-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> 170 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. 175 1762004-04-15 Atsushi Nemoto <anemo@mba.ocn.ne.jp> 177 178 * sysdeps/mips/dl-machine.h (RTLD_START): Do not use nested .end. 179 1802004-04-12 Ulrich Drepper <drepper@redhat.com> 181 182 * rt/Makefile (tests): Add tst-timer3. 183 * rt/tst-timer3.c: New file. By Roland McGrath. 184 1852004-04-08 Ulrich Drepper <drepper@redhat.com> 186 187 * rt/tst-mqueue3.c: New file. 188 * rt/Makefile (tests): Add tst-mqueue3. 189 1902004-04-08 Jakub Jelinek <jakub@redhat.com> 191 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. 196 197 * rt/Versions (librt): Add mq_*@@GLIBC_2.3.4. 198 * rt/Makefile (headers): Add mqueue.h and bits/mqueue.h. 199 (mq-routines): Set. 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. 225 2262004-04-09 Andreas Schwab <schwab@suse.de> 227 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 232 variables. 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. 236 237 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL): Add 238 LOAD_REGS_##nr. 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 241 variables. 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. 245 2462004-04-09 Andreas Schwab <schwab@suse.de> 247 248 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Add 249 LOAD_REGS_##nr. 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 252 variables. 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. 256 2572004-04-09 Thorsten Kukuk <kukuk@suse.de> 258 259 * sysdeps/s390/ffs.c: Don't add ffsl weak alias on s390x. 260 2612004-04-09 Steven Munroe <sjmunroe@us.ibm.com> 262 263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: New file. 264 2652004-04-08 Ulrich Drepper <drepper@redhat.com> 266 267 * po/nl.po: Update from translation team. 268 2692004-04-04 Ulrich Drepper <drepper@redhat.com> 270 271 * math/test-tgmath.c: Declare compile_testl inly if we will define it. 272 2732004-04-03 Ulrich Drepper <drepper@redhat.com> 274 275 * sysdeps/powerpc/powerpc64/ffsll.c: New file. 276 277 * string/test-ffs.c: Also test ffsl and ffsll. 278 279 * sysdeps/powerpc/ffs.c: Don't define ffsl for ppc64. 280 281 * sysdeps/powerpc/powerpc64/bits/atomic.h: Never use matching 282 constraints for asm mem parameters. 283 * sysdeps/powerpc/bits/atomic.h: Likewise. 284 285 * sysdeps/powerpc/elf/libc-start.c: No need for a separate 286 function for __aux_init_cache. 287 288 * inet/test-ifaddrs.c: Fight warnings. 289 290 * argp/argp-help.c: Fight warnings. 291 292 * include/time.h: Declare __difftime. 293 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. 297 2982004-04-03 Andreas Jaeger <aj@suse.de> 299 300 * nis/nss-nis.c: Include <string.h> for strncmp. 301 3022004-03-30 H.J. Lu <hongjiu.lu@intel.com> 303 304 * Makeconfig (link-libc-static): Use $(static-gnulib) instead 305 of $(gnulib). 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. 312 3132004-04-02 Ulrich Drepper <drepper@redhat.com> 314 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. 323 324 * sysdeps/unix/sysv/linux/statfs64.c: Don't add __no_statfs64 if 325 __ASSUME_STATFS64 != 0. 326 3272004-04-02 Thorsten Kukuk <kukuk@firun.suse.de> 328 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. 334 3352004-04-02 Jakub Jelinek <jakub@redhat.com> 336 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 346 stdio_ext.h. 347 (check_default_nss, default_nss): Move to nss-nis.c. 348 (init): Removed. 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. 353 3542004-04-01 Roland McGrath <roland@redhat.com> 355 356 * elf/tst-execstack.c (do_test): Make F static. 357 3582004-04-01 Ulrich Drepper <drepper@redhat.com> 359 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. 364 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. 371 372 * sysdeps/unix/sysv/linux/sigprocmask.c: Include <string.h>. 373 * time/mktime.c: Likewise. 374 * misc/getpass.c: Likewise. 375 376 * time/difftime.c (__difftime): New renamed. Make old name alias. 377 Use __difftime in recursive call. 378 379 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Use 380 __tcgetattr() instead of tcgetattr(). 381 382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S [SHARED]: 383 Use __GI_exit. 384 385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S [SHARED]: Use 386 __GI__exit. 387 388 * sysdeps/powerpc/fpu/bits/mathinline.h: Add __signbitf and 389 __signbit inlines. 390 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. 395 396 * elf/elf.h: Define more ppc64 specific dynamic tags. 397 3982004-04-01 Jakub Jelinek <jakub@redhat.com> 399 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. 403 4042004-04-01 Ulrich Drepper <drepper@redhat.com> 405 406 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add handling for 407 ignored entries. Ignore AT_IGNOREPPC. 408 4092004-03-31 Andreas Jaeger <aj@suse.de> 410 411 * libio/fileops.c (new_do_write): Return _IO_size_t to make 64-bit 412 clean. 413 4142004-03-31 Ulrich Drepper <drepper@redhat.com> 415 416 * locale/programs/localedef.c (construct_output_path): Remove 417 remnants of CEN locale names. 418 4192004-03-30 Thorsten Kukuk <kukuk@suse.de> 420 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. 426 4272004-03-30 Richard Henderson <rth@redhat.com> 428 429 * sysdeps/alpha/remqu.S: Detect power-of-two special case. 430 4312004-03-30 Ulrich Drepper <drepper@redhat.com> 432 433 * sysdeps/generic/libc-start.c (LIBC_START_MAIN) 434 [HAVE_CLEANUP_JMP_BUF]: Call __nptl_deallocate_tsd. 435 4362004-03-30 Jakub Jelinek <jakub@redhat.com> 437 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 441 sequential scanning. 442 (_nss_nis_getservbyport_r): Likewise. Just allocate sizeof (int) * 3 443 chars for integer. 444 445 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Convert 446 proto to host by order for snprintf. 447 4482004-03-30 Ulrich Drepper <drepper@redhat.com> 449 450 * nss/getent.c (services_keys): Don't implement lookups with 451 missing protocol using getservent loop, just pass NULL. 452 453 * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Avoid 454 comparison with limit if we can rely on the syscall being available. 455 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. 459 * nis/nss: New file. 460 461 * grp/initgroups.c (initgroups): Limit the initial allocation to 64 462 entries to not allocate too much on systems with really high limits. 463 4642004-03-30 Jakub Jelinek <jakub@redhat.com> 465 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 469 unconditionally. 470 (_nss_nis_getservbyport_r): Likewise. 471 4722004-03-29 Alexandre Oliva <aoliva@redhat.com> 473 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. 477 4782004-03-29 Ulrich Drepper <drepper@redhat.com> 479 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. 495 496 * nss/getXXbyYY_r.c: Return 0 for NSS_STATUS_NOTFOUND. 497 4982004-03-26 Thorsten Kukuk <kukuk@suse.de> 499 500 * nis/nss_nis/nis-grp.c (_nss_nis_getgrnam_r): Don't 501 set errno if group does not exist. 502 5032004-03-28 Ulrich Drepper <drepper@redhat.com> 504 505 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle 506 _SC_SIGQUEUE_MAX. 507 5082004-03-26 Ulrich Drepper <drepper@redhat.com> 509 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. 525 5262004-03-26 Richard Henderson <rth@redhat.com> 527 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. 540 5412004-03-26 Ulrich Drepper <drepper@redhat.com> 542 543 * elf/dl-open.c (check_libc_caller): Fix typo. 544 5452004-03-26 Jakub Jelinek <jakub@redhat.com> 546 547 * elf/tst-dlmodcount.c: Include stddef.h and stdlib.h. 548 5492003-03-25 Richard Henderson <rth@redhat.com> 550 551 * sysdeps/alpha/backtrace.c: New file. 552 5532004-03-25 Ulrich Drepper <drepper@redhat.com> 554 555 * iconvdata/utf-7.c: Remove inline from isdirect, isxdirect, and 556 isxbase64. 557 5582004-03-25 Richard Henderson <rth@redhat.com> 559 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. 564 5652004-03-24 Roland McGrath <roland@redhat.com> 566 567 * Makerules ($(common-objpfx)shlib.lds): Don't use \n in rhs of sed 568 substitutions; the semicolon terminators are enough for ld anyway. 569 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 575 IOV array size. 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. 583 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. 588 589 * Makefile ($(objpfx)c++-types-check.out): Reduce duplication in 590 defining this target. Also elide -Wstrict-prototypes from CFLAGS. 591 5922004-03-24 Ulrich Drepper <drepper@redhat.com> 593 594 * stdio-common/vfscanf.c [!COMPILE_WSCANF] (TOLOWER): Cast first 595 parameter to unsigned char. 596 * sysdeps/generic/strcasestr.c [_LIBC] (TOLOWER): Likewise. 597 5982004-03-24 Jakub Jelinek <jakub@redhat.com> 599 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. 603 604 * stdio-common/printf_fp.c (__printf_fp): For IEEE quad long double 605 on 32-bit architectures reserve 8 limbs instead of 4. 606 6072004-03-23 Jakub Jelinek <jakub@redhat.com> 608 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. 781 7822004-03-22 Richard Henderson <rth@redhat.com> 783 784 * sysdeps/alpha/s_fabs.S: Remove file. 785 * sysdeps/alpha/s_copysign.S: Remove file. 786 7872004-03-22 Jakub Jelinek <jakub@redhat.com> 788 789 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c 790 (__getpagesize): Avoid warning about writing into read-only memory. 791 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. 798 7992004-03-22 Joseph S. Myers <jsm@polyomino.org.uk> 800 801 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): Do not use 802 casts as lvalues. 803 8042004-03-22 Andreas Jaeger <aj@suse.de> 805 806 * elf/tst-dlmodcount.c (unload): Remove unused variable. 807 808 * misc/tst-mntent.c (main): Use tmpfile instead of tmpnam. 809 8102004-03-20 Roland McGrath <roland@frob.com> 811 812 * sysdeps/mach/hurd/dl-execstack.c: New file. 813 8142004-03-20 Ulrich Drepper <drepper@redhat.com> 815 816 * po/ca.po: Update from translation team. 817 8182004-03-20 Andreas Jaeger <aj@suse.de> 819 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. 824 825 * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include <alloca.h>. 826 8272004-03-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> 828 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. 833 8342004-03-19 Ulrich Drepper <drepper@redhat.com> 835 836 * time/tzfile.c (__tzfile_default): Correct setting of rule_stdoff 837 and rule_dstoff after reading the posixrules file. 838 8392004-03-18 Ulrich Drepper <drepper@redhat.com> 840 841 * malloc/malloc.c (__posix_memalign): Correct alignment check. 842 Reported by Don Heller <dheller@cse.psu.edu>. 843 8442004-03-18 Jakub Jelinek <jakub@redhat.com> 845 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. 851 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. 869 8702004-03-18 Paul Eggert <eggert@cs.ucla.edu> 871 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). 875 8762004-03-18 Ulrich Drepper <drepper@redhat.com> 877 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 886 interfaces. 887 8882004-03-18 Roland McGrath <roland@redhat.com> 889 890 * manual/Makefile (stamp-summary): Use -k option to sort, 891 not traditional key selection syntax. 892 Reported by Jim Gifford <giffordj@linkline.com>. 893 8942004-03-18 Jakub Jelinek <jakub@redhat.com> 895 896 * elf/ldconfig.c: Include stdbool.h. 897 8982004-03-18 Roland McGrath <roland@redhat.com> 899 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. 905 9062004-03-17 Ulrich Drepper <drepper@redhat.com> 907 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>. 911 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. 919 9202004-03-17 Jakub Jelinek <jakub@redhat.com> 921 922 * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW): Make asm volatile. 923 9242004-03-16 Jakub Jelinek <jakub@redhat.com> 925 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. 935 9362004-03-16 Ulrich Drepper <drepper@redhat.com> 937 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. 943 9442004-03-15 Ulrich Drepper <drepper@redhat.com> 945 946 * sysdeps/sparc/fpu/bits/mathinline.h: Restore missing #ifdef. 947 Patch by Richard Henderson. 948 9492004-03-16 Jakub Jelinek <jakub@redhat.com> 950 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. 954 955 * inet/getnameinfo.c: Include stdlib.h. 956 9572004-03-15 Richard Henderson <rth@redhat.com> 958 959 * math/Makefile (headers): Add bits/huge_valf.h, bits/huge_vall.h, 960 and bits/inf.h. 961 * math/math.h: Include them. 962 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. 974 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. 979 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. 998 999 * sysdeps/ieee754/bits/nan.h (NAN): Use __builtin_nanf. 1000 * sysdeps/mips/bits/nan.h (NAN): Likewise. 1001 10022004-03-15 Ulrich Drepper <drepper@redhat.com> 1003 1004 * iconv/gconv_simple.c (__gconv_transform_utf8_internal): Use only 1005 one copy of error handling code. 1006 1007 * stdio-common/vfscanf.c: Simplify error handling macros. Use 1008 direct locale access functions. 1009 1010 * sysdeps/generic/strcasestr.c (__strcasestr): Optimize use of 1011 tolower function. 1012 10132004-03-13 Jakub Jelinek <jakub@redhat.com> 1014 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. 1020 10212004-03-14 Ulrich Drepper <drepper@redhat.com> 1022 1023 * wcsmbs/mbsrtowcs.c: Just a wrapper around __mbsrtowcs_l. 1024 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add real implementation here. 1025 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 1029 __strxfrm_l. 1030 * include/time.h: Define ptime_locale_status. Declare 1031 __strptime_internal. 1032 * include/wchar.h: Add libc_hidden_proto for __wcscoll_l and 1033 __wcsxfrm_l. 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. 1049 Add wrappers. 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 1054 #defines. 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 1072 strftime.c. 1073 * time/wcsftime_l.c: Include strftime_l.c. 1074 * wcsmbs/wcscoll.c: Simplify since the file is not used by wcscoll_l.c 1075 anymore. 1076 * wcsmbs/wcscoll_l.c: Include strcoll_l.c. 1077 * wcsmbs/wcsxfrm.c: Simplify since the file is not used by wcsxfrm_l.c 1078 anymore. 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. 1086 1087 * locale/uselocale.c: Use _NL_CURRENT_LOCALE instead of __libc_tsd_get. 1088 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. 1092 10932004-03-11 Jeroen Dekkers <jeroen@dekkers.cx> 1094 1095 * cppflags-iterator.mk: Change libof-$(cpp-src) to 1096 libof-$(notdir $(cpp-src)). 1097 10982004-03-13 Ulrich Drepper <drepper@redhat.com> 1099 1100 * resolv/netdb.h (EAI_OVERFLOW): Define. 1101 (NI_IDN): Define. 1102 * inet/getnameinfo.c (getnameinfo): Return error in case argument 1103 buffers overflow. Implement NI_IDN. 1104 11052004-03-12 Ulrich Drepper <drepper@redhat.com> 1106 1107 * resolv/netdb.h: Define AI_CANONIDN. 1108 * sysdeps/posix/getaddrinfo.c: Implement AI_CANONIDN. 1109 11102004-03-12 Richard Henderson <rth@redhat.com> 1111 1112 * sysdeps/unix/sysv/linux/alpha/select.S: Fix unwind. Propagate 1113 oldvalue from CENABLE to CDISABLE. 1114 11152004-03-12 Ulrich Drepper <drepper@redhat.com> 1116 1117 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: New file. 1118 1119 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX. 1120 1121 * posix/getconf.c (vars): Add _SC_ values for cache information. 1122 * sysdeps/generic/bits/confname.h: Add _SC_* values for cache 1123 information. 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. 1128 11292004-03-11 Ulrich Drepper <drepper@redhat.com> 1130 1131 * sysdeps/posix/sysconf.c (__sysconf): Add missing support for 1132 some _SC_* values. 1133 11342004-03-10 Chris Heath <chris@heathens.co.nz> 1135 1136 * iconvdata/gconv.map: Add gconv_end (fixes memory leak). 1137 11382004-03-11 Jakub Jelinek <jakub@redhat.com> 1139 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. 1150 1151 * sysdeps/s390/dl-tls.h: Only add __tls_get_offset assembly if 1152 IS_IN_rtld. 1153 (__TLS_GET_ADDR): Use __tls_get_offset, not __tls_get_addr. 1154 11552004-03-11 Ulrich Drepper <drepper@redhat.com> 1156 1157 * resolv/ns_ttl.c: Don't add ns_parse_ttl for libresolv.so. 1158 11592004-03-10 Ulrich Drepper <drepper@redhat.com> 1160 1161 * sysdeps/generic/errno.c: Include <dl-sysdep.h>. Use 1162 RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed. 1163 1164 * elf/dl-sym.c: Unify _dl_sym and _dl_vsym code and make the entry 1165 points wrappers around the unified code. 1166 11672004-03-11 Richard Henderson <rth@redhat.com> 1168 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. 1182 11832004-03-11 Jakub Jelinek <jakub@redhat.com> 1184 1185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S 1186 (__novec_swapcontext): Branch to novec_* labels. 1187 11882004-03-10 Ulrich Drepper <drepper@redhat.com> 1189 1190 * posix/getopt.c (_): Don't define here for glibc. 1191 11922004-03-10 Jakub Jelinek <jakub@redhat.com> 1193 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): 1202 Likewise. 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): 1209 Likewise. 1210 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl): Likewise. 1211 * sysdeps/unix/sysv/linux/posix_fadvise64.c (__posix_fadvise64_l32): 1212 Likewise. 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 1221 function name. 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. 1229 12302004-03-10 Kaz Kojima <kkojima@rr.iij4u.or.jp> 1231 1232 * sysdeps/sh/dl-machine.h: Don't use GL macro if not appropriate. 1233 (COPY_UNALIGNED_WORD): Remove cast used as lvalue. 1234 12352004-03-10 Ulrich Drepper <drepper@redhat.com> 1236 1237 * sysdeps/i386/dl-procinfo.h (HWCAP_IMPORTANT): Remove mmx, add sse2. 1238 12392004-03-10 Richard Henderson <rth@redhat.com> 1240 1241 * sysdeps/generic/errno.c: Disable versioning for rtld. 1242 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 1246 _LIBC_DEFINITIONS. 1247 12482004-03-10 Ulrich Drepper <drepper@redhat.com> 1249 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. 1286 1287 * sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4 1288 should be the default symbol. Having none misses the point. 1289 12902004-03-09 Ulrich Drepper <drepper@redhat.com> 1291 1292 * stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16]. 1293 12942004-03-05 Jakub Jelinek <jakub@redhat.com> 1295 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. 1300 13012004-03-09 Richard Henderson <rth@redhat.com> 1302 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. 1313 13142004-02-09 Jakub Jelinek <jakub@redhat.com> 1315 1316 * posix/Makefile (tests): Add tst-vfork2. 1317 * posix/tst-vfork1.c (do_test): Fix comment. 1318 * posix/tst-vfork2.c: New test. 1319 13202004-03-09 Ulrich Drepper <drepper@redhat.com> 1321 1322 * elf/dl-lookup.c (_dl_lookup_symbol_x): Fix possible NULL pointer 1323 derefernce in error message. Pretty printing. 1324 1325 * po/nl.po: Update from translation team. 1326 13272004-03-08 Andreas Schwab <schwab@suse.de> 1328 1329 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't truncate 1330 sysinfo pointer value. 1331 13322004-03-08 Paul Eggert <eggert@cs.ucla.edu> 1333 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 *. 1349 13502004-03-08 Marcus Brinkmann <marcus@gnu.org> 1351 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. 1401 14022004-03-09 Ulrich Drepper <drepper@redhat.com> 1403 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>. 1410 1411 * iconv/gconv_simple.c (internal_ucs4_loop): Fix typo in last change. 1412 1413 * posix/Makefile (tests): Add tst-vfork1. 1414 * posix/tst-vfork1.c: New file. 1415 14162004-03-08 Ulrich Drepper <drepper@redhat.com> 1417 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 1422 definitions. 1423 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. 1427 1428 * sysdeps/posix/gai_strerror.c: Add error string for EAI_IDN_ENCODE. 1429 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 1435 compiler. 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>. 1442 14432004-03-08 Jeroen Dekkers <jeroen@dekkers.cx> 1444 1445 * elf/rtld.c (_rtld_global_ro) [MAP_COPY]: Don't set _dl_unload_cache. 1446 1447 * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): 1448 Don't use INTUSE with _dl_signal_error. 1449 14502004-03-08 Ulrich Drepper <drepper@redhat.com> 1451 1452 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow): 1453 Don't use INTUSE with _dl_signal_error. 1454 14552004-03-08 Richard Henderson <rth@redhat.com> 1456 1457 * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Fix typo 1458 in name. 1459 14602004-03-07 Ulrich Drepper <drepper@redhat.com> 1461 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. 1465 14662004-03-07 Simon Josefsson <jas@extundo.com> 1467 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 1475 add-on. 1476 14772004-03-07 Ulrich Drepper <drepper@redhat.com> 1478 1479 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Call 1480 _dl_lookup_symbol_x not _dl_lookup_symbol. 1481 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. 1494 14952004-03-07 Andreas Schwab <schwab@suse.de> 1496 1497 * elf/dl-sym.c: Include <dl-tls.h> only when USE_TLS. 1498 14992004-03-07 Andreas Jaeger <aj@suse.de> 1500 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. 1506 15072004-03-07 Ulrich Drepper <drepper@redhat.com> 1508 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. 1526 15272004-03-06 Ulrich Drepper <drepper@redhat.com> 1528 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. 1540 15412004-03-06 Richard Henderson <rth@redhat.com> 1542 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 1546 if available. 1547 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. 1567 15682004-03-06 Ulrich Drepper <drepper@redhat.com> 1569 1570 * configure.in: Recognize --enable-bind-now. 1571 * elf/dynamic-link.h (elf_get_dynamic_info): Allow bind-now flags 1572 in ld.so. 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. 1576 1577 * elf/dl-fini.c (_dl_fini): Combine _dl_debug_printf calls. 1578 * elf/rtld.c (print_statistics): Likewise. 1579 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. 1586 15872004-03-05 Ulrich Drepper <drepper@redhat.com> 1588 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. 1623 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. 1628 1629 * malloc/malloc.c: Don't call exported interface in the implementation. 1630 1631 * include/wctype.h: Add libc_hidden_proto for __towctrans. 1632 * wctype/towctrans.c: Add libc_hidden_def. 1633 1634 * libio/memstream.c (open_memstream): Use _IO_init with INTUSE. 1635 1636 * posix/regexec.c (transit_state): Remove unused variable 1637 next_state. 1638 1639 * posix/regcomp.c (init_dfa): Use __btowc instead of btowc. 1640 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. 1709 17102004-03-04 Ulrich Drepper <drepper@redhat.com> 1711 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. 1715 1716 * elf/dl-open.c (dl_open_worker): Check that _dl_open is called 1717 from the right place. 1718 17192004-01-15 Paolo Bonzini <bonzini@gnu.org> 1720 1721 * posix/regex.h (REG_STARTEND): Define. 1722 * posix/regexec.c (regexec): Check for REG_STARTEND. 1723 17242004-02-29 Paolo Bonzini <bonzini@gnu.org> 1725 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. 1736 Fix spacing. 1737 17382004-03-05 Jakub Jelinek <jakub@redhat.com> 1739 1740 * sysdeps/sparc/sparc32/elf/start.S: Handle PIEs. 1741 * sysdeps/sparc/sparc64/elf/start.S: Likewise. 1742 17432004-03-04 Jakub Jelinek <jakub@redhat.com> 1744 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 1750 negative value. 1751 17522004-03-03 Jakub Jelinek <jakub@redhat.com> 1753 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): 1757 Remove. 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): 1761 Remove. 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): 1765 Remove. 1766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise.c: New file. 1767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/posix_fadvise64.c: New 1768 file. 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. 1778 17792004-03-02 Andreas Schwab <schwab@suse.de> 1780 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. 1784 17852004-03-01 Ulrich Drepper <drepper@redhat.com> 1786 1787 * nscd/nscd_getgr_r.c (nscd_getgr_r): Add missing initialization 1788 of return value. 1789 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. 1790 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. 1795 17962004-02-29 Andreas Jaeger <aj@suse.de> 1797 1798 * manual/install.texi (Tools for Compilation): Autoconf 2.53 is 1799 required. 1800 (Supported Configurations): Add x86_64-*-linux. 1801 18022004-02-28 Ulrich Drepper <drepper@redhat.com> 1803 1804 * sysdeps/i386/i686/memcmp.S: Move table to .rodata. Patch by HJ Lu. 1805 18062004-02-27 Jakub Jelinek <jakub@redhat.com> 1807 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. 1811 1812 * sysdeps/unix/sysv/linux/sysconf.c: Include stdlib.h. 1813 18142004-02-26 Ulrich Drepper <drepper@redhat.com> 1815 1816 * nss/getXXbyYY_r.c: Pass result also to the nscd_* function. Don't 1817 set *result here. 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 1824 it on. 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 1834 it on. 1835 18362004-02-26 Jakub Jelinek <jakub@redhat.com> 1837 1838 * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Set 1839 retval to -1 on error. 1840 18412004-02-26 Ulrich Drepper <drepper@redhat.com> 1842 1843 * stdlib/canonicalize.c (__realpath): Simplify. 1844 1845 * posix/regcomp.c (parse_expression): Avoid duplication in calls 1846 to build_charclass_op. 1847 18482004-02-26 Jakub Jelinek <jakub@redhat.com> 1849 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. 1854 18552004-02-26 Ulrich Drepper <drepper@redhat.com> 1856 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. 1862 1863 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Use the official 1864 not cancelable interfaces. 1865 18662004-02-24 Arnold D. Robbins <arnold@skeeve.com> 1867 1868 * posix/regex_internal.c (build_wcs_upper_buffer): Enclose 1869 `offsets_needed' label in `#ifdef _LIBC' to silence `unused label' 1870 compiler warning. 1871 18722004-02-24 Nelson H.F. Beebe <beebe@math.utah.edu> 1873 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 1877 to `wcrtomb'. 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'. 1883 18842004-02-25 Ulrich Drepper <drepper@redhat.com> 1885 1886 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Handle 1887 _SC_NGROUPS_MAX. 1888 18892004-02-23 Jakub Jelinek <jakub@redhat.com> 1890 1891 * wcsmbs/mbrtowc.c (__mbrtowc): Cap s + n at the end of address space. 1892 * stdlib/Makefile (tests): Add testmb2. 1893 (testmb2-ENV): New. 1894 * stdlib/testmb2.c: New test. 1895 18962004-02-23 Jakub Jelinek <jakub@redhat.com> 1897 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. 1905 19062004-02-22 Ulrich Drepper <drepper@redhat.com> 1907 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>. 1911 19122004-02-21 Ulrich Drepper <drepper@redhat.com> 1913 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. 1916 19172004-02-21 Andreas Jaeger <aj@suse.de> 1918 1919 * posix/bug-ga1.c: Include <string.h> for memset prototype. 1920 1921 * elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue. 1922 1923 * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as 1924 lvalue. 1925 19262004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca> 1927 1928 * sysdeps/generic/framestate.c [__USING_SJLJ_EXCEPTIONS__] 1929 (__frame_state_for): Set frame_State_for to abort if the compiler 1930 is using sjlj. 1931 * sysdeps/generic/unwind-dw2.c: Allow sjlj enabled compilers to 1932 build the code by removing __USING_SJLJ_EXCEPTIONS__ wrapper. 1933 19342004-02-20 Alexandre Oliva <aoliva@redhat.com> 1935 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. 1939 19402004-02-19 Carlos O'Donell <carlos@baldric.uwo.ca> 1941 1942 * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Fix order of fp 1943 status register loads. 1944 19452004-02-20 Thorsten Kukuk <kukuk@suse.de> 1946 1947 * nscd/nscd.c (termination_handler): Use _exit instead of exit 1948 19492004-02-20 Ulrich Drepper <drepper@redhat.com> 1950 1951 * nscd/nscd.c (main): Report fork errors. 1952 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>. 1958 19592004-02-20 Jakub Jelinek <jakub@redhat.com> 1960 1961 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Add ulps for the 1962 2003-11-27 atan2 test. 1963 1964 * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Protect 1965 with #ifndef __powerpc64__. 1966 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. 1976 19772004-02-19 Jakub Jelinek <jakub@redhat.com> 1978 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. 1982 19832004-02-19 Steven Munroe <sjmunroe@us.ibm.com> 1984 1985 * sysdeps/generic/libc-start.c [LIBC_START_DISABLE_INLINE] (STATIC): 1986 Define as 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. 1989 19902004-02-19 Steven Munroe <sjmunroe@us.ibm.com> 1991 1992 * sysdeps/powerpc/powerpc64/Makefile: Use -finline-limit. 1993 19942004-02-19 Jakub Jelinek <jakub@redhat.com> 1995 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. 2002 20032004-02-19 Ulrich Drepper <drepper@redhat.com> 2004 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. 2008 2009 * sysdeps/unix/clock_settime.c (clock_settime): Fix typo which 2010 prevented system-dependent handling from being used. 2011 20122004-02-18 Carlos O'Donell <carlos@baldric.uwo.ca> 2013 2014 * test-skeleton.c (main): If set, use environment variable 2015 TIMEOUTFACTOR to scale test TIMEOUT. 2016 20172004-02-18 Ulrich Drepper <drepper@redhat.com> 2018 2019 * nscd/nscd_conf.c: Include <stdio_ext.h>. 2020 20212004-02-16 Ulrich Drepper <drepper@redhat.com> 2022 2023 * stdlib/test-canon.c (do_test): Test realpath(,NULL) in the loop 2024 as well. 2025 2026 * stdlib/canonicalize.c (__realpath): Remove unnecessary copy 2027 operations. 2028 2029 * nscd/nscd_conf.c (nscd_parse_file): Little optimization. 2030 20312004-02-14 Thorsten Kukuk <kukuk@suse.de> 2032 2033 * nscd/dbg_log.c (set_logfile): Only save name of logfile, 2034 don't open it. 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. 2039 20402004-02-16 Ulrich Drepper <drepper@redhat.com> 2041 2042 * elf/rtld.c (dl_main): Don't fail execution if file named in 2043 ld.so.preload is not present [BZ #18]. 2044 2045 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Undo unintended 2046 changes in last patch. 2047 2048 * posix/regexec.c (transit_state): Fix typo in commented-out code 2049 [BZ #6]. 2050 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. 2055 20562004-02-13 Steven Munroe <sjmunroe@us.ibm.com> 2057 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. 2082 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. 2121 2122 * sysdeps/powerpc/Dist: New File. 2123 * sysdeps/powerpc/Makefile (sysdep_routines): Add novmx-longjmp.c 2124 and novmx-sigjmp.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. 2136 21372004-02-13 Jakub Jelinek <jakub@redhat.com> 2138 2139 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c (__lrintf, lrintf): 2140 Define. 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. 2146 21472004-02-12 Ulrich Drepper <drepper@redhat.com> 2148 2149 * posix/getopt.h: Add some non-gcc support. Patch by Aharon Robbins. 2150 21512004-02-12 Mark Brown <bmark@us.ibm.com> 2152 2153 * sysdeps/ia64/fpu/e_fmodf.S: Added text of Intel license. 2154 21552004-02-12 Jakub Jelinek <jakub@redhat.com> 2156 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. 2166 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. 2175 21762004-02-12 Ulrich Drepper <drepper@redhat.com> 2177 2178 * locale/programs/locale.c (show_locale_vars): Don't print a value 2179 for LANG if it is not set. 2180 21812004-02-11 Jakub Jelinek <jakub@redhat.com> 2182 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 2185 SYMB_EXTRAMB table. 2186 * posix/Makefile (tests): Add bug-regex23. 2187 (bug-regex23-ENV): New. 2188 * posix/bug-regex23.c: New file. 2189 21902004-02-10 Roland McGrath <roland@frob.com> 2191 2192 * sysdeps/mach/hurd/times.c (__times): Use union instead of cast. 2193 * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise. 2194 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. 2199 22002004-02-10 Ulrich Drepper <drepper@redhat.com> 2201 2202 * sysdeps/generic/setenv.c (__add_to_environ): Don't let the 2203 temporary copies of the variables accumulate on the stack. 2204 2205 * stdio-common/_i18n_number.h: Finish last patch. 2206 22072004-02-09 Ulrich Drepper <drepper@redhat.com> 2208 2209 * sysdeps/i386/i686/memcmp.S: New file. Patch by HJ Lu. 2210 22112003-12-05 Roland McGrath <roland@redhat.com> 2212 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. 2217 22182004-02-09 Ulrich Drepper <drepper@redhat.com> 2219 2220 * nis/ypclnt.c: Cleanup last patch. 2221 22222004-02-09 Andreas Jaeger <aj@suse.de> 2223 2224 * configure.in: Remove glibcbug creation. 2225 * configure: Regenerated. 2226 2227 * sysdeps/x86_64/fpu/s_copysignf.S: Only load 4 bytes. 2228 22292004-02-03 Thorsten Kukuk <kukuk@suse.de> 2230 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> 2240 22412004-01-19 Roland McGrath <roland@redhat.com> 2242 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. 2250 22512004-02-09 Roland McGrath <roland@redhat.com> 2252 2253 * time/tzset.c (tzset_internal): Cap hour in POSIX $TZ rule format to 2254 24, not 23. 2255 22562004-01-29 Roland McGrath <roland@redhat.com> 2257 2258 * io/ftwtest-sh: Use $tmp consistently, not literal /tmp. 2259 Reported by Kevin P. Fleming <kpfleming@backtobasicsmgmt.com>. 2260 22612004-02-09 Ulrich Drepper <drepper@redhat.com> 2262 2263 * libio/genops.c (_IO_cleanup): Do not use locking when flushing 2264 the buffers. Some thread might be using a stream. 2265 22662004-02-09 Andreas Jaeger <aj@suse.de> 2267 2268 * sysdeps/x86_64/memcpy.S: Fix alignment [BZ #7]. 2269 Patch by Jan Beulich <jbeulich@novell.com>. 2270 22712004-02-09 Andreas Schwab <schwab@suse.de> 2272 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. 2282 22832004-02-09 Ulrich Drepper <drepper@redhat.com> 2284 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. 2290 2291 * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits 2292 other than the status bits [BZ #10]. 2293 22942004-02-08 Ulrich Drepper <drepper@redhat.com> 2295 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>. 2304 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. 2309 2310 * stdio-common/printf_size.c: Undo parts of patch from 2000-2-11. 2311 Initialize width correctly. 2312 23132004-02-07 Andreas Jaeger <aj@suse.de> 2314 2315 * iconv/gconv_simple.c (ucs4le_internal_loop): Remove cast used as 2316 lvalue. 2317 (internal_ucs4le_loop_single): Likewise. 2318 (ucs4_internal_loop): Likewise. 2319 (BODY): 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. 2327 2328 * iconv/gconv_open.c (__gconv_open): Remove conditional expression 2329 as lvalue. 2330 23312004-02-06 Steven Munroe <sjmunroe@us.ibm.com> 2332 2333 * sysdeps/powerpc/powerpc32/dl-machine.c: Declare __cache_line_size as 2334 weak extern. 2335 (__elf_machine_runtime_setup): Invalidate the instruction cache over 2336 the whole range of the PLT. 2337 23382004-02-06 Andreas Schwab <schwab@suse.de> 2339 2340 * posix/regcomp.c (build_range_exp): Fix off-by-one. 2341 (parse_bracket_exp): Likewise. 2342 23432004-02-05 Ulrich Drepper <drepper@redhat.com> 2344 2345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Define 2346 _HAVE_STAT_NSEC and _HAVE_STAT64_NSEC. Patch by Anton Blanchard. 2347 23482004-02-02 Paolo Bonzini <bonzini@gnu.org> 2349 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. 2355 23562004-02-01 Ulrich Drepper <drepper@redhat.com> 2357 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. 2369 2370 * po/nl.po: Update from translation team. 2371 23722004-01-30 Andreas Schwab <schwab@suse.de> 2373 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. 2377 23782004-01-28 Paolo Bonzini <bonzini@gnu.org> 2379 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. 2386 23872004-01-24 Andreas Jaeger <aj@suse.de> 2388 2389 * malloc/obstack.h: Import gnulib version. 2390 * malloc/obstack.c: Likewise. 2391 23922004-01-26 David Mosberger <davidm@hpl.hp.com> 2393 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. 2404 24052004-01-27 Jakub Jelinek <jakub@redhat.com> 2406 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_*. 2411 24122004-01-23 David Mosberger <davidm@hpl.hp.com> 2413 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 2421 dlpi_subs. 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 2430 run tst-dlmodcount. 2431 24322004-01-22 Jakub Jelinek <jakub@redhat.com> 2433 2434 * elf/dl-reloc.c (_dl_relocate_object): Move PT_GNU_RELRO protection 2435 into... 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 2439 from bootstrap_map. 2440 (_dl_main): Don't set GL(_dl_loaded)->l_relro_{addr,size} here. 2441 Call _dl_protect_relro for libraries if prelinking. 2442 24432004-01-23 Richard Henderson <rth@redhat.com> 2444 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. 2449 24502004-01-22 Andreas Jaeger <aj@suse.de> 2451 2452 * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to 2453 avoid warnings for builtin function log2. 2454 2455 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind 2456 information. 2457 24582004-01-20 Ulrich Drepper <drepper@redhat.com> 2459 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. 2463 2464 * sysdeps/unix/sysv/linux/kernel-features.h: Define 2465 __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels. 2466 2467 * catgets/Makefile ($(objpfx)de.msg): Run sed in C locale. 2468 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. 2483 2484 * elf/dl-load.c: Don't add attribute_relro to max_dirnamelen. 2485 2486 * sysdeps/generic/inttypes.h: Fix PRI*FAST{16,32} macros. 2487 24882003-12-31 Bruno Haible <bruno@clisp.org> 2489 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. 2496 24972004-01-19 Jakub Jelinek <jakub@redhat.com> 2498 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. 2502 25032004-01-17 Ulrich Drepper <drepper@redhat.com> 2504 2505 * sysdeps/i386/i486/bits/atomic.h (atomic_add): Fix test for using 2506 atomic_decrement. Patch by Davin McCall. 2507 25082004-01-13 Daniel Jacobowitz <drow@mvista.com> 2509 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 2515 libc_hidden_proto. 2516 * sysdeps/powerpc/soft-fp/sfp-machine.h (__sim_exceptions) 2517 (__sim_disabled_exceptions, __sim_round_mode): Likewise. 2518 25192004-01-16 Ulrich Drepper <drepper@redhat.com> 2520 2521 * elf/elf.h: Define PT_IA_64_HP_OPT_ANOT, PT_IA_64_HP_HSL_ANOT, and 2522 PT_IA_64_HP_STACK. 2523 25242004-01-16 Richard Henderson <rth@redhat.com> 2525 2526 * include/unistd.h (__libc_enable_secure): Mark attribute_relro. 2527 (__libc_enable_secure_internal): Likewise. 2528 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. 2534 25352004-01-15 Ulrich Drepper <drepper@redhat.com> 2536 2537 * Versions.def: Add GLIBC_2.3.4. 2538 25392004-01-15 Richard Henderson <rth@redhat.com> 2540 2541 * sysdeps/unix/alpha/sysdep.h: Revert last change. 2542 25432004-01-15 Richard Henderson <rth@redhat.com> 2544 2545 * sysdeps/alpha/dl-machine.h (RTLD_START): Use _dl_argv_internal. 2546 2547 * sysdeps/unix/alpha/sysdep.h [PIC] (SYSCALL_ERROR_HANDLER): Use 2548 !samegp relocation. 2549 25502004-01-15 Richard Henderson <rth@redhat.com> 2551 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. 2559 25602004-01-15 Richard Henderson <rth@redhat.com> 2561 2562 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with 2563 __syscall_, move nop inside, adjust users by +4. 2564 25652004-01-14 Steven Munroe <sjmunroe@us.ibm.com> 2566 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 2570 symbols. 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. 2582 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 2591 context pointer. 2592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S 2593 (__setcontext): Upgrade to restore Altivec regs and version 2594 GLIBC_2_3_4. 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. 2603 26042004-01-12 Steven Munroe <sjmunroe@us.ibm.com> 2605 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 2614 GLIBC_2_3_4. 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 2619 GLIBC_2_3_4. 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. 2630 26312004-01-15 Ulrich Drepper <drepper@redhat.com> 2632 2633 * elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined. 2634 26352004-01-16 Alfred M. Szmidt <ams@kemisten.nu> 2636 2637 * sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust 2638 parameter type. 2639 26402004-01-15 Ulrich Drepper <drepper@redhat.com> 2641 2642 * elf/elf.h: Fix typo in comment. 2643 2644 * sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end. 2645 * elf/rtld.c: Initialize _dl_argv to allow aliasing. 2646 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. 2654 26552004-01-14 Ulrich Drepper <drepper@redhat.com> 2656 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, 2664 any_debug. 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. 2672 26732004-01-13 Segher Boessenkool <boessen@de.ibm.com> 2674 2675 * Makerules (gen-as-const): Don't silently continue on failure. 2676 26772004-01-14 Steven Munroe <sjmunroe@us.ibm.com> 2678 2679 * sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with 2680 rtld_hidden_data_def. 2681 26822004-01-14 Ulrich Drepper <drepper@redhat.com> 2683 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. 2704 27052004-01-09 Bruno Haible <bruno@clisp.org> 2706 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. 2710 27112004-01-11 Bruno Haible <bruno@clisp.org> 2712 2713 * stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after 2714 width or precision has been seen. 2715 27162004-01-08 Bruno Haible <bruno@clisp.org> 2717 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. 2721 27222004-01-13 Ulrich Drepper <drepper@redhat.com> 2723 2724 * configure.in: Rewrite test to give gcc to clean up after itself. 2725 Patch by Greg Schafer. 2726 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. 2731 27322004-01-12 Paolo Bonzini <bonzini@gnu.org> 2733 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 2740 collation elements. 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 2745 alternative. 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. 2750 27512004-01-14 Jakub Jelinek <jakub@redhat.com> 2752 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. 2759 27602004-01-13 Ulrich Drepper <drepper@redhat.com> 2761 2762 * sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into 2763 .data.rel.ro. 2764 2765 * sysdeps/x86_64/dl-machine.h: Include <tls.h>. 2766 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 2771 rtld_hidden_proto. 2772 * sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here 2773 if !SHARED. 2774 27752004-01-13 Richard Henderson <rth@redhat.com> 2776 2777 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo. 2778 27792004-01-13 Ulrich Drepper <drepper@redhat.com> 2780 2781 * sysdeps/unix/sysv/linux/dl-execstack.c 2782 (_dl_make_stack_executable): Move common code in front. Use 2783 __builtin_expect. 2784 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. 2793 27942004-01-13 Richard Henderson <rth@redhat.com> 2795 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. 2808 2809 * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm 2810 based on HAVE___THREAD instead of USE_TLS. 2811 2812 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New. 2813 (__adjtimex_tv64): Use it. 2814 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. 2818 2819 * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction): 2820 Forward declare. 2821 28222004-01-13 Richard Henderson <rth@redhat.com> 2823 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. 2840 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. 2851 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. 2862 28632004-01-13 Ulrich Drepper <drepper@redhat.com> 2864 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 2873 members. 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 2881 relocations. 2882 28832004-01-12 Jakub Jelinek <jakub@redhat.com> 2884 2885 * sysdeps/x86_64/strcspn.S: Fix typo in last patch. 2886 28872004-01-11 Andreas Jaeger <aj@suse.de> 2888 2889 * sysdeps/x86_64/__longjmp.S: Add cfi directives. 2890 28912004-01-10 Andreas Jaeger <aj@suse.de> 2892 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. 2898 28992004-01-08 Jakub Jelinek <jakub@redhat.com> 2900 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. 2904 29052004-01-05 Jakub Jelinek <jakub@redhat.com> 2906 2907 * posix/regcomp.c (regcomp): Fix comment typo. 2908 (regfree): Free preg->translate, clear buffer, allocated, fastmap 2909 and translate fields. 2910 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 2919 pstr->trans. 2920 * posix/Makefile (tests): Add bug-regex22. 2921 (bug-regex22-ENV): Set. 2922 * posix/bug-regex22.c: New test. 2923 29242004-01-02 Paolo Bonzini <bonzini@gnu.org> 2925 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. 2932 29332003-12-30 Paul Eggert <eggert@twinsun.com> 2934 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. 2940 29412004-01-02 Jakub Jelinek <jakub@redhat.com> 2942 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. 2954 2955 * posix/regex_internal.c (re_node_set_insert): Remove unused variables. 2956 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. 2967 Adjust all callers. 2968 (check_node_accept_bytes, group_nodes_into_DFAstates, 2969 check_node_accept): Likewise. Use dfa->syntax instead of 2970 preg->syntax. 2971 (check_arrival_add_next_nodes): Remove preg argument. 2972 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 2976 pstr here... 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 2988 mctx->input.field. 2989 29902004-01-02 Jakub Jelinek <jakub@redhat.com> 2991 Paolo Bonzini <bonzini@gnu.org> 2992 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. 3016 30172004-01-01 Paolo Bonzini <bonzini@gnu.org> 3018 3019 * posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT 3020 bitfield. 3021 3022 * posix/regex_internal.c (re_node_set_insert): Rewrite. 3023 30242004-01-01 Ulrich Drepper <drepper@redhat.com> 3025 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. 3042 30432004-01-01 Petter Reinholdtsen <pere@hungry.com> 3044 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 ]". 3049 30502004-01-01 Andreas Jaeger <aj@suse.de> 3051 3052 * resolv/Makefile (generated): New. 3053 30542003-12-31 Joseph S. Myers <jsm@polyomino.org.uk> 3055 3056 * CONFORMANCE: Update. 3057 30582003-12-30 Paul Eggert <eggert@twinsun.com> 3059 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. 3065 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. 3070 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. 3076 3077 * time/mktime.c (check_result): Use less-confusing report format. 3078 "long" -> "long int", as per usual GNU style. 3079 (main): Likewise. 3080 Don't loop if the iteration overflows time_t. 3081 Allow a negative step in the iteration. 3082 3083 * time/mktime.c: Assume freestanding C89 or better. 3084 (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove; 3085 assume they're 1. 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. 3092 30932003-12-31 Ulrich Drepper <drepper@redhat.com> 3094 3095 * locale/setlocale.c (setlocale): Avoid duplicating locale names 3096 if we can reuse old strings. 3097 3098 * inet/rcmd.c: Provide better error message in case of unknown 3099 host. Remove USE_IN_LIBIO. 3100 3101 * nscd/nscd.init: Updated version, more conforming with current 3102 init file standards. 3103 3104 * nscd/nscd-client.h (_PATH_NSCDPID): Move the file into 3105 /var/run/nscd directory. 3106 (_PATH_NSCDSOCKET): Likewise. 3107 3108 * test-skeleton.c (timeout_handler): Fix error message. 3109 3110 * elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if 3111 CNT == 0. 3112 31132003-12-30 Jakub Jelinek <jakub@redhat.com> 3114 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. 3118 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. 3122 3123 * sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL 3124 failed. Reported by Steve Grubb. 3125 31262003-12-29 Ulrich Drepper <drepper@redhat.com> 3127 3128 * elf/elf.h: Add a few definitions from Solaris 9. 3129 31302003-12-29 Andreas Schwab <schwab@suse.de> 3131 3132 * stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add 3133 $(fno_unit_at_a_time) to avoid reordering assembler output. 3134 31352003-12-29 Jakub Jelinek <jakub@redhat.com> 3136 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 3145 from if branches. 3146 3147 * signal/Makefile (tests): Add tst-raise. 3148 * signal/tst-raise.c: New test. 3149 31502003-12-28 Ulrich Drepper <drepper@redhat.com> 3151 3152 * posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int. 3153 3154 * posix/regexec.c (re_copy_regs): Fix testing for failed allocation. 3155 (push_fail_stack): Add missing check for failed memory allocation. 3156 3157 * libio/libio.h: Use __builtin_expect in _IO_getc_unlocked, 3158 _IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and 3159 _IO_putwc_unlocked. 3160 31612003-12-28 Andreas Jaeger <aj@suse.de> 3162 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. 3176 3177 * math/libm-test.inc (yn_test): Expect invalid exception for 3178 negative arguments. 3179 (y0_test): Likewise. 3180 (y1_test): Likewise. 3181 3182 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise 3183 execptions for exp(NaN). 3184 31852003-12-23 Paolo Bonzini <bonzini@gnu.org> 3186 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. 3205 32062000-05-22 Jakub Jelinek <jakub@redhat.com> 3207 3208 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?: 3209 with omitted middle operand. 3210 32112003-12-22 Jakub Jelinek <jakub@redhat.com> 3212 3213 * posix/regcomp.c: Remove C99-ism. 3214 * posix/tst-rxspencer.c: Likewise. 3215 Based on a patch by Alex Davis <alex14641@yahoo.com>. 3216 32172003-12-17 Paolo Bonzini <bonzini@gnu.org> 3218 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. 3234 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. 3260 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. 3267 32682003-12-16 Paolo Bonzini <bonzini@gnu.org> 3269 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. 3273 32742003-12-22 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 3275 3276 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): 3277 Initialize REF before passing it to _dl_lookup_symbol. 3278 32792003-12-21 Roland McGrath <roland@frob.com> 3280 3281 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden. 3282 32832003-12-21 Jakub Jelinek <jakub@redhat.com> 3284 3285 * posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert 3286 2003-11-24 changes. 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. 3290 3291 * posix/regexec.c (check_dst_limits_calc_pos): Fix formatting. 3292 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. 3297 32982003-12-21 Roland McGrath <roland@redhat.com> 3299 3300 * manual/arith.texi (Parsing of Integers): Typo fix. 3301 33022003-12-20 Roland McGrath <roland@frob.com> 3303 3304 * sysdeps/generic/ifreq.c (__ifreq) [_HAVE_SA_LEN]: Fix typo: 3305 add missing dereference of IFREQS before counting loop. 3306 33072003-12-21 Andreas Schwab <schwab@suse.de> 3308 3309 * sysdeps/m68k/m68020/bits/atomic.h: Avoid matching memory 3310 constraints. 3311 33122003-12-20 Ulrich Drepper <drepper@redhat.com> 3313 3314 * elf/rtld.c (dl_main): Optimize order of subexpressions in if(). 3315 33162003-12-18 Ulrich Drepper <drepper@redhat.com> 3317 3318 * stdio-common/printf_fp.c: Add support to use alternative decimal 3319 digits. 3320 * stdio-common/vfprintf.c (vfprintf): Pass use_outdigits flags to 3321 __printf_fp. Patch by Hamed Malek <hamed@bamdad.org>. 3322 33232003-12-18 Carlos O'Donell <carlos@baldric.uwo.ca> 3324 3325 * sysdeps/unix/sysv/linux/hppa/clone.S (__clone) [PIC]: Save PIC, 3326 reload PIC if we need to call __syscall_error, cleanup asm. 3327 33282003-12-17 Carlos O'Donell <carlos@baldric.uwo.ca> 3329 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. 3343 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. 3355 33562003-12-17 Jakub Jelinek <jakub@redhat.com> 3357 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. 3364 33652003-12-17 Ulrich Drepper <drepper@redhat.com> 3366 3367 * misc/mntent_r.c: Change encoding to match recently changed decoder. 3368 Patch by Alexander Achenbach <xela@slit.de>. 3369 33702003-12-16 Steven Munroe <sjmunroe@us.ibm.com> 3371 3372 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of 3373 vrregset_t. 3374 33752003-12-16 Steven Munroe <sjmunroe@us.ibm.com> 3376 3377 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extend 3378 conditional to include typedef elf_vrreg_t. 3379 33802003-12-17 Paolo Bonzini <bonzini@gnu.org> 3381 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. 3387 33882003-12-17 Andreas Jaeger <aj@suse.de> 3389 3390 * sysdeps/generic/system.c (__libc_system): Fix typo, reported by 3391 Kevin Pedretti <pedretti@ieee.org>. 3392 33932003-12-17 Ulrich Drepper <drepper@redhat.com> 3394 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. 3399 34002003-12-16 Petter Reinholdtsen <pere@hungry.com> 3401 3402 * posix/regex_internal.h: Make sure the regex code compile 3403 with non-GCC compilers by hiding attributes. 3404 34052003-12-16 Jakub Jelinek <jakub@redhat.com> 3406 Paolo Bonzini <bonzini@gnu.org> 3407 3408 * posix/regexec.c (group_nodes_into_DFAstates): Never produce 3409 dests_ch items that are empty. 3410 34112003-12-14 Paolo Bonzini <bonzini@gnu.org> 3412 3413 * posix/regexec.c (check_arrival): Remove duplicate test. 3414 34152003-12-15 Ulrich Drepper <drepper@redhat.com> 3416 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. 3421 34222003-12-14 Paolo Bonzini <bonzini@gnu.org> 3423 3424 * posix/regex_internal.c (re_acquire_state_context): 3425 Compare the node sets after all the other comparisons. 3426 34272003-12-13 Paolo Bonzini <bonzini@gnu.org> 3428 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. 3434 34352003-12-12 Andreas Jaeger <aj@suse.de> 3436 3437 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Pass also 6th argument 3438 to syscall. 3439 34402003-12-11 Ulrich Drepper <drepper@redhat.com> 3441 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. 3446 34472003-12-11 Carlos O'Donell <carlos@baldric.uwo.ca> 3448 3449 * sysdeps/generic/dl-fptr.c (COMPARE_AND_SWAP): Pass new and old 3450 in the right order. 3451 34522003-12-01 Jes Sorensen <jes@wildopensource.com> 3453 3454 * rt/tst-clock.c (do_test): Print message when skipping 3455 CLOCK_PROCESS_CPUTIME_ID test. 3456 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. 3459 34602003-12-02 David Mosberger <davidm@hpl.hp.com> 3461 3462 * sysdeps/ia64/elf/initfini.c: Add unwind info. 3463 3464 * sysdeps/ia64/dl-machine.h (elf_machine_matches_host): Mark with 3465 attribute "unused". 3466 (elf_machine_dynamic): Mark with attributes "unused" and "const". 3467 (elf_machine_runtime_setup): Likewise. 3468 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): 3472 Likewise. 3473 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 3478 mention -lunwind. 3479 34802003-11-12 David Mosberger <davidm@hpl.hp.com> 3481 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 3485 DO_INLINE_SYSCALL. 3486 3487 * sysdeps/unix/sysv/linux/ia64/vfork.S: Use DO_CALL_VIA_BREAK() 3488 instead of DO_CALL(). 3489 3490 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use break directly instead 3491 of DO_CALL(). 3492 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. 3497 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. 3501 35022003-12-10 Andreas Jaeger <aj@suse.de> 3503 Ruediger Oertel <ro@suse.de> 3504 3505 * sysdeps/alpha/fpu/e_sqrt.c: Mark sqrt_data as used. 3506 35072003-12-07 Ulrich Drepper <drepper@redhat.com> 3508 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. 3516 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 3520 values. 3521 35222003-12-06 Ulrich Drepper <drepper@redhat.com> 3523 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 3529 +/-FLT_MAX etc. 3530 35312003-12-04 Steven Munroe <sjmunroe@us.ibm.com> 3532 3533 * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking 3534 of fenv. 3535 * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise. 3536 35372003-12-05 Martin Schwidefsky <schwidefsky@de.ibm.com> 3538 3539 * sysdeps/s390/s390-32/elf/setjmp.S (setjmp, __setjmp): Add END 3540 statements. 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): 3552 Likewise. 3553 * sysdeps/s390/s390-64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): 3554 Likewise. 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): 3564 Likewise. 3565 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error): 3566 Likewise. 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. 3571 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. 3578 3579 * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: New file. 3580 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. 3585 3586 * scripts/data/c++-types-s390-linux-gnu.data: New file. 3587 * scripts/data/c++-types-s390x-linux-gnu.data: New file. 3588 35892003-11-30 Petter Reinholdtsen <pere@hungry.com> 3590 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. 3595 35962003-12-03 Jakub Jelinek <jakub@redhat.com> 3597 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. 3605 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. 3613 36142003-12-02 Jakub Jelinek <jakub@redhat.com> 3615 3616 * intl/locale.alias: Use nb_NO instead of no_NO for bokm.l. 3617 3618 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated. 3619 * sysdeps/s390/fpu/libm-test-ulps: Regenerated. 3620 36212003-12-03 Ulrich Drepper <drepper@redhat.com> 3622 3623 * locale/programs/locarchive.c (enlarge_archive): Print size info 3624 only in verbose mode. 3625 3626 * locale/iso-3166.def: Three letter code of Romania changed. 3627 36282003-12-02 Roland McGrath <roland@redhat.com> 3629 3630 * scripts/config.sub: Update from master, timestamp='2003-10-20'. 3631 * scripts/config.guess: Update from master, timestamp='2003-10-20'. 3632 36332003-11-30 Andreas Jaeger <aj@suse.de> 3634 3635 * config.make.in (fno-unit-at-a-time): Define. 3636 3637 * configure.in: Add test for -fno-unit-at-a-time. 3638 Fix text for -fpie. 3639 3640 * csu/Makefile (CFLAGS-initfini.s): Add $(fno_unit_at_a_time). 3641 * locale/Makefile (CFLAGS-loadlocale.c): Likewise. 3642 36432003-12-01 Automatic 3644 3645 * version.h (VERSION): Bump to 2.3.3. 3646 36472003-11-30 Andreas Jaeger <aj@suse.de> 3648 3649 * stdio-common/vfprintf.c: Do not inline buffered_vfprintf to 3650 decrease stack usage. 3651 36522003-11-30 Andreas Schwab <schwab@suse.de> 3653 3654 * sysdeps/unix/sysv/linux/m68k/sysdep.h (PSEUDO_ERRVAL) 3655 (PSEUDO_END_ERRVAL, ret_ERRVAL): Define. 3656 36572003-11-29 Ulrich Drepper <drepper@redhat.com> 3658 3659 * misc/mntent_r.c (decode_name): Be compatible with util-linux and 3660 recognize \134 as well. 3661 36622003-10-09 H.J. Lu <hongjiu.lu@intel.com> 3663 3664 * sysdeps/ia64/fpu/fraiseexcpt.c: Don't include <asm/fpu.h>. 3665 36662003-10-08 H.J. Lu <hongjiu.lu@intel.com> 3667 3668 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Don't include 3669 <asm/fpu.h>. 3670 (struct ia64_fpreg): New definition. 3671 3672 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Don't include 3673 <asm/elf.h>. 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. 3680 36812003-10-08 H.J. Lu <hongjiu.lu@intel.com> 3682 3683 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Include 3684 <sys/ucontext.h>. 3685 (__ptrace_request): Add PTRACE_GETREGS and PTRACE_SETREGS. 3686 (pt_all_user_regs): New type. 3687 36882003-10-10 Simon Josefsson <jas@extundo.com> 3689 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 3693 Autoconf manual. 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. 3698 36992003-10-09 Steven Munroe <sjmunroe@us.ibm.com> 3700 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. 3705 37062003-11-28 Ulrich Drepper <drepper@redhat.com> 3707 3708 * misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding 3709 of newline. 3710 * manual/sysinfo.texi (mtab): Adjust description accordingly. 3711 Reported by Andries.Brouwer@cwi.nl. 3712 3713 * sysdeps/x86_64/fpu/libm-test-ulps: Add some more minor changes 3714 to compensate other setup. 3715 37162003-11-27 Andreas Jaeger <aj@suse.de> 3717 3718 * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for new atan2 test. 3719 3720 * math/libm-test.inc (atan2_test): Add test that run infinitly. 3721 Reported by "Willus" <etc231etc231@willus.com>. 3722 37232003-11-27 Michael Matz <matz@suse.de> 3724 3725 * sysdeps/ieee754/dbl-64/mpsqrt.c (fastiroot): Fix 64-bit problem 3726 with wrong types. 3727 37282003-11-28 Jakub Jelinek <jakub@redhat.com> 3729 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 3737 != NULL twice. 3738 * posix/regcomp.c (peek_token): Use opr.ctx_type instead of opr.idx 3739 for ANCHOR. 3740 (parse_expression): Only call init_word_char if word context will be 3741 needed. 3742 3743 * posix/bug-regex11.c (tests): Add new tests. 3744 3745 * posix/tst-regex.c: Include getopt.h. 3746 (timing): New variable. 3747 (main): Set timing to 1 if --timing argument is present. 3748 Add 2 new tests. 3749 (run_test, run_test_backwards): Handle timing. 3750 37512003-11-27 Jakub Jelinek <jakub@redhat.com> 3752 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 3771 mbs_case. 3772 (re_string_construct_common): Initialize raw_len, mbs_allocated, 3773 stop and raw_stop. 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. 3783 Don't set mbs_case. 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 3786 valid_raw_len. 3787 (re_string_translate_buffer): Set mbs instead of mbs_case. Set 3788 valid_raw_len. 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 3803 if mb_cur_max == 6. 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 3809 tests. 3810 38112003-11-26 Jakub Jelinek <jakub@redhat.com> 3812 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): 3816 Formatting. 3817 * posix/bug-regex11.c (tests): Enable most #ifdefed out tests. 3818 Add new test. 3819 38202003-11-26 Ulrich Drepper <drepper@redhat.com> 3821 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. 3826 38272003-11-26 Andreas Jaeger <aj@suse.de> 3828 3829 * sysdeps/unix/sysv/linux/dl-execstack.c 3830 (_dl_make_stack_executable): Set dl_stack_flags always for 3831 success. 3832 38332003-06-22 Petter Reinholdtsen <pere@hungry.com> 3834 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 3838 in iso-4217.def. 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. 3841 38422003-11-21 David Mosberger <davidm@hpl.hp.com> 3843 3844 * elf/soinit.c (_fini): Put _fini() in .init_array section if 3845 HAVE_INITFINI_ARRAY is defined. 3846 38472003-11-25 Ulrich Drepper <drepper@redhat.com> 3848 3849 * sysdeps/i386/fpu/bits/mathinline.h: Introduce __libc_sqrtl symbol. 3850 Define it appropriately after last change. Use it where __sqrtl 3851 was used. 3852 38532003-11-25 H.J. Lu <hongjiu.lu@intel.com> 3854 3855 * sysdeps/i386/fpu/bits/mathinline.h (sqrt): Don't inline 3856 sqrt for gcc 3.3 and above. 3857 38582003-11-25 Ulrich Drepper <drepper@redhat.com> 3859 3860 * posix/runptests.c (main): Make errors fatal. 3861 * posix/PTESTS: One test in GA135 and GA136 check functionality 3862 which seems not guaranteed. 3863 38642003-11-25 Jakub Jelinek <jakub@redhat.com> 3865 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. 3877 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 3887 tests. 3888 38892003-11-24 Jakub Jelinek <jakub@redhat.com> 3890 3891 * posix/regex_internal.h (re_token_t): Add word_char bit. Add 3892 comment. 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. 3897 Initialize sb_char. 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 3902 duplicate_node. 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. 3916 39172003-11-23 Ulrich Drepper <drepper@redhat.com> 3918 3919 * posix/regexec.c: Correct several memory allocation problems. 3920 Add more BE. 3921 * posix/regex_internal.c: Likewise. 3922 * posix/regcomp.c: Likewise. 3923 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. 3927 39282003-11-22 Ulrich Drepper <drepper@redhat.com> 3929 3930 * posix/PTESTS: Fix first test of GA143. 3931 39322003-11-21 Ulrich Drepper <drepper@redhat.com> 3933 3934 * posix/regex_internal.c (re_dfa_add_node): Add BE, reallocation 3935 isn't likely. 3936 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. 3942 39432003-11-22 Jakub Jelinek <jakub@redhat.com> 3944 3945 * elf/rtld.c (process_envvars): Only honor LD_USE_LOAD_BIAS 3946 if !__libc_enable_secure. 3947 3948 * sysdeps/generic/ldsodefs.h (_dl_use_load_bias): New _rtld_global 3949 field. 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 3958 LD_USE_LOAD_BIAS. 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. 3964 39652003-11-21 Ulrich Drepper <drepper@redhat.com> 3966 3967 * posix/regcomp.c (duplicate_node): Remove unnecessary local variable. 3968 3969 * posix/regcomp.c (re_dfa_add_tree_node): Make fourth parameter a 3970 pointer. Adjust callers. 3971 3972 * posix/regcomp.c (fetch_token): Change interface to match 3973 peek_token. This avoids some copying and reduces code size. 3974 39752003-11-21 Jakub Jelinek <jakub@redhat.com> 3976 3977 * posix/bug-regex19.c (tests): Add more tests. 3978 3979 * posix/bug-regex11.c: And one more commented out test. 3980 3981 * posix/tst-rxspencer.c (mb_tests): Don't run identical multi-byte 3982 tests multiple times unnecessarily. 3983 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. 3988 39892003-11-20 Ulrich Drepper <drepper@redhat.com> 3990 3991 * posix/PTESTS: Fix first test in GA143. 3992 39932003-11-20 Jakub Jelinek <jakub@redhat.com> 3994 3995 * posix/regex_internal.h (re_dfastate_t): Remove trtable_search. 3996 Add word_trtable. 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 4011 2 new tests. 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 4014 unnecessarily. 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. 4020 40212003-11-19 Jakub Jelinek <jakub@redhat.com> 4022 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. 4026 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 4043 to free_bin_tree. 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 4051 fields. 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. 4062 40632003-11-19 Ulrich Drepper <drepper@redhat.com> 4064 4065 * posix/bug-regex20.c: Correct invalid UTF-8 sequences. 4066 4067 * posix/regex_internal.c (build_wcs_upper_buffer): If mbrtowc 4068 fails, just use the byte, do no fancy conversions. 4069 4070 * posix/regex_internal.h (re_string_first_byte): Use ->valid_len 4071 not ->len. 4072 (re_string_is_single_byte_char): Likewise. 4073 40742003-11-18 Ulrich Drepper <drepper@redhat.com> 4075 4076 * posix/regexec.c (get_subexp): After calling get_subexp_sub 4077 reload buf and bkref_str. Little optimization by avoiding memcmp. 4078 40792003-11-14 David Mosberger <davidm@hpl.hp.com> 4080 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 4084 a function. 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. 4090 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. 4094 40952003-11-18 Jakub Jelinek <jakub@redhat.com> 4096 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 4099 and EPSILON_BIT. 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 4107 OP_UTF8_PERIOD. 4108 (re_compile_internal): Don't call optimize_utf8 if preg->translate 4109 != NULL. 4110 (optimize_utf8): Remove BACK_SLASH case. 4111 Transform OP_PERIOD into OP_UTF8_PERIOD if the searching can be 4112 optimized. 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 4117 OP_UTF8_PERIOD. 4118 (check_node_accept_bytes): Likewise. Reorder slightly so that 4119 re_string_char_size_at and re_string_elem_size_at are called 4120 only when needed. 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 4125 as well. 4126 41272003-11-18 Jakub Jelinek <jakub@redhat.com> 4128 4129 * io/bug-ftw4.c: Include string.h. 4130 * posix/fnmatch.c (mbsinit): Remove define. 4131 41322003-11-17 Jakub Jelinek <jakub@redhat.com> 4133 4134 * posix/regcomp.c (optimize_utf8): Optimize multi-byte chars as 4135 well. 4136 * posix/bug-regex20.c (tests): Add new tests. Multi-byte char 4137 followed by dup operator is expected to be optimized. 4138 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. 4142 41432003-11-15 Andreas Jaeger <aj@suse.de> 4144 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. 4151 4152 * math/libm-test.inc (floor_test): Test also ±0.25. 4153 (ceil_test): Test -0.25. 4154 41552003-11-17 Ulrich Drepper <drepper@redhat.com> 4156 4157 * sysdeps/posix/getaddrinfo.c: Add support for destination address 4158 selection according to RFC 3484. 4159 41602003-11-15 Ulrich Drepper <drepper@redhat.com> 4161 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 4172 map_notascii field. 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. 4177 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. 4184 4185 * wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit. 4186 * include/wchar.h: Provide inline versions of mbsinit and __mbsinit. 4187 41882003-11-14 Jakub Jelinek <jakub@redhat.com> 4189 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. 4193 41942003-11-12 David Mosberger <davidm@hpl.hp.com> 4195 4196 * sysdeps/ia64/dl-machine.h: Force inlining of 4197 elf_machine_runtime_setup(). 4198 41992003-11-13 Andreas Jaeger <aj@suse.de> 4200 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. 4207 4208 * math/libm-test.inc (ceil_test): Test ceil (0.25). 4209 42102003-11-04 Ulrich Drepper <drepper@redhat.com> 4211 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. 4215 42162003-11-13 Jakub Jelinek <jakub@redhat.com> 4217 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 4221 optimized. 4222 (main): Run all tests with RE_ICASE as well. 4223 42242003-11-13 Ulrich Drepper <drepper@redhat.com> 4225 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. 4232 4233 * posix/regcomp.c (parse_bracket_exp): Don't check for range if 4234 this is no option given the first token. 4235 4236 * posix/regcomp.c (parse_bracket_exp): Fix test for EOS after 4237 hyphen in range expression. Return EBRACK in this case. 4238 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. 4242 4243 * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern. 4244 Prettier error messages. 4245 4246 * posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first 4247 number in {,} expression is larger. 4248 42492003-11-13 Andreas Jaeger <aj@suse.de> 4250 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. 4255 4256 * sysdeps/x86_64/fpu/s_ceill.S: New file. 4257 42582003-11-13 Ulrich Drepper <drepper@redhat.com> 4259 4260 * posix/regcomp.c (parse_expression): In BRE consecutive 4261 duplications are not allowed. 4262 42632003-11-12 Ulrich Drepper <drepper@redhat.com> 4264 4265 * posix/regcomp.c (parse_bracket_exp): If end of expression is 4266 seen, return EBRACK error, not BADPAT. 4267 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. 4272 4273 * posix/regcomp.c (parse_sub_exp): In case of not-matching ( ) 4274 return REG_EPAREN. 4275 4276 * posix/PTESTS: Cleanup. Fix typoes. Correct bugs in 2003.2. 4277 * posix/runptests.c (main): Handle comments. 4278 * posix/PTESTS2C.sed: Handle comments. 4279 42802003-11-12 Jakub Jelinek <jakub@redhat.com> 4281 4282 * posix/regcomp.c (optimize_utf8): New function. 4283 (re_compile_fastmap_iter): Use dfa->mb_cur_max > 1 instead 4284 of !icase. 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. 4292 42932003-11-12 Jakub Jelinek <jakub@redhat.com> 4294 4295 * io/ftw.c (NFTW_NEW_NAME, NFTW_OLD_NAME): Add prototypes. 4296 42972003-11-12 Jakub Jelinek <jakub@redhat.com> 4298 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 4302 insensitive) too. 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. 4310 43112003-11-12 Jakub Jelinek <jakub@redhat.com> 4312 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 4318 is_utf8 arguments. 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 4326 of MB_CUR_MAX. 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 4335 MB_CUR_MAX. 4336 (re_string_reconstruct): Likewise. 4337 (re_string_context_at): Use input->mb_cur_max instead of 4338 MB_CUR_MAX. 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 4344 MB_CUR_MAX. 4345 (extend_buffers): Use pstr->mb_cur_max instead of MB_CUR_MAX. 4346 43472003-11-12 Jakub Jelinek <jakub@redhat.com> 4348 4349 * posix/Makefile (tests): Add bug-regex19. 4350 (bug-regex19-ENV): Add LOCPATH. 4351 * posix/bug-regex19.c: New test. 4352 43532003-11-11 Jakub Jelinek <jakub@redhat.com> 4354 4355 * posix/regcomp.c (re_compile_fastmap_iter): Handle RE_ICASE 4356 with MB_CUR_MAX > 1 locales in the fastmap. 4357 43582003-11-11 Jakub Jelinek <jakub@redhat.com> 4359 4360 * posix/regex_internal.c (build_wcs_buffer): Fix comment typo. 4361 (build_wcs_upper_buffer): Likewise. Use towupper for wchar_t instead 4362 of toupper. 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. 4367 43682003-10-08 Thorsten Kukuk <kukuk@suse.de> 4369 4370 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (pread, pwrite): 4371 Define __NR_pread/__NR_pwrite if not done in kernel headers 4372 43732003-11-11 Roland McGrath <roland@redhat.com> 4374 4375 * manual/xtract-typefun.awk: Swallow [(){}*] from function names. 4376 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. 4390 43912003-11-08 Andreas Schwab <schwab@suse.de> 4392 4393 * scripts/data/c++-types-ia64-linux-gnu.data: New file. 4394 43952003-11-10 Carlos O'Donell <carlos@baldric.uwo.ca> 4396 4397 * io/ftwtest-sh: Fix nested sed commands. 4398 43992003-11-10 Jakub Jelinek <jakub@redhat.com> 4400 4401 * posix/regex_internal.h (re_string_char_size_at): Don't look beyond 4402 valid_len wide chars. 4403 44042003-11-09 Roland McGrath <roland@redhat.com> 4405 4406 * manual/examples/dir2.c (one): Add const to argument type. 4407 Reported by J de Haan <j.de.haan@home.nl>. 4408 44092003-11-07 Ulrich Drepper <drepper@redhat.com> 4410 4411 * po/pl.po: Update from translation team. 4412 44132003-11-07 Jakub Jelinek <jakub@redhat.com> 4414 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 4419 and compat_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. 4423 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. 4439 44402003-11-04 Jakub Jelinek <jakub@redhat.com> 4441 4442 * io/ftw.c (ftw_dir): Close dir if callback with FTW_D type returns 4443 non-zero. 4444 * io/Makefile (tests): Add bug-ftw4. 4445 * io/bug-ftw4.c: New test. 4446 44472003-10-27 Daniel Jacobowitz <drow@mvista.com> 4448 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. 4455 44562003-11-03 Ulrich Drepper <drepper@redhat.com> 4457 4458 * intl/locale.alias: nb_NO is now the correct name, not no_NO. 4459 4460 * locale/iso-639.def: Add Blin. 4461 Patch by Daniel Yacob <locales@geez.org>. 4462 44632003-10-31 Steven Munroe <sjmunroe@us.ibm.com> 4464 4465 * sysdeps/powerpc/powerpc32/strncmp.S: New File. 4466 * sysdeps/powerpc/powerpc64/strncmp.S: New File. 4467 44682003-11-01 Randolph Chung <tausq@debian.org> 4469 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. 4473 44742003-11-01 Roland McGrath <roland@redhat.com> 4475 4476 * libio/bug-ftell.c (do_test): Add a cast. 4477 44782003-09-26 Daniel Jacobowitz <drow@mvista.com> 4479 4480 * Makerules (shlib.lds): Make sure that ld doesn't try to link 4481 anything while generating the linker script. 4482 44832003-10-31 Roland McGrath <roland@redhat.com> 4484 4485 * locale/lc-ctype.c (_nl_postload_ctype): Update _nl_global_locale's 4486 special members. 4487 44882003-10-29 Ulrich Drepper <drepper@redhat.com> 4489 4490 * po/be.po: Update from translation team. 4491 44922003-10-27 Ulrich Drepper <drepper@redhat.com> 4493 4494 * elf/rtld.c (map_doit): Pass __RTLD_OPENEXEC in last parameter to 4495 _dl_map_object. 4496 4497 * elf/sprof.c (load_shobj): Use l_map_start not l_addr to locate 4498 ELF header. 4499 4500 * inet/rcmd.c (__validuser2_sa): Remove unnecessary code to skip 4501 rest of line. We use getline which means this cannot happen. 4502 45032003-10-26 Ulrich Drepper <drepper@redhat.com> 4504 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. 4509 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. 4515 4516 * sysdeps/generic/glob.c (glob): Handle GLOB_BRACE and escaping 4517 correctly. 4518 * posix/globtest.sh: Add tests for GLOB_BRACE and escaping. 4519 4520 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Default 4521 reverse lookup format for IPv6 addresses is using bitstring and 4522 .ip6.arpa suffix. 4523 * resolv/ns_name.c: Implement encoding and decoding bitstring in 4524 hex format. 4525 45262003-10-23 Jakub Jelinek <jakub@redhat.com> 4527 4528 * locale/programs/locale.c (show_info): Fix printing word values on 4529 64-bit big-endian architectures. 4530 45312003-10-19 Bruno Haible <bruno@clisp.org> 4532 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. 4535 45362003-10-22 Steven Munroe <sjmunroe@us.ibm.com> 4537 4538 * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't 4539 append options to these. 4540 * sysdeps/powerpc/powerpc64/Makefile (+cflags, asm-CPPFLAGS): Likewise. 4541 45422003-10-18 Carlos O'Donell <carlos@baldric.uwo.ca> 4543 4544 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Fix merge error. 4545 45462003-10-15 Roland McGrath <roland@redhat.com> 4547 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. 4555 45562003-10-15 Jakub Jelinek <jakub@redhat.com> 4557 4558 * elf/rtld.c (print_statistics): Print also number of relative 4559 relocations. 4560 45612003-10-12 Carlos O'Donell <carlos@baldric.uwo.ca> 4562 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. 4571 45722003-10-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> 4573 4574 * sysdeps/unix/sysv/linux/sh/sysdep.h (DO_CALL): Add SYSCALL_INST_PAD 4575 after trapa instruction. 4576 45772003-10-09 Kaz Kojima <kkojima@rr.iij4u.or.jp> 4578 4579 * sysdeps/unix/sysv/linux/sh/syscalls.list: Add waitpid. 4580 45812003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca> 4582 4583 * sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed. 4584 45852003-10-09 Roland McGrath <roland@redhat.com> 4586 4587 * elf/rtld.c (dl_main): Don't set l_name for sysinfo DSO, since there 4588 is no file to name. 4589 45902003-10-08 Jakub Jelinek <jakub@redhat.com> 4591 4592 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Don't generate 4593 two identical copies of strings. 4594 45952003-10-06 Ulrich Drepper <drepper@redhat.com> 4596 4597 * posix/bug-regex11.c: Add some more tests which fail so far. 4598 Disable them. Patch by Paolo Bonzini <bonzini@gnu.org>. 4599 46002003-10-05 Paolo Bonzini <bonzini@gnu.org> 4601 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 4606 statement. 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. 4613 46142003-10-06 Ulrich Drepper <drepper@redhat.com> 4615 4616 * manual/examples/testopt.c: Fix warnings. Better error message 4617 for missing -c argument. 4618 Patch mostly by Gitonga Marete <bgmarete@comcast.net>. 4619 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. 4628 46292003-10-05 Jakub Jelinek <jakub@redhat.com> 4630 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. 4635 46362003-10-03 Ulrich Drepper <drepper@redhat.com> 4637 4638 * sysdeps/i386/elf/bsd-setjmp.S: Use linkonce section for PIC stub. 4639 * sysdeps/i386/elf/setjmp.S: Likewise. 4640 46412003-10-02 Roland McGrath <roland@redhat.com> 4642 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. 4647 46482003-08-22 Simon Josefsson <jas@extundo.com> 4649 4650 * argp/argp-fmtstream.h [!__attribute__]: Define to nothing. 4651 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 4655 strerror_r. 4656 [!_LIBC && !HAVE_STRERROR_R && !HAVE_DECL_STRERROR]: Declare 4657 strerror. 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. 4666 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. 4676 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. 4680 4681 * argp/argp-xinl.c [_LIBC || HAVE_FEATURES_H]: Add CPP check for 4682 '#include features.h'. 4683 4684 * argp/argp.h [!__attribute__]: Define to nothing. 4685 46862003-09-26 Paolo Bonzini <bonzini@gnu.org> 4687 4688 * posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE 4689 for the first token in a subexpression as well. 4690 46912003-10-02 Jakub Jelinek <jakub@redhat.com> 4692 4693 * posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor 4694 handling again. 4695 (parse_reg_exp): Likewise. 4696 * posix/regex.h (RE_CARET_ANCHORS_HERE): Define. 4697 4698 * posix/bug-regex11.c (tests): Add new tests. 4699 * posix/bug-regex12.c (tests): Add new test. 4700 47012003-10-01 Thorsten Kukuk <kukuk@suse.de> 4702 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. 4705 47062003-10-02 Jeroen Dekkers <jeroen@dekkers.cx> 4707 4708 * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from 4709 the old thread-m.h header too. 4710 47112003-10-02 Ulrich Drepper <drepper@redhat.com> 4712 4713 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): Go 4714 back to 131027 since this is what the kernel enforces. 4715 4716 * inet/getnameinfo.c: Move domain out of nrl_domainname scope and 4717 define it with libc_freeres_ptr. 4718 47192003-10-01 Roland McGrath <roland@redhat.com> 4720 4721 * elf/rtld.c (dl_main): Add cast in last change. 4722 47232003-09-10 Chris Demetriou <cgd@broadcom.com> 4724 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. 4731 47322003-09-30 Ulrich Drepper <drepper@redhat.com> 4733 4734 * elf/rtld.c (dl_main): Also set l_map_start. 4735 47362003-09-30 Daniel Jacobowitz <drow@mvista.com> 4737 4738 * elf/rtld.c (dl_main): Set l_libname and l_name for the sysinfo DSO 4739 to work around kernel problem. 4740 47412003-09-27 Wolfram Gloger <wg@malloc.de> 4742 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" 4746 closing brace. 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. 4752 47532003-09-29 Ulrich Drepper <drepper@redhat.com> 4754 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 4757 branch. 4758 4759 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as 4760 well to cover using long long in C90. 4761 47622003-09-28 Alfred M. Szmidt <ams@kemisten.nu> 4763 4764 * sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop): 4765 Redefine and use __libc_cleanup_region_end instead. 4766 47672003-09-29 Thorsten Kukuk <kukuk@suse.de> 4768 4769 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Use __inline and 4770 fix prototypes for picky C++ compilers. 4771 47722003-09-27 Ulrich Drepper <drepper@redhat.com> 4773 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. 4777 47782003-09-26 Andreas Schwab <schwab@suse.de> 4779 4780 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Pass fourth argument to 4781 rt_sigprocmask system call. 4782 47832003-09-25 Roland McGrath <roland@redhat.com> 4784 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. 4790 47912003-09-25 Jakub Jelinek <jakub@redhat.com> 4792 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 4797 #include_next. 4798 47992003-09-25 Ulrich Drepper <drepper@redhat.com> 4800 4801 * posix/regcomp.c (peek_token): Remove recent changes for anchor 4802 handling again. 4803 (parse_reg_exp): Likewise. 4804 * posix/regex.h: Remove RE_CARET_ANCHORS_HERE. 4805 4806 * csu/Makefile ($(objpfx)version-info.h): Fix sed script to handle 4807 banners. 4808 4809 * nis/nis_table.c (nis_list): Always strdup string used with 4810 ibreq->ibr_name. Add several NULL pointer checks. 4811 4812 * nis/nss_nisplus/nisplus-alias.c: Add check for NULL return value 4813 of nis_list. 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. 4825 4826 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Define PROT_GROWSDOWN 4827 and PROT_GROWSUP. 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. 4839 48402003-09-25 Jakub Jelinek <jakub@redhat.com> 4841 4842 * misc/syslog.c: Include locale.h. 4843 (vsyslog): Add date always in C locale %h %e %T format. 4844 48452003-09-24 Paul Eggert <eggert@twinsun.com> 4846 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. 4851 48522003-08-07 Alfred M. Szmidt <ams@kemisten.nu> 4853 4854 * sysdeps/mach/hurd/bits/libc-lock.h 4855 (__libc_cleanup_push, __libc_cleanup_pop): New macros. 4856 48572003-08-01 Alfred M. Szmidt <ams@kemisten.nu> 4858 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. 4878 48792003-09-24 Ulrich Drepper <drepper@redhat.com> 4880 4881 * sysdeps/unix/sysv/linux/dl-execstack.c 4882 (_dl_make_stack_executable): Remember that we changed the permission. 4883 4884 * sysdeps/ia64/dl-machine.h (RTLD_START): Remove setting of 4885 __libc_stack_end. Patch by David Mosberger. 4886 48872003-09-24 Jakub Jelinek <jakub@redhat.com> 4888 4889 * elf/Versions (ld): Export __libc_stack_end@GLIBC_2.1 instead of 4890 __libc_stack_end@GLIBC_PRIVATE. 4891 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 4895 __libc_stack_end. 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. 4909 49102003-09-24 Ulrich Drepper <drepper@redhat.com> 4911 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. 4917 49182003-09-24 Jakub Jelinek <jakub@redhat.com> 4919 4920 * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev): 4921 Add __THROW. 4922 49232003-09-24 Jakub Jelinek <jakub@redhat.com> 4924 4925 * nscd/Makefile (others): Add nscd before including ../Rules. 4926 49272003-09-24 Ulrich Drepper <drepper@redhat.com> 4928 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. 4932 49332003-09-23 Ulrich Drepper <drepper@redhat.com> 4934 4935 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Adjust for larger 4936 kernel dev_t size. 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 4946 kernel dev_t. 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>. 4951 49522003-09-23 Ulrich Drepper <drepper@redhat.com> 4953 4954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions [libc] 4955 (GLIBC_2.3.3): Add setcontext, getcontext, swapcontext, and 4956 makecontext. 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>. 4967 49682003-02-25 Randolph Chung <tausq@debian.org> 4969 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. 4974 49752003-09-23 Roland McGrath <roland@redhat.com> 4976 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. 4983 49842003-09-23 Jakub Jelinek <jakub@redhat.com> 4985 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 4989 and _dl_fini. 4990 49912003-09-23 Roland McGrath <roland@redhat.com> 4992 4993 * sysdeps/i386/dl-machine.h (RTLD_START): Set __libc_stack_end before 4994 calling _dl_start, using GOTOFF access. 4995 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 5003 variables. 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. 5010 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. 5025 50262003-09-23 Ulrich Drepper <drepper@redhat.com> 5027 5028 * sysdeps/posix/sprofil.c (pc_to_index): Remove inline marker. 5029 50302003-09-20 Alfred M. Szmidt <ams@kemisten.nu> 5031 5032 * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE, 5033 UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of 5034 __fcntl_nocancel. 5035 50362003-09-22 Ulrich Drepper <drepper@redhat.com> 5037 5038 * malloc/malloc.c: Include <stdint.h>. 5039 50402003-09-20 Paolo Bonzini <bonzini@gnu.org> 5041 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 5048 and OP_NOTSPACE. 5049 * posix/regex_internal.h (re_token_type_t): Add OP_SPACE 5050 and OP_NOTSPACE. 5051 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. 5057 5058 * posix/regexec.c: Check out of bounds value before shifting. 5059 5060 * posix/regex_internal.h: Define __attribute for non-gcc. 5061 50622003-09-22 Jakub Jelinek <jakub@redhat.com> 5063 5064 * include/atomic.h (atomic_compare_and_exchange_val_rel, 5065 atomic_compare_and_exchange_bool_rel): Swap oldval/newval arguments 5066 to avoid confusion. 5067 5068 * sysdeps/unix/opendir.c: Include string.h. 5069 50702003-09-22 Ulrich Drepper <drepper@redhat.com> 5071 5072 * timezone/zdump.c: Update from tzcode2003c. 5073 * timezone/zic.c: Likewise. 5074 * timezone/leapseconds: Update from tzdata2003c. 5075 50762003-09-19 Ulrich Drepper <drepper@redhat.com> 5077 5078 * elf/Makefile ($(objpfx)librtld.os): Create link map also for 5079 final build to ease quality control. 5080 5081 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): If compiled for 5082 ld.so, don't include NULL buffer pointer handling. 5083 50842003-09-19 Jakub Jelinek <jakub@redhat.com> 5085 5086 * dlfcn/dlopen.c (dlopen): Add static_link_warning. 5087 50882003-09-18 Jakub Jelinek <jakub@redhat.com> 5089 5090 * libio/memstream.c (open_memstream): Use _IO_init instead of 5091 _IO_old_init. 5092 50932003-09-17 Ulrich Drepper <drepper@redhat.com> 5094 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. 5100 51012003-09-17 Jakub Jelinek <jakub@redhat.com> 5102 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. 5126 5127 * libio/memstream.c (_IO_wmem_jumps): Remove unused structure. 5128 (_IO_wmem_sync, _IO_wmem_finish): Remove unused functions. 5129 51302003-09-17 Philip Blundell <philb@gnu.org> 5131 5132 * sysdeps/arm/dl-machine.h (CALL_ROUTINE): Deleted. 5133 (BX): Define. 5134 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Optimise a little. 5135 5136 * sysdeps/arm/sysdep.h (DO_RET): New. 5137 5138 * sysdeps/unix/sysv/linux/arm/vfork.S: Add #error if __NR_vfork 5139 required but not defined. Improve test of error code. 5140 51412003-09-17 Jakub Jelinek <jakub@redhat.com> 5142 5143 * sysdeps/i386/Makefile (stack-align-test-flags): Add 5144 -malign-double -mpreferred-stack-boundary=4. 5145 51462003-09-17 Ulrich Drepper <drepper@redhat.com> 5147 5148 * sysdeps/posix/utimes.c (__utimes): Truncate instead of round. 5149 * sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise. 5150 51512003-09-15 Jakub Jelinek <jakub@redhat.com> 5152 5153 * sysdeps/i386/Makefile (sysdep-CFLAGS): If not in math or csu 5154 subdir, add -mpreferred-stack-boundary=4, with few exceptions. 5155 51562003-09-17 Jakub Jelinek <jakub@redhat.com> 5157 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. 5168 51692003-09-17 Ulrich Drepper <drepper@redhat.com> 5170 5171 * sysdeps/unix/sysv/linux/i386/clone.S: Make sure child gets a 5172 stack which is aligned (mod 16). 5173 51742003-09-17 Uwe Reimann <Uwe_Reimann@gmx.net> 5175 Hans-Peter Nilsson <hp@axis.com> 5176 5177 * sysdeps/cris/dl-machine.h (elf_machine_type_class): Classify 5178 R_CRIS_GLOB_DAT as ELF_RTYPE_CLASS_PLT. Clarify comment. 5179 51802003-09-17 Jakub Jelinek <jakub@redhat.com> 5181 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. 5187 51882003-09-16 Ulrich Drepper <drepper@redhat.com> 5189 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. 5201 52022003-09-16 Jakub Jelinek <jakub@redhat.com> 5203 5204 * posix/Versions (sched_getaffinity, sched_setaffinity): Change 5205 from GLIBC_2.3.2 to GLIBC_2.3.3 symbol version. 5206 52072003-09-16 Bruno Haible <bruno@clisp.org> 5208 5209 * intl/tst-gettext2.sh: Set GCONV_PATH and LOCPATH only after 5210 invoking msgfmt, not before. 5211 52122003-09-15 Jakub Jelinek <jakub@redhat.com> 5213 5214 * argp/argp.h (argp_parse, __argp_parse): Remove __THROW. 5215 * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-parse.c): Add 5216 $(uses-callbacks). 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 5230 $(uses-callbacks). 5231 * stdlib/Makefile (CFLAGS-bsearch.c, CFLAGS-msort.c, CFLAGS-qsort.c): 5232 Likewise. 5233 52342003-09-15 Andreas Schwab <schwab@suse.de> 5235 5236 * sysdeps/m68k/setjmp.c: Add hidden_def. 5237 52382003-09-14 Ulrich Drepper <drepper@redhat.com> 5239 5240 * libio/memstream.c (open_memstream): Don't allow wide char operations. 5241 5242 * dirent/dirent.h: Remove __THROW from scandir. 5243 52442003-09-14 Philip Blundell <philb@gnu.org> 5245 5246 * sysdeps/unix/sysv/linux/arm/mmap.S: Use sys_mmap2 if it's known 5247 to be available. 5248 5249 * sysdeps/unix/sysv/linux/arm/mmap64.S: Optimise code a little. 5250 5251 * sysdeps/arm/memset.S: Rewrite. 5252 52532003-09-12 Jakub Jelinek <jakub@redhat.com> 5254 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. 5258 52592003-09-14 Ulrich Drepper <drepper@redhat.com> 5260 5261 * io/Makefile (CFLAGS-ftw.c): Add -fexceptions. 5262 (CFLAGS-ftw64.c): Likewise. 5263 52642003-09-13 Ulrich Drepper <drepper@redhat.com> 5265 5266 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Add -fexceptions. 5267 (CFLAGS-nscd_getgr_r.c): Likewise. 5268 (CFLAGS-nscd_gethst_r.c): Likewise. 5269 52702003-09-12 Ulrich Drepper <drepper@redhat.com> 5271 5272 * sysdeps/unix/sysv/linux/if_index.c: Use only non-cancelable 5273 interfaces. 5274 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): 5281 Likewise. 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. 5291 5292 * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition. 5293 5294 * libio/stdio.h: Remove __THROW from cuserid prototype. 5295 5296 * locale/loadarchive.c: Use only non-cancelable interfaces. 5297 * resolv/herror.c (herror): Likewise. 5298 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. 5303 5304 53052003-09-11 Jakub Jelinek <jakub@redhat.com> 5306 5307 * Makerules (LDFLAGS-c.so): Remove -u __register_frame. 5308 53092003-09-12 Ulrich Drepper <drepper@redhat.com> 5310 5311 * stdio-common/stdio_ext.h: Mark most functions with __THROW. 5312 5313 * misc/err.h: Remove __THROW from all prototypes. 5314 5315 * posix/getopt.h (__THROW): Define if not already defined. Add 5316 __THROW to the getopt functions. 5317 53182003-09-11 Ulrich Drepper <drepper@redhat.com> 5319 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. 5324 53252003-09-11 H.J. Lu <hongjiu.lu@intel.com> 5326 5327 * elf/tls-macros.h (TLS_IE): Add a stop bit for ia64. 5328 (TLS_LD): Likewise. 5329 (TLS_GD): Likewise. 5330 53312003-09-11 Jakub Jelinek <jakub@redhat.com> 5332 5333 * libio/fileops.c (_IO_new_file_overflow): Add INTUSE to 5334 _IO_free_backup_area call. 5335 53362003-09-10 Chris Demetriou <cgd@broadcom.com> 5337 5338 * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix 5339 syscall invocation. 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 5343 white space. 5344 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise. 5345 53462003-09-10 Roland McGrath <roland@redhat.com> 5347 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>. 5353 53542003-09-10 Jakub Jelinek <jakub@redhat.com> 5355 5356 * string/Makefile (strop-tests): Add memccpy. 5357 * string/test-memccpy.c: New test. 5358 53592003-09-09 Jakub Jelinek <jakub@redhat.com> 5360 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): 5367 Likewise. 5368 53692003-09-09 Ulrich Drepper <drepper@redhat.com> 5370 5371 * string/stratcliff.c (main): Check memccpy. 5372 53732003-04-11 Jes Sorensen <jes@wildopensource.com> 5374 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. 5378 53792003-04-01 Jes Sorensen <jes@wildopensource.com> 5380 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. 5385 53862003-09-09 Chris Demetriou <cgd@broadcom.com> 5387 5388 * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining. 5389 53902003-09-08 Chris Demetriou <cgd@broadcom.com> 5391 5392 * sysdeps/mips/mips64/n32/Implies: Move ieee754/ldbl-128 to 5393 the top of the list. 5394 * sysdeps/mips/mips64/n64/Implies: Likewise. 5395 53962003-09-08 Roland McGrath <roland@frob.com> 5397 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. 5405 54062003-09-08 Ulrich Drepper <drepper@redhat.com> 5407 5408 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Undo last change. 5409 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise. 5410 54112003-09-08 Jakub Jelinek <jakub@redhat.com> 5412 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. 5418 54192003-09-08 Ulrich Drepper <drepper@redhat.com> 5420 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. 5424 54252003-09-08 Andreas Jaeger <aj@suse.de> 5426 5427 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump): 5428 Use struct sigcontext. 5429 5430 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): 5431 Use struct sigcontext. 5432 (GET_PC): Adopt. 5433 (GET_FRAME): Likewise. 5434 (GET_STACK): Likewise. 5435 54362003-09-08 Wolfram Gloger <wg@malloc.de> 5437 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. 5441 54422003-09-08 Ulrich Drepper <drepper@redhat.com> 5443 5444 * libio/bug-ftell.c: Include <sys/types.h>. 5445 (main): Mark cp as const. 5446 54472003-09-07 Jakub Jelinek <jakub@redhat.com> 5448 5449 * sysdeps/unix/sysv/linux/syscalls.list (fcntl): Remove. 5450 * sysdeps/unix/sysv/linux/x86_64/fcntl.c: Remove. 5451 54522003-09-05 Roland McGrath <roland@redhat.com> 5453 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. 5460 54612003-09-06 Ulrich Drepper <drepper@redhat.com> 5462 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. 5467 5468 * stdio-common/vfprintf.c: Don't use the first grouping number twice. 5469 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 5473 always fail. 5474 54752003-09-05 Ulrich Drepper <drepper@redhat.com> 5476 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. 5481 54822003-09-05 Roland McGrath <roland@redhat.com> 5483 5484 * nss/getXXbyYY.c (FUNCTION_NAME): Remove unused variable. 5485 54862003-09-04 Roland McGrath <roland@frob.com> 5487 5488 * sysdeps/mach/hurd/mmap.c (__mmap): If io_map fails with MIG_BAD_ID, 5489 EOPNOTSUPP, or ENOSYS, change it to ENODEV. 5490 54912003-09-04 H.J. Lu <hongjiu.lu@intel.com> 5492 5493 * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ): 5494 Fix a typo. 5495 54962003-09-05 Andreas Jaeger <aj@suse.de> 5497 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. 5501 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. 5507 55082003-09-04 Ulrich Drepper <drepper@redhat.com> 5509 5510 * posix/unistd.h: Add back __THROW to sysconf, pathconf, fpathconf. 5511 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. 5515 5516 * gmon/gmon.c: Use only not-cancelable syscalls to write profiling 5517 data. 5518 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 5522 work. 5523 5524 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Define. 5525 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Define. 5526 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. 5532 5533 * posix/unistd.h (gethostid): Remove __THROW. Clarify comment. 5534 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c): Add 5535 -fexceptions. 5536 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use 5537 extend_alloca. 5538 5539 * resolv/res_init.c (__res_nclose): Use close_not_cancel_no_status 5540 instead of __close. 5541 5542 * nss/getXXbyYY.c (FUNCTION_NAME): Add a few casts. Remove 5543 unnecessary errno handling. 5544 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 5547 code we had before. 5548 55492003-09-04 Jakub Jelinek <jakub@redhat.com> 5550 5551 * libio/fileops.c (_IO_file_read, _IO_new_file_write): Add 5552 __builtin_expect. 5553 (_IO_file_open): Likewise. Use close_not_cancel. 5554 55552003-09-04 Ulrich Drepper <drepper@redhat.com> 5556 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 5563 write_not_cancel. 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. 5583 55842003-09-04 Jakub Jelinek <jakub@redhat.com> 5585 5586 * sysdeps/generic/unwind.h (_Unwind_GetBSP): Add prototype. 5587 55882003-09-03 Ulrich Drepper <drepper@redhat.com> 5589 5590 * nss/getXXbyYY_r.c (INTERNAL): Explicitly set errno and avoid 5591 returning ERANGE if this wasn't intended. 5592 55932003-09-03 Jakub Jelinek <jakub@redhat.com> 5594 5595 * intl/loadmsgcat.c (open, close, read, mmap, munmap): Define as 5596 function-like macros. 5597 55982003-09-03 Ulrich Drepper <drepper@redhat.com> 5599 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. 5606 5607 * inet/Makefile: Add -fexceptions to CFLAGS for the various 5608 getXXent and getXXbyYY functions. 5609 5610 * locale/loadlocale.c: Use not-cancelable variants of open, close, 5611 and read. 5612 56132003-09-02 Jakub Jelinek <jakub@redhat.com> 5614 5615 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove 5616 rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and 5617 rt_sigpending. 5618 * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction): 5619 New prototype. 5620 * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove 5621 unused __syscall_ stubs. 5622 * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove 5623 rt_*. 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 5635 rt_*. 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. 5752 57532003-09-02 Jakub Jelinek <jakub@redhat.com> 5754 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. 5758 57592003-09-02 Ulrich Drepper <drepper@redhat.com> 5760 5761 * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions. 5762 5763 * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of 5764 open, close, and read. 5765 5766 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define 5767 *_nocancel name. 5768 5769 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add waitpid. 5770 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. 5774 5775 * misc/Makefile (CFLAGS-getusershell.c): Add -fexceptions. 5776 5777 * io/Makefile (CFLAGS-statfs.c): Add -fexceptions. 5778 (CFLAGS-fstatfs.c): Likewise. 5779 (CFLAGS-statvfs.c): Likewise. 5780 (CFLAGS-fstatvfs.c): Likewise. 5781 57822003-09-01 Ulrich Drepper <drepper@redhat.com> 5783 5784 * misc/Makefile (CFLAGS-getsysstats.c): Add -fexceptions. 5785 * posix/unistd.h: Remove __THROW from pathconf, fpathconf, 5786 sysconf. 5787 * posix/Makefile (CFLAGS-sysconf.c): Add -fexceptions. 5788 (CFLAGS-pathconf.c): Likewise. 5789 (CFLAGS-fpathconf.c): Likewise. 5790 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. 5796 5797 * misc/Makefile (CFLAGS-mkstemp.c): Add -fexceptions. 5798 (CFLAGS-mkstemp64.c): Likewise. 5799 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. 5804 5805 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Use 5806 not-cancelable functions. 5807 5808 * libio/Makefile (CFLAGS-oldiofopen.c): Add -fexceptions. 5809 (CFLAGS-iofopen.c): Likewise. 5810 (CFLAGS-iofopen64.c): Likewise. 5811 5812 * stdlib/fmtmsg.c (fmtmsg): Disable cancellation around output 5813 functions. 5814 * stdlib/Makefile (CFLAGS-fmtmsg.c): Add -fexceptions. 5815 * stdlib/fmtmsg.h: Remove __THROW from fmtmsg. 5816 5817 * stdlib/stdlib.h: Remove __THROW from posix_openpt and getpt. 5818 * login/Makefile (CFLAGS-getpt.c): Add -fexceptions. 5819 58202003-09-01 Thorsten Kukuk <kukuk@suse.de> 5821 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. 5826 58272003-09-01 Jakub Jelinek <jakub@redhat.com> 5828 5829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: New. 5830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: New. 5831 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. 5835 58362003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp> 5837 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. 5842 58432003-08-08 H.J. Lu <hongjiu.lu@intel.com> 5844 5845 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove __syscall_ 5846 functions. 5847 58482003-08-31 Ulrich Drepper <drepper@redhat.com> 5849 5850 * libio/libioP.h (_IO_acquire_lock_fct): Define as inline function. 5851 Code by Richard Henderson. 5852 58532003-08-31 Philip Blundell <philb@gnu.org> 5854 5855 * sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and 5856 posix_fallocate64 at GLIBC_2.3.3. 5857 58582003-08-31 Ulrich Drepper <drepper@redhat.com> 5859 5860 * sysdeps/x86_64/bsd-_setjmp.S: Use HIDDEN_JUMPTARGET. 5861 * include/setjmp.h: Add libc_hidden_proto for __sigsetjmp. 5862 58632003-08-30 Jakub Jelinek <jakub@redhat.com> 5864 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 5889 CFI directives. 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): 5893 Define. 5894 * sysdeps/unix/sysv/linux/sparc/system.c: New file. 5895 58962003-08-30 Ulrich Drepper <drepper@redhat.com> 5897 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. 5904 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. 5910 5911 * argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions. 5912 (CFLAGS-argp-fmtstream.c): Likewise. 5913 * argp/argp.h: Remove a number of __THROW. 5914 5915 * misc/sys/syslog.h (vsyslog): Remove __THROW. 5916 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. 5922 5923 * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions. 5924 5925 * signal/signal.h (psignal): Remove __THROW. 5926 * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions. 5927 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. 5932 5933 * misc/error.h: Protect parameter names with leading __. 5934 59352003-08-28 Carlos O'Donell <carlos@baldric.uwo.ca> 5936 5937 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Add semtimedop. 5938 59392003-08-29 Jakub Jelinek <jakub@redhat.com> 5940 5941 * libio/iofgetpos64.c (_IO_new_fgetpos64): Move lock release to the 5942 end. 5943 59442003-08-29 Ulrich Drepper <drepper@redhat.com> 5945 5946 * libio/stdio.h: Remove a few more __THROW. 5947 59482003-08-29 Jakub Jelinek <jakub@redhat.com> 5949 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. 6011 60122003-08-29 Ulrich Drepper <drepper@redhat.com> 6013 6014 * signal/signal.h: sighold, sigrelse, sigignore, sigset were 6015 available in XPG4.2. 6016 60172003-08-27 Phil Knirsch <pknirsch@redhat.com> 6018 Jakub Jelinek <jakub@redhat.com> 6019 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. 6022 60232003-04-27 Bruno Haible <bruno@clisp.org> 6024 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>. 6034 60352003-08-27 Ulrich Drepper <drepper@redhat.com> 6036 6037 * math/math_private.h: Declare __copysignf. 6038 * sysdeps/ieee754/flt-32/s_scalbnf.c: Use __copysignf instead of 6039 copysignf. 6040 6041 * sysdeps/x86_64/fpu/bits/mathinline.h: Define __signbitf, 6042 __signbit, and __signbitl inline functions. 6043 6044 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Use 6045 HIDDEN_JUMPTARGET instead of JUMPTARGET to call exit(). 6046 6047 * sysdeps/x86_64/bsd-_setjmp.S [PIC]: Jump to __GI___sigsetjmp. 6048 * sysdeps/x86_64/setjmp.S: Add libc_hidden_def for __sigsetjmp. 6049 60502003-08-27 Jakub Jelinek <jakub@redhat.com> 6051 6052 * inet/inet_mkadr.c (inet_makeaddr): Optimize. 6053 60542003-08-27 Ulrich Drepper <drepper@redhat.com> 6055 6056 * include/stdio.h: Add declarations for __builtin_fwrite and 6057 __builtin_fwrite_unlocked. 6058 60592003-08-27 Jakub Jelinek <jakub@redhat.com> 6060 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. 6065 60662003-08-26 Ulrich Drepper <drepper@redhat.com> 6067 6068 * nss/nsswitch.c: Add libc_hidden_def for __nss_lookup_function. 6069 * nss/nsswitch.h: Add libc_hidden_proto for __nss_lookup_function. 6070 60712003-08-26 Steven Munroe <sjmunroe@us.ibm.com> 6072 6073 * sysdeps/powerpc/powerpc64/elf/Makefile: New file. 6074 60752003-08-26 Jakub Jelinek <jakub@redhat.com> 6076 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 6080 __old_buf. 6081 (__new_semctl): Shut up warning. 6082 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h 6083 (_dl_string_hwcap): Add __attribute__ ((always_inline)). 6084 60852003-08-26 Jakub Jelinek <jakub@redhat.com> 6086 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. 6090 60912003-08-25 Ulrich Drepper <drepper@redhat.com> 6092 6093 * libio/oldfileops.c (_IO_old_file_init): Initialize _mode field 6094 if the object size is large enough. 6095 60962003-08-25 Jakub Jelinek <jakub@redhat.com> 6097 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. 6100 61012003-08-25 Ulrich Drepper <drepper@redhat.com> 6102 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. 6107 61082003-08-25 Jakub Jelinek <jakub@redhat.com> 6109 6110 * elf/cache.c (save_cache): Don't write beyond end of file_entries 6111 buffer. 6112 Duplicate last old cache entry if the count would be odd. 6113 61142003-08-25 Andreas Jaeger <aj@suse.de> 6115 6116 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Cast arguments of 6117 __LONG_LONG_PAIR to long. 6118 61192003-08-25 Philip Blundell <philb@gnu.org> 6120 6121 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define. 6122 (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise. 6123 61242003-08-18 Alfred M. Szmidt <ams@kemisten.nu> 6125 6126 * sysdeps/generic/bits/libc-lock.h (__libc_cleanup_pop): Redefine 6127 and use __libc_cleanup_region_end instead. 6128 61292003-08-25 Ulrich Drepper <drepper@redhat.com> 6130 6131 * elf/ldconfig.c (search_dir): Revert patch of 2003-7-21. 6132 61332003-08-22 Ulrich Drepper <drepper@redhat.com> 6134 6135 * io/fcntl.h (posix_fallocate): Change type of third parameter to 6136 off_t. 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 6144 posix_fallocate64. 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. 6148 61492003-08-19 Ulrich Drepper <drepper@redhat.com> 6150 6151 * string/bits/string2.h (__STRING2_COPY_TYPE): Add attribute to 6152 the type, not to name. 6153 6154 * stdio-common/test-vfprintf.c (main): Don't write temporary file 6155 into source directory. 6156 6157 * malloc/malloc.c (_int_free): Add cheap test for some invalid 6158 block sizes. 6159 6160 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo in 6161 syscall name. 6162 61632003-08-18 Ulrich Drepper <drepper@redhat.com> 6164 6165 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Fold EISDIR error 6166 into EINVAL. 6167 61682003-08-18 H.J. Lu <hongjiu.lu@intel.com> 6169 6170 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Use _dl_reloc_bad_type. 6171 (elf_machine_lazy_rel): Likewise. 6172 61732003-08-18 Art Haas <ahaas@airmail.net> 6174 6175 * malloc/malloc.h: Remove unneeded ';' where closing the C++ 6176 extern block. 6177 61782003-08-18 Ulrich Drepper <drepper@redhat.com> 6179 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'. 6183 61842003-08-17 Juergen Kreileder <jk@blackdown.de> 6185 Andreas Jaeger <aj@suse.de> 6186 6187 * sysdeps/x86_64/bits/byteswap.h: New file. 6188 61892003-08-17 Andreas Jaeger <aj@suse.de> 6190 6191 * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Fix typo. 6192 61932003-08-16 Jakub Jelinek <jakub@redhat.com> 6194 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): 6210 Define. 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. 6214 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 6218 V flag. 6219 * sysdeps/unix/sysv/linux/ia64/syscalls.list (posix_fadvise64): 6220 Likewise. 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): 6228 Likewise. 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 6239 error value. 6240 * sysdeps/unix/sysv/linux/posix_fadvise64.c: New file. 6241 6242 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h 6243 (SYSCALL_ERROR_HANDLER): Use TLS errno/__libc_errno if USE___THREAD. 6244 62452003-08-15 Jakub Jelinek <jakub@redhat.com> 6246 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. 6252 62532003-08-16 Alan Modra <amodra@bigpond.net.au> 6254 6255 * sysdeps/powerpc/powerpc64/elf/start.S: Add a nop after 6256 __libc_start_main branch. 6257 62582003-08-16 Jakub Jelinek <jakub@redhat.com>, 6259 Andreas Jaeger <aj@suse.de> 6260 6261 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS 6262 instead of setting errno. 6263 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise. 6264 62652003-08-16 Andreas Jaeger <aj@suse.de> 6266 6267 * sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype. 6268 * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise. 6269 62702003-08-15 Ulrich Drepper <drepper@redhat.com> 6271 6272 * io/fcntl.h (posix_fadvise64): Change type of third parameter to 6273 off_t. 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 6281 value returned. 6282 Define posix_fadvise64_64 entry. Add version info to posix_fadvise64 6283 entry. 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 6290 posix_fadvise64. 6291 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. 6298 62992003-08-15 Jakub Jelinek <jakub@redhat.com> 6300 6301 * assert/assert.h (assert_perror): Use __builtin_expect for gcc >= 6302 3.0, not for !gcc or gcc < 3.0. 6303 63042003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca> 6305 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. 6312 63132003-08-15 Jakub Jelinek <jakub@redhat.com> 6314 6315 * sysdeps/sparc/sparc32/elf/configure.in (libc_cv_sparc32_tls): 6316 Change quotes before using []. 6317 6318 * sysdeps/unix/sysv/linux/sparc/sys/user.h: New file. 6319 6320 * sysdeps/sparc/sparc32/bits/atomic.h (__sparc32_atomic_lock): 6321 Renamed to... 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. 6328 63292003-08-14 Ulrich Drepper <drepper@redhat.com> 6330 6331 * assert/assert.h (assert): Use !! in front of expression to allow 6332 use of pointers. 6333 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 6338 EUC-JP-MS. 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>. 6343 63442003-08-13 Ulrich Drepper <drepper@redhat.com> 6345 6346 * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall. 6347 6348 * elf/Makefile: Use LC_ALL=C in a few cases where we call external 6349 text processing tools. 6350 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. 6362 63632003-08-12 Jakub Jelinek <jakub@redhat.com> 6364 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): 6370 Likewise. 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. 6379 63802003-08-11 Ulrich Drepper <drepper@redhat.com> 6381 6382 * assert/assert.h: Use __builtin_expect in assert and 6383 assert_perror definitions if possible. 6384 63852003-08-07 Jakub Jelinek <jakub@redhat.com> 6386 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. 6393 63942003-08-05 Jakub Jelinek <jakub@redhat.com> 6395 6396 * elf/ldconfig.c (main): Append SLIBDIR and LIBDIR to 6397 config_file directories instead of prepending. 6398 63992003-08-02 Ulrich Drepper <drepper@redhat.com> 6400 6401 * sysdeps/unix/sysv/linux/kernel-features.h: Define 6402 __ASSUME_CLONE_STOPPED. 6403 64042003-08-01 Ulrich Drepper <drepper@redhat.com> 6405 6406 * sysdeps/generic/bits/libc-lock.h 6407 (__libc_cleanup_push,__libc_cleanup_pop): Define even here. 6408 64092003-08-01 Roland McGrath <roland@frob.com> 6410 6411 * sysdeps/mach/hurd/getdents.c: Just use sysdeps/generic/getdents.c. 6412 64132003-07-31 Jakub Jelinek <jakub@redhat.com> 6414 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): 6420 Define. 6421 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__SSIZE_T_TYPE): 6422 Define. 6423 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__SSIZE_T_TYPE): 6424 Define. 6425 * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: New file. 6426 6427 * dlfcn/dlerror.c (once): New. 6428 (dlerror): Call __libc_once. 6429 (_dlerror_run): Remove once. 6430 6431 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext): 6432 Sync with 2.5.7 and 2.5.73 kernel changes. 6433 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 6436 formats to size_t. 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 6444 format to wint_t. 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. 6464 Adjust all users. 6465 * wcsmbs/wcsmbs-tst1.c (main): Cast arguments with %C format to wint_t. 6466 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. 6471 64722003-07-30 Jakub Jelinek <jakub@redhat.com> 6473 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. 6486 6487 * elf/tls-macros.h (VAR_INT_DEF): Add alignment directive. 6488 64892003-07-31 Alexandre Oliva <aoliva@redhat.com> 6490 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. 6526 65272003-07-29 Ulrich Drepper <drepper@redhat.com> 6528 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. 6532 65332003-07-29 Jakub Jelinek <jakub@redhat.com> 6534 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. 6538 65392003-07-29 Roland McGrath <roland@redhat.com> 6540 6541 * elf/Makefile: Revert accidental changes in last commit. 6542 * elf/dl-support.c: Likewise. 6543 6544 * rt/tst-timer2.c: New file. 6545 * rt/Makefile (tests): Add it. 6546 65472003-07-25 Jakub Jelinek <jakub@redhat.com> 6548 6549 * elf/dl-support.c (_dl_hwcap): Add nocommon attribute. 6550 65512003-07-29 Roland McGrath <roland@redhat.com> 6552 6553 * elf/Makefile (tests) [$(build-shared) = yes]: 6554 Depend on $(test-modules). 6555 * dlfcn/Makefile: Likewise. 6556 65572003-07-28 Roland McGrath <roland@redhat.com> 6558 6559 * sysdeps/generic/bits/types.h (__STD_TYPE): New macro. 6560 Use that instead of `typedef' when using __*_TYPE macros in rhs. 6561 6562 * elf/tst-tls14.c [USE_TLS && HAVE___THREAD]: Conditionalize on this. 6563 * elf/tst-tlsmod14a.c: Likewise. 6564 6565 * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <linux/compiler.h> 6566 before <linux/sysctl.h>. 6567 65682003-07-27 Ulrich Drepper <drepper@redhat.com> 6569 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. 6574 65752003-07-27 Andreas Jaeger <aj@suse.de> 6576 6577 * sysdeps/unix/sysv/linux/init-first.c: Mark init as used. 6578 65792003-07-25 Jakub Jelinek <jakub@redhat.com> 6580 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 6584 bits/a.out.h. 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. 6593 65942003-07-24 Jakub Jelinek <jakub@redhat.com> 6595 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. 6599 66002003-07-24 Ulrich Drepper <drepper@redhat.com> 6601 6602 * timezone/zic.c (rpytime): Replace cheap overflow check with a 6603 functioning one. 6604 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 6608 file into account. 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. 6620 66212003-07-23 Jakub Jelinek <jakub@redhat.com> 6622 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. 6627 66282003-07-22 Jakub Jelinek <jakub@redhat.com> 6629 6630 * include/stdio.h (__libc_fatal): Add libc_hidden_proto. 6631 * include/dlfcn.h (__libc_dlopen_mode, __libc_dlsym, __libc_dlclose): 6632 Likewise. 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 6642 change. 6643 * sysdeps/generic/unwind.inc: Removed. 6644 6645 * include/resolv.h (__resp): Declare. Define to __libc_resp 6646 if in libc.so. 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 6655 if USE___THREAD. 6656 66572003-07-22 H.J. Lu <hongjiu.lu@intel.com> 6658 6659 * elf/dl-support.c (_dl_hwcap): New variable. 6660 (_dl_aux_init): Initialize GL(dl_hwcap) for static binaries. 6661 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. 6666 6667 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Document 6668 that newer hardware needs more than these macros. 6669 6670 * sysdeps/i386/setfpucw.c: New file. 6671 66722003-07-22 Jakub Jelinek <jakub@redhat.com> 6673 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): 6684 Likewise. 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. 6689 66902003-07-22 H.J. Lu <hongjiu.lu@intel.com> 6691 6692 * elf/ldconfig.c (main): Issue a fatal error if relative path 6693 is used to build cache. 6694 66952003-07-22 Ulrich Drepper <drepper@redhat.com> 6696 6697 * elf/readlib.c (process_file): Avoid possible overflow in assignment. 6698 66992003-07-21 Art Haas <ahaas@airmail.net> 6700 6701 * manual/charset.texi (Converting a Character): Fix example code so a 6702 valid pointer is returned. 6703 67042003-07-22 Andreas Jaeger <aj@suse.de> 6705 6706 * elf/readlib.c (process_file): Check that file is a shared 6707 object. 6708 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. 6713 6714 * include/libc-symbols.h (_elf_set_element): Use attribute used so 6715 that gcc will not optimize it away. 6716 (link_warning): Likewise. 6717 67182003-07-22 Ulrich Drepper <drepper@redhat.com> 6719 6720 * wcsmbs/wcpncpy.c (__wcpncpy): Correct destination pointer handling. 6721 * wcsmbs/Makefile (tests): Add tst-wcpncpy. 6722 * wcsmbs/tst-wcpncpy.c: New file. 6723 67242003-07-21 Ulrich Drepper <drepper@redhat.com> 6725 6726 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_STOPPED): Define. 6727 6728 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Reverse use of 6729 stmxcsr and ldmxcsr. 6730 6731 * Makerules (build-module-helper): Add -z defs unless explicitly said 6732 not to do it. 6733 * dlfcn/Makefile: Define various *-no-z-defs variables for test DSOs 6734 which has undefined symbols. 6735 * elf/Makefile: Likewise. 6736 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. 6742 67432003-07-21 HJ Lu <hongjiu.lu@intel.com> 6744 6745 * elf/ldconfig.c (search_dir): Treat symlink as regular file 6746 if it won't point to itself. 6747 67482003-07-20 Ulrich Drepper <drepper@redhat.com> 6749 6750 * sysdeps/ia64/hp-timing.h (REPEAT_READ): Cast to long int not to int. 6751 67522003-07-20 Andreas Jaeger <aj@suse.de> 6753 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. 6757 67582003-07-19 Ulrich Drepper <drepper@redhat.com> 6759 6760 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO): Fix typo. 6761 6762 * sysdeps/unix/sysv/linux/syscalls.list: Remove affinity syscalls. 6763 67642003-07-16 Daniel Jacobowitz <drow@mvista.com> 6765 Andreas Jaeger <aj@suse.de> 6766 6767 * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHMLBA): Define to 6768 256K, remove unneeded declaration of __getpagesize. 6769 67702003-07-16 Andreas Schwab <schwab@suse.de> 6771 6772 * sysdeps/unix/sysv/linux/futimes.c: Include <string.h>. 6773 67742003-07-15 Ulrich Drepper <drepper@redhat.com> 6775 6776 * io/test-utime.c (main): Make test yet more robust. 6777 67782003-07-14 Ulrich Drepper <drepper@redhat.com> 6779 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. 6805 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>. 6812 68132003-07-15 Jakub Jelinek <jakub@redhat.com> 6814 6815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket): Add 6816 cfi directives. 6817 68182003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 6819 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. 6823 6824 * sysdeps/unix/sysv/linux/utimes.c: Include sysdep.h. 6825 68262003-07-14 Ulrich Drepper <drepper@redhat.com> 6827 6828 * sysdeps/unix/sysv/linux/kernel-features.h: Define 6829 __ASSUME_TGKILL for Alpha appropriately. 6830 68312003-07-12 Ulrich Drepper <drepper@redhat.com> 6832 6833 * sysdeps/unix/sysv/linux/bits/statfs.h (_STATFS_F_FRSIZE): Define. 6834 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h (_STATFS_F_FRSIZE): 6835 Likewise. 6836 * sysdeps/unix/sysv/linux/s390/bits/statfs.h (_STATFS_F_FRSIZE): 6837 Likewise. 6838 6839 * sysdeps/unix/sysv/linux/kernel-features.h: Define 6840 __ASSUME_UTIMES for x86 and kernels > 2.5.75. 6841 6842 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Handle case with 6843 second parameter == NULL. 6844 * sysdeps/unix/sysv/linux/utimes.c: New file. 6845 68462003-07-12 Jakub Jelinek <jakub@redhat.com> 6847 6848 * sysdeps/unix/sysv/linux/futimes.c: Include kernel-features.h. 6849 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Fix 6850 a typo. 6851 68522003-07-12 Ulrich Drepper <drepper@redhat.com> 6853 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. 6858 68592003-07-12 Kaz Kojima <kkojima@rr.iij4u.or.jp> 6860 6861 * sysdeps/unix/sysv/linux/sh/socket.S: Save and restore the PR 6862 register across CENABLE and CDISABLE. 6863 68642003-07-11 Jakub Jelinek <jakub@redhat.com> 6865 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. 6871 68722003-07-11 Jakub Jelinek <jakub@redhat.com> 6873 6874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket): Add 6875 cfi directives. 6876 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S (__socket): Likewise. 6877 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S (__socket): Likewise. 6878 68792003-07-10 Jakub Jelinek <jakub@redhat.com> 6880 6881 * sysdeps/powerpc/powerpc64/elf/start.S: Set section flags of 6882 .data.rel.ro.local to "aw". 6883 68842003-07-10 Ulrich Drepper <drepper@redhat.com> 6885 6886 * sysdeps/m68k/Makefile: Remove CLFAGS-.oS addition. 6887 * Makeconfig (CFLAGS-.oS): Use PIC-ccflag instead of pic-ccflag. 6888 (PIC-ccflag): Define. 6889 68902003-07-04 Jakub Jelinek <jakub@redhat.com> 6891 6892 * sysdeps/s390/s390-32/elf/start.S: Emit position independent code 6893 if PIC. 6894 * sysdeps/s390/s390-64/elf/start.S: Likewise. 6895 68962003-07-07 Jakub Jelinek <jakub@redhat.com> 6897 6898 * sysdeps/powerpc/powerpc64/elf/start.S: Put L(start_address) 6899 into .data.rel.ro.local section if PIC to avoid DT_TEXTREL. 6900 69012003-07-07 Ulrich Drepper <drepper@redhat.com> 6902 6903 * sysdeps/unix/sysv/linux/kernel-features.h: Version 6904 __ASSUME_CORRECT_SI_PID and __ASSUME_TGKILL if possible. 6905 6906 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for 6907 compilation with HAVE_AUX_SECURE defined. 6908 69092003-07-05 Richard Henderson <rth@redhat.com> 6910 6911 * sysdeps/alpha/elf/initfini.c: Avoid .ent/.end. 6912 69132003-07-03 Ulrich Drepper <drepper@redhat.com> 6914 6915 * configure.in: Also check for .cfi_rel_offset pseudo-op. 6916 69172003-07-03 Jakub Jelinek <jakub@redhat.com> 6918 6919 * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency): Fix a 6920 typo. 6921 69222003-07-03 Ulrich Drepper <drepper@redhat.com> 6923 6924 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_CLKTCK): 6925 Define. 6926 * sysdeps/unix/sysv/linux/prof-freq.h: New file. 6927 69282003-07-02 Jakub Jelinek <jakub@redhat.com> 6929 6930 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Protect new_sysinfo 6931 decl and use with #ifdef NEED_DL_SYSINFO. 6932 69332003-07-02 Ulrich Drepper <drepper@redhat.com> 6934 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. 6940 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. 6944 69452003-07-02 Andreas Jaeger <aj@suse.de> 6946 6947 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: New file. 6948 69492003-05-04 H.J. Lu <hongjiu.lu@intel.com> 6950 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. 6957 69582003-06-30 Ulrich Drepper <drepper@redhat.com> 6959 6960 * sysdeps/generic/sysdep.h: Define cfi_rel_offset and CFI_REL_OFFSET. 6961 69622003-06-30 Richard Henderson <rth@redhat.com> 6963 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. 6968 6969 * sysdeps/unix/sysv/linux/alpha/clone.S: Load child_tid properly. 6970 69712003-06-30 Richard Henderson <rth@redhat.com> 6972 6973 * include/sys/resource.h (__getrusage): Mark hidden. 6974 * include/sys/time.h (__settimeofday, __setitimer, __utimes): Likewise. 6975 * include/sys/wait.h (__wait4): Likewise. 6976 69772003-06-17 Guido Guenther <agx@sigxcpu.org> 6978 6979 * sysdeps/unix/sysv/linux/mips/xstatconv.c: Handle STAT_IS_KERNEL_STAT 6980 case. 6981 (xstat_conv): Rename to __xstat_conv and remove static inline. 6982 (xstat64_conv): Likewise. 6983 69842003-06-29 Ulrich Drepper <drepper@redhat.com> 6985 6986 * sysdeps/unix/sysv/linux/sleep.c (__sleep): Handle parameter 6987 values which cannot be handled in one nanosleep call. 6988 69892003-06-25 Alfred M. Szmidt <ams@kemisten.nu> 6990 6991 * sysdeps/generic/bits/in.h (IPV6_HOPOPTS, IPV6_DSTOPTS): New macros. 6992 (IPV6_RXHOPOPTS, IPV6_RXDSTOPTS): Use them. 6993 6994 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: Typo fix. 6995 69962003-06-04 Thorsten Kukuk <kukuk@suse.de> 6997 6998 * sysdeps/unix/sysv/linux/net/if_arp.h: Sync with kernel header, 6999 fix typo. 7000 70012003-06-26 Steven Munroe <sjmunroe@us.ibm.com> 7002 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. 7008 70092003-06-28 Ulrich Drepper <drepper@redhat.com> 7010 7011 * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop): Add real 7012 implementation. 7013 70142003-06-07 Thorsten Kukuk <kukuk@suse.de> 7015 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. 7018 7019 * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Save strlen result 7020 and use memcpy instead of strcpy. 7021 70222003-06-28 Ulrich Drepper <drepper@redhat.com> 7023 7024 * nis/nss_compat/compat-grp.c: Optimize several little things. Use 7025 stream unlocked. 7026 * nis/nss_compat/compat-initgroups.c: Likewise. 7027 * nis/nss_compat/compat-pwd.c: Likewise. 7028 * nis/nss_compat/compat-spwd.c: Likewise. 7029 70302003-06-27 Thorsten Kukuk <kukuk@suse.de> 7031 7032 * nis/nss_compat/compat-initgroups.c: Don't use our own NIS/NIS+ 7033 functions, dlopen corresponding NSS module instead. 7034 70352003-06-27 Jeroen Dekkers <jeroen@dekkers.cx> 7036 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. 7041 70422003-06-27 Ulrich Drepper <drepper@redhat.com> 7043 7044 * rt/Makefile (CFLAGS-librt-cancellation.c): Define. 7045 70462003-06-26 Roland McGrath <roland@frob.com> 7047 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. 7055 70562003-06-26 Roland McGrath <roland@redhat.com> 7057 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. 7068 70692003-06-26 Ulrich Drepper <drepper@redhat.com> 7070 7071 * io/test-utime.c: If _STATBUF_ST_NSEC is defined, adjust lower 7072 boundary test to take rounding of nanoseconds into account. 7073 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. 7081 70822003-06-26 Andreas Schwab <schwab@suse.de> 7083 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. 7087 70882003-06-17 Thorsten Kukuk <kukuk@suse.de> 7089 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. 7097 70982003-06-19 Daniel Jacobowitz <drow@mvista.com> 7099 7100 * sysdeps/unix/sysv/linux/kernel-features.h: Update kernel features 7101 for the SH architecture. 7102 71032003-06-25 Thorsten Kukuk <kukuk@suse.de> 7104 7105 * csu/Makefile: Use CPPFLAGS to find correct linux/version.h. 7106 71072003-06-25 Andreas Jaeger <aj@suse.de> 7108 7109 * stdlib/tst-strtod.c (main): Declare constant long double as 7110 suggested by Jakub Jelinek and Andreas Schwab. 7111 7112 * posix/tst-nanosleep.c: Include <time.h> for nanosleep 7113 declaration. 7114 7115 * stdio-common/tst-fphex.c: Fix format string. 7116 7117 * posix/transbug.c: Include <string.h> for memset and strlen 7118 declarations. 7119 7120 * stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration. 7121 7122 * stdlib/tst-strtod.c (main): Pass long double value. 7123 7124 * test-skeleton.c: Include <time.h> for nanosleep declaration. 7125 71262003-06-25 Ulrich Drepper <drepper@redhat.com> 7127 7128 * include/time.h: Don't define CLOCK_IDFIELD_SIZE if _ISOMAC is 7129 defined. 7130 71312003-06-11 Jakub Jelinek <jakub@redhat.com> 7132 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, 7142 call dlsym hook. 7143 (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL, 7144 call dlclose hook. 7145 71462003-06-25 Ulrich Drepper <drepper@redhat.com> 7147 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>. 7151 71522003-06-19 Jakub Jelinek <jakub@redhat.com> 7153 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 7157 dl-cache.h. 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. 7162 71632003-06-19 Jakub Jelinek <jakub@redhat.com> 7164 7165 * test-skeleton.c (timeout_handler): If waitpid returned 0, 7166 retry once after a second. If killed == 0, assume 7167 WTERMSIG (status) == SIGKILL. 7168 71692003-06-18 Roland McGrath <roland@redhat.com> 7170 7171 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Catch uninitialized 7172 elements in the table instead of printing an empty name string. 7173 71742003-06-05 Roland McGrath <roland@redhat.com> 7175 7176 * elf/elf.h (PT_GNU_STACK): New macro. 7177 71782003-06-24 Ulrich Drepper <drepper@redhat.com> 7179 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. 7186 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. 7191 7192 * sysdeps/unix/sysv/linux/kernel-features.h: Define 7193 __ASSUME_STATFS64 appropriately. 7194 7195 * sysdeps/unix/sysv/linux/internal_statvfs.c: Use f_frsize field 7196 from statfs structure if it has been filled in. 7197 7198 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_frsize 7199 field. 7200 (struct statfs64): Likewise. 7201 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: Likewise. 7202 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise. 7203 72042003-06-24 Richard Henderson <rth@redhat.com> 7205 7206 * sysdeps/unix/sysv/linux/alpha/syscalls.list (pread, pwrite): Use 7207 the 64-bit syscall name. 7208 7209 * sysdeps/alpha/setjmp.S (_setjmp, setjmp): Mark .prologue. 7210 7211 * sysdeps/alpha/fpu/bits/mathinline.h: Honor 7212 __LIBC_INTERNAL_MATH_INLINES. Implement __signbitf, __signbit. 7213 7214 * sysdeps/unix/sysv/linux/alpha/clone.S: Use HIDDEN_JUMPTARGET. 7215 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use 7216 libc_hidden_def. 7217 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. 7218 * sysdeps/unix/sysv/linux/alpha/setfpucw.c: Use libc_hidden_proto 7219 on them. 7220 7221 * sysdeps/alpha/bits/atomic.h: New file. 7222 72232003-06-24 Andreas Schwab <schwab@suse.de> 7224 7225 * sysdeps/m68k/fpu/libm-test-ulps: Update. 7226 72272003-06-24 Andreas Jaeger <aj@suse.de> 7228 7229 * sysdeps/unix/sysv/linux/x86_64/stat.h (_STAT_VER_LINUX): Avoid 7230 redeclaration with 32-bit code. 7231 72322003-05-19 Ed Connell <ed.connell@sas.com> 7233 7234 * sysdeps/unix/sysv/linux/i386/getcontext.S (getcontext): Retain 7235 floating point mask. 7236 * sysdeps/i386/fpu/fegetenv.c (fegetenv): Likewise. 7237 72382003-06-23 Ulrich Drepper <drepper@redhat.com> 7239 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. 7243 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_*. 7247 72482003-06-20 Richard Henderson <rth@redhat.com> 7249 7250 * sysdeps/unix/make-syscalls.sh: Implement ! prefix for strong aliases. 7251 * sysdeps/unix/sysv/linux/alpha/syscalls.list (open, open64): New. 7252 72532003-06-20 Richard Henderson <rth@redhat.com> 7254 7255 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect. 7256 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT) 7257 Unset for alpha. 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 7272 PIC code sequence. 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. 7283 72842003-06-18 Ulrich Drepper <drepper@redhat.com> 7285 7286 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it 7287 hasn't happened yet. 7288 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*. 7292 7293 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Always 7294 inline. 7295 7296 * sysdeps/i386/i686/dl-hash.h: Don't inline _dl_elf_hash. 7297 * sysdeps/generic/dl-hash.h: Likewise. 7298 7299 * sysdeps/generic/memcmp.c: Remove inline from 7300 memcmp_common_alignment and memcmp_not_common_alignment definition. 7301 7302 * intl/localealias.c (read_alias_file): Determine whether line is 7303 read incompletely early, before we modify the line. 7304 73052003-06-17 Jakub Jelinek <jakub@redhat.com> 7306 7307 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela) 7308 <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols. 7309 73102003-06-17 Paul Mackerras <paulus@samba.org> 7311 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. 7318 73192003-06-17 Jakub Jelinek <jakub@redhat.com> 7320 7321 * posix/regcomp.c (build_word_op): Use alnum instead of alpha class. 7322 73232003-06-17 Ulrich Drepper <drepper@redhat.com> 7324 7325 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): nanosleep 7326 takes care of enabling cancellation. 7327 7328 * sysdeps/pthread/aio_suspend.c (aio_suspend): Make aio_suspend 7329 cancelable. It's not correct to disable cancellation. Instead of 7330 a cleanup handler. 7331 7332 * sysdeps/unix/sysv/linux/sigtimedwait.c: If SIGCANCEL is defined 7333 and part of the incoming set, create a temporary set without this 7334 signal. 7335 * sysdeps/unix/sysv/linux/sigwait.c: Likewise. 7336 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. 7337 7338 * sysdeps/unix/sysv/linux/sleep.c: Use CANCELLATION_P if defined before 7339 returning because seconds==0. Add __builtin_expect. 7340 73412003-06-16 Ulrich Drepper <drepper@redhat.com> 7342 7343 * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information. 7344 7345 * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result 7346 variable. 7347 73482003-06-16 Thorsten Kukuk <kukuk@suse.de> 7349 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. 7358 73592003-06-16 Bruno Haible <bruno@clisp.org> 7360 7361 * iconvdata/gconv-modules (ISO-8859-15): Add aliases ISO_8859-15, 7362 LATIN-9. 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. 7366 73672003-06-16 Jakub Jelinek <jakub@redhat.com> 7368 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. 7372 73732003-06-16 Ulrich Drepper <drepper@redhat.com> 7374 7375 * locale/iso-639.def: Update from current official ISO 639. 7376 7377 * math/tgmath.h (__TGMATH_UNARY_IMAG_ONLY): Removed. 7378 73792003-06-15 Andreas Jaeger <aj@suse.de> 7380 7381 * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Correct setting 7382 of MXCSR. 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>. 7386 7387 * math/tgmath.h (carg): Handle real arguments. 7388 (conj): Likewise. 7389 (cproj): Likewise. 7390 (cimag): Likewise. 7391 (creal): Likewise. 7392 7393 * math/Makefile (CFLAGS-test-tgmath-ret.c): New. 7394 (tests): Add test-tgmath-ret. 7395 * math/test-tgmath-ret.c: New file. 7396 7397 * math/tgmath.h (ilogb): Return always an int. 7398 73992003-06-16 Ulrich Drepper <drepper@redhat.com> 7400 7401 * elf/rtld.c (dl_main): Use l_map_start not l_addr in Phdr 7402 computation so that prelinking works. 7403 74042003-06-15 Ulrich Drepper <drepper@redhat.com> 7405 7406 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic 7407 linker's map. 7408 * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the 7409 dynamic linker's map. 7410 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 7414 with exceptions. 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 7418 exceptions. 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 7425 situation. 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. 7437 74382003-06-15 Andreas Jaeger <aj@suse.de> 7439 7440 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): 7441 Add CFI directives. 7442 74432003-06-15 Guido Guenther <agx@sigxcpu.org> 7444 7445 * sysdeps/unix/sysv/linux/mips/Makefile: Add missing endif and 7446 create $(objpfx). 7447 74482003-06-14 Ulrich Drepper <drepper@redhat.com> 7449 7450 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Use __close, 7451 not close. 7452 7453 * inet/inet6_option.c (inet6_option_alloc): Add libc_hidden_def. 7454 * include/netinet/in.h (inet6_option_alloc): Add libc_hidden_proto 7455 definition. 7456 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. 7464 74652003-06-13 Ulrich Drepper <drepper@redhat.com> 7466 7467 * inet/netinet/ip6.h (struct ip6_ext): Define. 7468 7469 * sysdeps/unix/sysv/linux/sys/param.h (howmany): Optimize for gcc. 7470 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 7482 change. 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 7499 inline. 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 7508 adjust all callers. 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): 7518 Always inline. 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. 7523 7524 * sysdeps/unix/sysv/linux/sys/epoll.h: Include <stdint.h>. 7525 75262003-06-12 Ulrich Drepper <drepper@redhat.com> 7527 7528 * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034]. 7529 75302003-05-29 Jim Meyering <jim@meyering.net> 7531 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>. 7535 75362003-06-12 Steven Munroe <sjmunroe@us.ibm.com> 7537 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. 7542 75432003-06-12 Ulrich Drepper <drepper@redhat.com> 7544 7545 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also 7546 if only PF_INET address is needed. 7547 7548 * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in 7549 case of an error. 7550 7551 * scripts/config.guess: Update from upstream version. 7552 * scripts/config.sub: Likewise. 7553 75542003-06-12 Jakub Jelinek <jakub@redhat.com> 7555 7556 * locale/programs/ld-time.c (time_output): Also copy the era format, 7557 not only the name. 7558 75592003-06-12 H.J. Lu <hongjiu.lu@intel.com> 7560 7561 * posix/transbug.c (run_test): Return 1 for failure. 7562 (do_test): Compare only if run_test is successful. 7563 75642003-06-12 Simon Josefsson <jas@extundo.com> 7565 7566 * argp/argp.h [!__THROW]: Define if undefined. 7567 75682003-06-12 Ulrich Drepper <drepper@redhat.com> 7569 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>. 7573 75742003-06-12 Jakub Jelinek <jakub@redhat.com> 7575 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. 7579 7580 * stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h. 7581 75822003-06-12 Roland McGrath <roland@redhat.com> 7583 7584 * Makerules ($(objpfx)stubs): Rewrite sed magic. 7585 75862003-02-28 Isamu Hasegawa <isamu@yamato.ibm.com> 7587 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. 7594 75952003-06-04 Paolo Bonzini <bonzini@gnu.org> 7596 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. 7600 76012003-06-11 Ulrich Drepper <drepper@redhat.com> 7602 7603 * dirent/scandir.c (SCANDIR): Reset errno after calling selector 7604 function [PR libc/5045]. 7605 7606 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction 7607 also for P4. 7608 7609 * time/tzfile.c: Add a couple of __builtin_expect. 7610 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 7654 hash-string. 7655 * intl/hash-string.c: New file. 7656 * intl/hash-string.h: Remove hash_string definition. Declare 7657 __hash_string. 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, 7670 just declare it. 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 7675 printf-parsewc. 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. 7679 (_fitoa): Likewise. 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. 7695 Just prototype. 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): 7723 Add xstatconv. 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 7743 declare. 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 7750 tomb function call. 7751 77522003-06-10 Ulrich Drepper <drepper@redhat.com> 7753 7754 * po/zh_CN.po: Update from translation team. 7755 77562003-06-10 Jakub Jelinek <jakub@redhat.com> 7757 7758 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_V6ONLY, IPV6_JOIN_ANYCAST, 7759 IPV6_LEAVE_ANYCAST, IPV6_IPSEC_POLICY, IPV6_XFRM_POLICY): Define. 7760 77612003-06-10 Ulrich Drepper <drepper@redhat.com> 7762 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, 7770 call __check_pf. 7771 7772 * sysdeps/generic/ifaddrs.h: Add libc_hidden_def. 7773 7774 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't leak memory 7775 from getifaddr calls. 7776 77772003-06-09 Jakub Jelinek <jakub@redhat.com> 7778 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 7784 defined. 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. 7794 77952003-06-09 Andreas Schwab <schwab@suse.de> 7796 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. 7803 78042003-06-08 Ulrich Drepper <drepper@redhat.com> 7805 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. 7820 7821 * config.h.in: Add have-forced-unwind. 7822 * configure.in: Add AC_SUBST(libc_cv_forced_unwind). 7823 78242003-06-07 Ulrich Drepper <drepper@redhat.com> 7825 7826 * test-skeleton.c (main): If EXPECTED_STATUS is defined check that 7827 returned status from child matches. 7828 7829 * Makeconfig (gnulib): Add -lgcc_eh once again. 7830 78312003-06-06 Ulrich Drepper <drepper@redhat.com> 7832 7833 * test-skeleton.c (main): Use TEMP_FAILURE_RETRY with waitpid. 7834 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. 7838 78392003-06-04 Richard Henderson <rth@redhat.com> 7840 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 7846 and rt_sigreturn. 7847 * configure.in (libc_cv_asm_cfi_directives): Test .cfi_remember_state. 7848 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. 7852 7853 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Fix typo in conversion. 7854 7855 * include/libc-symbols.h (symbol_set_declare): Use arrays 7856 of unspecified size. 7857 78582003-06-04 Jakub Jelinek <jakub@redhat.com> 7859 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. 7864 78652003-06-04 Jakub Jelinek <jakub@redhat.com> 7866 7867 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh, 7868 hypot, logb): Protect with #ifdef __FAST_MATH__. 7869 78702003-06-04 Thorsten Kukuk <kukuk@suse.de> 7871 7872 * sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with 7873 #ifdef __FAST_MATH__. 7874 78752003-06-03 Ulrich Drepper <drepper@redhat.com> 7876 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. 7880 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. 7884 78852003-06-02 Ulrich Drepper <drepper@redhat.com> 7886 7887 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor 7888 optimization. 7889 7890 * po/zh_CN.po: Update from translation team. 7891 7892 * posix/getconf.c (main): Also recognize names without the 7893 _POSIX_ prefix. 7894 7895 * elf/Makefile (CFLAGS-dl-lookup.c): Define. 7896 78972003-06-02 Bernd Schmidt <bernds@redhat.com> 7898 7899 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp, 7900 ldexpf, ldexpl): Only define if __FAST_MATH__. 7901 79022003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca> 7903 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. 7910 79112003-06-02 Jakub Jelinek <jakub@redhat.com> 7912 7913 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove. 7914 79152003-06-01 Jakub Jelinek <jakub@redhat.com> 7916 7917 * sysdeps/i386/dl-machine.h: Include <sysdep.h>. 7918 79192003-06-01 Ulrich Drepper <drepper@redhat.com> 7920 7921 * test-skeleton.c (main): Request getopt to not reorder the 7922 command line. 7923 7924 * elf/Makefile (CFLAGS-dl-runtime.c): Define. 7925 7926 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match 7927 stpncpy. 7928 79292003-05-31 Ulrich Drepper <drepper@redhat.com> 7930 7931 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define. 7932 79332003-05-31 Jakub Jelinek <jakub@redhat.com> 7934 7935 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict): 7936 New function. 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. 7940 79412003-05-31 Ulrich Drepper <drepper@redhat.com> 7942 7943 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add 7944 CFI directives. 7945 7946 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o. 7947 7948 * libio/fileops.c (_IO_file_open): Don't mark as inline. 7949 7950 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with 7951 attribute used. 7952 79532003-05-30 Ulrich Drepper <drepper@redhat.com> 7954 7955 * scripts/config.guess: Update from master copy. 7956 * scripts/config.sub: Likewise. 7957 79582003-05-30 Guido Guenther <agx@sigxcpu.org> 7959 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. 7970 79712003-05-30 Andreas Jaeger <aj@suse.de> 7972 7973 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): 7974 Add CFI directives. 7975 7976 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI 7977 directives. 7978 7979 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files. 7980 7981 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): 7982 Add CFI directives. 7983 79842003-05-30 Jakub Jelinek <jakub@redhat.com> 7985 7986 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with 7987 SHARED. 7988 79892003-05-11 Andreas Schwab <schwab@suse.de> 7990 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. 8002 80032003-05-28 Roland McGrath <roland@redhat.com> 8004 8005 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined. 8006 80072003-05-26 Aldy Hernandez <aldyh@redhat.com> 8008 8009 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0. 8010 80112003-05-28 Roland McGrath <roland@redhat.com> 8012 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>. 8017 80182003-05-28 Ulrich Drepper <drepper@redhat.com> 8019 8020 * include/libc-symbols.h: Define hidden attribute for real also if 8021 LIBC_NONSHARED is defined. Patch by Jakub Jelinek. 8022 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. 8026 80272003-05-27 Jakub Jelinek <jakub@redhat.com> 8028 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. 8033 80342003-05-26 Jakub Jelinek <jakub@redhat.com> 8035 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): 8045 Adjust prototypes. 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. 8055 80562003-05-26 Ulrich Drepper <drepper@redhat.com> 8057 8058 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some 8059 other implementation in respect of multiple uses of parameter with 8060 different types. 8061 80622003-05-25 Ulrich Drepper <drepper@redhat.com> 8063 8064 * sysdeps/unix/sysv/linux/kernel-features.h: Define 8065 __ASSUME_FUTEX_REQUEUE for >= 2.5.70. 8066 80672003-05-22 Andreas Jaeger <aj@suse.de> 8068 8069 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI 8070 directives. 8071 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise. 8072 * sysdeps/x86_64/strtok.S: Likewise. 8073 80742003-05-20 Guido Guenther <agx@sigxcpu.org> 8075 8076 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL 8077 to -60 and define SI_TKILL. 8078 80792003-05-21 H.J. Lu <hongjiu.lu@intel.com> 8080 8081 * math/test-fenv.c (feexcp_nomask_test): Fix comment. 8082 (feexcp_mask_test): Likewise. 8083 80842003-05-21 Ulrich Drepper <drepper@redhat.com> 8085 8086 * locale/programs/locale.c (main): Fix typo in last patch. 8087 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. 8091 80922003-05-21 Petter Reinholdtsen <pere@hungry.com> 8093 8094 * locale/programs/locale.c (main): Report an error if setlocale() 8095 fails [PR libc/2254]. 8096 80972003-05-21 Jakub Jelinek <jakub@redhat.com> 8098 8099 * sysdeps/unix/sysv/linux/s390/system.c: New file. 8100 81012003-05-21 Jakub Jelinek <jakub@redhat.com> 8102 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. 8109 81102003-05-21 Andreas Jaeger <aj@suse.de> 8111 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. 8115 8116 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives. 8117 (ENTRY): Likewise. 8118 (END): Likewise. 8119 8120 * configure.in: Test for asm cfi directives. 8121 8122 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES. 8123 81242003-05-17 Andreas Jaeger <aj@suse.de> 8125 8126 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch. 8127 8128 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep. 8129 81302003-05-16 Ulrich Drepper <drepper@redhat.com> 8131 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. 8136 8137 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition. 8138 8139 * include/features.h (__USE_XOPEN2K): Define also for 8140 _POSIX_C_SOURCE>=200112L. 8141 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. 8145 8146 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all. 8147 81482003-05-15 Jakub Jelinek <jakub@redhat.com> 8149 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): 8154 Likewise. 8155 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow): 8156 Adjust prototype. 8157 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise. 8158 81592003-05-15 Ulrich Drepper <drepper@redhat.com> 8160 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. 8164 81652003-05-12 Thorsten Kukuk <kukuk@suse.de> 8166 8167 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD. 8168 81692003-05-14 Andreas Schwab <schwab@suse.de> 8170 8171 * sysdeps/unix/sysv/linux/ia64/umount.c: New file. 8172 81732003-05-14 Jakub Jelinek <jakub@redhat.com> 8174 8175 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope 8176 even if no DT_NEEDED is present. 8177 81782003-05-13 David Mosberger <davidm@hpl.hp.com> 8179 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. 8184 81852003-05-13 Ulrich Drepper <drepper@redhat.com> 8186 8187 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic 8188 binaries it has to be relocatable. 8189 8190 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available. 8191 81922003-05-12 Steven Munroe <sjmunroe@us.ibm.com> 8193 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. 8230 82312003-05-11 Andreas Schwab <schwab@suse.de> 8232 8233 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names. 8234 82352003-05-11 Ulrich Drepper <drepper@redhat.com> 8236 8237 * time/tst-strftime.c (do_test): Add tests for - flag. 8238 82392003-05-11 Jim Meyering <jim@meyering.net> 8240 8241 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect 8242 the space-padded-by-default conversion specifiers, %e, %k, %l. 8243 82442003-05-11 Andreas Schwab <schwab@suse.de> 8245 8246 * sysdeps/generic/sched_setaffinity.c: Fix parameter name. 8247 82482003-05-10 Ulrich Drepper <drepper@redhat.com> 8249 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. 8253 82542003-05-09 Thorsten Kukuk <kukuk@suse.de> 8255 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. 8262 82632003-05-10 Ulrich Drepper <drepper@redhat.com> 8264 8265 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL, 8266 use dummy sigevent structure with SIGEV_NONE [PR libc/5015]. 8267 82682003-05-09 Thorsten Kukuk <kukuk@suse.de> 8269 8270 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h 8271 (remove __THROW from possible cancellation points). 8272 82732003-05-10 Ulrich Drepper <drepper@redhat.com> 8274 8275 * posix/sched.h (CPU_SETSIZE): Define. 8276 82772003-05-09 Ulrich Drepper <drepper@redhat.com> 8278 8279 * Makeconfig (gnulib): Remove -lgcc_eh again. 8280 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. 8291 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 8296 atomic_exchange. 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. 8303 8304 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file. 8305 83062003-05-08 Ulrich Drepper <drepper@redhat.com> 8307 8308 * malloc/thread-m.h: Remove special handling of thread_atfork if 8309 HAVE_register_atfork_malloc is defined. 8310 83112003-05-07 Andreas Jaeger <aj@suse.de> 8312 8313 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind 8314 information. 8315 83162003-05-06 Ulrich Drepper <drepper@redhat.com> 8317 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 8322 _IO_old_init. 8323 83242003-05-05 Ulrich Drepper <drepper@redhat.com> 8325 8326 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New 8327 variable. 8328 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided 8329 is nonzero. 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. 8334 8335 * sysdeps/generic/libc-start.c [!SHARED]: Call 8336 __libc_check_standard_fds after __libc_init_first. 8337 83382003-05-05 Roland McGrath <roland@redhat.com> 8339 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. 8344 83452003-05-05 Jakub Jelinek <jakub@redhat.com> 8346 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 8364 up warning. 8365 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise. 8366 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. 8372 83732003-05-05 Andreas Jaeger <aj@suse.de> 8374 8375 * sysdeps/x86_64/fpu_control.h: New from i386. 8376 8377 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop): 8378 Define if not defined. 8379 8380 * sunrpc/Makefile (generated-dirs): New variable. 8381 * resolv/Makefile (generated): New variable. 8382 83832003-05-04 Roland McGrath <roland@redhat.com> 8384 8385 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file. 8386 Depend on $(before-compile). 8387 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!). 8391 8392 * Makerules (+make-deps): Fix target matching. 8393 Use $(sed-remove-dotdot). 8394 83952003-05-03 Ulrich Drepper <drepper@redhat.com> 8396 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 8403 prototype. 8404 * nscd/connections.c (stat_user, stat_uid): New variables. 8405 (dbs): Make global. 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, 8411 check stat_user. 8412 * nscd/Makefile (nscd-modules): Add xstrdup. 8413 * nscd/nscd.conf: Document stat-user entry. 8414 84152003-05-03 H.J. Lu <hongjiu.lu@intel.com> 8416 8417 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define 8418 if not defined. 8419 84202003-04-22 Roland McGrath <roland@redhat.com> 8421 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. 8432 84332003-05-03 Roland McGrath <roland@redhat.com> 8434 8435 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ... 8436 * stdio-common/Makefile: ... not here. 8437 8438 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile). 8439 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise. 8440 84412003-05-02 Ulrich Drepper <drepper@redhat.com> 8442 8443 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file. 8444 8445 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define. 8446 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. 8451 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. 8455 84562003-05-02 Roland McGrath <roland@redhat.com> 8457 8458 * Makerules (do-stamp): Do $(make-target-directory). 8459 84602003-04-07 H.J. Lu <hjl@gnu.org> 8461 8462 * sysdeps/generic/dl-fptr.c: Modify to remove the lock. 8463 84642003-04-03 H.J. Lu <hjl@gnu.org> 8465 8466 * sysdeps/ia64/dl-fptr.c: Moved to ... 8467 * sysdeps/generic/dl-fptr.c: Here. 8468 8469 * sysdeps/generic/dl-fptr.h: New. 8470 * sysdeps/ia64/dl-fptr.h: New. 8471 8472 * sysdeps/ia64/dl-symaddr.c: Moved to ... 8473 * sysdeps/generic/dl-symaddr.c: here. 8474 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 8483 `struct fdesc'. 8484 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr. 8485 84862003-05-01 Roland McGrath <roland@redhat.com> 8487 8488 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__]. 8489 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise. 8490 8491 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h): 8492 Use $(make-target-directory). 8493 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise. 8494 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. 8512 8513 * Makerules ($(common-objpfx)%.make): Protect with [! subdir]. 8514 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable. 8515 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. 8518 8519 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of 8520 @nobits. The former is accepted by gas on any ELF platform. 8521 85222003-05-01 Ulrich Drepper <drepper@redhat.com> 8523 8524 * sysdeps/unix/sysv/linux/semtimedop.c: New file. 8525 8526 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary. 8527 85282003-04-29 Andreas Schwab <schwab@suse.de> 8529 8530 * string/test-strcat.c (do_one_test): Fix attribute name. 8531 85322003-04-30 Alexandre Oliva <aoliva@redhat.com> 8533 8534 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make 8535 uc_flags long for all ABIs. 8536 85372003-04-30 Andreas Jaeger <aj@suse.de> 8538 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. 8543 85442003-04-30 Ulrich Drepper <drepper@redhat.com> 8545 8546 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal. 8547 (__posix_memalign): Use __memalign_internal instead of memalign. 8548 85492003-04-29 Roland McGrath <roland@redhat.com> 8550 8551 * configure.in: Search for AUTOCONF unconditionally. 8552 Just don't complain about missing it under --without-cvs. 8553 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. 8559 85602003-04-29 Ulrich Drepper <drepper@redhat.com> 8561 8562 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected 8563 variants of socket, bind, recvmsg, and sendto. 8564 8565 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word. 8566 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. 8570 85712003-04-29 Jakub Jelinek <jakub@redhat.com> 8572 8573 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move 8574 to the end of the file. 8575 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. 8726 87272003-04-29 Ulrich Drepper <drepper@redhat.com> 8728 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 8734 [PR libc/4987]. 8735 87362003-04-28 Ulrich Drepper <drepper@redhat.com> 8737 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. 8741 87422003-04-27 Ulrich Drepper <drepper@redhat.com> 8743 8744 * nscd/pwdcache.c: Initialize .version element in result. 8745 * nscd/grpcache.c: Likewise. 8746 * nscd/pwdcache.c: Likewise. 8747 87482003-04-27 Andreas Schwab <schwab@suse.de> 8749 8750 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in 8751 subdirectory. 8752 87532003-04-27 Andreas Schwab <schwab@suse.de> 8754 8755 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file. 8756 87572003-04-27 Ulrich Drepper <drepper@redhat.com> 8758 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 8762 worker threads. 8763 * nscd/nscd.h: Declare client_queued. 8764 * nscd/nscd_stat.c: Transmit and print client_queued information. 8765 8766 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX. 8767 8768 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to 8769 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs. 8770 87712003-04-26 Ulrich Drepper <drepper@redhat.com> 8772 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. 8779 8780 * elf/tst-tls8.c: Adjust types of variables to avoid warnings. 8781 8782 * elf/dl-reloc.c: Pretty printing. 8783 87842003-04-26 Roland McGrath <roland@redhat.com> 8785 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. 8796 87972003-04-26 Roland McGrath <roland@frob.com> 8798 8799 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals. 8800 88012003-04-26 Andreas Schwab <schwab@suse.de> 8802 8803 * elf/dl-close.c (remove_slotinfo): Fix missing parens. 8804 88052003-04-25 Ulrich Drepper <drepper@redhat.com> 8806 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 8820 of new statistics. 8821 8822 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>. 8823 88242003-04-22 Jakub Jelinek <jakub@redhat.com> 8825 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 8829 NO_TLS_OFFSET. 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 8834 TLS_TCB_SIZE. 8835 88362003-04-24 Ulrich Drepper <drepper@redhat.com> 8837 8838 * nss/getent.c: Implement alternative host database lookup via 8839 getaddrinfo. 8840 8841 * include/ifaddrs.h: New file. 8842 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and 8843 AI_ADDRCONFIG... 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 8848 AI_ADDRCONFIG. 8849 88502003-04-24 Roland McGrath <roland@redhat.com> 8851 8852 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function. 8853 88542003-04-24 Jakub Jelinek <jakub@redhat.com> 8855 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. 8868 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. 8876 88772003-04-23 Ulrich Drepper <drepper@redhat.com> 8878 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. 8882 8883 * nis/ypclnt.c (yp_all): Free the dom_binding object after 8884 unbinding it. 8885 8886 * grp/initgroups.c (getgrouplist): Don't copy too much into the 8887 user buffer if more groups are found than fit into it. 8888 8889 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use 8890 extend_alloca. 8891 88922003-04-23 Jakub Jelinek <jakub@redhat.com> 8893 8894 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE, 8895 not rc == errno. Use extend_alloca. 8896 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. 8902 89032003-04-22 Roland McGrath <roland@redhat.com> 8904 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. 8910 8911 * include/tls.h: Protect against multiple inclusion. 8912 89132003-04-22 Ulrich Drepper <drepper@redhat.com> 8914 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. 8923 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. 8926 89272003-04-21 Ulrich Drepper <drepper@redhat.com> 8928 8929 * signal/sigfillset.c: Moved to... 8930 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined 8931 do not set the corresponding bit. 8932 8933 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for 8934 SIGCANCEL. 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. 8940 89412003-04-20 Ulrich Drepper <drepper@redhat.com> 8942 8943 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast 8944 first syscall parameter to const char*. 8945 89462003-04-19 Ulrich Drepper <drepper@redhat.com> 8947 8948 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run. 8949 8950 * configure.in: Add AC_PROG_CXX. 8951 * config.make.in (CXX): Define. 8952 8953 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of 8954 __len to size_t to avoid warnings. 8955 89562003-04-18 Jes Sorensen <jes@wildopensource.com> 8957 8958 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux 8959 2.5.67. 8960 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. 8961 89622003-04-19 Ulrich Drepper <drepper@redhat.com> 8963 8964 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call 8965 UNREGISTER_ATFORK if d == NULL. 8966 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 8997 functions. 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. 9009 9010 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore 9011 errno and unlink first. 9012 9013 * io/ftw.c (ftw_dir): In all places assume fchdir is available. 9014 90152003-04-18 Ulrich Drepper <drepper@redhat.com> 9016 9017 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use 9018 INTERNAL_SYSCALL instead of INLINE_SYSCALL. 9019 90202003-04-17 Ulrich Drepper <drepper@redhat.com> 9021 9022 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling. 9023 9024 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k. 9025 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not 9026 replace. 9027 9028 * signal/Makefile (tests): Add tst-sigsimple. 9029 * signal/tst-sigsimple.c: New file. 9030 90312003-04-16 Jakub Jelinek <jakub@redhat.com> 9032 9033 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and 9034 tst-tls10.h. 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. 9053 90542003-04-15 Steven Munroe <sjmunroe@us.ibm.com> 9055 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. 9059 90602003-04-17 Ulrich Drepper <drepper@redhat.com> 9061 9062 * posix/regex.h: Include <sys/types.h>. 9063 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]. 9068 9069 * sysdeps/unix/sysv/linux/system.c: If compiled without threads 9070 don't do anything fancy. 9071 9072 * sysdeps/generic/bits/libc-lock.h: Define 9073 __rtld_lock_define_initialized_recursive. 9074 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. 9081 90822003-04-16 Ulrich Drepper <drepper@redhat.com> 9083 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. 9086 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. 9090 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. 9097 9098 * string/test-strncpy.c (do_one_test): Mark start and stop as 9099 possibly unused. 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. 9114 91152003-04-15 Roland McGrath <roland@redhat.com> 9116 9117 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning. 9118 9119 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for 9120 INTUSE(__register_frame_info_bases). 9121 91222003-04-15 Ulrich Drepper <drepper@redhat.com> 9123 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 9132 variable. 9133 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases 9134 if _dl_sysinfo_eh_frame is non-NULL. 9135 9136 * Makeconfig (gnulib): Add -lgcc_eh. 9137 9138 * config.h.in: Define HAVE_FORCED_UNWIND. 9139 91402003-04-15 Steven Munroe <sjmunroe@us.ibm.com> 9141 9142 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit. 9143 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise. 9144 91452003-04-15 Jakub Jelinek <jakub@redhat.com> 9146 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. 9150 91512003-04-15 Steven Munroe <sjmunroe@us.ibm.com> 9152 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 9156 as abort stub. 9157 (__arch_compare_and_exchange_val_32_acq): Define. 9158 (atomic_compare_and_exchange_val_acq): Define. 9159 91602003-04-15 Ulrich Drepper <drepper@redhat.com> 9161 9162 * include/atomic.h: Pretty printing. 9163 91642003-04-14 Ulrich Drepper <drepper@redhat.com> 9165 9166 * stdio-common/vfscanf.c: Add casts to avoid warnings. 9167 91682003-04-14 Jakub Jelinek <jakub@redhat.com> 9169 9170 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX. 9171 * sysdeps/x86_64/bits/atomic.h: Likewise. 9172 91732003-04-14 Ulrich Drepper <drepper@redhat.com> 9174 9175 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and 9176 POPARGS_1 to emit labels for the mov instructions. 9177 91782003-04-14 Jakub Jelinek <jakub@redhat.com> 9179 9180 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define. 9181 91822003-04-14 Roland McGrath <roland@redhat.com> 9183 9184 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence 9185 compiler warning. 9186 9187 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge. 9188 91892003-04-14 Ulrich Drepper <drepper@redhat.com> 9190 9191 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct 9192 position. Reported by jreiser@BitWagon.com. 9193 91942003-04-13 Ulrich Drepper <drepper@redhat.com> 9195 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. 9200 92012003-04-13 Alexandre Oliva <aoliva@redhat.com> 9202 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. 9211 92122003-04-12 Ulrich Drepper <drepper@redhat.com> 9213 9214 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to 9215 avoid warning. 9216 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. 9221 92222003-04-11 Ulrich Drepper <drepper@redhat.com> 9223 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. 9236 92372003-04-11 Roland McGrath <roland@redhat.com> 9238 9239 * csu/tst-empty.c: New file. 9240 * csu/Makefile (tests, tests-static): Add it. 9241 92422003-04-11 Jakub Jelinek <jakub@redhat.com> 9243 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. 9248 9249 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN 9250 before returning. 9251 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. 9255 9256 * string/tester.c (test_strcmp): Fix a typo. 9257 92582003-04-09 Ulrich Drepper <drepper@redhat.com> 9259 9260 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition. 9261 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise. 9262 92632003-04-08 Alexandre Oliva <aoliva@redhat.com> 9264 9265 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on 9266 NewABI. 9267 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on 9268 NewABI. 9269 * sysdeps/mips/mips64/memcpy.S: Adjust register naming 9270 conventions. 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. 9274 92752003-04-07 Ulrich Drepper <drepper@redhat.com> 9276 9277 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use 9278 feof_unlocked instead of feof. 9279 (add_dir): Ignore trailing whitespace. 9280 92812003-04-07 Jakub Jelinek <jakub@redhat.com> 9282 9283 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to 9284 sum of SIZE1 and SIZE2 arguments. 9285 92862003-04-06 Ulrich Drepper <drepper@redhat.com> 9287 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. 9291 92922003-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp> 9293 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 9297 arguments. 9298 (atomic_bit_set, atomic_bit_test_set): Likewise. 9299 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument 9300 twice. 9301 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise. 9302 93032003-04-06 Roland McGrath <roland@redhat.com> 9304 9305 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register 9306 restoration as done for setcontext yesterday. 9307 93082003-04-06 Jakub Jelinek <jakub@redhat.com> 9309 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. 9313 93142003-04-05 Ulrich Drepper <drepper@redhat.com> 9315 9316 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999]. 9317 9318 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): 9319 Always initialize *signgamp before returning an error. 9320 93212003-04-05 Roland McGrath <roland@redhat.com> 9322 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 9325 running right now. 9326 93272003-04-05 Ulrich Drepper <drepper@redhat.com> 9328 9329 * catgets/gencat.c (read_input_file): Make sure that \n is not 9330 alone on the line before testing for continuation. 9331 9332 * math/test-tgmath.c (compile_test): Initialize c. 9333 93342003-04-05 Alexandre Oliva <aoliva@redhat.com> 9335 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 9339 on mips n32. 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. 9345 93462003-04-05 Ulrich Drepper <drepper@redhat.com> 9347 9348 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right 9349 after getting them. 9350 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. 9354 93552003-04-05 Jakub Jelinek <jakub@redhat.com> 9356 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>. 9360 93612003-04-04 Steven Munroe <sjmunroe@us.ibm.com> 9362 9363 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations. 9364 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations. 9365 9366 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before 9367 defining. 9368 93692003-04-04 Alexandre Oliva <aoliva@redhat.com> 9370 9371 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust 9372 for n64 abi. 9373 93742003-04-03 Roland McGrath <roland@redhat.com> 9375 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. 9382 93832003-04-03 Jakub Jelinek <jakub@redhat.com> 9384 9385 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test 9386 for atomic_compare_and_exchange_bool_acq failure. 9387 93882003-04-03 Ulrich Drepper <drepper@redhat.com> 9389 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. 9394 93952003-04-02 Ulrich Drepper <drepper@redhat.com> 9396 9397 * locale/iso-639.def: Add many more languages from the current ISO 639. 9398 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. 9407 94082003-04-02 Daniel Jacobowitz <drow@mvista.com> 9409 9410 * configure.in: Check for __register_frame_info in both 9411 -lgcc and -lgcc_eh. 9412 * configure: Regenerated. 9413 94142003-04-01 Roland McGrath <roland@redhat.com> 9415 9416 * scripts/abilist.awk: Allow dots in soname suffix. 9417 9418 * scripts/abilist.awk (emit): Fix bailout condition. 9419 94202003-04-01 Jakub Jelinek <jakub@redhat.com> 9421 9422 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the 9423 IA-64 version. 9424 9425 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp 9426 register as input to asm. 9427 94282003-04-01 Jakub Jelinek <jakub@redhat.com> 9429 9430 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo. 9431 94322003-04-01 Andreas Jaeger <aj@suse.de> 9433 9434 * configure.in: Output as/ld as name if version is too old. 9435 94362003-03-31 Daniel Jacobowitz <drow@mvista.com> 9437 9438 * configure.in: Don't require an installed C library in the test 9439 for ".set" assembler support. 9440 94412003-03-31 Roland McGrath <roland@redhat.com> 9442 9443 * signal/tst-sigset.c: New file. 9444 * signal/Makefile (tests): Add it. 9445 94462003-03-31 Ulrich Drepper <drepper@redhat.com> 9447 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. 9456 94572003-03-31 Andreas Schwab <schwab@suse.de> 9458 9459 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test): 9460 Define. 9461 (atomic_decrement_and_test): Fix test. 9462 94632003-03-31 Jakub Jelinek <jakub@redhat.com> 9464 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. 9471 94722003-03-30 Roland McGrath <roland@redhat.com> 9473 9474 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone. 9475 9476 * intl/po2test.sed: Anchor substitution regexps to fix last change. 9477 94782003-03-29 Paolo Bonzini <bonzini@gnu.org> 9479 9480 * intl/po2test.sed: Unify the transformations for msgid and msgstr 9481 and remove a useless s/// command. 9482 94832003-03-27 David Mosberger <davidm@hpl.hp.com> 9484 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. 9488 9489 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom 9490 to terminate call-chain right from the get-go. 9491 9492 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary 9493 stop bit between compare & branch. 9494 94952003-03-29 Ulrich Drepper <drepper@redhat.com> 9496 9497 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal 9498 point correctly [PR libc/4993]. 9499 9500 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid 9501 netlink_open calls if netlink is known to not be available. 9502 95032003-03-29 Alexandre Oliva <aoliva@redhat.com> 9504 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, 9516 ret_NOERRNO): New. 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. 9525 9526 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): 9527 Re-introduce ENTRY. 9528 95292003-03-28 Thorsten Kukuk <kukuk@suse.de> 9530 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. 9535 95362003-03-28 Ulrich Drepper <drepper@redhat.com> 9537 9538 * elf/vismain.c (do_test): Comment out tests which fail in the moment. 9539 95402003-03-26 H.J. Lu <hjl@gnu.org> 9541 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. 9557 95582003-03-28 Roland McGrath <roland@redhat.com> 9559 9560 * elf/vismain.c (do_test): Print both addresses when they don't match. 9561 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. 9567 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. 9570 9571 * scripts/abilist.awk: Emit A for all *ABS* regardless of type. 9572 95732003-03-27 Roland McGrath <roland@redhat.com> 9574 9575 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__] 9576 (__arch_atomic_decrement_if_positive_64): Fix bogus definition. 9577 95782003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> 9579 9580 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq): 9581 Return old value. Make asm output reg constraint earlyclobber. 9582 Renamed from... 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. 9586 Renamed from... 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. 9590 Renamed from... 9591 (__arch_compare_and_exchange_32_acq): ... this. 9592 (__arch_compare_and_exchange_val_64_acq): 9593 Renamed from... 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. 9599 96002003-03-28 Alexandre Oliva <aoliva@redhat.com> 9601 9602 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h. 9603 96042003-03-27 Ulrich Drepper <drepper@redhat.com> 9605 9606 * Makefile: Remove libmd5crypt goal. 9607 96082003-03-25 Jakub Jelinek <jakub@redhat.com> 9609 9610 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore 9611 special handling of relocations against local symbols. 9612 96132003-03-27 Steven Munroe <sjmunroe@us.ibm.com> 9614 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. 9629 96302003-03-27 Jakub Jelinek <jakub@redhat.com> 9631 9632 * sysdeps/ia64/fpu/libm-test-ulps: Update. 9633 96342003-03-27 Roland McGrath <roland@redhat.com> 9635 9636 * scripts/rpm2dynsym.sh: New file. 9637 * Makefile (distribute): Add it. 9638 96392003-03-27 David Mosberger <davidm@hpl.hp.com> 9640 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. 9645 96462003-03-27 Jakub Jelinek <jakub@redhat.com> 9647 9648 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>: 9649 Return -1 instead of 0 if clock_getres failed. 9650 96512003-03-27 Roland McGrath <roland@redhat.com> 9652 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. 9655 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. 9661 Remove INTVARDEF. 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. 9669 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. 9675 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. 9679 9680 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in 9681 caller column for *xattr syscalls, since they are in sysdeps/generic. 9682 9683 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid 9684 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid 9685 96862003-03-26 Roland McGrath <roland@redhat.com> 9687 9688 * Makerules (check-abi-config): Use /thread instead of /tls when 9689 use-thread and not just use-tls is set. 9690 9691 * Makerules (update-abi): Put quotes around $(update-abi-config). 9692 9693 * elf/Makefile (check-abi): Depend on check-abi-ld. 9694 (update-abi): Depend on update-abi-ld. 9695 96962003-03-26 GOTO Masanori <gotom@debian.or.jp> 9697 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. 9701 97022003-03-27 Philip Blundell <philb@gnu.org> 9703 9704 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use 9705 unconditional mov. Remove nop. 9706 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. 9715 97162003-03-26 Ulrich Drepper <drepper@redhat.com> 9717 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. 9721 97222003-03-26 Roland McGrath <roland@redhat.com> 9723 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. 9730 9731 * tls.make.c: Also define use-tls according to USE_TLS macro. 9732 97332003-03-26 Ulrich Drepper <drepper@redhat.com> 9734 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. 9741 97422003-03-26 GOTO Masanori <gotom@debian.or.jp> 9743 9744 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error 9745 condition check for the return value of getgroups32. 9746 97472003-03-26 Jakub Jelinek <jakub@redhat.com> 9748 9749 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO): 9750 Fix a typo. 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. 9755 97562003-03-26 Ulrich Drepper <drepper@redhat.com> 9757 9758 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs. 9759 97602003-03-25 Jiro SEKIBA <jir@yamato.ibm.com> 9761 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. 9765 97662003-03-25 H.J. Lu <hjl@gnu.org> 9767 9768 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected 9769 symbols twice. 9770 (_dl_lookup_versioned_symbol): Likewise. 9771 97722003-03-26 Jakub Jelinek <jakub@redhat.com> 9773 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 * 9781 pointers. 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 9789 long. 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. 9794 97952003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com> 9796 9797 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order 9798 bit from backtrace addresses. 9799 98002003-03-21 Andreas Schwab <schwab@suse.de> 9801 9802 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned 9803 __chown symbols. 9804 98052003-03-25 Roland McGrath <roland@redhat.com> 9806 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. 9813 98142003-03-26 Andreas Schwab <schwab@suse.de> 9815 9816 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos. 9817 * include/atomic.h: Likewise. 9818 9819 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO. 9820 98212003-03-25 Roland McGrath <roland@redhat.com> 9822 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>. 9830 98312003-03-25 Alexandre Oliva <aoliva@redhat.com> 9832 9833 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64): 9834 Define. 9835 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all 9836 ISA tests. 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. 9845 98462003-03-25 Ulrich Drepper <drepper@redhat.com> 9847 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 9851 to x86 behavior. 9852 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): 9856 Likewise. 9857 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE): 9858 Likewise. 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. 9868 9869 * Versions.def (librt): Add GLIBC_2.3.3. 9870 9871 * abilist/libpthread.abilist: Update for nptl. 9872 98732003-03-24 Jon Grimm <jgrimm@us.ibm.com> 9874 9875 * inet/netinet/in.h: Add IPPROTO_SCTP. 9876 98772003-03-24 Ulrich Drepper <drepper@redhat.com> 9878 9879 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define. 9880 98812003-03-24 Philip Blundell <philb@gnu.org> 9882 9883 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL): 9884 Remove a1 from clobber list. 9885 98862003-03-24 Ulrich Drepper <drepper@redhat.com> 9887 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. 9896 98972003-03-24 Steven Munroe <sjmunroe@us.ibm.com> 9898 9899 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo. 9900 99012003-03-23 Ulrich Drepper <drepper@redhat.com> 9902 9903 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid 9904 unwanted expansion by definining to ret. Patch by Ian Wienand. 9905 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. 9929 99302003-03-23 Roland McGrath <roland@redhat.com> 9931 9932 * Makeconfig (+includes): Don't use $(last-includes). 9933 99342003-03-22 Alexandre Oliva <aoliva@redhat.com> 9935 9936 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns. 9937 * sysdeps/unix/sysv/linux/configure: Rebuilt. 9938 99392003-03-23 Jakub Jelinek <jakub@redhat.com> 9940 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. 9953 99542003-03-22 Roland McGrath <roland@redhat.com> 9955 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. 9963 99642003-03-22 Jakub Jelinek <jakub@redhat.com> 9965 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): 9977 Renamed from... 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 9982 from... 9983 (__arch_compare_and_exchange_bool_32_acq): ... this. 9984 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed 9985 from... 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): 9991 Remove. 9992 (atomic_compare_and_exchange_val_acq, 9993 atomic_compare_and_exchange_bool_acq): Define. 9994 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. 9998 9999 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong. 10000 10001 * sysdeps/s390/Versions: Add trailing newline. 10002 10003 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning 10004 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument. 10005 100062003-03-22 Andreas Schwab <schwab@suse.de> 10007 10008 * sysdeps/m68k/fpu/libm-test-ulps: Update. 10009 10010 * sysdeps/m68k/m68020/bits/atomic.h: New file. 10011 * sysdeps/m68k/m68020/atomicity.h: Removed. 10012 100132003-03-22 Alexandre Oliva <aoliva@redhat.com> 10014 10015 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation 10016 data structures and macros. Protect from multiple inclusion. 10017 10018 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless 10019 typo in #if test. 10020 100212003-03-21 Andreas Jaeger <aj@suse.de> 10022 10023 * sysdeps/i386/fpu/libm-test-ulps: Update. 10024 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. 10035 100362003-03-19 Jakub Jelinek <jakub@redhat.com> 10037 10038 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated. 10039 100402003-03-21 Roland McGrath <roland@redhat.com> 10041 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. 10049 10050 * configure.in: Move AC_PROG_CC and other program-finding before all 10051 the version checks. 10052 * configure: Regenerated. 10053 100542003-03-21 Alexandre Oliva <aoliva@redhat.com> 10055 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. 10063 100642003-03-21 Roland McGrath <roland@redhat.com> 10065 10066 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon. 10067 100682003-03-21 Alexandre Oliva <aoliva@redhat.com> 10069 10070 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New. 10071 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments. 10072 100732003-03-21 Roland McGrath <roland@redhat.com> 10074 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. 10081 100822003-03-21 Ulrich Drepper <drepper@redhat.com> 10083 10084 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints. 10085 * sysdeps/i386/i486/bits/atomic.h: Likewise. 10086 100872003-03-21 Roland McGrath <roland@redhat.com> 10088 10089 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix. 10090 100912003-03-20 Ulrich Drepper <drepper@redhat.com> 10092 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. 10112 101132003-03-20 Alexandre Oliva <aoliva@redhat.com> 10114 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. 10118 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. 10124 101252003-03-20 Ulrich Drepper <drepper@redhat.com> 10126 10127 * include/atomic.h (atomic_decrement_if_positive): Adjust for the 10128 correct atomic_compare_and_exchange_acq semantics. 10129 101302003-03-20 Alexandre Oliva <aoliva@redhat.com> 10131 10132 * sysdeps/mips/ieee754.h: Remove excess #endif. 10133 101342003-03-20 Roland McGrath <roland@redhat.com> 10135 10136 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused 10137 variable. Remove superfluous memory clobber. 10138 10139 * include/atomic.h: Syntax braino fix. 10140 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. 10144 101452003-03-20 Alexandre Oliva <aoliva@redhat.com> 10146 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. 10153 101542003-03-20 Ulrich Drepper <drepper@redhat.com> 10155 10156 * include/atomic.h: Define atomic_exchange and 10157 atomic_decrement_if_positive if not already defined. Add some 10158 __builtin_expect. 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 10165 101662003-03-20 Alexandre Oliva <aoliva@redhat.com> 10167 10168 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend 10169 with a single instruction. 10170 10171 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define 10172 properly for n64. 10173 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr 10174 type. 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. 10179 101802003-03-19 Ulrich Drepper <drepper@redhat.com> 10181 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. 10205 102062003-03-19 Alexandre Oliva <aoliva@redhat.com> 10207 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. 10211 102122003-03-19 Ulrich Drepper <drepper@redhat.com> 10213 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. 10217 10218 * posix/tst-nice.c (do_test): Remove invalid of return value. 10219 Don't run test if initial level != 0. 10220 102212003-03-19 Amos Waterland <apw@us.ibm.com> 10222 10223 * posix/tst-nice.c: New file. 10224 * posix/Makefile (tests): Add tst-nice. 10225 102262003-03-18 Roland McGrath <roland@redhat.com> 10227 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. 10233 10234 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER. 10235 * configure: Regenerated. 10236 10237 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name. 10238 102392003-03-18 Ulrich Drepper <drepper@redhat.com> 10240 10241 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK 10242 correctly. 10243 102442003-03-18 Steven Munroe <sjmunroe@us.ibm.com> 10245 10246 * sysdeps/powerpc/powerpc64/memcpy.S: New file. 10247 102482003-03-18 Ulrich Drepper <drepper@redhat.com> 10249 10250 * Versions.def: Add GLIBC_2.3.3 for libpthread. 10251 102522003-03-17 Ulrich Drepper <drepper@redhat.com> 10253 10254 * sysdeps/generic/libc-start.c [!SHARED && 10255 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly. 10256 102572003-03-17 Roland McGrath <roland@redhat.com> 10258 10259 * include/ctype.h: Revert last change. 10260 102612003-03-17 Ulrich Drepper <drepper@redhat.com> 10262 10263 * argp/tst-argp1.c: Use test-skeleton.c. 10264 * locale/tst-C-locale.c: Likewise. 10265 102662003-03-17 Alexandre Oliva <aoliva@redhat.com> 10267 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. 10288 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. 10295 10296 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as 10297 well. 10298 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 10303 of syscall list. 10304 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file. 10305 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include 10306 asm/unistd.h. 10307 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. 10311 10312 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all 10313 3 ABIs. 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 10332 64-bit types. 10333 103342003-03-16 Ulrich Drepper <drepper@redhat.com> 10335 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. 10339 103402003-03-15 Roland McGrath <roland@redhat.com> 10341 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. 10346 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. 10352 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. 10363 10364 * nscd/cache.c (cache_search): Give first arg type `request_type'. 10365 * nscd/nscd.h: Update decl. 10366 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. 10374 10375 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use. 10376 10377 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3 10378 happy. 10379 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise. 10380 103812003-03-15 Ulrich Drepper <drepper@redhat.com> 10382 10383 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux 10384 code for most parts. 10385 103862003-03-15 Roland McGrath <roland@redhat.com> 10387 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. 10394 10395 * dlfcn/tst-dlinfo.c: New file. 10396 * dlfcn/Makefile (tests): Add tst-dlinfo. 10397 ($(objpfx)tst-dlinfo): New target. 10398 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. 10410 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. 10415 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. 10421 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. 10428 10429 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss. 10430 * sysdeps/powerpc/powerpc64/memset.S: Likewise. 10431 10432 * Versions.def (libthread_db): Add GLIBC_2.3.3 set. 10433 104342003-03-14 Roland McGrath <roland@redhat.com> 10435 10436 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it. 10437 104382003-03-14 Jakub Jelinek <jakub@redhat.com> 10439 10440 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo. 10441 10442 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include 10443 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c. 10444 104452003-03-14 Alexandre Oliva <aoliva@redhat.com> 10446 10447 * sysdeps/mips/fpu/bits/mathdef.h: New. 10448 (__NO_LONG_DOUBLE_MATH): Define for o32. 10449 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. 10463 10464 * sysdeps/mips/dl-machine.h: Include sys/asm.h. 10465 (elf_machine_matches_host): Prevent linking of o32 and n32 10466 together. 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 10470 PTR_SUBU. 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 10475 right type. 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. 10485 10486 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file. 10487 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. 10492 10493 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't 10494 .set mips2 on new abis. 10495 104962003-03-13 Ulrich Drepper <drepper@redhat.com> 10497 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. 10505 10506 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic 10507 words. 10508 105092003-03-14 Alexandre Oliva <aoliva@redhat.com> 10510 10511 * include/gmp.h: Include/gmp-mparam.h. 10512 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and 10513 gmp-impl.h. 10514 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. 10518 10519 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32, 10520 FLAG_MIPS64_LIBN64): Define. 10521 * elf/cache.c (print_entry): Handle mips64 n32 and n64. 10522 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. 10527 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. 10531 10532 * stdlib/fpioconst.h: Include gmp.h with angle brackets. 10533 105342003-03-13 Roland McGrath <roland@redhat.com> 10535 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>. 10538 105392003-03-13 Alexandre Oliva <aoliva@redhat.com> 10540 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. 10545 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. 10567 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): 10571 Likewise. 10572 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float): 10573 Likewise. 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. 10582 105832003-03-13 Roland McGrath <roland@redhat.com> 10584 10585 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line 10586 entries in the map file match too. 10587 105882003-03-13 Guido Guenther <agx@sigxcpu.org> 10589 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. 10593 105942003-03-13 Jakub Jelinek <jakub@redhat.com> 10595 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 10603 output register. 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. 10607 106082003-03-12 Steven Munroe <sjmunroe@us.ibm.com> 10609 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. 10613 106142003-03-11 Roland McGrath <roland@redhat.com> 10615 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>. 10621 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>. 10629 106302003-03-11 Ralf Bächle <ralf@linux-mips.org> 10631 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. 10635 106362003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com> 10637 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. 10641 106422003-03-11 Jakub Jelinek <jakub@redhat.com> 10643 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 10647 kernel >= 2.5.64. 10648 106492003-03-11 Jakub Jelinek <jakub@redhat.com> 10650 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>. 10654 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. 10661 106622003-03-10 Steven Munroe <sjmunroe@us.ibm.com> 10663 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. 10666 106672003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com> 10668 10669 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system 10670 call names for pread and pwrite. 10671 106722003-03-10 Roland McGrath <roland@redhat.com> 10673 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. 10687 10688 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for 10689 assembler command. 10690 * sysdeps/unix/Makefile (compile-syscall): New variable. 10691 Pass -g0 to compiler for assembling syscall stubs from stdin. 10692 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. 10696 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). 10704 107052003-03-09 Roland McGrath <roland@redhat.com> 10706 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>. 10709 107102003-03-09 Ulrich Drepper <drepper@redhat.com> 10711 10712 * po/fi.po: Update from translation team. 10713 * po/ca.po: Likewise. 10714 * po/da.po: Likewise. 10715 107162003-03-08 Ulrich Drepper <drepper@redhat.com> 10717 10718 * rt/tst-aio7.c (do_test): Change BYTES into a #define. 10719 107202003-03-07 Ulrich Drepper <drepper@redhat.com> 10721 10722 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too. 10723 10724 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment. 10725 107262003-03-07 Roland McGrath <roland@redhat.com> 10727 10728 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo. 10729 * sysdeps/s390/s390-64/sysdep.h (L): Likewise. 10730 107312003-03-04 Guido Guenther <agx@sigxcpu.org> 10732 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, 10736 MAP_NONBLOCK. 10737 107382003-03-06 Roland McGrath <roland@redhat.com> 10739 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. 10742 107432003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com> 10744 10745 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope. 10746 107472003-03-05 Ulrich Drepper <drepper@redhat.com> 10748 10749 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix 10750 reversed __builtin_expect expectation. 10751 107522003-03-05 Roland McGrath <roland@redhat.com> 10753 10754 * stdio-common/sscanf.c: Use prototype defn with ... syntax. 10755 * libio/swscanf.c: Likewise. 10756 * libio/swprintf.c: Likewise. 10757 107582003-03-04 Roland McGrath <roland@redhat.com> 10759 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>. 10765 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>. 10769 107702003-03-04 Jakub Jelinek <jakub@redhat.com> 10771 10772 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated. 10773 107742003-03-04 Ulrich Drepper <drepper@redhat.com> 10775 10776 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new 10777 clone parameters. 10778 10779 * po/sv.po: Update from translation team. 10780 107812003-03-04 Andreas Jaeger <aj@suse.de> 10782 Ulrich Drepper <drepper@redhat.com> 10783 10784 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments. 10785 107862003-03-03 Ulrich Drepper <drepper@redhat.com> 10787 10788 * sysdeps/generic/dl-sysdep.h: Add double include protection. 10789 10790 * po/tr.po: Update from translation team. 10791 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. 10795 10796 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE. 10797 Update comment. 10798 10799 * include/sched.h (__clone2): Use ... instead of adding all the 10800 new parameters. 10801 108022003-03-03 Roland McGrath <roland@redhat.com> 10803 10804 * elf/dl-load.c (struct filebuf): Fix typo in last change. 10805 10806 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define 10807 PI_STATIC_AND_HIDDEN. 10808 108092003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au> 10810 10811 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone 10812 flags. 10813 * include/sched.h: Update clone2 prototype. 10814 108152003-03-03 Andreas Jaeger <aj@suse.de> 10816 10817 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition. 10818 (llrint): Use it to correct return type. 10819 (lrint): Likewise. 10820 (lround): Likewise. 10821 (llround): Likewise. 10822 108232003-03-03 Ulrich Drepper <drepper@redhat.com> 10824 10825 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640 10826 byte filebuf size. 10827 10828 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor 10829 if ccs parameter isn't valid. Reported by Andreas Schwab. 10830 108312003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> 10832 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. 10842 108432003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com> 10844 10845 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv 10846 array if it is the initial dtv. 10847 108482003-03-03 Ulrich Drepper <drepper@redhat.com> 10849 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. 10855 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. 10861 10862 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE 10863 and MAP_NONBLOCK. 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. 10872 108732003-03-03 Roland McGrath <roland@redhat.com> 10874 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 10878 argument type. 10879 * sysdeps/ia64/dl-lookupcfg.h: Update decl. 10880 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. 10887 10888 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg. 10889 * sysdeps/ia64/dl-machine.h: Update decl. 10890 108912003-03-03 Andreas Jaeger <aj@suse.de> 10892 10893 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace. 10894 108952003-03-02 Roland McGrath <roland@redhat.com> 10896 10897 * scripts/abilist.awk: Reject data items with apparent 0 size. 10898 10899 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar 10900 after foo.* as if it were a duplicate. 10901 10902 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk. 10903 109042003-03-02 Ulrich Drepper <drepper@redhat.com> 10905 10906 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes. 10907 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. 10930 109312003-03-02 Roland McGrath <roland@redhat.com> 10932 10933 * scripts/merge-abilist.awk: More checks for bogus input. 10934 Uniquify duplicate config names. 10935 10936 * scripts/abilist.awk: Don't distinguish weak symbols in normal output. 10937 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. 10944 10945 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const 10946 variable. 10947 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. 10951 10952 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up. 10953 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. 10961 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. 10965 10966 * elf/elf.h: Define R_PPC_* relocs for TLS support. 10967 Clean up R_PPC64_* macro definition comments. 10968 10969 * configure.in: In "running configure fragment for" message, 10970 omit $srcdir from the name if we prepended it. 10971 * configure: Regenerated. 10972 10973 * elf/dl-reloc.c (allocate_static_tls): Fix calculations. 10974 From Jakub Jelinek <jakub@redhat.com>. 10975 10976 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change, 10977 which duplicated the O_DIRECT defn. 10978 109792003-03-01 GOTO Masanori <gotom@debian.or.jp> 10980 10981 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived 10982 random functions. 10983 109842003-03-01 Andreas Schwab <schwab@suse.de> 10985 10986 * resolv/Makefile (tests): Don't depend on 10987 $(objpfx)mtrace-tst-leaks when cross compiling. 10988 10989 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access 10990 __libc_stack_end through GOT since it is a global symbol. 10991 109922003-03-01 GOTO Masanori <gotom@debian.or.jp> 10993 10994 * argp/argp.h: Fix a typo. 10995 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>. 10996 10997 * manual/terminal.texi: Fix cfmakeraw() definition from int to void. 10998 109992003-02-27 Pat Rankin <rankin@pactechdata.com> 11000 11001 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to 11002 char *. 11003 (get_subexp): Likewise. 11004 110052003-03-01 GOTO Masanori <gotom@debian.or.jp> 11006 11007 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define. 11008 110092003-02-26 Steven Munroe <sjmunroe@us.ibm.com> 11010 11011 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define. 11012 110132003-02-27 Roland McGrath <roland@redhat.com> 11014 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. 11019 11020 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ... 11021 * sysdeps/powerpc/dl-tls.h: ... here. 11022 (TLS_TP_OFFSET): New macro. 11023 11024 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change. 11025 110262003-02-27 Ulrich Drepper <drepper@redhat.com> 11027 11028 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to 11029 code generation changes in recent gcc. 11030 110312003-02-26 Steven Munroe <sjmunroe@us.ibm.com> 11032 11033 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW): 11034 Rename argument to avoid symbol conflict. 11035 11036 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 11037 [__USE_GNU] (O_DIRECT): New macro. 11038 110392003-02-24 David Mosberger <davidm@hpl.hp.com> 11040 11041 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix 11042 unwind info. 11043 110442003-02-27 Ulrich Drepper <drepper@redhat.com> 11045 11046 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the 11047 initializer anymore now that res_thread_freeres is more careful. 11048 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]. 11052 110532003-02-25 Steven Munroe <sjmunroe@us.ibm.com> 11054 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): 11057 Define. 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. 11062 11063 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): 11064 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file. 11065 110662003-02-25 Andreas Jaeger <aj@suse.de> 11067 11068 * manual/memory.texi (Malloc Tunable Parameters): Clarify 11069 behaviour of M_MMAP_THRESHOLD. 11070 110712003-02-25 Roland McGrath <roland@redhat.com> 11072 11073 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is 11074 zero, inidicating _res was not initialized yet. 11075 110762003-02-24 Ulrich Drepper <drepper@redhat.com> 11077 11078 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES 11079 test. 11080 110812003-02-24 Roland McGrath <roland@redhat.com> 11082 11083 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED. 11084 110852003-02-23 Roland McGrath <roland@redhat.com> 11086 11087 * sysdeps/posix/pause.c: New file. 11088 * sysdeps/unix/common/pause.c: File removed. 11089 110902003-02-23 Ulrich Drepper <drepper@redhat.com> 11091 11092 * sysdeps/generic/bits/confname.h: Remove #ifs. 11093 11094 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition. 11095 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing. 11096 11097 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock 11098 element to -1. 11099 111002003-02-22 Ulrich Drepper <drepper@redhat.com> 11101 11102 * sysdeps/generic/dl-sysdep.c: Avoid warning. 11103 111042003-02-22 Roland McGrath <roland@redhat.com> 11105 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. 11112 11113 * include/libc-internal.h: Declare __libc_thread_freeres. 11114 11115 * Makerules: Fix last change to use $($(subdir)-version) when set. 11116 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. 11120 11121 * MakeTAGS (sub-make-vars): New variable, includes generating=t. 11122 Use that in $(MAKE) calls. 11123 111242003-02-22 Ulrich Drepper <drepper@redhat.com> 11125 11126 * catgets/gencat.c (read_input_file): Collision between 11127 auto-assigned numbers and user-defined nubmers is not fatal. 11128 Handle it. 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. 11132 11133 * catgets/gencat.c (main): Return 1 if messages have been printed. 11134 11135 * iconv/iconv_prog.c (main): Unify messages. 11136 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>. 11141 111422003-02-21 Roland McGrath <roland@redhat.com> 11143 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. 11147 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 11151 __libc_subfreeres. 11152 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. 11159 11160 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix. 11161 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix. 11162 111632003-02-21 Roland McGrath <roland@frob.com> 11164 11165 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open. 11166 11167 * iconvdata/Makefile (tests): Add bug-iconv3 only if 11168 [$(have-thread-library) = yes]. 11169 111702003-02-21 Ulrich Drepper <drepper@redhat.com> 11171 11172 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG. 11173 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. 11179 111802003-02-21 Jakub Jelinek <jakub@redhat.com> 11181 11182 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>: 11183 Check for signed overflow, not unsigned. 11184 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. 11188 111892003-02-21 Andreas Jaeger <aj@suse.de> 11190 11191 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default 11192 mode. 11193 11194 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not 11195 clear whole mxcsr but only exceptions. 11196 111972003-02-21 Roland McGrath <roland@redhat.com> 11198 11199 * Makerules: Filter $(install-lib-ldscripts) out of list of targets 11200 for libfoo.so that need $(make-link) rules. 11201 112022003-02-21 Roland McGrath <roland@frob.com> 11203 11204 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE 11205 to match existing struct stat layout in mig protocols. 11206 112072003-02-20 Ulrich Drepper <drepper@redhat.com> 11208 11209 * version.h (VERSION): Bump to 2.3.2. 11210 11211 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp, 11212 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c, 11213 and dl-sysdep.h. 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 11220 ucontext_i.h. 11221 * Makefile (distribute): Add include/stubs-prologue.h, 11222 include/gnu/stubs.h, scripts/merge-abilist.awk, and 11223 scripts/extract-abilist.awk. 11224 112252003-02-20 Roland McGrath <roland@redhat.com> 11226 11227 * math/Makefile (distribute): Don't add generated files. 11228 112292003-02-20 Ulrich Drepper <drepper@redhat.com> 11230 11231 * math/Makefile: Rearrange variable definitions slightly to get 11232 definition in the right order. 11233 112342003-02-20 Roland McGrath <roland@redhat.com> 11235 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. 11239 112402003-02-20 Ulrich Drepper <drepper@redhat.com> 11241 11242 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap 11243 around in search if port IPPORT_RESERVED/2 has been test. 11244 112452003-02-20 Paolo Bonzini <bonzini@gnu.org> 11246 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). 11254 11255 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC. 11256 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. 11261 112622003-02-20 Ulrich Drepper <drepper@redhat.com> 11263 11264 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete 11265 patch to check for system call errors. 11266 112672002-07-24 Philip Blundell <philb@gnu.org> 11268 11269 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV 11270 on unknown systems. 11271 112722003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 11273 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 11278 if possible. 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. 11288 112892003-02-18 Alan Modra <amodra@bigpond.net.au> 11290 11291 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine. 11292 112932003-02-20 Philip Blundell <philb@gnu.org> 11294 11295 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add 11296 missing arguments to INTERNAL_SYSCALL_ERROR_P and 11297 INTERNAL_SYSCALL_ERRNO. 11298 112992003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com> 11300 11301 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test 11302 for __ASSUME_32BITUIDS. 11303 113042003-02-20 Andreas Schwab <schwab@suse.de> 11305 11306 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and 11307 POSIX_MADV_* constants. 11308 113092003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp> 11310 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. 11315 113162003-02-19 Jiro Sekiba <jir@yamato.ibm.com> 11317 11318 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate. 11319 113202003-02-16 Roland McGrath <roland@redhat.com> 11321 11322 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>. 11323 113242003-02-19 Ulrich Drepper <drepper@redhat.com> 11325 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. 11329 113302003-02-18 Ulrich Drepper <drepper@redhat.com> 11331 11332 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize 11333 invalid file descriptors and missing access permissions. 11334 113352003-02-17 Ulrich Drepper <drepper@redhat.com> 11336 11337 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has 11338 been found. 11339 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. 11344 113452003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca> 11346 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 11347 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. 11353 113542003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 11355 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. 11362 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. 11367 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. 11372 113732003-02-14 Thorsten Kukuk <kukuk@suse.de> 11374 11375 * nss/getent.c (print_hosts): Print all IP addresses of one host. 11376 113772003-02-15 Roland McGrath <roland@frob.com> 11378 11379 * sysdeps/mach/hurd/tls.h: New file. 11380 * sysdeps/mach/hurd/i386/tls.h: New file. 11381 11382 * mach/errsystems.awk: Include <errno.h> in generated output. 11383 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/. 11391 113922003-02-14 Ulrich Drepper <drepper@redhat.com> 11393 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 11398 to gcc bug. 11399 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. 11402 114032003-02-13 Jakub Jelinek <jakub@redhat.com> 11404 11405 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of 11406 subtracting map->l_tls_offset. 11407 114082003-02-12 Ulrich Drepper <drepper@redhat.com> 11409 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. 11414 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>. 11418 114192003-02-11 Ulrich Drepper <drepper@redhat.com> 11420 11421 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment 11422 correctly. Reported by Thorsten Kukuk. 11423 114242003-02-10 Ulrich Drepper <drepper@redhat.com> 11425 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. 11430 114312003-02-08 Ulrich Drepper <drepper@redhat.com> 11432 11433 * io/ftwtest.c: Get current working directory before and after the 11434 nftw call and make sure they match. 11435 114362003-02-08 Jim Meyering <jim@meyering.net> 11437 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. 11441 114422003-02-07 Jim Meyering <jim@meyering.net> 11443 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 11447 _D_EXACT_NAMLEN. 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. 11457 114582003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp> 11459 11460 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list 11461 for SH. 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 11465 parameters. 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. 11478 114792003-02-07 Jakub Jelinek <jakub@redhat.com> 11480 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. 11484 114852003-02-07 Ulrich Drepper <drepper@redhat.com> 11486 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>. 11490 114912002-11-24 Robert Love <rml@tech9.net> 11492 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. 11497 114982003-02-05 Ulrich Drepper <drepper@redhat.com> 11499 11500 * debug/catchsegv.sh: Fix typo in error messsage. 11501 Reported by John Levon <levon@movementarian.org>. 11502 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. 11510 11511 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked. 11512 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>. 11513 115142003-02-05 Jim Meyering <jim@meyering.net> 11515 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. 11523 115242003-02-04 Ulrich Drepper <drepper@redhat.com> 11525 11526 * iconvdata/Makefile: Add rules to build and run bug-iconv3. 11527 * iconvdata/bug-iconv3.c: New file. 11528 115292003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com> 11530 11531 * sysdeps/unix/sysv/linux/s390/system.c: New file. 11532 115332003-02-03 Jakub Jelinek <jakub@redhat.com> 11534 11535 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New 11536 check. 11537 * config.h.in (BROKEN_SPARC_WDISP22): Add. 11538 115392003-02-03 Ulrich Drepper <drepper@redhat.com> 11540 11541 * sysdeps/i386/i686/memmove.S: New file. 11542 115432003-01-31 Steven Munroe <sjmunroe@us.ibm.com> 11544 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. 11551 115522003-02-02 Jakub Jelinek <jakub@redhat.com> 11553 11554 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers. 11555 115562003-01-25 Jim Meyering <jim@meyering.net> 11557 11558 * io/ftw.c (object_compare): Compare inode numbers before device 11559 numbers, since the former are much more likely to differ. 11560 115612003-02-01 Ulrich Drepper <drepper@redhat.com> 11562 11563 * time/tzfile.c (__tzfile_compute): Change return value type to 11564 void. Adjust return statements. 11565 * include/time.h (__tzfile_compute): Adjust prototype. 11566 115672003-02-01 Jim Meyering <jim@meyering.net> 11568 11569 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute 11570 always returns 1. 11571 115722003-01-31 Steven Munroe <sjmunroe@us.ibm.com> 11573 11574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c 11575 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS. 11576 115772003-01-31 Steven Munroe <sjmunroe@us.ibm.com> 11578 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. 11587 115882003-01-31 Steven Munroe <sjmunroe@us.ibm.com> 11589 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. 11595 115962003-02-01 Ulrich Drepper <drepper@redhat.com> 11597 11598 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for 11599 platforms with strange alignment requirements on wchar_t. 11600 116012003-01-31 Andreas Schwab <schwab@suse.de> 11602 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. 11614 116152003-01-31 Andreas Schwab <schwab@suse.de> 11616 11617 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed 11618 any more. 11619 116202003-01-30 Jakub Jelinek <jakub@redhat.com> 11621 11622 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg, 11623 not l to load tls from stack. 11624 116252003-01-30 Roland McGrath <roland@redhat.com> 11626 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>. 11630 116312003-01-30 Jakub Jelinek <jakub@redhat.com> 11632 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): 11636 Likewise. 11637 116382003-01-30 Ulrich Drepper <drepper@redhat.com> 11639 11640 * stdio-common/Makefile (tests): Add bug15. 11641 (bug15-ENV): Define. 11642 * stdio-common/bug15.c: New file. 11643 116442002-10-07 Wolfram Gloger <wg@malloc.de> 11645 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>. 11649 116502003-01-30 Jakub Jelinek <jakub@redhat.com> 11651 11652 * sysdeps/s390/libc-tls.c: Include stdlib.h. 11653 116542003-01-30 Jakub Jelinek <jakub@redhat.com> 11655 11656 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of 11657 ps.__count. 11658 116592003-01-30 Ulrich Drepper <drepper@redhat.com> 11660 11661 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and 11662 restoring of %r6. 11663 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use 11664 64-bit load. 11665 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>. 11666 116672003-01-30 Jakub Jelinek <jakub@redhat.com> 11668 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)). 11679 116802003-01-29 David Mosberger <davidm@hpl.hp.com> 11681 11682 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO. 11683 116842003-01-29 Roland McGrath <roland@redhat.com> 11685 11686 * configure.in: Barf if configured in $srcdir. 11687 116882003-01-28 Steven Munroe <sjmunroe@us.ibm.com> 11689 11690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c 11691 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL. 11692 116932003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com> 11694 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. 11698 116992003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com> 11700 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 11716 bit offset. 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): 11722 Likewise. 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 11726 variants. 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 11731 variants. 11732 117332003-01-28 Ulrich Drepper <drepper@redhat.com> 11734 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. 11738 11739 * sysdeps/posix/sigpause.c (do_sigpause): Check range of 11740 sig_or_mask parameter is is_sig != 0. 11741 117422003-01-21 Philip Blundell <philb@gnu.org> 11743 11744 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define. 11745 117462003-01-27 Steven Munroe <sjmunroe@us.ibm.com> 11747 11748 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check. 11749 117502003-01-27 Ulrich Drepper <drepper@redhat.com> 11751 11752 * stdio-common/bug14.c: Use official name for the locale. 11753 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. 11757 11758 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1 11759 as first parameter to __libc_cleanup_region_start. 11760 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 11764 prctl syscall. 11765 11766 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message. 11767 11768 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048. 11769 11770 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic 11771 wrap-around in test. 11772 117732003-01-26 Andreas Schwab <schwab@suse.de> 11774 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 11780 define. 11781 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c. 11782 117832003-01-24 Jakub Jelinek <jakub@redhat.com> 11784 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 11790 relocs too. 11791 (elf_machine_rela): Handle TLS relocs. 11792 * sysdeps/sparc/dl-tls.h: New file. 11793 11794 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation 11795 support. 11796 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. 11817 118182003-01-24 Andreas Schwab <schwab@suse.de> 11819 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. 11827 118282003-01-24 Steven Munroe <sjmunroe@us.ibm.com> 11829 11830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file. 11831 118322003-01-27 Guido Guenther <agx@sigxcpu.org> 11833 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. 11843 118442003-01-27 Wolfram Gloger <wg@malloc.de> 11845 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>. 11849 118502003-01-25 Andreas Schwab <schwab@suse.de> 11851 11852 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative 11853 addressing to save GOT entries. 11854 118552003-01-21 Jakub Jelinek <jakub@redhat.com> 11856 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. 11862 118632003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com> 11864 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): 11868 Likewise. 11869 11870 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of 11871 -fPIC. 11872 118732003-01-20 Segher Boessenkool <segher@koffie.nl> 11874 11875 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really 11876 compute the cosine, not the sine, even if x > 0.8. 11877 118782003-01-19 Ulrich Drepper <drepper@redhat.com> 11879 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. 11897 118982003-01-19 Jim Meyering <jim@meyering.net> 11899 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. 11904 119052003-01-19 Ulrich Drepper <drepper@redhat.com> 11906 11907 * time/strftime.c (my_strftime): Handle very large width 11908 specifications for numeric values correctly. Improve checks for 11909 overflow. 11910 * time/Makefile (tests): Add tst-strftime. 11911 * time/tst-strftime.c: New file. 11912 119132003-01-18 Ulrich Drepper <drepper@redhat.com> 11914 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. 11927 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. 11931 119322003-01-17 Roland McGrath <roland@redhat.com> 11933 11934 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]: 11935 Add test of value 0.80190127184058835. 11936 11937 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn. 11938 119392003-01-17 Richard Henderson <rth@redhat.com> 11940 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. 11946 119472003-01-17 Jakub Jelinek <jakub@redhat.com> 11948 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. 11952 119532003-01-17 Andreas Jaeger <aj@suse.de> 11954 11955 * stdio-common/bug14.c: Include stdlib.h for exit prototype. 11956 119572003-01-16 Steven Munroe <sjmunroe@us.ibm.com> 11958 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 11966 is 2.4.21. 11967 119682003-01-16 Ulrich Drepper <drepper@redhat.com> 11969 11970 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns 11971 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed 11972 buffers. 11973 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. 11977 119782003-01-16 Jakub Jelinek <jakub@redhat.com> 11979 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. 11985 119862003-01-16 Jakub Jelinek <jakub@redhat.com> 11987 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. 11991 119922003-01-15 Dmitry V. Levin <ldv@altlinux.org> 11993 11994 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment. 11995 119962003-01-16 Jakub Jelinek <jakub@redhat.com> 11997 11998 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear 11999 allocated too. Reported by Al Viro <aviro@redhat.com>. 12000 120012003-01-16 Roland McGrath <roland@redhat.com> 12002 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. 12008 120092003-01-15 Ulrich Drepper <drepper@redhat.com> 12010 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. 12014 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>. 12021 12022 * stdio-common/Makefile (tests): Add bug14. 12023 * stdio-common/bug14.c: New file. 12024 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>. 12028 120292003-01-15 Steven Munroe <sjmunroe@us.ibm.com> 12030 12031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include 12032 sysdep-cancel.h, not sysdep.h. 12033 120342003-01-15 Ulrich Drepper <drepper@redhat.com> 12035 12036 * nscd/connections.c (nscd_run): Protect accept call with 12037 TEMP_FAILURE_RETRY. 12038 120392003-01-15 Andreas Schwab <schwab@suse.de> 12040 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 12044 of bp thunks. 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. 12049 120502003-01-15 Roland McGrath <roland@redhat.com> 12051 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. 12055 120562003-01-15 Ulrich Drepper <drepper@redhat.com> 12057 12058 * nscd/nscd.c (main): Make code to close all file descriptors 12059 faster and more robust. 12060 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. 12066 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. 12071 12072 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as 12073 IPv6 address in debug output. 12074 120752003-01-14 Roland McGrath <roland@redhat.com> 12076 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. 12083 12084 * sysdeps/generic/init-first.c: Add a comment. 12085 12086 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link. 12087 12088 * scripts/gen-as-const.awk: Grok lone "--" as a separator between 12089 #includes and expressions. 12090 12091 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged 12092 config list when it already contains cpu-.*-os.* without / part. 12093 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. 12101 121022003-01-14 Ulrich Drepper <drepper@redhat.com> 12103 12104 * manual/install.texi: Correct description of header preparation for 12105 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941]. 12106 121072003-01-14 Guido Guenther <agx@sigxcpu.org> 12108 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. 12112 121132003-01-14 Steven Munroe <sjmunroe@us.ibm.com> 12114 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. 12121 121222003-01-14 Ulrich Drepper <drepper@redhat.com> 12123 12124 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol 12125 == IPPROTO_TCP. 12126 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943]. 12127 12128 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags): 12129 Fix entry for bit 31. 12130 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. 12135 121362003-01-13 Ulrich Drepper <drepper@redhat.com> 12137 12138 * string/tester.c (test_strcpy): Use the previously #if 0'ed code 12139 to test void* parameters. 12140 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>. 12146 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>. 12149 121502003-01-14 Jakub Jelinek <jakub@redhat.com> 12151 12152 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before 12153 defining. 12154 121552003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com> 12156 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 12159 here. 12160 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise. 12161 121622003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com> 12163 12164 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions 12165 from here... 12166 (PSEUDO): ... to here. 12167 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction 12168 from here... 12169 (PSEUDO): ... to here. 12170 121712003-01-13 Ulrich Drepper <drepper@redhat.com> 12172 12173 * locale/programs/charmap-dir.c (charmap_readdir): Use struct 12174 dirent64 instead of struct dirent for dirent. Call readdir64 12175 instead of readdir. 12176 12177 * locale/programs/locfile.c (siblings_uncached): Use struct 12178 dirent64 instead of struct dirent for other_dentry. Call 12179 readdir64 instead of readdir. 12180 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>. 12184 121852003-01-12 Roland McGrath <roland@redhat.com> 12186 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. 12189 12190 * include/fcntl.h: Declare __libc_creat. 12191 12192 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs, 12193 libhurduser-link.so-no-z-defs): New variables. 12194 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. 12199 122002003-01-12 Ulrich Drepper <drepper@redhat.com> 12201 12202 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in 12203 search for removed searchlist. Reported by Roland McGrath. 12204 12205 * io/ftwtest-sh: Add test for case of symlink to nonexisting file 12206 given as start file. 12207 12208 * io/ftw.c (ftw_startup): Use correct name in check for symlink 12209 without existing target. Patch by Jim Meyering. 12210 12211 * Makerules (build-shlib-helper): Don't use -z defs linker option 12212 if no-z-defs is defined either. 12213 122142003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com> 12215 12216 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused 12217 file. 12218 122192003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com> 12220 12221 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork. 12222 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. 12223 122242003-01-12 Ulrich Drepper <drepper@redhat.com> 12225 12226 * io/ftwtest-sh: Add test case for relative path with /. at the end. 12227 122282003-01-12 Jim Meyering <jim@meyering.net> 12229 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. 12232 122332003-01-12 Ulrich Drepper <drepper@redhat.com> 12234 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. 12239 122402003-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 12241 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 12245 into account. 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. 12252 122532003-01-09 Richard Henderson <rth@redhat.com> 12254 12255 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute 12256 DTPREL64 and TPREL64 without loadbase applied. 12257 122582003-01-09 Richard Henderson <rth@redhat.com> 12259 12260 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno 12261 for NOT_IN_libc. 12262 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. 12270 122712003-01-12 Andreas Jaeger <aj@suse.de> 12272 12273 * math/bits/mathcalls.h: Round is a const function. 12274 122752003-01-11 Jim Meyering <jim@meyering.net> 12276 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. 12288 122892003-01-12 Ulrich Drepper <drepper@redhat.com> 12290 12291 * string/tester.c (test_strcpy): Disable last added strcpy until 12292 it is fixed. 12293 122942003-01-11 Philip Blundell <philb@gnu.org> 12295 12296 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support. 12297 122982003-01-11 Andreas Schwab <schwab@suse.de> 12299 12300 * Makerules: Add vpath for %.dynsym and %.so so that the 12301 implicit rule chaining for check-abi works. 12302 123032003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp> 12304 12305 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER): 12306 Add non-PIC case. 12307 123082003-01-11 Jakub Jelinek <jakub@redhat.com> 12309 12310 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define. 12311 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if 12312 gp is used early. 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): 12319 Likewise. 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 12331 too. 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. 12335 123362003-01-10 Steven Munroe <sjmunroe@us.ibm.com> 12337 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 12347 support. 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. 12358 123592003-01-12 Ulrich Drepper <drepper@redhat.com> 12360 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. 12367 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. 12371 12372 * elf/reldep6.c: Create relocation dependency before closing the first 12373 module. 12374 123752003-01-10 Guido Günther <agx@sigxcpu.org> 12376 12377 * sysdeps/unix/mips/fork.S: Add PSEUDO_END. 12378 * sysdeps/unix/mips/brk.S: Likewise. 12379 * sysdeps/unix/mips/pipe.S: Likewise. 12380 123812003-01-10 Andreas Schwab <schwab@suse.de> 12382 12383 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file. 12384 12385 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which 12386 are known to have the vfork syscall. 12387 12388 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it. 12389 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. 12394 123952003-01-09 Jakub Jelinek <jakub@redhat.com> 12396 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. 12402 124032003-01-09 Jakub Jelinek <jakub@redhat.com> 12404 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. 12410 124112003-01-09 Jakub Jelinek <jakub@redhat.com> 12412 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 12416 defining it. 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. 12422 124232003-01-09 Andreas Schwab <schwab@suse.de> 12424 12425 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated. 12426 124272003-01-08 Ulrich Drepper <drepper@redhat.com> 12428 12429 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL, 12430 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err 12431 argument. 12432 (INTERNAL_SYSCALL_DECL): Define. 12433 124342003-01-06 Jakub Jelinek <jakub@redhat.com> 12435 12436 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL, 12437 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err 12438 argument. 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): 12454 Likewise. 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. 12458 124592003-01-07 Ulrich Drepper <drepper@redhat.com> 12460 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. 12470 12471 * intl/explodename.c (_nl_find_language.c): Mark as static. 12472 * intl/loadinfo.h: Remove _nl_find_language prototype. 12473 12474 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static. 12475 * libio/libioP.h: Remove declaration. 12476 12477 * libio/iopopen.c (_IO_proc_jumps): Mark as static. 12478 * libio/libioP.h: Remove declaration. 12479 12480 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC. 12481 * sysdeps/generic/framestate.c: Define STATIC before including 12482 unwind-dw2.c. 12483 12484 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l. 12485 124862003-01-06 Philip Blundell <philb@gnu.org> 12487 12488 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little. 12489 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases. 12490 12491 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type 12492 directive. 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 12496 handling code. 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. 12502 125032003-01-07 Jakub Jelinek <jakub@redhat.com> 12504 12505 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16, 12506 __bswap_32, __bswap_64): Put x into temporary variable 12507 to avoid warnings. 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 12512 to avoid warnings. 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): 12516 Likewise. 12517 125182003-01-07 Jakub Jelinek <jakub@redhat.com> 12519 12520 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak 12521 alias. 12522 125232003-01-07 Jakub Jelinek <jakub@redhat.com> 12524 12525 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer. 12526 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0. 12527 125282003-01-07 Ulrich Drepper <drepper@redhat.com> 12529 12530 * math/libm-test.inc (significand_test): New function. 12531 (main): Call it. 12532 125332003-01-06 Roland McGrath <roland@redhat.com> 12534 12535 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro 12536 arguments. 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. 12540 12541 * string/tester.c (test_strcpy): Add test with `void *' arguments. 12542 125432003-01-06 Ulrich Drepper <drepper@redhat.com> 12544 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>. 12548 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. 12551 12552 * malloc/malloc.c: Mark all _int_* functions as static. 12553 125542003-01-06 Jakub Jelinek <jakub@redhat.com> 12555 12556 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS. 12557 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation 12558 handling. 12559 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise. 12560 125612003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 12562 12563 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint. 12564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation 12565 support. 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. 12577 125782003-01-06 Jakub Jelinek <jakub@redhat.com> 12579 12580 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define. 12581 * sysdeps/generic/creat.c: Include sysdep-cancel.h. 12582 (LIBC_CANCEL_HANDLED): Add. 12583 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. 12588 125892003-01-06 Andreas Schwab <schwab@suse.de> 12590 12591 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make 12592 sure this is always inlined. 12593 (elf_machine_rela): Likewise. 12594 12595 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit. 12596 125972003-01-04 Roland McGrath <roland@redhat.com> 12598 12599 * Makeconfig (+mkdep): Add -MP flag. 12600 Suggested by Art Haas <ahaas@airmail.net>. 12601 126022003-01-05 Andreas Schwab <schwab@suse.de> 12603 12604 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC. 12605 126062003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> 12607 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. 12619 126202003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 12621 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. 12627 126282003-01-05 Ulrich Drepper <drepper@redhat.com> 12629 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. 12634 126352003-01-05 Jakub Jelinek <jakub@redhat.com> 12636 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. 12641 126422003-01-04 Ulrich Drepper <drepper@redhat.com> 12643 12644 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct 12645 order of parameters passed to kill. 12646 126472003-01-04 Andreas Schwab <schwab@suse.de> 12648 12649 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields. 12650 126512003-01-03 Paul Eggert <eggert@twinsun.com> 12652 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. 12657 126582003-01-04 Ulrich Drepper <drepper@redhat.com> 12659 12660 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove 12661 unnecessary code. 12662 Correct reference counter in case SIGQUIT handler installation failed. 12663 126642003-01-03 Ulrich Drepper <drepper@redhat.com> 12665 12666 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern): 12667 Define using _Pragma(weak ...). 12668 126692003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com> 12670 12671 * resolv/res_libc.c: Provide declaration for __res_init_weak and 12672 reorder declarations. 12673 126742003-01-03 Art Haas <ahaas@airmail.net> 12675 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. 12727 127282003-01-03 Richard Henderson <rth@redhat.com> 12729 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. 12733 127342003-01-03 Jakub Jelinek <jakub@redhat.com> 12735 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. 12740 127412002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> 12742 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. 12746 127472003-01-02 Ulrich Drepper <drepper@redhat.com> 12748 12749 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove 12750 any, but unify the test. 12751 127522003-01-02 Jakub Jelinek <jakub@redhat.com> 12753 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): 12772 Likewise. 12773 127742003-01-02 Art Haas <ahaas@airmail.net> 12775 12776 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99. 12777 127782003-01-02 Ulrich Drepper <drepper@redhat.com> 12779 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. 12796 127972003-01-01 Jakub Jelinek <jakub@redhat.com> 12798 12799 * io/sys/stat.h: Include time.h with __need_timespec even if 12800 __USE_MISC is defined but __USE_XOPEN is not. 12801 128022003-01-01 Andreas Jaeger <aj@suse.de> 12803 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. 12811 128122002-12-31 Ulrich Drepper <drepper@redhat.com> 12813 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. 12817 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. 12821 12822 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open. 12823 * libio/fileops.c: Add libc_hidden_def for _IO_file_open. 12824 12825 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for 12826 tr_break. 12827 12828 * csu/Makefile (routines): Add dso_handle. 12829 * csu/dso_handle.c: New file. 12830 128312002-12-31 Roland McGrath <roland@redhat.com> 12832 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). 12837 128382002-12-31 Ulrich Drepper <drepper@redhat.com> 12839 12840 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle 12841 is available. 12842 128432002-12-31 Andreas Jaeger <aj@suse.de> 12844 12845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync 12846 with Linux kernel. 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. 12850 12851 * sysdeps/unix/sysv/linux/kernel_stat.h 12852 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New. 12853 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. 12857 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. 12864 12865 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat. 12866 12867 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for 12868 nsec resolution changes. 12869 (xstat64_conv): Likewise. 12870 (xstat32_conv): Likewise. 12871 12872 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for 12873 struct kernel_stat. 12874 12875 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for 12876 structs stat and stat64. 12877 12878 * time/time.h (__timespec_defined): Define for __USE_MISC. 12879 128802002-12-31 Ulrich Drepper <drepper@redhat.com> 12881 12882 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin 12883 and __libc_current_sigrtmax. 12884 128852002-12-31 Jakub Jelinek <jakub@redhat.com> 12886 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 12890 unconditionally. 12891 * include/resolv.h (__res_state): Likewise. 12892 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 12915 alias to llseek. 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): 12922 Likewise. 12923 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept): 12924 Likewise. 12925 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek. 12926 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. 12969 12970 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple 12971 inclusion. 12972 129732002-12-31 Ulrich Drepper <drepper@redhat.com> 12974 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. 13003 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. 13009 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. 13014 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. 13019 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. 13024 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. 13046 130472002-12-30 Ulrich Drepper <drepper@redhat.com> 13048 13049 * malloc/thread-m.h (thread_atfork): Define using __register_atfork. 13050 130512002-12-30 Roland McGrath <roland@redhat.com> 13052 13053 * Rules (generated): Target removed. 13054 * mach/Makefile (generated): Define it here instead. 13055 13056 * math/Makefile (generated): Add m_*l and m_*f variants too. 13057 130582002-12-30 Ulrich Drepper <drepper@redhat.com> 13059 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. 13064 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. 13071 130722002-12-24 GOTO Masanori <gotom@debian.or.jp> 13073 13074 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition 13075 checking of return value ENOSYS from getdents64. 13076 130772002-12-28 Andreas Schwab <schwab@suse.de> 13078 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. 13086 130872002-12-29 Roland McGrath <roland@redhat.com> 13088 13089 * resolv/res_libc.c: Move _res defn magic after res_init defn 13090 so _res macro is in effect for that code. 13091 13092 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed 13093 pattern for prepending $(..) so it doesn't affect $(foo). 13094 13095 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)). 13096 130972002-12-29 Jakub Jelinek <jakub@redhat.com> 13098 13099 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set 13100 in hwcap. 13101 131022002-12-28 Ulrich Drepper <drepper@redhat.com> 13103 13104 * misc/sys/cdefs.h (__attribute_deprecated__): New #define. 13105 131062002-12-28 Andreas Jaeger <aj@suse.de> 13107 13108 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to 13109 avoid warning. 13110 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise. 13111 131122002-12-27 Jakub Jelinek <jakub@redhat.com> 13113 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. 13120 131212002-12-27 Jakub Jelinek <jakub@redhat.com> 13122 13123 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER): 13124 Only define if USE_DL_SYSINFO is defined. 13125 131262002-12-22 Jakub Jelinek <jakub@redhat.com> 13127 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. 13160 131612002-12-27 Roland McGrath <roland@redhat.com> 13162 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) 13167 to the list. 13168 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)). 13169 131702002-12-27 Andreas Schwab <schwab@suse.de> 13171 13172 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support. 13173 131742002-12-27 Jakub Jelinek <jakub@redhat.com> 13175 13176 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if 13177 _environ is NULL. 13178 131792002-12-27 Andreas Schwab <schwab@suse.de> 13180 13181 * Makerules ($(common-objpfx)%.make): Filter through 13182 $(sed-remove-objpfx). 13183 131842002-12-23 Roland McGrath <roland@redhat.com> 13185 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. 13193 131942002-12-19 Roland McGrath <roland@redhat.com> 13195 13196 * Makerules (%.symlist): Use LC_ALL=C when running awk script. 13197 13198 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of 13199 INTERNAL_SYSCALL. 13200 132012002-12-21 Andreas Schwab <schwab@suse.de> 13202 13203 * elf/check-textrel.c (handle_file): Swap p_type. 13204 132052002-12-21 Andreas Schwab <schwab@suse.de> 13206 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. 13211 13212 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL. 13213 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise. 13214 132152002-12-20 Art Haas <ahaas@airmail.net> 13216 13217 * sysdeps/gnu/siglist.c: Convert GCC extension initializer 13218 syntax to C99. 13219 132202002-12-21 Philip Blundell <philb@gnu.org> 13221 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. 13225 13226 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation. 13227 13228 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide 13229 compatibility cruft when new enough kernel is assumed. 13230 132312002-12-20 Jakub Jelinek <jakub@redhat.com> 13232 13233 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL 13234 instead of INLINE_SYSCALL. 13235 132362002-12-20 Ulrich Drepper <drepper@redhat.com> 13237 13238 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix 13239 typo. 13240 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>. 13251 132522002-12-20 Andreas Schwab <schwab@suse.de> 13253 13254 * locale/programs/ld-measurement.c (measurement_output): Fix 13255 index calculation. 13256 132572002-12-20 Ulrich Drepper <drepper@redhat.com> 13258 13259 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]: 13260 Redefine _IO_flockifle and _IO_funlockfile as inlines. 13261 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". 13266 132672002-12-19 Ulrich Drepper <drepper@redhat.com> 13268 13269 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use 13270 __waitpid instead of waitpid. 13271 13272 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of 13273 int $0x80. 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. 13277 13278 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO 13279 information for system calls. 13280 13281 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only 13282 for ld.so. 13283 13284 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv. 13285 132862002-12-19 Roland McGrath <roland@redhat.com> 13287 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. 13298 132992002-12-19 Ulrich Drepper <drepper@redhat.com> 13300 13301 * test-skeleton.c (main): Make sure correct value is seen as 13302 argv[0] after adjustment of argv, and argc. 13303 13304 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if 13305 RTLD_CORRECT_DYNAMIC_WEAK is defined. 13306 133072002-12-19 Jakub Jelinek <jakub@redhat.com> 13308 13309 * nscd/connections.c (nscd_run): Shut up warning. 13310 * tst-ungetc.c (assert): Undefined before redefining. 13311 133122002-12-19 Ulrich Drepper <drepper@redhat.com> 13313 13314 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3 13315 is used. 13316 133172002-12-17 Art Haas <ahaas@airmail.net> 13318 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. 13331 133322002-12-19 Ulrich Drepper <drepper@redhat.com> 13333 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. 13338 133392002-12-18 Ulrich Drepper <drepper@redhat.com> 13340 13341 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead 13342 of asm. 13343 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. 13344 13345 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize 13346 _dl_sysinfo. 13347 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed 13348 code. 13349 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of 13350 _rtld_global. 13351 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed 13352 code. 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]: 13356 Add _dl_sysinfo. 13357 133582002-12-18 Jakub Jelinek <jakub@redhat.com> 13359 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. 13366 133672002-12-18 Ulrich Drepper <drepper@redhat.com> 13368 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. 13377 133782002-12-17 Ulrich Drepper <drepper@redhat.com> 13379 13380 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized. 13381 13382 * elf/elf.h (AT_SYSINFO): New define. 13383 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for 13384 AT_SYSINFO. 13385 133862002-12-17 Jakub Jelinek <jakub@redhat.com> 13387 13388 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd): 13389 Make cancelable. 13390 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd): 13391 Likewise. 13392 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd): 13393 Likewise. 13394 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd): 13395 Likewise. 13396 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd): 13397 Likewise. 13398 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise. 13399 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. 13406 134072002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com> 13408 13409 * posix/regcomp.c (free_workarea_compile): Free the new member 13410 ORG_INDICES. 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 13418 if needed. 13419 * posix/regex_internal.h (re_dfa_t): Add new members. 13420 134212002-12-17 Ulrich Drepper <drepper@redhat.com> 13422 13423 * stdio-common/tst-fdopen.c: Undefine assert before redefining it. 13424 134252002-12-16 Ulrich Drepper <drepper@redhat.com> 13426 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. 13430 13431 * stdlib/Makefile (tests): Add tst-system. 13432 * stdlib/tst-system.c: New file. 13433 13434 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION && 13435 CENABLE]: Don't lose content of %ebx. 13436 134372002-12-17 Jakub Jelinek <jakub@redhat.com> 13438 13439 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P 13440 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly. 13441 134422002-12-16 Ulrich Drepper <drepper@redhat.com> 13443 13444 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function 13445 fails to return a function pointer don't use it. 13446 134472002-12-16 Art Haas <ahaas@airmail.net> 13448 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. 13453 134542002-12-16 Ulrich Drepper <drepper@redhat.com> 13455 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): 13464 Add sys/epoll.h. 13465 134662002-12-16 Art Haas <ahaas@airmail.net> 13467 13468 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer 13469 syntax to C99 13470 * sysdeps/unix/sysv/aix/settimer.c: Likewise. 13471 * sysdeps/unix/sysv/aix/sleep.c: Likewise. 13472 * sysdeps/unix/sysv/aix/usleep.c: Likewise. 13473 134742002-12-16 Ulrich Drepper <drepper@redhat.com> 13475 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. 13482 134832002-12-16 Jakub Jelinek <jakub@redhat.com> 13484 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-% 13489 targets. 13490 134912002-12-16 Jakub Jelinek <jakub@redhat.com> 13492 13493 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change. 13494 * sysdeps/ieee754/bits/nan.h: Likewise. 13495 13496 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open, 13497 __syscall_wait4, __syscall_ioctl, __syscall_write): Add. 13498 134992002-12-16 Roland McGrath <roland@redhat.com> 13500 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. 13504 13505 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg. 13506 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg, 13507 s_putpmsg. 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. 13516 135172002-12-13 Paul Eggert <eggert@twinsun.com> 13518 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. 13531 135322002-12-15 Art Haas <ahaas@airmail.net> 13533 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. 13563 135642002-12-15 Roland McGrath <roland@redhat.com> 13565 13566 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn. 13567 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. 13571 13572 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void * 13573 parameter, not varargs parameter. 13574 13575 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the 13576 argument so it's not an unused variable. 13577 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 13580 for users. 13581 13582 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode. 13583 135842002-12-15 Ulrich Drepper <drepper@redhat.com> 13585 13586 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the 13587 original __libc_fcntl code. Just renamed. 13588 135892002-12-15 Andreas Schwab <schwab@suse.de> 13590 13591 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit. 13592 135932002-12-14 Olaf Hering <olh@suse.de> 13594 13595 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>. 13596 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load. 13597 135982002-12-15 Ulrich Drepper <drepper@redhat.com> 13599 13600 * sysdeps/unix/sysv/linux/libc_fatal.c: New file. 13601 13602 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for 13603 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET. 13604 13605 * sysdeps/unix/sysv/linux/open64.c: New file. 13606 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. 13640 136412002-12-14 Jakub Jelinek <jakub@redhat.com> 13642 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, 13656 sendto): Likewise. 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, 13661 sendto): Likewise. 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): 13667 Likewise. 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. 13673 136742002-12-14 Jakub Jelinek <jakub@redhat.com> 13675 13676 * dirent/bug-readdir1.c: Include unistd.h. 13677 136782002-12-13 Jakub Jelinek <jakub@redhat.com> 13679 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 13687 functions. 13688 (struct nameent): New type. 13689 (nameentcmp): New function. 13690 136912002-12-14 Jakub Jelinek <jakub@redhat.com> 13692 13693 * posix/regex_internal.c (re_string_context_at): Guard wide char 13694 code with #ifdef RE_ENABLE_I18N. 13695 136962002-11-22 Paolo Bonzini <bonzini@gnu.org> 13697 13698 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap 13699 137002002-12-13 Roland McGrath <roland@redhat.com> 13701 13702 * posix/bug-regex15.c: New file. 13703 * posix/Makefile (tests): Add it. 13704 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). 13707 137082002-12-13 Ulrich Drepper <drepper@redhat.com> 13709 13710 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs. 13711 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. 13715 137162002-12-12 Ulrich Drepper <drepper@redhat.com> 13717 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. 13722 13723 * elf/Makefile: Also check all iconv modules for text relocations. 13724 13725 * stdlib/Makefile: Remove code to automatically import GMP. 13726 13727 * elf/Makefile (tests): Add rules to build and run check-textrel. 13728 * elf/check-textrel.c: New file. 13729 13730 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size 13731 directive. 13732 137332002-12-11 Jakub Jelinek <jakub@redhat.com> 13734 13735 * io/test-utime (main): If stnow.st[am]time is wrong, print it and 13736 not st.st[am]time. 13737 137382002-04-30 Bruno Haible <bruno@clisp.org> 13739 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>. 13743 137442002-12-11 Roland McGrath <roland@redhat.com> 13745 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. 13749 137502002-12-11 Ulrich Drepper <drepper@redhat.com> 13751 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 13757 mutex_init calls. 13758 (arena_get2): Don't look at return value of mutex_lock. 13759 137602002-12-11 Roland McGrath <roland@redhat.com> 13761 13762 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone 13763 elf-init.o instead of compiling a PIC version. 13764 137652002-12-11 Bruno Haible <bruno@clisp.org> 13766 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. 13772 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 13779 internal_function. 13780 13781 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration. 13782 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration. 13783 137842002-07-13 Bruno Haible <bruno@clisp.org> 13785 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>. 13790 137912002-04-27 Bruno Haible <bruno@clisp.org> 13792 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. 13804 138052002-01-02 Bruno Haible <bruno@clisp.org> 13806 13807 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl. 13808 138092001-04-30 Bruno Haible <bruno@clisp.org> 13810 13811 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide 13812 default macro definitions. Needed for mingw32. 13813 138142002-12-10 Ulrich Drepper <drepper@redhat.com> 13815 13816 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply 13817 __builtin_constant_p to macro parameter. 13818 13819 * sysdeps/generic/sigpause.c: Define all functions as weak. 13820 * sysdeps/posix/sigpause.c: Likewise. 13821 13822 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of 13823 type size_t. 13824 138252002-12-10 Jakub Jelinek <jakub@redhat.com> 13826 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. 13830 13831 * include/libc-symbols.h: Fix a comment typo. 13832 13833 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias. 13834 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend): 13835 Likewise. 13836 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend): 13837 Likewise. 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. 13844 138452002-12-10 Roland McGrath <roland@redhat.com> 13846 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 13850 around xref to it. 13851 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. 13858 138592002-12-09 Jakub Jelinek <jakub@redhat.com> 13860 13861 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if 13862 defined. 13863 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New 13864 function. 13865 (EXTRA_LD_ENVVARS): Use it. 13866 (DL_OSVERSION_INIT): Define. 13867 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux 13868 dl-librecon.h. 13869 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init. 13870 138712002-12-10 Ulrich Drepper <drepper@redhat.com> 13872 13873 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2. 13874 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. 13879 138802002-12-09 Richard Henderson <rth@redhat.com> 13881 13882 * csu/abi-note.S: Use .p2align, not .align. 13883 138842002-12-09 Ulrich Drepper <drepper@redhat.com> 13885 13886 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and 13887 __libc_select aliases. 13888 13889 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo 13890 alias. 13891 13892 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias. 13893 13894 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias. 13895 13896 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias. 13897 13898 * sysdeps/unix/syscalls.list: Define __libc_select alias. 13899 13900 * sysdeps/posix/waitid.c: Define __libc_waitid alias. 13901 13902 * sysdeps/posix/sigpause.c: Define __libc_sigpause and 13903 __libc___xpg_sigpause aliases. 13904 13905 * sysdeps/generic/pselect.c: Define __libc_pselect alias. 13906 13907 * misc/error.c: Remove use of USE_IN_LIBIO. 13908 139092002-12-08 Roland McGrath <roland@redhat.com> 13910 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. 13933 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. 13938 139392001-10-20 Paul Eggert <eggert@twinsun.com> 13940 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. 13950 139512002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca> 13952 13953 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define. 13954 139552002-12-08 Ulrich Drepper <drepper@redhat.com> 13956 13957 * scripts/output-format.sed: Fix bug in one of the s expressions 13958 which used / for one too many things. 13959 13960 * include/unistd.h: Declare __libc_close. 13961 139622002-12-07 Ulrich Drepper <drepper@redhat.com> 13963 13964 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define. 13965 139662002-12-07 Roland McGrath <roland@redhat.com> 13967 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. 13971 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. 13977 139782002-12-07 Ulrich Drepper <drepper@redhat.com> 13979 13980 * sysdeps/generic/libc-tls.c: Include <sys/param.h>. 13981 Reported by Art Haas <ahaas@airmail.net>. 13982 139832002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com> 13984 13985 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4. 13986 139872002-12-07 Jakub Jelinek <jakub@redhat.com> 13988 13989 * string/test-strncpy.c (do_random_tests): Improve test coverage. 13990 139912002-12-06 Ulrich Drepper <drepper@redhat.com> 13992 13993 * test-skeleton.c (timeout_handler): Allow expected signal to be 13994 SIGALRM. 13995 13996 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum. 13997 13998 * sysdeps/posix/raise.c: Add libc_hidden_def for raise. 13999 140002002-12-07 Jakub Jelinek <jakub@redhat.com> 14001 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>. 14005 140062002-12-06 Ulrich Drepper <drepper@redhat.com> 14007 14008 * sysdeps/generic/libc-tls.c: Undo last patch. 14009 14010 * include/wctype.h: Define iswalnum with libc_hidden_proto. 14011 14012 * include/signal.h: Define raise with libc_hidden_proto. 14013 14014 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and 14015 __execve instead of snprintf and execve. 14016 14017 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double 14018 again a bit. 14019 140202002-12-06 Jakub Jelinek <jakub@redhat.com> 14021 14022 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs. 14023 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC. 14024 140252002-12-06 Ulrich Drepper <drepper@redhat.com> 14026 14027 * misc/syslog.c (log_cleanup): New function. 14028 (openlog): Use log_cleanup instead of __libc_mutex_unlock. 14029 (closelog): Likewise. 14030 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. 14042 140432002-12-06 Roland McGrath <roland@redhat.com> 14044 14045 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN. 14046 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. 14057 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. 14062 14063 * elf/dl-minimal.c (free): Clear the memory. 14064 (calloc): Just call malloc, knowing all memory it returns is cleared. 14065 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. 14072 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. 14077 140782002-12-05 Jakub Jelinek <jakub@redhat.com> 14079 14080 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change 14081 args to i:iipi. 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 14086 args to i:iiii. 14087 140882002-12-05 Roland McGrath <roland@redhat.com> 14089 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>. 14093 140942002-12-04 Roland McGrath <roland@redhat.com> 14095 14096 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie 14097 on _nl_current_LC_* variables. 14098 140992002-12-05 Ulrich Drepper <drepper@redhat.com> 14100 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. 14103 141042002-12-04 Ulrich Drepper <drepper@redhat.com> 14105 14106 * po/be.po: New file. 14107 14108 * argp/Makefile (tests): Add tst-argp1. 14109 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. 14117 141182002-12-04 Roland McGrath <roland@redhat.com> 14119 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. 14123 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>. 14127 14128 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB 14129 alignment when initializing the DTV entry. 14130 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. 14139 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. 14148 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. 14153 14154 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if 14155 [SHARED]. 14156 14157 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden. 14158 (_dl_determine_tlsoffset): Likewise. 14159 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. 14165 141662002-12-03 Ulrich Drepper <drepper@redhat.com> 14167 14168 * manual/texinfo.tex: Update from latest upstream version. 14169 141702002-12-03 Roland McGrath <roland@redhat.com> 14171 14172 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS 14173 area surplus in calculation for sbrk call. 14174 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. 14181 141822002-12-03 Andreas Jaeger <aj@suse.de> 14183 14184 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. 14185 141862002-12-03 Ulrich Drepper <drepper@redhat.com> 14187 14188 * sysdeps/posix/system.c (do_system): Make signal handler 14189 installation thread safe. 14190 141912002-12-02 Roland McGrath <roland@redhat.com> 14192 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. 14198 141992002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca> 14200 14201 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both 14202 bits of RM are cleared. 14203 142042002-12-02 Roland McGrath <roland@redhat.com> 14205 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. 14213 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. 14220 142212002-11-30 Bruno Haible <bruno@clisp.org> 14222 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 14227 __BUILTIN_TRANS. 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 14237 btowc_fct field. 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. 14289 142902002-12-02 Ulrich Drepper <drepper@redhat.com> 14291 14292 * po/fi.po: Update from translation team. 14293 142942002-12-01 Roland McGrath <roland@redhat.com> 14295 14296 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition 14297 testing getdents64 return value. 14298 14299 * scripts/versions.awk: Don't pass -n flag to sort command. 14300 14301 * posix/bug-regex13.c: Include <string.h>. 14302 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>. 14307 14308 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if 14309 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero. 14310 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. 14313 14314 * include/link.h: Comment typo fix. 14315 143162002-12-01 Roland McGrath <roland@frob.com> 14317 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. 14322 143232002-11-28 Ulrich Drepper <drepper@redhat.com> 14324 14325 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which 14326 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT. 14327 143282002-11-28 Jakub Jelinek <jakub@redhat.com> 14329 14330 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to 14331 USE___THREAD. 14332 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid 14333 "=v" constraints. 14334 143352002-11-28 Ulrich Drepper <drepper@redhat.com> 14336 14337 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's 14338 branch prediction buffers by using unpaired call/ret. 14339 143402002-11-27 Ulrich Drepper <drepper@redhat.com> 14341 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. 14345 143462002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com> 14347 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 14351 of malloc failure. 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 14369 optimization. 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. 14394 143952002-11-25 Ulrich Drepper <drepper@redhat.com> 14396 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. 14401 144022002-11-25 Roland McGrath <roland@redhat.com> 14403 14404 * inet/test-ifaddrs.c (main: addr_string): Handle null SA. 14405 Grok AF_LINK if defined. 14406 From Momchil Velikov <velco@fadata.bg>. 14407 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>. 14411 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>. 14416 14417 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>. 14418 14419 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h> 14420 and <fpu_control.h>. 14421 144222002-11-24 Ulrich Drepper <drepper@redhat.com> 14423 14424 * elf/elf.h (EM_ST19): Fix typo. 14425 144262002-11-25 Jakub Jelinek <jakub@redhat.com> 14427 14428 * include/errno.h (__set_errno): Define as errno = val 14429 unconditionally. 14430 144312002-11-24 Roland McGrath <roland@redhat.com> 14432 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>. 14436 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]. 14442 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>. 14449 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>. 14455 14456 * configure.in: Skip AUTOCONF check under --without-cvs. 14457 * configure: Regenerated. 14458 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. 14462 144632002-11-24 Andreas Schwab <schwab@suse.de> 14464 14465 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall 14466 with six arguments. 14467 144682002-11-19 Jim Meyering <jim@meyering.net> 14469 14470 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare 14471 as `static'. 14472 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'. 14473 144742002-11-23 Roland McGrath <roland@redhat.com> 14475 14476 * scripts/abilist.awk: Avoid strtonum function, not there in mawk. 14477 Just produce hex output for datum sizes. 14478 14479 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp. 14480 Reported by Luca Barbieri <ldb@ldb.ods.org>. 14481 144822002-11-20 Steven Munroe <sjmunroe@us.ibm.com> 14483 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. 14493 14494 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to 14495 obtain lowest address for profiling in __monstartup call. 14496 144972002-11-21 Roland McGrath <roland@redhat.com> 14498 14499 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant 14500 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)). 14501 14502 * locale/localeinfo.h (struct locale_data): Revert last change. 14503 14504 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it. 14505 From Ian Wienand <ianw@gelato.unsw.edu.au>. 14506 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>. 14511 145122002-11-21 Roland McGrath <roland@frob.com> 14513 14514 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set 14515 __libc_multiple_libcs here. Call __setfpucw. 14516 145172002-11-21 Ulrich Drepper <drepper@redhat.com> 14518 14519 * elf/Makefile (tests): Don't run test-arrayX tests for now. 14520 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. 14524 145252002-11-20 Andreas Jaeger <aj@suse.de> 14526 14527 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT): 14528 We pass struct ucontext on x86-64. 14529 (GET_PC): Adjust. 14530 (GET_FRAME): Adjust. 14531 (GET_STACK): Adjust. 14532 145332002-11-20 Roland McGrath <roland@redhat.com> 14534 14535 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further 14536 conditionalize [! DO_VERSIONING] #error. 14537 14538 * scripts/abilist.awk: Grok function descriptor symbols. 14539 14540 * intl/tst-gettext.c (main): Check return values from setlocale. 14541 Add necessary unsetenv's to make LANG=existing-locale check work. 14542 14543 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally, 14544 so aborted prior runs don't confuse things. 14545 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. 14549 14550 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES 14551 value. 14552 145532002-11-20 Ulrich Drepper <drepper@redhat.com> 14554 14555 * elf/tls-macros.h: Add IA-64 definitions. 14556 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>. 14557 14558 * iconv/Makefile (tests): Add tst-iconv4. 14559 * iconv/tst-iconv4.c: New file. 14560 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. 14569 14570 * iconv/loop.c (LOOPFCT): First test for empty input then for full 14571 output buffer. 14572 14573 * inet/getnameinfo.c: Use extend_alloca where appropriate. 14574 * sysdeps/posix/getaddrinfo.c: Likewise. 14575 14576 * include/alloca.h (extend_alloca): New define. Based on stack 14577 direction it'll try to append to the previouls allocated buffer. 14578 145792002-11-07 Thorsten Kukuk <kukuk@suse.de> 14580 14581 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set, 14582 use the same service for AF_INET and AF_INET6. 14583 145842002-11-19 Ulrich Drepper <drepper@redhat.com> 14585 14586 * intl/localealias.c (read_alias_file): Use only about 400 bytes 14587 of stack space instead of 16k. 14588 145892002-11-18 Wolfram Gloger <wg@malloc.de> 14590 14591 * malloc/arena.c 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>. 14595 145962002-11-19 Roland McGrath <roland@redhat.com> 14597 14598 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and 14599 sched_setaffinity. 14600 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. 14605 146062002-11-19 Ulrich Drepper <drepper@redhat.com> 14607 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 14613 to do_dlopen. 14614 (struct do_dlopen_args): Add new field mode. 14615 (do_dlopen): Pass mode from parameter structure to _dl_open. 14616 146172002-11-11 Randolf Chung <tausq@debian.org> 14618 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. 14622 14623 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated). 14624 14625 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable. 14626 Set -mdisable-fpregs for this file. 14627 146282002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca> 14629 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. 14634 14635 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: 14636 Define mcontext_t as a sigcontext. 14637 146382002-11-18 Roland McGrath <roland@redhat.com> 14639 14640 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)). 14641 Free memory in `last_result' if it was used. 14642 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. 14647 14648 * manual/pattern.texi (Variable Substitution): Fix # and ## examples. 14649 146502002-11-17 Ulrich Drepper <drepper@redhat.com> 14651 14652 * manual/pattern.texi (Wordexp Example): Fix sample code. 14653 14654 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the 14655 childs stack which will be loaded into the %esi register. 14656 146572002-11-14 Paul Eggert <eggert@twinsun.com> 14658 14659 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer 14660 overflow when skipping the question part and when unpacking aliases. 14661 146622002-11-15 Roland McGrath <roland@redhat.com> 14663 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. 14667 146682002-11-15 Jakub Jelinek <jakub@redhat.com> 14669 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. 14672 146732002-11-15 Roland McGrath <roland@redhat.com> 14674 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. 14679 14680 * stdlib/canonicalize.c (__realpath): Check for malloc failure. 14681 From Dmitry V. Levin <ldv@altlinux.org>. 14682 146832002-11-14 Roland McGrath <roland@redhat.com> 14684 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. 14692 14693 * Makerules ($(common-objpfx)%.make): New pattern rule. 14694 * tls.make.c: New file. 14695 * Makefile (distribute): Add it. 14696 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 14707 link-time visible. 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. 14715 147162002-11-14 Jakub Jelinek <jakub@redhat.com> 14717 14718 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now. 14719 * resolv/Versions (h_errno, _res): Likewise. 14720 147212002-11-14 Roland McGrath <roland@redhat.com> 14722 14723 * Makerules (%.dynsym): Remove $(objpfx) from target and dep. 14724 (%.symlist): Likewise. 14725 147262002-11-13 Roland McGrath <roland@redhat.com> 14727 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. 14734 14735 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP. 14736 * configure: Regenerated. 14737 * config.make.in (OBJDUMP): New variable, substituted by configure. 14738 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. 14746 14747 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space 14748 for the new TCB. 14749 147502002-11-13 Andreas Jaeger <aj@suse.de> 14751 14752 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility 14753 attribute. 14754 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. 14755 147562002-11-11 Paul Eggert <eggert@twinsun.com> 14757 14758 * manual/crypt.texi (Cryptographic Functions): Mention that 14759 the MD5 one-way algorithm is compatible with BSD's. 14760 147612002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com> 14762 14763 * posix/regex_internal.c (re_string_skip_chars): Also return the last 14764 wide character. 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. 14771 147722002-11-12 Andreas Jaeger <aj@suse.de> 14773 14774 * sysdeps/x86_64/strchr.S: Don't use one register for two 14775 purposes, this fixes a bug noticed by test-strchr.c. 14776 14777 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer 14778 correctly. 14779 147802002-11-12 Roland McGrath <roland@redhat.com> 14781 14782 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] 14783 (_G_IO_NO_BACKWARD_COMPAT): Define it. 14784 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 14788 testandset. 14789 From Ian Wienand <ianw@gelato.unsw.edu.au>. 14790 147912002-11-10 Roland McGrath <roland@redhat.com> 14792 14793 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos. 14794 Call fputs instead of fwprintf (simpler to follow in debugger). 14795 14796 * crypt/md5-crypt.c: Doc fix. 14797 14798 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at 14799 the beginning of generated target commands. 14800 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). 14808 14809 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h. 14810 148112002-11-10 Roland McGrath <roland@frob.com> 14812 14813 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ... 14814 * sysdeps/generic/bits/pthreadtypes.h: ... here. 14815 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. 14818 148192002-11-10 Ulrich Drepper <drepper@redhat.com> 14820 14821 * po/da.po: Update from translation team. 14822 148232002-11-10 Roland McGrath <roland@redhat.com> 14824 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). 14828 148292002-11-10 Andreas Jaeger <aj@suse.de> 14830 14831 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add 14832 REG_OLDMASK and REG_CR2 to synch with kernel header. 14833 (NGREG): Increase. 14834 14835 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict 14836 aliasing problem. 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. 14849 148502002-11-09 Marcus Brinkmann <marcus@gnu.org> 14851 14852 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one 14853 error in range calculation. 14854 148552002-10-09 Jakub Jelinek <jakub@redhat.com> 14856 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. 14862 148632002-10-08 Roland McGrath <roland@redhat.com> 14864 14865 * string/test-string.h (test_init): Fill BUF1 and BUF2 with 14866 nonzero characters. 14867 148682002-09-22 H.J. Lu <hjl@gnu.org> 14869 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. 14873 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, 14878 148792002-11-08 Jakub Jelinek <jakub@redhat.com> 14880 14881 * posix/bug-regex13.c (tests): Add new test. 14882 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 *)))). 14899 149002002-11-08 Roland McGrath <roland@redhat.com> 14901 14902 * sysdeps/ia64/elf/configure.in: Add TLS check. 14903 From Ian Wienand <ianw@cse.unsw.edu.au>. 14904 * sysdeps/ia64/elf/configure: Regenerated. 14905 149062002-11-07 Roland McGrath <roland@redhat.com> 14907 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. 14912 149132002-11-07 Richard Henderson <rth@redhat.com> 14914 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. 14922 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. 14942 14943 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect. 14944 Kill argument registers across the inline syscall. 14945 14946 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args. 14947 14948 * linuxthreads/sysdeps/alpha/tls.h: New file. 14949 * sysdeps/alpha/dl-tls.h: New file. 14950 149512002-10-29 David Mosberger <davidm@hpl.hp.com> 14952 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. 14957 149582002-03-12 H.J. Lu <hjl@gnu.org> 14959 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. 14974 149752002-10-28 David Mosberger <davidm@hpl.hp.com> 14976 14977 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order. 14978 Don't add L->l_addr to array entry values. 14979 149802002-11-07 Jakub Jelinek <jakub@redhat.com> 14981 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. 15006 150072002-11-06 Ulrich Drepper <drepper@redhat.com> 15008 15009 * posix/regcomp.c: Use tabs instead of spaces. 15010 * posix/regexec.c: Likewise. 15011 * posix/regex_internal.h: Likewise. 15012 15013 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb. 15014 150152002-11-06 Jakub Jelinek <jakub@redhat.com> 15016 15017 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated 15018 here. 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. 15022 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. 15029 150302002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com> 15031 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 15038 error conditions. 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. 15057 150582002-11-06 Roland McGrath <roland@redhat.com> 15059 15060 * sysdeps/unix/sysv/linux/mips/configure.in: File removed. 15061 * sysdeps/unix/sysv/linux/mips/configure: Likewise. 15062 15063 * configure.in: Add checks on as and ld for binutils 2.13 or later. 15064 * configure: Regenerated. 15065 150662002-11-06 Ulrich Drepper <drepper@redhat.com> 15067 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 15071 related data. 15072 (regfree): Add free_dfa_content. 15073 (re_compile_internal): If any of the called functions fails free 15074 all dfa related memory. 15075 150762002-11-05 Ulrich Drepper <drepper@redhat.com> 15077 15078 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent 15079 warnings from the kernel headers. 15080 150812002-11-05 Roland McGrath <roland@redhat.com> 15082 15083 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump. 15084 From Johannes Stezenbach <js@convergence.de>. 15085 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. 15091 150922002-11-05 Ulrich Drepper <drepper@redhat.com> 15093 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 15096 __libc_freeres. 15097 150982002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp> 15099 15100 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only 15101 under [__USE_MISC || _ASM]. 15102 15103 * elf/elf.h: Remove the obsolete SH TLS relocations. 15104 151052002-11-05 Ulrich Drepper <drepper@redhat.com> 15106 15107 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero. 15108 151092002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 15110 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 15115 and __NR_pwrite64. 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 15121 INLINE_SYSCALL. 15122 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise. 15123 15124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): 15125 Update clobber list and add a comment about the syscall ABI. 15126 15127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64, 15128 s_pwrite64, s_ftruncate, s_truncate): Re-add. 15129 151302002-11-05 Jakub Jelinek <jakub@redhat.com> 15131 15132 * iconv/gconv_dl.c (free_mem): Clear loaded. 15133 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's 15134 cleanup if any. 15135 151362002-11-05 Ulrich Drepper <drepper@redhat.com> 15137 15138 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>. 15139 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 15146 prototypes. 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. 15162 151632002-11-04 Roland McGrath <roland@redhat.com> 15164 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. 15179 151802002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 15181 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 15188 syscall stubs. 15189 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 15193 and __NR_pread. 15194 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise. 15195 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64 15196 and __NR_pwrite. 15197 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise. 15198 151992002-11-03 Roland McGrath <roland@redhat.com> 15200 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. 15213 152142002-10-18 Bruno Haible <bruno@clisp.org> 15215 15216 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0. 15217 152182002-11-04 Ulrich Drepper <drepper@redhat.com> 15219 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 15222 buffer. 15223 15224 * sysdeps/unix/sysv/linux/fexecve.c: New file. 15225 15226 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when 15227 wide oriented streams are used. 15228 15229 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the 15230 service hasn't been used [PR libc/4744]. 15231 15232 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION. 15233 Reported by Miloslav Trmač <mitr@volny.cz> [PR libc/4766]. 15234 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>. 15238 152392002-11-02 H.J. Lu <hjl@gnu.org> 15240 15241 * stdio-common/reg-printf.c: Include <stddef.h>. 15242 152432002-11-03 Ulrich Drepper <drepper@redhat.com> 15244 15245 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used. 15246 15247 * po/ca.po: Update from translation team. 15248 * po/es.po: Likewise. 15249 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. 15253 152542002-11-02 Roland McGrath <roland@redhat.com> 15255 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>. 15259 15260 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file. 15261 152622002-11-02 Roland McGrath <roland@redhat.com> 15263 15264 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r 15265 description to be clearer and to say that *RESULT is set to ENTRY. 15266 152672002-10-30 Jakub Jelinek <jakub@redhat.com> 15268 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 15272 error exit. 15273 152742002-10-29 Daniel Jacobowitz <drow@mvista.com> 15275 15276 * crypt/crypt_util.c (__init_des_r): Initialize current_salt 15277 and current_saltbits. 15278 152792002-11-02 Roland McGrath <roland@redhat.com> 15280 15281 * stdio-common/reg-printf.c: Include <stdlib.h>. 15282 152832002-11-02 H.J. Lu <hjl@gnu.org> 15284 15285 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set 15286 caller to EXTRA instead of execve. 15287 152882002-11-01 Roland McGrath <roland@redhat.com> 15289 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. 15293 152942002-10-31 Roger Sayle <roger@eyesopen.com> 15295 15296 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q): 15297 New macros. 15298 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise. 15299 15300 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST 15301 without defining FP_ROUNDMODE. 15302 153032002-10-29 Jakub Jelinek <jakub@redhat.com> 15304 15305 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove. 15306 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and 15307 declare_symbol. 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. 15313 153142002-11-01 Jakub Jelinek <jakub@redhat.com> 15315 15316 * sysdeps/ia64/strncpy.S: Fix recovery code. 15317 153182002-10-30 Jakub Jelinek <jakub@redhat.com> 15319 15320 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 15321 New macros. 15322 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove 15323 text_set_element. 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. 15345 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. 15363 (freeres): Remove. 15364 153652002-10-25 Jakub Jelinek <jakub@redhat.com> 15366 15367 * include/libc-symbols.h (libc_freeres_ptr): New macro. 15368 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using 15369 symbol_set_define. 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 15413 libc_freeres_ptr. 15414 (free_mem): Remove. 15415 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add 15416 libc_freeres_ptr. 15417 (free_mem): Remove. 15418 154192002-10-30 Jakub Jelinek <jakub@redhat.com> 15420 15421 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias 15422 instead of duplicating the whole function in libc. 15423 154242002-10-31 Roland McGrath <roland@redhat.com> 15425 15426 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32): 15427 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>. 15428 154292002-10-30 Jakub Jelinek <jakub@redhat.com> 15430 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. 15435 154362002-10-29 Andreas Schwab <schwab@suse.de> 15437 15438 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not 15439 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>. 15440 154412002-10-25 Roland McGrath <roland@redhat.com> 15442 15443 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change. 15444 * sysdeps/unix/sysv/linux/configure: Regenerated. 15445 15446 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from 15447 _dl_starting_up decl. 15448 154492002-10-20 H.J. Lu <hjl@gnu.org> 15450 15451 * sysdeps/unix/sysv/linux/configure.in: Don't check 15452 /lib/modules/`uname -r`/build/include for kernel headers if 15453 cross compiling. 15454 * sysdeps/unix/sysv/linux/configure: Regenerated. 15455 154562002-10-25 Roland McGrath <roland@redhat.com> 15457 15458 * math/math.h (M_LOG2El): Correct the value. 15459 From Stephen L Moshier <steve@moshier.net>. 15460 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. 15466 154672002-10-25 Roland McGrath <roland@redhat.com> 15468 15469 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and 15470 implement SV_RESETHAND by translating it to SA_RESETHAND. 15471 154722002-10-23 Alexandre Oliva <aoliva@redhat.com> 15473 15474 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation 15475 type on ELF64 platforms. 15476 154772002-10-24 Ulrich Drepper <drepper@redhat.com> 15478 15479 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF. 15480 15481 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT. 15482 154832002-10-24 Jakub Jelinek <jakub@redhat.com> 15484 15485 * elf/dl-misc.c: Include <sysdep.h>. 15486 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up. 15487 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 15498 dl-sysdep.h. 15499 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant. 15500 (__INTERNAL_SYSCALL_STRING): Define. 15501 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include 15502 dl-sysdep.h. 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): 15508 New macros. 15509 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3, 15510 inline_syscall4, inline_syscall5, inline_syscall6): Add string 15511 argument. 15512 155132002-10-24 Roland McGrath <roland@redhat.com> 15514 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. 15525 15526 * libio/bug-wfflush.c: New file. 15527 * libio/Makefile (tests): Add bug-wfflush. 15528 155292002-10-23 Roland McGrath <roland@redhat.com> 15530 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>. 15537 155382002-10-24 Jakub Jelinek <jakub@redhat.com> 15539 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. 15548 155492002-10-23 Roland McGrath <roland@redhat.com> 15550 15551 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output 15552 target, so we don't touch it when the link fails. 15553 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. 15558 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>. 15563 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. 15572 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. 15578 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. 15597 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. 15604 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. 15611 156122002-10-22 Ulrich Drepper <drepper@redhat.com> 15613 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. 15616 156172002-10-22 Jakub Jelinek <jakub@redhat.com> 15618 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. 15625 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>. 15629 156302002-10-21 Andreas Schwab <schwab@suse.de> 15631 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. 15635 156362002-10-21 Roland McGrath <roland@redhat.com> 15637 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. 15641 15642 * elf/dl-open.c (dl_open_worker): Fix loop searching for 15643 dtv_slotinfo_list element containing new modules' l_tls_modid. 15644 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. 15651 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. 15654 156552002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com> 15656 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. 15661 156622002-10-21 Ulrich Drepper <drepper@redhat.com> 15663 15664 * csu/gmon-start.c: Pretty printing. 15665 156662002-10-19 Art Haas <ahaas@neosoft.com> 15667 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. 15672 156732002-10-19 Roland McGrath <roland@redhat.com> 15674 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. 15680 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. 15694 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. 15738 157392002-10-19 Bruno Haible <bruno@clisp.org> 15740 15741 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file. 15742 157432002-10-18 Roland McGrath <roland@redhat.com> 15744 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. 15750 157512002-10-18 Art Haas <ahaas@neosoft.com> 15752 15753 * configure.in: Remove remaining AC_FD_CC macros, and replace 15754 AC_FD_MSG with AS_MESSAGE_FD. 15755 157562002-10-18 Roland McGrath <roland@redhat.com> 15757 15758 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix 15759 typos: VALUE -> FINALADDR. 15760 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. 15766 15767 * configure.in (libc_link_dests, libc_link_sources): Remove these 15768 variables and the AC_LINK_FILES call. 15769 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. 15774 157752002-10-07 Roland McGrath <roland@redhat.com> 15776 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. 15788 157892002-10-18 Jeff Bailey <jbailey@gnu.org> 15790 15791 * configure.in: Replace obsolete AC_OUTPUT syntax with 15792 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio. 15793 15794 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for 15795 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE. 15796 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. 15802 15803 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax. 15804 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. 15817 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. 15821 158222002-10-18 Roland McGrath <roland@redhat.com> 15823 15824 * configure.in: Remove bogus echo included in 15825 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change. 15826 * configure: Regenerated. 15827 158282002-10-18 Jakub Jelinek <jakub@redhat.com> 15829 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. 15840 158412002-10-17 Roland McGrath <roland@redhat.com> 15842 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. 15848 15849 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE]) 15850 and AC_PROVIDE([_AS_CR_PREPARE]). 15851 15852 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]). 15853 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]). 15854 15855 * elf/dl-support.c: Move _dl_tls_* variables to ... 15856 * sysdeps/generic/libc-tls.c: ... here. 15857 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. 15861 158622002-10-07 Andreas Schwab <schwab@suse.de> 15863 15864 * aclocal.m4: Fix for autoconf 2.53. 15865 * configure.in: Likewise. Require autoconf 2.53. 15866 158672002-10-08 Richard Henderson <rth@redhat.com> 15868 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. 15873 158742002-10-08 Aldy Hernandez <aldyh@redhat.com> 15875 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, 15901 __sim_round_mode. 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. 15912 159132002-10-06 Jakub Jelinek <jakub@redhat.com> 15914 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 15919 __builtin_expect. 15920 159212002-10-15 Jakub Jelinek <jakub@redhat.com> 15922 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 15943 too small. 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 15951 of res_nsearch. 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. 15959 159602002-10-17 Roland McGrath <roland@redhat.com> 15961 15962 * configure.in: Grok --without-__thread and disable HAVE___THREAD. 15963 * configure: Regenerated. 15964 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. 15968 159692002-10-17 Ulrich Drepper <drepper@redhat.com> 15970 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. 15975 159762002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com> 15977 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. 15982 159832002-10-17 Roland McGrath <roland@redhat.com> 15984 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). 15993 15994 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash 15995 when closing a partially-initialized object. 15996 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. 15999 16000 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F)) 16001 instead of $(libof-$<). 16002 160032002-10-16 Roland McGrath <roland@redhat.com> 16004 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. 16018 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. 16028 160292002-10-16 Jakub Jelinek <jakub@redhat.com> 16030 16031 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): 16032 Use __libc_errno only for libc itself. 16033 160342002-10-16 Andreas Jaeger <aj@suse.de> 16035 16036 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access. 16037 160382002-10-16 Ulrich Drepper <drepper@redhat.com> 16039 16040 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): 16041 Use __libc_errno only for libc itself. 16042 160432002-10-15 Roland McGrath <roland@redhat.com> 16044 Jakub Jelinek <jakub@redhat.com> 16045 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. 16058 160592002-10-15 Roland McGrath <roland@redhat.com> 16060 16061 * sysdeps/unix/sysv/linux/Makefile 16062 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d) 16063 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 16067 __setutent et al. 16068 16069 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if. 16070 * sysdeps/unix/sysv/linux/configure: Regenerated. 16071 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. 16087 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. 16101 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. 16112 161132002-10-15 Ulrich Drepper <drepper@redhat.com> 16114 16115 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL): 16116 Define for 2.4+ kernels. 16117 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. 16121 16122 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add 16123 support for reiserfs and xfs. 16124 16125 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for 16126 XFS link count. 16127 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC 16128 and XFS_LINK_MAX. 16129 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706]. 16130 161312002-10-16 Jakub Jelinek <jakub@redhat.com> 16132 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. 16141 (h_errno): Define. 16142 * resolv/res_libc.c (__libc_res): Add hidden alias to _res. 16143 (_res): Define. 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 16147 __thread. 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): 16152 Likewise. 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. 16157 161582002-10-15 Ulrich Drepper <drepper@redhat.com> 16159 16160 * timezone/asia: Update from tzdata2002d. 16161 * timezone/australasia: Likewise. 16162 * timezone/iso3166.tab: Likewise. 16163 * timezone/southamerica: Likewise. 16164 * timezone/zone-tab: Likewise. 16165 161662002-10-15 Roland McGrath <roland@redhat.com> 16167 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. 16170 161712002-10-14 Roland McGrath <roland@redhat.com> 16172 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. 16176 161772002-10-09 Jakub Jelinek <jakub@redhat.com> 16178 16179 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too. 16180 * sysdeps/unix/sysv/linux/configure: Rebuilt. 16181 161822002-10-14 Ulrich Drepper <drepper@redhat.com> 16183 16184 * po/sv.po: Update from translation team. 16185 161862002-10-12 H.J. Lu <hjl@gnu.org> 16187 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 *. 16194 161952002-10-14 Ulrich Drepper <drepper@redhat.com> 16196 16197 * dirent/scandir.c: Rearrange code a bit to reduce binary size. 16198 161992002-10-14 Jakub Jelinek <jakub@redhat.com> 16200 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. 16204 162052002-10-13 Jakub Jelinek <jakub@redhat.com> 16206 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): 16210 Likewise. 16211 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter): 16212 Likewise. 16213 162142002-10-14 Andreas Jaeger <aj@suse.de> 16215 16216 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by 16217 Guido Guenther <agx@sigxcpu.org>. 16218 162192002-10-14 Ulrich Drepper <drepper@redhat.com> 16220 16221 * po/sk.po: Update from translation team. 16222 162232002-09-26 Roland McGrath <roland@redhat.com> 16224 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). 16229 162302002-10-13 Roland McGrath <roland@frob.com> 16231 16232 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command. 16233 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. 16238 16239 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid, 16240 setresgid): Declare them. 16241 * NEWS: Mention it. 16242 * include/unistd.h 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. 16288 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. 16299 16300 * hurd/errno.c: Renamed to ... 16301 * hurd/errno-loc.c: ... this. 16302 * hurd/Makefile (routines): errno -> errno-loc 16303 163042002-10-13 Ulrich Drepper <drepper@redhat.com> 16305 16306 * po/de.po: Update from translation team. 16307 16308 * MakeTAGS: Add -E flag to xgettext runs. 16309 163102002-10-12 Ulrich Drepper <drepper@redhat.com> 16311 16312 * po/fr.po: Update from translation team. 16313 16314 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems. 16315 Optimize a bit for use in glibc. 16316 163172002-10-12 Roland McGrath <roland@redhat.com> 16318 16319 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds. 16320 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one. 16321 163222002-10-12 Ulrich Drepper <drepper@redhat.com> 16323 16324 * po/sv.po: Update from translation team. 16325 163262002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com> 16327 16328 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling 16329 OP_CONTEXT_NODE. 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 16343 warning. 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 16358 OP_CONTEXT_NODE. 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 16365 OP_CONTEXT_NODE. 16366 (update_cur_sifted_state): Append some if clause to avoid redundant 16367 call. 16368 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a 16369 back reference. 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. 16380 163812002-10-12 Ulrich Drepper <drepper@redhat.com> 16382 16383 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use 16384 __builtin_expect. 16385 163862002-10-11 Ulrich Drepper <drepper@redhat.com> 16387 16388 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily 16389 duplicated variable c. 16390 16391 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL 16392 if possible. 16393 16394 * sysdeps/unix/sysv/linux/i386/sysdep.h 16395 (INTERNAL_SYSCALL_ERROR_P): New define. 16396 (INTERNAL_SYSCALL_ERRNO): Likewise. 16397 16398 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): 16399 Add hack to prevent the compiler from clobbering the signal context. 16400 164012002-10-11 Roland McGrath <roland@redhat.com> 16402 16403 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): 16404 Fix typos. 16405 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. 16409 16410 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add 16411 missing labels and ; from last change. 16412 16413 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole 16414 number literals, so they are doubles instead of ints. 16415 164162002-10-09 Roland McGrath <roland@redhat.com> 16417 16418 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional 16419 changed from [USE_TLS && HAVE___THREAD]. 16420 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): 16426 Likewise. 16427 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]. 16431 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. 16435 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. 16444 164452002-10-07 Roland McGrath <roland@redhat.com> 16446 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. 16450 16451 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro. 16452 (INLINE_SYSCALL): Use that. 16453 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. 16465 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. 16470 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. 16483 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. 16506 16507 * manual/search.texi (Tree Search Function, Hash Search Function): 16508 Mention search.h clearly. 16509 165102002-10-05 Roland McGrath <roland@redhat.com> 16511 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. 16520 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. 16526 16527 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute. 16528 Return the status instead of calling exit. 16529 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. 16534 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. 16540 165412002-09-30 Roland McGrath <roland@redhat.com> 16542 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. 16554 165552003-05-20 Jakub Jelinek <jakub@redhat.com> 16556 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. 16564 165652002-10-11 Roland McGrath <roland@redhat.com> 16566 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. 16569 16570 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the 16571 proper set of no-op insn prefixes. 16572 16573 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members. 16574 165752002-10-11 Ulrich Drepper <drepper@redhat.com> 16576 16577 * sysdeps/unix/sysv/linux/execve.c: Don't try calling 16578 __pthread_kill_other_threads_np. 16579 16580 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls. 16581 165822002-10-08 Roland McGrath <roland@redhat.com> 16583 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. 16588 165892002-10-07 Roland McGrath <roland@frob.com> 16590 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. 16594 165952002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 16596 16597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): 16598 Add all necessary register outputs for syscall-clobbered registers. 16599 166002002-10-02 David Mosberger <davidm@hpl.hp.com> 16601 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. 16608 166092002-10-03 Roland McGrath <roland@frob.com> 16610 16611 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add 16612 clobbers to asm. 16613 166142002-10-10 Andreas Jaeger <aj@suse.de> 16615 16616 * sysdeps/x86_64/_mcount.S: Restore correct registers. 16617 166182002-10-10 Ulrich Drepper <drepper@redhat.com> 16619 16620 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect. 16621 166222002-10-09 Ulrich Drepper <drepper@redhat.com> 16623 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 16627 rtld_hidden_def. 16628 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init. 16629 16630 * version.h (VERSION): Bump to 2.3.1. 16631 16632 * Make-dist: Add back one of the tar invocations removed before. 16633 16634 * stdlib/Makefile (distribute): Add allocalim.h. 16635 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>. 16639 16640 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;. 16641 Reported by edwardsg@sgi.com [PR libc/4678]. 16642 16643 * Versions.def (libc): Add GLIBC_2.3.1. 16644 (libpthread): Add GLIBC_2.3.1. 16645 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 16650 libc_hidden_def. 16651 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise. 16652 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise. 16653 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 16660 __libc_msgsnd. 16661 16662 * include/sys/uio.h: Declare __libc_readv and __libc_writev. 16663 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and 16664 __libc_writev. 16665 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make 16666 old name an alias. 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 16671 old name an alias. 16672 * sysdeps/posix/writev.c: Likewise 16673 * sysdeps/unix/sysv/aix/writev.c: Likewise. 16674 * sysdeps/unix/sysv/linux/writev.c: Likewise. 16675 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 16679 name an alias. 16680 * sysdeps/posix/waitid.c: Likewise. 16681 * sysdeps/unix/sysv/aix/waitid.c: Likewise. 16682 16683 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall. 16684 166852002-10-07 Jakub Jelinek <jakub@redhat.com> 16686 16687 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New 16688 prototypes. 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 16703 version. 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. 16711 167122002-10-08 Roland McGrath <roland@redhat.com> 16713 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. 16717 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. 16728 167292002-10-08 Ulrich Drepper <drepper@redhat.com> 16730 16731 * Make-dist (dist): Cleanup a bit. We are not interested in the 16732 14 char filename limit anymore. Remove intermediate files and 16733 symlinks. 16734 167352002-10-05 Ulrich Drepper <drepper@redhat.com> 16736 16737 * po/sk.po: Update from translation team. 16738 * po/tr.po: Likewise. 16739 * po/gl.po: Likewise. 16740 167412002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> 16742 16743 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax. 16744 167452002-10-03 Ulrich Drepper <drepper@redhat.com> 16746 16747 * version.h (RELEASE): Change to stable. 16748 167492002-10-03 Jakub Jelinek <jakub@redhat.com> 16750 16751 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit, 16752 __syscall_exit_group): New prototypes. 16753 167542002-10-03 Ulrich Drepper <drepper@redhat.com> 16755 16756 * glibc 2.3 released. 16757 16758 16759See ChangeLog.13 for earlier changes. 16760