platform/upstream/linaro-glibc.git
20 years ago * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process ucontext...
Richard Henderson [Fri, 16 Jan 2004 05:04:59 +0000 (05:04 +0000)]
    * sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process         ucontext-offsets.sym.         * sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.         * sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.         * sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.

* sysdeps/unix/sysv/linux/alpha/Makefile [stdlib]: Process
ucontext-offsets.sym.
* sysdeps/unix/sysv/linux/alpha/getcontext.S: New file.
* sysdeps/unix/sysv/linux/alpha/makecontext.S: New file.
* sysdeps/unix/sysv/linux/alpha/setcontext.S: New file.
* sysdeps/unix/sysv/linux/alpha/swapcontext.S: New file.
* sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: New file.

2004-01-15  Richard Henderson  <rth@redhat.com>

20 years ago * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with ...
Richard Henderson [Fri, 16 Jan 2004 04:59:55 +0000 (04:59 +0000)]
    * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with         __syscall_, move nop inside, adjust users by +4.

2004-01-15  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Prefix stubs with
__syscall_, move nop inside, adjust users by +4.

20 years agoUpdate.
Ulrich Drepper [Fri, 16 Jan 2004 04:50:59 +0000 (04:50 +0000)]
Update.

2004-01-14  Steven Munroe  <sjmunroe@us.ibm.com>

* include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
(_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
(_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
symbols.
* sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
gen-as-const-headers.
* sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
* sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
Declare mcontext_t inline and include altivec state for 64-bit.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, and swapcontext.

* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
(__getcontext):  Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
(__makecontext): Use parm save area instead of compiler_dw to hold
context pointer.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
(__setcontext):  Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_swapcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
(SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.

2004-01-12  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
(__getcontext):  Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
(__makecontext): Upgrade to align for Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_makecontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
(__setcontext):  Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
(__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
(_UC_VSCR, _UC_VRSAVE): Define.
(_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
_FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.

20 years agoUpdate.
Ulrich Drepper [Fri, 16 Jan 2004 03:03:47 +0000 (03:03 +0000)]
Update.

2004-01-15  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c: Handle platforms with HP_TIMING_NONAVAIL defined.

20 years agoUpdate.
Ulrich Drepper [Fri, 16 Jan 2004 02:45:47 +0000 (02:45 +0000)]
Update.

2004-01-16  Alfred M. Szmidt  <ams@kemisten.nu>

* sysdeps/generic/dl-execstack.c (_dl_make_stack_executable): Adjust
parameter type.

20 years agoUpdate.
Ulrich Drepper [Thu, 15 Jan 2004 22:32:26 +0000 (22:32 +0000)]
Update.

* elf/elf.h: Fix typo in comment.

20 years agoUpdate.
Ulrich Drepper [Thu, 15 Jan 2004 19:59:44 +0000 (19:59 +0000)]
Update.

* sysdeps/generic/dl-sysdep.c: Initialize __libc_stack_end.

20 years agoUpdate.
Ulrich Drepper [Thu, 15 Jan 2004 18:04:12 +0000 (18:04 +0000)]
Update.

* elf/rtld.c: Initialize _dl_argv to allow aliasing.

20 years agoUpdate.
Ulrich Drepper [Thu, 15 Jan 2004 09:46:50 +0000 (09:46 +0000)]
Update.

2004-01-15  Ulrich Drepper  <drepper@redhat.com>

* resolv/resolv.h: Add RES_USEBSTRING.
* resolv/res_debug.c (p_option): Add handling for RES_USE_INET6,
RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING.
* resolv/res_init.c (res_setioptions): Recognize ip6-bytestring.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform
bytestring IPv6 lookup with RES_USEBSTRING option is selected.
Otherwise use the two nibble formats.

20 years agoUpdate.
Ulrich Drepper [Thu, 15 Jan 2004 06:38:27 +0000 (06:38 +0000)]
Update.

2004-01-14  Ulrich Drepper  <drepper@redhat.com>

* configure.in: Define HAVE_Z_RELRO if the linker supports -z relro.
* config.h.in: Add entry for HAVE_Z_RELRO.
* include/libc-symbols.h: Define attribute_relro.
* elf/dl-load.c: Add attribute_relro to env_path_list, capstr, ncapstr,
max_capstrlen, and max_dirnamelen definitions.
* elf/rtld.c: Add attribute_relro to _dl_argc, _dl_argv, _dl_skip_args,
load_time, start_time, library_path, preloadlist, version_info,
any_debug.
Remove rtld_total_time.  Make it a local variable.  Pass pointer to
it to print_statistics.  Change print_statistics accordingly.
* sysdeps/generic/dl-sysdep.c: Add attribute_relro to _dl_auxv.  Use
attribute_relro instead of explicitly assigning variable to the
.data.rel.ro section for __libc_enable_secure and __libc_stack_end.
* sysdeps/generic/ldsodefs.h: Declare __libc_stack_end, _dl_argc,
_dl_argv, _dl_argv_internal with attribute_relro.

20 years agoDefine HAVE_Z_RELRO if the linker supports -z relro.
Ulrich Drepper [Thu, 15 Jan 2004 06:26:14 +0000 (06:26 +0000)]
Define HAVE_Z_RELRO if the linker supports -z relro.

20 years ago* Makerules (gen-as-const): Don't silently continue on failure.
Roland McGrath [Thu, 15 Jan 2004 01:54:42 +0000 (01:54 +0000)]
* Makerules (gen-as-const): Don't silently continue on failure.

* login/utmp-private.h: Likewise.

20 years ago2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
Roland McGrath [Thu, 15 Jan 2004 01:54:31 +0000 (01:54 +0000)]
2004-01-13  Segher Boessenkool  <boessen@de.ibm.com>

* Makerules (gen-as-const): Don't silently continue on failure.

20 years agoDefine __libc_stack_end with rtld_hidden_data_def.
Ulrich Drepper [Wed, 14 Jan 2004 19:19:47 +0000 (19:19 +0000)]
Define __libc_stack_end with rtld_hidden_data_def.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 19:19:33 +0000 (19:19 +0000)]
Update.

2004-01-14  Steven Munroe  <sjmunroe@us.ibm.com>

* sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
rtld_hidden_data_def.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 18:41:22 +0000 (18:41 +0000)]
Update.

2004-01-14  Ulrich Drepper  <drepper@redhat.com>

* libio/libio.h: Add const to function tables types.
* libio/libioP.h: Likewise.
* /login/utmp-private.h: Likewise.
* libio/fileops.c: Add const to jump table variable definition.
* libio/genops.c: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/memstream.c: Likewise.
* libio/obprintf.c: Likewise.
* libio/oldfileops.c: Likewise.
* libio/oldiopopen.c: Likewise.
* libio/strops.c: Likewise.
* libio/vsnprintf.c: Likewise.
* libio/vswprintf.c: Likewise.
* libio/wfileops.c: Likewise.
* libio/wstrops.c: Likewise.
* login/getutent_r.c: Likewise.
* login/getutid_r.c Likewise.
* login/getutline_r.c: Likewise.
* sysdeps/generic/utmp_file.c: Likewise.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 08:51:21 +0000 (08:51 +0000)]
Update.

2004-01-14  Ulrich Drepper  <drepper@redhat.com>

* init.c (pthread_funtions): Make array const.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 05:38:11 +0000 (05:38 +0000)]
Update.

2004-01-09  Bruno Haible  <bruno@clisp.org>

* intl/gmo.h (MO_REVISION_NUMBER_WITH_SYSDEP_I): New definition.
* intl/loadmsgcat.c (get_sysdep_segment_value): Handle "I".
(_nl_load_domain): Treat major revision 1 like major revision 0.

2004-01-11  Bruno Haible  <bruno@clisp.org>

* stdio-common/vfprintf.c (vfprintf): Disallow the 'I' flag after
width or precision has been seen.

2004-01-08  Bruno Haible  <bruno@clisp.org>

* intl/loadmsgcat.c (_nl_load_domain): When a string pair uses a system
dependent segment not known to this version of the library, ignore
the string pair instead of crashing.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 04:28:32 +0000 (04:28 +0000)]
Update.

* configure.in: Rewrite test to give gcc to clean up after itself.
Patch by Greg Schafer.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 04:11:30 +0000 (04:11 +0000)]
Update.

2004-01-13  Ulrich Drepper  <drepper@redhat.com>

* posix/regex.c: Support crappy compilers and platforms which have
problems with alloca.
* posix/regex_internal.h: Likewise.
Patch by Paolo Bonzini.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 02:42:20 +0000 (02:42 +0000)]
Update.

2004-01-12  Paolo Bonzini  <bonzini@gnu.org>

* posix/regcomp.c [_LIBC && !RE_ENABLE_I18N]:
Drop code to support this, it is never true.
(build_range_exp) [!_LIBC]: Do not create a range
in MBCSET for a single-byte character set.
(build_range_exp) [_LIBC]: Do not create a range
in MBCSET for a single-byte character set without
collation elements.
(init_dfa): Do not conditionalize on _LIBC, it
just makes the code less clear.
(parse_bracket_exp): Use NON_MATCH variable in
addition to "mbcset->non_match", not as an
alternative.
(build_charclass_op): rename NOT parameter to
NON_MATCH, use it instead of declaring a variable.
(parse_bracket_exp) [!_LIBC]: Pass NULL for MBCSET
if the character set is single-byte.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 01:45:37 +0000 (01:45 +0000)]
Update.

2004-01-14  Jakub Jelinek  <jakub@redhat.com>

* posix/regcomp.c (peek_token_bracket): Check remaining
string length before re_string_peek_byte (x, 1).
(parse_bracket_symbol): Likewise.
* posix/regex_internal.h (re_string_is_single_byte_char): Return
true at last byte in the string.
* posix/bug-regex22.c (main): Add new test.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 01:16:07 +0000 (01:16 +0000)]
Update.

* sysdeps/generic/dl-sysdep.c: Move __libc_enable_secure into
.data.rel.ro.

20 years agoUpdate.
Ulrich Drepper [Wed, 14 Jan 2004 00:24:36 +0000 (00:24 +0000)]
Update.

2004-01-13  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/x86_64/dl-machine.h: Include <tls.h>.

* elf/rtld.c (_dl_start_final): Initialze __libc_stack_end here.
* sysdeps/generic/dl-sysdep.c: Define __libc_stack_end with
rtld_hidden_def and move into .data.rel.ro section.
* sysdeps/generic/ldsodefs.h: Declare __libc_stack_end with
rtld_hidden_proto.
* sysdeps/generic/libc-start.c: Only initialize __libc_stack_end here
if !SHARED.

* sysdeps/unix/sysv/linux/dl-execstack.c
(_dl_make_stack_executable): Move common code in front.  Use
__builtin_expect.

20 years agoInclude <tls.h>.
Ulrich Drepper [Tue, 13 Jan 2004 23:15:57 +0000 (23:15 +0000)]
Include <tls.h>.

20 years ago2004-01-13 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 13 Jan 2004 21:30:17 +0000 (21:30 +0000)]
2004-01-13  Roland McGrath  <roland@redhat.com>

* sysdeps/powerpc/tcb-offsets.sym: Put -- separator line before any
conditionals.

20 years ago * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.
Richard Henderson [Tue, 13 Jan 2004 20:47:01 +0000 (20:47 +0000)]
    * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.

2004-01-13  Richard Henderson  <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix typo.

20 years ago* sysdeps/powerpc/tcb-offsets.sym: Put -- separator line before any
Roland McGrath [Tue, 13 Jan 2004 20:38:58 +0000 (20:38 +0000)]
* sysdeps/powerpc/tcb-offsets.sym: Put -- separator line before any

conditionals.

20 years ago2004-01-13 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 13 Jan 2004 20:38:39 +0000 (20:38 +0000)]
2004-01-13  Roland McGrath  <roland@redhat.com>

* sysdeps/powerpc/tcb-offsets.sym: Put -- separator line before any
conditionals.

20 years ago(__libc_stack_end): Mark hidden. (_dl_make_stack_executable): Add one more __builtin_...
Ulrich Drepper [Tue, 13 Jan 2004 20:18:20 +0000 (20:18 +0000)]
(__libc_stack_end): Mark hidden. (_dl_make_stack_executable): Add one more __builtin_expect.

20 years agoUpdate.
Ulrich Drepper [Tue, 13 Jan 2004 15:47:32 +0000 (15:47 +0000)]
Update.

2004-01-13  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/dl-execstack.c: Change interface.  Add
challenge for caller.
* sysdeps/generic/ldsodefs.h: Change declaration and type of hook
member in rtld_global appropriately.
* elf/dl-support.c: Likewise.
* elf/dl-load.c (_dl_map_object_from_fd): Take additional paramter.
Pass it on to the changed function.
(_dl_map_object): Pass new parameter to _dl_map_object_from_fd.

20 years agoChange interface. Add challenge for caller.
Ulrich Drepper [Tue, 13 Jan 2004 15:35:20 +0000 (15:35 +0000)]
Change interface.  Add challenge for caller.

20 years ago * sysdeps/alpha/Makefile: New file. * sysdeps/alpha/tcb-offsets.sym...
Richard Henderson [Tue, 13 Jan 2004 09:36:22 +0000 (09:36 +0000)]
    * sysdeps/alpha/Makefile: New file.         * sysdeps/alpha/tcb-offsets.sym: New file.         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):         Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.

        * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
        on powerpc version.
2004-01-13  Richard Henderson  <rth@redhat.com>

        * sysdeps/alpha/Makefile: New file.
        * sysdeps/alpha/tcb-offsets.sym: New file.
        * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P):
        Use MULTIPLE_THREADS_OFFSET to implement !libpthread !libc version.

        * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Rewrite based
        on powerpc version.

20 years ago * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int): ...
Richard Henderson [Tue, 13 Jan 2004 09:15:58 +0000 (09:15 +0000)]
    * sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):         Cast old up to uint64_t before back down to inner width.         (__arch_compare_and_exchange_xxx_16_int): Likewise.         (__arch_compare_and_exchange_xxx_32_int): Likewise.         (__arch_compare_and_exchange_xxx_64_int): Likewise.         (__arch_compare_and_exchange_val_8_int): Cast result to         the type of the memory.         (__arch_compare_and_exchange_val_16_int): Likewise.         (__arch_compare_and_exchange_val_32_int): Likewise.         (__arch_compare_and_exchange_val_64_int): Likewise.         (atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.         (atomic_compare_and_exchange_bool_rel): Likewise.

        * sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
        based on HAVE___THREAD instead of USE_TLS.

        * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
        (__adjtimex_tv64): Use it.

        * sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
        to void* rather than directly to the compatibility structure type.
        * sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.

        * sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
        Forward declare.
* sysdeps/alpha/bits/atomic.h (__arch_compare_and_exchange_xxx_8_int):
Cast old up to uint64_t before back down to inner width.
(__arch_compare_and_exchange_xxx_16_int): Likewise.
(__arch_compare_and_exchange_xxx_32_int): Likewise.
(__arch_compare_and_exchange_xxx_64_int): Likewise.
(__arch_compare_and_exchange_val_8_int): Cast result to
the type of the memory.
(__arch_compare_and_exchange_val_16_int): Likewise.
(__arch_compare_and_exchange_val_32_int): Likewise.
(__arch_compare_and_exchange_val_64_int): Likewise.
(atomic_compare_and_exchange_bool_acq): Use __atomic_bool_bysize.
(atomic_compare_and_exchange_bool_rel): Likewise.

* sysdeps/unix/alpha/sysdep.h: Select inline_syscall_r0_asm
based on HAVE___THREAD instead of USE_TLS.

* sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIMEX32): New.
(__adjtimex_tv64): Use it.

* sysdeps/unix/sysv/linux/alpha/semctl.c (__new_semctl): Cast
to void* rather than directly to the compatibility structure type.
* sysdeps/unix/sysv/linux/alpha/shmctl.c (__new_shmctl): Likewise.

* sysdeps/unix/sysv/linux/alpha/sigaction.c (struct kernel_sigaction):
Forward declare.

2004-01-13  Richard Henderson  <rth@redhat.com>

    Paolo Bonzini  <bonzini@gnu.org>
Compare the node sets after all the other comparisons.
the old thread-m.h header too.

20 years ago* Versions.def (libm): Add GLIBC_2.3.3.
Richard Henderson [Tue, 13 Jan 2004 09:08:04 +0000 (09:08 +0000)]
* Versions.def (libm): Add GLIBC_2.3.3.

* sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
* sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
* sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
functions for gcc 3.3.
* sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
weak_alias if the function name has been #defined.

* math/cabsf.c: Move ...
* sysdeps/generic/cabsf.c: ... here.
* math/cargf.c: Move ...
* sysdeps/generic/cargf.c: ... here.
* math/cimagf.c: Move ...
* sysdeps/generic/cimagf.c: ... here.
* math/conjf.c: Move ...
* sysdeps/generic/conjf.c: ... here.
* math/crealf.c: Move ...
* sysdeps/generic/crealf.c: ... here.
2004-01-13  Richard Henderson  <rth@redhat.com>

* Versions.def (libm): Add GLIBC_2.3.3.
* sysdeps/alpha/fpu/Versions: Add __c1_c*f and c*f to GLIBC_2.3.3.
* sysdeps/alpha/fpu/cabsf.c, sysdeps/alpha/fpu/cargf.c,
sysdeps/alpha/fpu/cfloat-compat.h, sysdeps/alpha/fpu/cimagf.c,
sysdeps/alpha/fpu/conjf.c, sysdeps/alpha/fpu/crealf.c,
sysdeps/alpha/fpu/s_cacosf.c, sysdeps/alpha/fpu/s_cacoshf.c,
sysdeps/alpha/fpu/s_casinf.c, sysdeps/alpha/fpu/s_casinhf.c,
sysdeps/alpha/fpu/s_catanf.c, sysdeps/alpha/fpu/s_catanhf.c,
sysdeps/alpha/fpu/s_ccosf.c, sysdeps/alpha/fpu/s_ccoshf.c,
sysdeps/alpha/fpu/s_cexpf.c, sysdeps/alpha/fpu/s_clog10f.c,
sysdeps/alpha/fpu/s_clogf.c, sysdeps/alpha/fpu/s_cpowf.c,
sysdeps/alpha/fpu/s_cprojf.c, sysdeps/alpha/fpu/s_csinf.c,
sysdeps/alpha/fpu/s_csinhf.c, sysdeps/alpha/fpu/s_csqrtf.c,
sysdeps/alpha/fpu/s_ctanf.c, sysdeps/alpha/fpu/s_ctanhf.c: New files.
* sysdeps/alpha/fpu/bits/mathdef.h: Rename complex float
functions for gcc 3.3.

* sysdeps/generic/s_cacosf.c, sysdeps/generic/s_cacoshf.c,
sysdeps/generic/s_casinf.c, sysdeps/generic/s_casinhf.c,
sysdeps/generic/s_catanf.c, sysdeps/generic/s_catanhf.c,
sysdeps/generic/s_ccosf.c, sysdeps/generic/s_ccoshf.c,
sysdeps/generic/s_cexpf.c, sysdeps/generic/s_clog10f.c,
sysdeps/generic/s_clogf.c, sysdeps/generic/s_cpowf.c,
sysdeps/generic/s_cprojf.c, sysdeps/generic/s_csinf.c,
sysdeps/generic/s_csinhf.c, sysdeps/generic/s_csqrtf.c,
sysdeps/generic/s_ctanf.c, sysdeps/generic/s_ctanhf.c: Don't
weak_alias if the function name has been #defined.

* math/cabsf.c: Move ...
* sysdeps/generic/cabsf.c: ... here.
* math/cargf.c: Move ...
* sysdeps/generic/cargf.c: ... here.
* math/cimagf.c: Move ...
* sysdeps/generic/cimagf.c: ... here.
* math/conjf.c: Move ...
* sysdeps/generic/conjf.c: ... here.
* math/crealf.c: Move ...
* sysdeps/generic/crealf.c: ... here.

20 years agoUpdate.
Ulrich Drepper [Tue, 13 Jan 2004 08:36:54 +0000 (08:36 +0000)]
Update.

2004-01-13  Ulrich Drepper  <drepper@redhat.com>

* Makeconfig: Define relro-LDFLAGS if have-z-relro==yes.  Add it to
LDFLAGS.so and LDFLAGS-rtld.
(+link): Add relro-LDFLAGS.
* Makeconfig (shlib.lds): Place __libc_subfreeres, __libc_atexit, and
__libc_thread_subfreeres sections after .jcr section.
* config.make.in: Add have-z-relro.
* configure.in: Add check for -z relro option.
* include/link.h (struct link_map): Add relro_addr and relro_size
members.
* elf/dl-load.c (_dl_map_object_from_fd): Recognize PT_GNU_RELRO.
* elf/dl-reloc.c (_dl_relocate_object): At the end, make relro
part of loaded segments read-only.
* elf/elf.h: Define PT_GNU_RELRO.
* elf/rtld.c (_dl_start): Recognize PT_GNU_RELRO of ld.so.
(dl_main): Recognize PT_GNU_RELRO of the application.  Call
_dl_debug_initialize and initialize l_info[DT_DEBUG] before
relocations.

20 years agoDefine relro-LDFLAGS if have-z-relro==yes. Add it to LDFLAGS.so and LDFLAGS-rtld...
Ulrich Drepper [Tue, 13 Jan 2004 08:17:00 +0000 (08:17 +0000)]
Define relro-LDFLAGS if have-z-relro==yes.  Add it to LDFLAGS.so and LDFLAGS-rtld. (+link): Add relro-LDFLAGS.

20 years ago* sysdeps/x86_64/strcspn.S: Fix typo in last patch.
Andreas Jaeger [Mon, 12 Jan 2004 16:41:44 +0000 (16:41 +0000)]
* sysdeps/x86_64/strcspn.S: Fix typo in last patch.

20 years agoUpdate.
Andreas Jaeger [Sun, 11 Jan 2004 12:23:20 +0000 (12:23 +0000)]
Update.

2004-01-11  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/__longjmp.S: Add cfi directives.

* sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_CLONE_SYSCALL):

20 years agoAdd cfi directives.
Andreas Jaeger [Sat, 10 Jan 2004 19:23:44 +0000 (19:23 +0000)]
Add cfi directives.

2004-01-10  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/x86_64/vfork.S: Add cfi directives.

20 years agoUpdate.
Ulrich Drepper [Sat, 10 Jan 2004 18:08:28 +0000 (18:08 +0000)]
Update.

2004-01-10  Andreas Jaeger  <aj@suse.de>

* sysdeps/unix/sysv/linux/x86_64/__start_context.S: Add cfi directives.
* sysdeps/unix/x86_64/sysdep.S (__syscall_error): Likewise.
* sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
* sysdeps/x86_64/strcspn.S: Likewise.
* sysdeps/x86_64/strspn.S: Likewise.

20 years agoUpdate.
Ulrich Drepper [Thu, 8 Jan 2004 18:23:53 +0000 (18:23 +0000)]
Update.

2004-01-08  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Add cfi_endproc
right before syscall and cfi_startproc before PSEUDO_END.
Clear %rbp in thread_start.

20 years agoUpdate.
Ulrich Drepper [Tue, 6 Jan 2004 22:12:27 +0000 (22:12 +0000)]
Update.

2004-01-05  Jakub Jelinek  <jakub@redhat.com>

* posix/regcomp.c (regcomp): Fix comment typo.
(regfree): Free preg->translate, clear buffer, allocated, fastmap
and translate fields.

* posix/regcomp.c (build_charclass, buld_charclass_op): Change first
argument to unsigned RE_TRANSLATE_TYPE.
* posix/regex_internal.h (re_string_t): Change trans type to
unsigned RE_TRANSLATE_TYPE.
* posix/regex_internal.c (re_string_construct_common): Cast
trans to unsigned RE_TRANSLATE_TYPE.
(re_string_peek_byte_case, re_string_fetch_byte_case): Avoid fast
path if pstr->trans.  Never translate the character through
pstr->trans.
* posix/Makefile (tests): Add bug-regex22.
(bug-regex22-ENV): Set.
* posix/bug-regex22.c: New test.

20 years ago(regcomp): Fix comment typo. (regfree): Free preg->translate, clear buffer, allocated...
Ulrich Drepper [Tue, 6 Jan 2004 21:59:24 +0000 (21:59 +0000)]
(regcomp): Fix comment typo. (regfree): Free preg->translate, clear buffer, allocated, fastmap and translate fields.

(build_charclass, buld_charclass_op): Change first
argument to unsigned RE_TRANSLATE_TYPE.

20 years ago* sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
Roland McGrath [Tue, 6 Jan 2004 10:31:21 +0000 (10:31 +0000)]
* sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread

register as second parameter to the REGISTER macro.
* sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
of thread register as second parameter to REGISTER macro in 64 case.

20 years ago2003-12-11 Ulrich Weigand <uweigand@de.ibm.com>
Roland McGrath [Tue, 6 Jan 2004 10:30:50 +0000 (10:30 +0000)]
2003-12-11  Ulrich Weigand  <uweigand@de.ibm.com>

* db_info.c (REGISTER): Add bit size of thread register as second
parameter to REGISTER macro.

20 years agoFix typo.
Andreas Jaeger [Sat, 3 Jan 2004 13:07:45 +0000 (13:07 +0000)]
Fix typo.

Remove dfa parameter.  Get dfa from mctx.  Adjust callers.
(re_search_internal): Initialize mctx.dfa.

20 years ago(re_match_context_t): Add dfa member.
Andreas Jaeger [Sat, 3 Jan 2004 13:07:29 +0000 (13:07 +0000)]
(re_match_context_t): Add dfa member.

20 years agoUpdate.
Ulrich Drepper [Sat, 3 Jan 2004 08:56:19 +0000 (08:56 +0000)]
Update.

2004-01-03  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
(CFLAGS-getpid.o): Defined.
(CFLAGS-getpid.os): Defined.

20 years agoUpdate.
Ulrich Drepper [Sat, 3 Jan 2004 06:56:35 +0000 (06:56 +0000)]
Update.

2004-01-02  Paolo Bonzini  <bonzini@gnu.org>

* posix/regex_internal.c (re_node_set_add_intersect,
re_node_set_merge): Rewritten.
(re_node_set_insert, re_node_set_remove_at):
Avoid memmove, we know what direction we should copy and that we
are copying 32-bit words.
(re_node_set_compare): Iterate backwards.

* posix/regex_internal.h (re_match_context_t): Add dfa member.
* posix/regexec.c (match_ctx_free_subtops, search_cur_bkref_entry,
match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context,
prune_impossible_nodes, check_halt_state_context, proceed_next_node,
sift_states_backward, update_cur_sifted_state, check_dst_limits,
check_dst_limits_calc_pos, sift_states_bkref, transit_state,
check_subexp_matching_top, transit_state_sb, transit_state_mb,
transit_state_bkref, get_subexp, get_subexp_sub, check_arrival,
check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept):
Remove dfa parameter.  Get dfa from mctxt.  Adjust callers.
(re_search_internal): Initialize mctxt.dfa.

20 years ago(match_ctx_free_subtops, search_cur_bkref_entry, match_ctx_add_sublast, sift_ctx_init...
Ulrich Drepper [Sat, 3 Jan 2004 04:06:39 +0000 (04:06 +0000)]
(match_ctx_free_subtops, search_cur_bkref_entry, match_ctx_add_sublast, sift_ctx_init, acquire_init_state_context, prune_impossible_nodes, check_halt_state_context, proceed_next_node, sift_states_backward, update_cur_sifted_state, check_dst_limits, check_dst_limits_calc_pos, sift_states_bkref, transit_state, check_subexp_matching_top, transit_state_sb, transit_state_mb, transit_state_bkref, get_subexp, get_subexp_sub, check_arrival, check_arrival_add_next_nodes, expand_bkref_cache, check_node_accept): Remove dfa parameter.  Get dfa from mctxt.  Adjust callers. (re_search_internal): Initialize mctxt.dfa.

20 years ago* time/mktime.c (verify): New macro.
Roland McGrath [Fri, 2 Jan 2004 22:16:56 +0000 (22:16 +0000)]
* time/mktime.c (verify): New macro.

(time_t_is_integer, twos_complement_arithmetic,
right_shift_propagates_sign, base_year_is_a_multiple_of_100,
C99_integer_division): Document these longstanding assumptions in the
code, and verify them at compile-time.

20 years ago2003-12-30 Paul Eggert <eggert@twinsun.com>
Roland McGrath [Fri, 2 Jan 2004 22:16:49 +0000 (22:16 +0000)]
2003-12-30  Paul Eggert  <eggert@twinsun.com>

* time/mktime.c (verify): New macro.
(time_t_is_integer, twos_complement_arithmetic,
right_shift_propagates_sign, base_year_is_a_multiple_of_100,
C99_integer_division): Document these longstanding assumptions in the
code, and verify them at compile-time.

20 years agoUpdate.
Ulrich Drepper [Fri, 2 Jan 2004 21:20:51 +0000 (21:20 +0000)]
Update.

2004-01-02  Jakub Jelinek  <jakub@redhat.com>

* posix/regex_internal.c (re_node_set_insert): Remove unused variables.

* posix/regex_internal.h (re_dfa_t): Add syntax field.
* posix/regcomp.c (parse): Initialize dfa->syntax.
* posix/regexec.c (acquire_init_state_context,
prune_impossible_nodes, check_matching, check_halt_state_context,
proceed_next_node, sift_states_iter_mb, sift_states_backward,
update_cur_sifted_state, sift_states_bkref, transit_state,
transit_state_sb, transit_state_mb, transit_state_bkref,
get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
build_trtable): Remove preg argument, add dfa argument instead
and remove dfa = preg->buffer initialization in the body.
Adjust all callers.
(check_node_accept_bytes, group_nodes_into_DFAstates,
check_node_accept): Likewise.  Use dfa->syntax instead of
preg->syntax.
(check_arrival_add_next_nodes): Remove preg argument.

* posix/regex_internal.h (re_match_context_t): Make input
re_string_t instead of a pointer to it.
* posix/regex_internal.c (re_string_construct_common): Don't clear
pstr here...
(re_string_construct): ... but only here.
* posix/regexec.c (match_ctx_init): Remove input argument.  Don't
initialize fields to zero.
(re_search_internal): Move input into mctx.input.
(acquire_init_state_context, check_matching,
check_halt_state_context, proceed_next_node,
clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
transit_state, transit_state_sb, transit_state_mb,
transit_state_bkref, get_subexp, check_arrival,
check_arrival_add_next_nodes, check_node_accept, extend_buffers):
Change mctx->input into &mctx->input and mctx->input->field into
mctx->input.field.

2004-01-02  Jakub Jelinek  <jakub@redhat.com>
    Paolo Bonzini  <bonzini@gnu.org>

* posix/regex_internal.h (re_const_bitset_ptr_t): New type.
(re_string_t): Add newline_anchor, word_char and word_ops_used fields.
(re_dfa_t): Change word_char type to bitset.  Add word_ops_used field.
(re_string_context_at, re_string_reconstruct): Remove last argument.
* posix/regex_internal.c (re_string_allocate): Initialize
pstr->word_char and pstr->word_ops_used.
(re_string_context_at): Remove newline_anchor argument.
Use input->newline_anchor instead, swap && conditions.
Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
Use input->word_char bitmap instead of IS_WORD_CHAR.
(re_string_reconstruct): Likewise.
Adjust re_string_context_at caller.
* posix/regexec.c (acquire_init_state_context,
check_halt_state_context, transit_state, transit_state_sb,
transit_state_mb, transit_state_bkref, check_arrival,
check_node_accept): Adjust re_string_context_at and
re_string_reconstruct callers.
(re_search_internal): Likewise.  Set input.newline_anchor.
(build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
* posix/regcomp.c (init_word_char): Change return type to void.
Set dfa->word_ops_used.
(free_dfa_content): Don't free dfa->word_char.
(parse_expression): Remove error handling for init_word_char.

20 years agoUpdate.
Ulrich Drepper [Fri, 2 Jan 2004 11:08:23 +0000 (11:08 +0000)]
Update.

2004-01-01  Paolo Bonzini  <bonzini@gnu.org>

* posix/regex_internal.h (re_dfastate_t): Fix size of the CONTEXT
bitfield.

* posix/regex_internal.c (re_node_set_insert):  Rewrite.

20 years agoUpdate.
Ulrich Drepper [Fri, 2 Jan 2004 09:03:57 +0000 (09:03 +0000)]
Update.

2004-01-01  Petter Reinholdtsen  <pere@hungry.com>

* stdlib/strfmon.c: Make formatting of left-justified currency
values match the the POSIX standard.  When using format string
"[%-14#5.4n]" to print -123.45, the result should be
"[-$   123.4500 ]", not "[-$123.4500    ]".

20 years agoUpdate.
Ulrich Drepper [Fri, 2 Jan 2004 01:07:21 +0000 (01:07 +0000)]
Update.

* sort-test.sh: Print the status for both the sorting tests, xfrm
and collate, making it possible to know which one of them that
fail if only one of them misbehaves.  Indent output from
'diff -u' when sorting test fail, to make it easier to visually
group the output.

2004-01-01  Petter Reinholdtsen  <pere@hungry.com>

20 years agoUpdate.
Ulrich Drepper [Fri, 2 Jan 2004 00:59:51 +0000 (00:59 +0000)]
Update.

2004-01-01  Petter Reinholdtsen  <pere@hungry.com>

* tst-fmon.data: Add simple test to check left justified currency
values in the C locale.

* tst-fmon.sh: Don't print every line.  The program already prints
the failing ones.

20 years agoUpdate.
Ulrich Drepper [Thu, 1 Jan 2004 23:06:02 +0000 (23:06 +0000)]
Update.

2004-01-01  Ulrich Drepper  <drepper@redhat.com>

* tst-fmon.c (main): Fix typo in message.

20 years agoUpdate.
Ulrich Drepper [Thu, 1 Jan 2004 20:43:30 +0000 (20:43 +0000)]
Update.

2004-01-01  Ulrich Drepper  <drepper@redhat.com>

* posix/getconf.c: Update copyright year.
* nss/getent.c: Likewise.
* nscd/nscd_nischeck.c: Likewise.
* iconv/iconvconfig.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* elf/ldconfig.c: Likewise.
* catgets/gencat.c: Likewise.
* csu/version.c: Likewise.
* elf/ldd.bash.in: Likewise.
* elf/sprof.c (print_version): Likewise.
* locale/programs/locale.c: Likewise.
* locale/programs/localedef.c: Likewise.
* nscd/nscd.c (print_version): Likewise.
* debug/xtrace.sh: Likewise.
* malloc/memusage.sh: Likewise.
* malloc/mtrace.pl: Likewise.

20 years agoUpdate copyright year.
Ulrich Drepper [Thu, 1 Jan 2004 20:42:01 +0000 (20:42 +0000)]
Update copyright year.

20 years agoUpdate copyright year.
Andreas Jaeger [Thu, 1 Jan 2004 18:43:01 +0000 (18:43 +0000)]
Update copyright year.

20 years ago* resolv/Makefile (generated): New.
Andreas Jaeger [Thu, 1 Jan 2004 11:54:51 +0000 (11:54 +0000)]
* resolv/Makefile (generated): New.

20 years agoUpdate.
Andreas Jaeger [Thu, 1 Jan 2004 11:54:00 +0000 (11:54 +0000)]
Update.

2004-01-01  Andreas Jaeger  <aj@suse.de>

* Makefile (generated): Add missing files.

20 years ago* Makefile (generated): Add missing files.
Andreas Jaeger [Thu, 1 Jan 2004 11:53:29 +0000 (11:53 +0000)]
* Makefile (generated): Add missing files.

20 years ago* time/mktime.c: (my_mktime_localtime_r):
Roland McGrath [Wed, 31 Dec 2003 23:58:57 +0000 (23:58 +0000)]
* time/mktime.c: (my_mktime_localtime_r):

Remove.  All uses changed to __localtime_r.
(__localtime_r) [!defined _LIBC]: New macro.  Include "time_r.h" to
get its implementation.
Fix compile-command to allow for TIME_R_POSIX.

* time/strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r):
Remove.  All uses changed to __localtime_r and __gmtime_r.
(__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
Include "time_r.h" to get their implementations.

* time/timegm.c: Allow use in GNU applications outside glibc.
[defined HAVE_CONFIG_H]: Include <config.h>.
[!defined _LIBC]: Include "timegm.h", <time_r.h>.
Define __gmtime_r, and declare __mktime_internal.
(timegm): Define via a prototype, since we can safely assume C89 now.

20 years ago* CONFORMANCE: Update.
Roland McGrath [Wed, 31 Dec 2003 23:53:30 +0000 (23:53 +0000)]
* CONFORMANCE: Update.

20 years ago2003-12-31 Joseph S. Myers <jsm@polyomino.org.uk>
Roland McGrath [Wed, 31 Dec 2003 23:53:18 +0000 (23:53 +0000)]
2003-12-31  Joseph S. Myers  <jsm@polyomino.org.uk>

* CONFORMANCE: Update.

20 years agoUpdate.
Ulrich Drepper [Wed, 31 Dec 2003 23:41:43 +0000 (23:41 +0000)]
Update.

2003-12-31  Ulrich Drepper  <drepper@redhat.com>

* pthread_getattr_np.c (pthread_getattr_np): Make sure stack info
returned for main thread does not overlap with any other VMA.
Patch by Jakub Jelinek.

20 years ago(pthread_getattr_np): Make sure stack info returned for main thread does not overlap...
Ulrich Drepper [Wed, 31 Dec 2003 23:41:06 +0000 (23:41 +0000)]
(pthread_getattr_np): Make sure stack info returned for main thread does not overlap with any other VMA.

20 years ago* time/mktime.c (check_result): Use less-confusing report format.
Roland McGrath [Wed, 31 Dec 2003 22:49:30 +0000 (22:49 +0000)]
* time/mktime.c (check_result): Use less-confusing report format.

"long" -> "long int", as per usual GNU style.
(main): Likewise.
Don't loop if the iteration overflows time_t.
Allow a negative step in the iteration.

* time/mktime.c: Assume freestanding C89 or better.
(HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
assume they're 1.
(__P): Remove; not used.
(CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
(mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
Prototypes use const * where appropriate.
(main) [DEBUG]: Fix typo in testing code uncovered by above changes,
which caused the testing code to dump core on some hosts.

20 years ago2003-12-30 Paul Eggert <eggert@twinsun.com>
Roland McGrath [Wed, 31 Dec 2003 22:48:00 +0000 (22:48 +0000)]
2003-12-30  Paul Eggert  <eggert@twinsun.com>

* time/mktime.c (check_result): Use less-confusing report format.
"long" -> "long int", as per usual GNU style.
(main): Likewise.
Don't loop if the iteration overflows time_t.
Allow a negative step in the iteration.
* time/mktime.c: Assume freestanding C89 or better.
(HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove;
assume they're 1.
(__P): Remove; not used.
(CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
(mktime, not_equal_tm, print_tm, check_result, main): Use prototypes.
Prototypes use const * where appropriate.
(main) [DEBUG]: Fix typo in testing code uncovered by above changes,
which caused the testing code to dump core on some hosts.

20 years agoUpdate.
Ulrich Drepper [Wed, 31 Dec 2003 22:46:53 +0000 (22:46 +0000)]
Update.

* locale/setlocale.c (setlocale): Avoid duplicating locale names
if we can reuse old strings.

20 years agoUpdate.
Ulrich Drepper [Wed, 31 Dec 2003 21:44:08 +0000 (21:44 +0000)]
Update.

* inet/rcmd.c: Provide better error message in case of unknown
host.  Remove USE_IN_LIBIO.

* nscd/nscd.init: Updated version, more conforming with current
init file standards.

* nscd/nscd-client.h (_PATH_NSCDPID): Move the file into
/var/run/nscd directory.
(_PATH_NSCDSOCKET): Likewise.

* test-skeleton.c (timeout_handler): Fix error message.

20 years agoUpdate.
Ulrich Drepper [Wed, 31 Dec 2003 11:17:09 +0000 (11:17 +0000)]
Update.

2003-12-31  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-dst.h (DL_DST_REQUIRED): Avoid the complex operations if
CNT == 0.

20 years agoUpdate.
Ulrich Drepper [Tue, 30 Dec 2003 20:01:17 +0000 (20:01 +0000)]
Update.

* posix/regexec.c (get_subexp): Only set bkref_str after the first
loop, use buf + bkref_str_off in the loop instead.
* posix/bug-regex11.c (tests): Add 3 new tests.

* posix/regexec.c (clean_state_log_if_need): Rename to...
(clean_state_log_if_needed): ...this.
(transit_state_mb, get_subexp_sub): Adjust callers.

20 years agoUpdate.
Ulrich Drepper [Tue, 30 Dec 2003 17:57:38 +0000 (17:57 +0000)]
Update.

2003-12-30  Jakub Jelinek  <jakub@redhat.com>

* sunrpc/pmap_clnt.c (pmap_set): Do CLNT_DESTROY even if CLNT_CALL
failed.  Reported by Steve Grubb.

20 years agoUpdate.
Ulrich Drepper [Mon, 29 Dec 2003 18:51:29 +0000 (18:51 +0000)]
Update.

2003-12-29  Ulrich Drepper  <drepper@redhat.com>

* elf/elf.h: Add a few definitions from Solaris 9.

20 years agoUpdate.
Ulrich Drepper [Mon, 29 Dec 2003 18:02:21 +0000 (18:02 +0000)]
Update.

2003-12-29  Andreas Schwab  <schwab@suse.de>

* stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
$(fno_unit_at_a_time) to avoid reordering assembler output.

(push_fail_stack): Change fs->alloc only after successful realloc.
(set_regs): If proceed_next_node returns -2, free eps_via_nodes and fs.

20 years agoUpdate.
Ulrich Drepper [Mon, 29 Dec 2003 17:59:41 +0000 (17:59 +0000)]
Update.

2003-12-29  Jakub Jelinek  <jakub@redhat.com>

* posix/regexec.c (re_copy_regs): Revert comment change.
Avoid memory leak if realloc fails.
(proceed_next_node): Return -2 if re_node_set_insert fails.
Return -2 if push_fail_stack fails.
(push_fail_stack): Change fs->alloc only after successful
realloc.
(pop_fail_stack): Formatting.
(set_regs): If proceed_next_node returns -2, free eps_via_nodes
and fs.
(check_arrival_add_next_nodes): Merge identical statements
from if branches.

* signal/Makefile (tests): Add tst-raise.
* signal/tst-raise.c: New test.

20 years agoUpdate.
Ulrich Drepper [Mon, 29 Dec 2003 00:42:16 +0000 (00:42 +0000)]
Update.

* posix/regcomp.c (mark_opt_subexp_iter): Declare IDX as int.

* posix/regexec.c (re_copy_regs): Fix testing for failed allocation.
_IO_peekc_unlocked, _IO_putc_unlocked, _IO_getwc_unlocked, and

20 years agoUpdate.
Ulrich Drepper [Sun, 28 Dec 2003 23:33:48 +0000 (23:33 +0000)]
Update.

* posix/regexec.c (re_copy_regs): Allocate start and end array in
one block.
(push_fail_stack): Add missing check for failed memory allocation.

_IO_peekc_unlocked, _IO_ptc_unlocked, _IO_getwc_unlocked, and
overflow for 0 as argument. Raise Invalid exception for negative args.

20 years agoUpdate.
Ulrich Drepper [Sun, 28 Dec 2003 22:49:12 +0000 (22:49 +0000)]
Update.

2003-12-28  Ulrich Drepper  <drepper@redhat.com>

* libio/libio.h: Use __builtin_expect in _IO_getc_unlocked,
_IO_peekc_unlocked, _IO_ptc_unlcoked, _IO_getwc_unlocked, and
_IO_putwc_unlocked.

20 years agoUse __builtin_expect in _IO_getc_unlocked, _IO_peekc_unlocked, _IO_ptc_unlcoked,...
Ulrich Drepper [Sun, 28 Dec 2003 22:47:59 +0000 (22:47 +0000)]
Use __builtin_expect in _IO_getc_unlocked, _IO_peekc_unlocked, _IO_ptc_unlcoked, _IO_getwc_unlocked, and _IO_putwc_unlocked.

20 years ago(yn_test): Expect invalid exception for negative arguments. (y0_test): Likewise....
Andreas Jaeger [Sun, 28 Dec 2003 20:51:48 +0000 (20:51 +0000)]
(yn_test): Expect invalid exception for negative arguments. (y0_test): Likewise. (y1_test): Likewise.

20 years agoUpdate.
Andreas Jaeger [Sun, 28 Dec 2003 20:51:20 +0000 (20:51 +0000)]
Update.

* sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise only
overflow for 0 as argument. Raise Invalid exception for negative
args.
* sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
* sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y0): Likewise.
* sysdeps/ieee754/ldb-128/e_jnl.c (__ieee754_ynl): Likewise.
* sysdeps/ieee754/ldb-128/e_j0l.c (__ieee754_y0l): Likewise.
* sysdeps/ieee754/ldb-128/e_j1l.c (__ieee754_y1l): Likewise.
* sysdeps/ieee754/ldb-96/e_jnl.c (__ieee754_ynl): Likewise.
* sysdeps/ieee754/ldb-96/e_j0l.c (__ieee754_y0l): Likewise.
* sysdeps/ieee754/ldb-96/e_j1l.c (__ieee754_y1l): Likewise.
* sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
* sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.

* math/libm-test.inc (yn_test): Expect invalid exception for
negative arguments.
(y0_test): Likewise.
(y1_test): Likewise.

20 years agoUpdate.
Andreas Jaeger [Sun, 28 Dec 2003 18:58:13 +0000 (18:58 +0000)]
Update.

2003-12-28  Andreas Jaeger  <aj@suse.de>

* sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not raise
execptions for exp(NaN).

20 years agoDo not raise execptions for exp(NaN).
Andreas Jaeger [Sun, 28 Dec 2003 18:57:35 +0000 (18:57 +0000)]
Do not raise execptions for exp(NaN).

20 years agoUpdate.
Ulrich Drepper [Sat, 27 Dec 2003 23:40:06 +0000 (23:40 +0000)]
Update.

2003-12-23  Paolo Bonzini  <bonzini@gnu.org>

* posix/regex_internal.c (re_dfa_add_node): Initialize opt_subexp.
* posix/regex_internal.h (re_token_type_t): Put OP_DUP_PLUS
among the tokens, rather than among the epsilon-transiting nodes.
(re_token_t): Add the opt_subexp flag.
* posix/regcomp.c (optimize_utf8, calc_first,
calc_next, calc_epsdest): Don't consider OP_DUP_PLUS.
(mark_opt_subexp, mark_opt_subexp_iter): New functions.
(parse_dup_op): Mostly rewritten, lowering OP_DUP_PLUS to
OP_DUP_ASTERISK and marking optional subexpressions
as such using mark_opt_subexp.
* posix/regexec.c (set_regs): Initialize PREV_INDEX_MATCH
and pass it to update_regs.
(update_regs): Use the PREV_INDEX_MATCH parameter, together
with the opt_subexp flag, in order to discard a final empty
match of a repeated subexpression.
* posix/BOOST.tests: Adjust test vectors.
* posix/PCRE.tests: Likewise.
* posix/rxspencer/tests: Likewise.

2003-12-17  Paolo Bonzini  <bonzini@gnu.org>
2003-12-16  Paolo Bonzini  <bonzini@gnu.org>
2003-12-17  Paolo Bonzini  <bonzini@gnu.org>
2003-12-16  Jakub Jelinek  <jakub@redhat.com>
2003-04-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2003-02-20  Paolo Bonzini  <bonzini@gnu.org>
2003-01-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2003-01-09  Richard Henderson  <rth@redhat.com>
2003-01-09  Richard Henderson  <rth@redhat.com>
2003-01-03  Paul Eggert  <eggert@twinsun.com>

20 years agoUpdate.
Ulrich Drepper [Sat, 27 Dec 2003 07:38:25 +0000 (07:38 +0000)]
Update.

2003-12-23  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid
setting with __ASSUME_TGKILL || defined __NR_tgkill.
If pid is 0, set it to selftid.
* sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline.
Don't set self->pid but self->tid.  If self->pid == 0 and self->tid
!= 0, return self->tid without doing a syscall.
* descr.h (struct pthread): Move pid field after tid.

* Makefile (tests): Add tst-raise1.
* tst-raise1.c: New file.

20 years agoUpdate.
Ulrich Drepper [Sat, 27 Dec 2003 06:09:01 +0000 (06:09 +0000)]
Update.

2003-12-26  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/pthread/pthread.h (pthread_setcancelstate,
pthread_setcanceltype, pthread_cancel, pthread_testcancel): Remove
__THROW.
* semaphore.h (sem_wait, sem_timedwait): Likewise.

20 years agoRemove __THROW from cancellation points.
Ulrich Drepper [Sat, 27 Dec 2003 06:08:32 +0000 (06:08 +0000)]
Remove __THROW from cancellation points.

20 years ago* locales/en_ZA: Correcty typo in changelog (Sofware -> Software).
Roland McGrath [Wed, 24 Dec 2003 02:39:43 +0000 (02:39 +0000)]
* locales/en_ZA: Correcty typo in changelog (Sofware -> Software).

* locales/hr_HR: Correct the email address of Tomislav Vujec.
* locales/ja_JP: Document EUC-JP as the recommended charset.
* locales/ko_KR: List Won-kyu Park as the author/contact for the
locale.
* locales/ru_UA: Correct the email address of Denis V. Dmitrienko.

20 years ago* sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
Roland McGrath [Wed, 24 Dec 2003 01:10:17 +0000 (01:10 +0000)]
* sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:

with omitted middle operand.

20 years ago* tst-oddstacklimit.c: New file.
Roland McGrath [Tue, 23 Dec 2003 23:07:41 +0000 (23:07 +0000)]
* tst-oddstacklimit.c: New file.

* Makefile (tests): Add it.
(tst-oddstacklimit-ENV): New variable.

* init.c (__pthread_initialize_minimal_internal): Round stack rlimit
value up to page size for __default_stacksize.

20 years ago2003-12-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 23 Dec 2003 23:07:09 +0000 (23:07 +0000)]
2003-12-23  Roland McGrath  <roland@redhat.com>

* init.c (__pthread_initialize_minimal_internal): Round stack rlimit
value up to page size for __default_stacksize.

20 years agoUpdate.
Ulrich Drepper [Tue, 23 Dec 2003 02:29:44 +0000 (02:29 +0000)]
Update.

2003-12-22  Jakub Jelinek  <jakub@redhat.com>

* posix/regcomp.c: Remove C99-ism.
* posix/tst-rxspencer.c: Likewise.
Based on a patch by Alex Davis <alex14641@yahoo.com>.

2002-12-17  Paolo Bonzini  <bonzini@gnu.org>

* posix/regex_internal.h [!_LIBC] (internal_function): Define.
(re_string_allocate, re_string_construct, re_string_reconstruct,
re_string_realloc_buffers, build_wcs_buffer,
build_wcs_upper_buffer, build_upper_buffer,
re_string_translate_buffer, re_string_destruct,
re_string_elem_size_at, re_string_char_size_at,
re_string_wchar_at, re_string_context_at,
re_node_set_alloc, re_node_set_init_1
re_node_set_init_2, re_node_set_init_copy,
re_node_set_add_intersect, re_node_set_init_union,
re_node_set_merge, re_node_set_insert
re_node_set_compare, re_node_set_contains
re_node_set_remove_at, re_dfa_add_node,
re_acquire_state, re_acquire_state_context,
free_state): Add internal_function to declaration.

* posix/regexec.c (match_ctx_init, match_ctx_clean,
match_ctx_free, match_ctx_free_subtops,
match_ctx_add_entry, search_cur_bkref_entry,
match_ctx_clear_flag, match_ctx_add_subtop,
match_ctx_add_sublast, sift_ctx_init,
re_search_internal, re_search_2_stub, re_search_stub,
re_copy_regs, acquire_init_state_context,
prune_impossible_nodes, check_matching,
check_halt_node_context, check_halt_state_context
update_regs, proceed_next_node, push_fail_stack,
pop_fail_stack, set_regs, free_fail_stack_return,
sift_states_iter_mb, sift_states_backward
update_cur_sifted_state, add_epsilon_src_nodes,
sub_epsilon_src_nodes, check_dst_limits,
check_dst_limits_calc_pos, check_subexp_limits,
sift_states_bkref, clean_state_log_if_need,
merge_state_array, transit_state,
check_subexp_matching_top, transit_state_sb,
transit_state_mb, transit_state_bkref,
get_subexp, get_subexp_sub, find_subexp_node,
check_arrival, check_arrival_add_next_nodes,
find_collation_sequence_value, check_arrival_expand_ecl,
check_arrival_expand_ecl_sub, expand_bkref_cache,
build_trtable, check_node_accept_bytes, extend_buffers,
group_nodes_into_DFAstates, check_node_accept): Likewise.

* posix/regex_internal.c (re_string_construct_common,
re_string_skip_chars, create_newstate_common,
register_state, create_ci_newstate, create_cd_newstate,
calc_state_hash): Likewise.
(re_string_peek_byte_case, re_fetch_byte_case): Change
declaration from ANSI to K&R.

2002-12-16  Paolo Bonzini  <bonzini@gnu.org>

* posix/regexec.c (build_trtable): Don't allocate the trtable
until state->word_trtable is known.  Don't hardcode UINT_BITS
iterations on each bitset item.

20 years ago(build_trtable): Don't allocate the trtable until state->word_trtable is known. ...
Ulrich Drepper [Tue, 23 Dec 2003 01:43:19 +0000 (01:43 +0000)]
(build_trtable): Don't allocate the trtable until state->word_trtable is known.  Don't hardcode UINT_BITS iterations on each bitset item.

(match_ctx_init, match_ctx_clean,
match_ctx_free, match_ctx_free_subtops,
match_ctx_add_entry, search_cur_bkref_entry,
match_ctx_clear_flag, match_ctx_add_subtop,
match_ctx_add_sublast, sift_ctx_init,
re_search_internal, re_search_2_stub, re_search_stub,
re_copy_regs, acquire_init_state_context,
prune_impossible_nodes, check_matching,
check_halt_node_context, check_halt_state_context
update_regs, proceed_next_node, push_fail_stack,
pop_fail_stack, set_regs, free_fail_stack_return,
sift_states_iter_mb, sift_states_backward
update_cur_sifted_state, add_epsilon_src_nodes,
sub_epsilon_src_nodes, check_dst_limits,
check_dst_limits_calc_pos, check_subexp_limits,
sift_states_bkref, clean_state_log_if_need,
merge_state_array, transit_state,
check_subexp_matching_top, transit_state_sb,
transit_state_mb, transit_state_bkref,
get_subexp, get_subexp_sub, find_subexp_node,
check_arrival, check_arrival_add_next_nodes,
find_collation_sequence_value, check_arrival_expand_ecl,
check_arrival_expand_ecl_sub, expand_bkref_cache,
build_trtable, check_node_accept_bytes, extend_buffers,
group_nodes_into_DFAstates, check_node_accept): Likewise.

20 years ago* sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):
Roland McGrath [Mon, 22 Dec 2003 20:30:32 +0000 (20:30 +0000)]
* sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init):

Initialize REF before passing it to _dl_lookup_symbol.

20 years ago* sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.
Roland McGrath [Mon, 22 Dec 2003 06:58:32 +0000 (06:58 +0000)]
* sysdeps/mach/hurd/dl-sysdep.c (_exit): Define with attribute_hidden.