Roland McGrath [Sun, 16 Oct 2005 09:57:50 +0000 (09:57 +0000)]
[BZ #1253]
* sysdeps/mach/hurd/dl-sysdep.h
[SHARED] (DL_ARGV_NOT_RELRO): New macro.
[BZ #1253]
Roland McGrath [Sun, 16 Oct 2005 09:53:04 +0000 (09:53 +0000)]
[BZ #1253]
2005-10-16 Roland McGrath <roland@frob.com>
[BZ #1253]
* sysdeps/mach/hurd/i386/init-first.c (init): Make cast kosher.
(_hurd_stack_setup): Don't declare with arguments and ellipsis.
Use __builtin_frame_address and __builtin_return_address.
(_dl_init_first): Likewise.
* sysdeps/mach/hurd/i386/init-first.c (_cthread_init_routine): Declare
as weak extern.
(init): Check for it being undefined.
Roland McGrath [Sun, 16 Oct 2005 09:46:24 +0000 (09:46 +0000)]
[BZ #1076, BZ #1250, BZ #1251]
BZ tags
2005-08-05 Roland McGrath <roland@frob.com>
[BZ #1251]
[BZ #1250]
[BZ #1076]
Roland McGrath [Sun, 16 Oct 2005 09:34:17 +0000 (09:34 +0000)]
[BZ #1394]
bz tag
[BZ #1394]
Roland McGrath [Sun, 16 Oct 2005 09:25:59 +0000 (09:25 +0000)]
2005-10-16 Daniel Jacobowitz <dan@codesourcery.com>
Roland McGrath <roland@redhat.com>
* Makerules [module-names] (extra-modules-build): New variable.
($(extra-modules-build:%=$(objpfx)%.so)): New static pattern rule.
Depend on libc.so and libc_nonshared.a.
* dlfcn/Makefile ($(test-modules)): Remove static pattern rule.
* elf/Makefile (modules-names-nobuild): New variable, add filtmod1.
($(test-modules)): Remove static pattern rule.
Roland McGrath [Sun, 16 Oct 2005 08:34:09 +0000 (08:34 +0000)]
* include/dirent.h: Include <stdbool.h>.
* sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
(fdopendir): Correct argument to _hurd_fd_get().
* sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
Roland McGrath [Sun, 16 Oct 2005 08:34:04 +0000 (08:34 +0000)]
2005-10-15 Thomas Schwinge <tschwinge@gnu.org>
* include/dirent.h: Include <stdbool.h>.
* sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
(fdopendir): Correct argument to _hurd_fd_get().
* sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
Ulrich Drepper [Sat, 15 Oct 2005 21:14:58 +0000 (21:14 +0000)]
[BZ #1224]
2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
[BZ #1224]
* posix/regcomp.c (init_word_char, duplicate_node_closure,
fetch_token, peek_token_bracket, build_range_exp,
build_collating_symbol): Remove forward decls; no longer needed
now that we use prototypes.
Ulrich Drepper [Sat, 15 Oct 2005 20:59:51 +0000 (20:59 +0000)]
[BZ #1221]
* posix/regex_internal.h: Remove last traces of
RE_NO_INTERNAL_PROTOTYPES.
Ulrich Drepper [Sat, 15 Oct 2005 20:51:49 +0000 (20:51 +0000)]
[BZ #968]
* string/strxfrm_l.c (STRXFRM): Fix exit conditions of two loops.
Ulrich Drepper [Sat, 15 Oct 2005 17:28:08 +0000 (17:28 +0000)]
* sysdeps/unix/fdopendir.c (fdopendir): Make sure descriptor
allows reading.
Ulrich Drepper [Sat, 15 Oct 2005 15:38:52 +0000 (15:38 +0000)]
* wcsmbs/tst-mbrtowc2.c: Use de_DE.UTF-8 instead of en_US.UTF-8.
* wcsmbs/Makefile: Define tst-mbrtowc2-ENV.
Ulrich Drepper [Sat, 15 Oct 2005 15:23:33 +0000 (15:23 +0000)]
* posix/regexec.c: Finish prototyping of static functions.
* posix/regex_internal.c: Likewise.
Ulrich Drepper [Sat, 15 Oct 2005 14:15:52 +0000 (14:15 +0000)]
[BZ #119]
2005-10-15 Ulrich Drepper <drepper@redhat.com>
[BZ #119]
* locales/es_AR: Fix thousands_sep and grouping.
Ulrich Drepper [Sat, 15 Oct 2005 04:31:19 +0000 (04:31 +0000)]
[BZ #451]
* locales/rw_RW: New file.
* SUPPORTED (SUPPORTED-LOCALES): Add rw_RW.UTF-8.
Ulrich Drepper [Sat, 15 Oct 2005 04:14:39 +0000 (04:14 +0000)]
[BZ #367]
* locales/si_LK: New file.
* SUPPORTED (SUPPORTED-LOCALES): Add si_LK.UTF-8.
Ulrich Drepper [Sat, 15 Oct 2005 04:08:42 +0000 (04:08 +0000)]
[BZ #297]
* locales/fi_FI: Change date_fmt.
Ulrich Drepper [Sat, 15 Oct 2005 04:08:13 +0000 (04:08 +0000)]
Change date_fmt.
Roland McGrath [Sat, 15 Oct 2005 02:23:56 +0000 (02:23 +0000)]
* sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): New function, broken
out of ...
(__opendir): ... here. Call it.
* sysdeps/mach/hurd/fdopendir.c: New file.
Roland McGrath [Sat, 15 Oct 2005 02:10:29 +0000 (02:10 +0000)]
Comment fix.
Ulrich Drepper [Sat, 15 Oct 2005 01:27:21 +0000 (01:27 +0000)]
[BZ #71, BZ #305]
* locales/te_IN: Fix noexpr, replace yY with nN.
[BZ #305]
* locales/bn_BD: Add yY and nN to yesexpr and noexpr respectively.
* locales/ml_IN: Likewise.
* locales/ta_IN: Likewise.
* locales/kw_GB: Add yY to yesexpr.
* locales/oc_FR: Likewise.
* locales/bn_IN: Use copy "bn_BD" in LC_MESSAGES definition.
[BZ #71]
[BZ #305]
* locales/ar_EG: Add yY and nN to yesexpr and noexpr respectively.
Define yesstr and nostr.
* locales/ar_AE: Use copy "ar_EG" in LC_MESSAGES definition.
* locales/ar_BH: Likewise.
* locales/ar_DZ: Likewise.
* locales/ar_IN: Likewise.
* locales/ar_IQ: Likewise.
* locales/ar_JO: Likewise.
* locales/ar_KW: Likewise.
* locales/ar_LB: Likewise.
* locales/ar_LY: Likewise.
* locales/ar_MA: Likewise.
* locales/ar_OM: Likewise.
* locales/ar_QA: Likewise.
* locales/ar_SA: Likewise.
* locales/ar_SD: Likewise.
* locales/ar_SY: Likewise.
* locales/ar_TN: Likewise.
* locales/ar_YE: Likewise.
Ulrich Drepper [Sat, 15 Oct 2005 00:39:12 +0000 (00:39 +0000)]
[BZ #865]
* math/tgmath.h: Correctly determine result type for
__TGMATH_BINARY_REAL_ONLY,
__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
__TGMATH_TERNARY_REAL_ONLY, and __TGMATH_BINARY_REAL_IMAG.
2005-09-17 Andreas Jaeger <aj@suse.de>
[BZ #865]
* math/test-tgmath-int.c: New file.
* math/Makefile (tests): Add test-tgmath-int.
2005-10-14 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Fri, 14 Oct 2005 23:42:04 +0000 (23:42 +0000)]
[BZ #804]
* malloc/tst-mtrace.sh: Work around for bootstraping.
Ulrich Drepper [Fri, 14 Oct 2005 23:14:12 +0000 (23:14 +0000)]
* locale/programs/ld-collate.c (collate_output): Fix counting of
elements. Don't limit table size. Use correct secondary hash
function.
* locale/localeinfo.h (LIMAGIC): Change value returned for LC_COLLATE.
* posix/fnmatch_loop.c: Adjust for changed secondary hash function.
* posix/regcomp.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TESTS): Define.
Ulrich Drepper [Fri, 14 Oct 2005 22:58:29 +0000 (22:58 +0000)]
* SUPPORTED (SUPPORTED-LOCALES): Add dz_BT.UTF-8.
Ulrich Drepper [Fri, 14 Oct 2005 22:56:25 +0000 (22:56 +0000)]
[BZ #368]
* SUPPORTED (SUPPORTED-LOCALES): Add dz_BT.UTF-8.
[BZ #368]
* locales/dz_BT: New file.
Ulrich Drepper [Fri, 14 Oct 2005 21:17:04 +0000 (21:17 +0000)]
* time/asctime.c (asctime_internal): Use __snprintf instead of
snprintf to avoid PLT entry.
Ulrich Drepper [Fri, 14 Oct 2005 21:11:09 +0000 (21:11 +0000)]
* sysdeps/unix/opendir.c (__opendir): Pass extra argument to
__alloc_dir.
(__alloc_dir): Only close descriptor on error if new parameter is true.
* sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to
__alloc_dir. Don't close fd on error.
* include/dirent.h (__alloc_dir): Adjust prototype.
* include/sys/mman.h (__mremap): Add ellipsis.
* malloc/memusage.c: Adjust mremap wrapper for optional additional
parameter.
Ulrich Drepper [Fri, 14 Oct 2005 18:51:58 +0000 (18:51 +0000)]
[BZ #982]
* locales/ml_IN: Fix title.
Ulrich Drepper [Fri, 14 Oct 2005 17:50:36 +0000 (17:50 +0000)]
* stdlib/Makefile (tests): Add tst-ucontext-off.
* stdlib/tst-ucontext-off.c: New file.
* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h (TEST): Define.
* sysdeps/unix/sysv/linux/i386/ucontext_i.h (TESTS): Likewise.
Ulrich Drepper [Fri, 14 Oct 2005 17:46:23 +0000 (17:46 +0000)]
[BZ #980]
* locales/yi_US: Fix title.
Ulrich Drepper [Fri, 14 Oct 2005 17:37:22 +0000 (17:37 +0000)]
* locales/nl_NL: Define country_car, lang_name, lang_ab,
lang_term, and lang_lib.
Ulrich Drepper [Fri, 14 Oct 2005 17:20:58 +0000 (17:20 +0000)]
[BZ #1468]
* sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Fix values for
oFPREGS, oSIGMASK, oFPREGSMEM, and oMXCSR.
Patch by Nicholas Miell <nmiell@comcast.net>.
Ulrich Drepper [Fri, 14 Oct 2005 15:17:40 +0000 (15:17 +0000)]
[BZ #1460]
* time/asctime.c (asctime_internal): New function, derived from
asctime_r. Takes additional parameter which is the buffer length.
Use snprintf instead sprintf, if it overflows, fail.
(asctime_r): Call asctime_internal with 26 as buffer length.
(asctime): Call asctime_internal with length of internal buffer.
* time/Makefile (tests): Add bug-asctime_r.
* time/bug-asctime_r.c: New file.
Ulrich Drepper [Fri, 14 Oct 2005 14:10:20 +0000 (14:10 +0000)]
[BZ #1459]
* time/asctime.c (__asctime_r): Check for tm_year computation to
overflow and fail in this case.
* time/Makefile (tests): Add bug-asctime.
* time/bug-asctime.c: New file.
Ulrich Drepper [Fri, 14 Oct 2005 13:42:37 +0000 (13:42 +0000)]
[BZ #1458]
2005-10-14 Ulrich Drepper <drepper@redhat.com>
[BZ #1458]
* sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MREMAP_FIXED.
* sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
* misc/sys/mman.h: Add ellipsis after last parameter of mremap and
adjust leading comment.
* sysdeps/unix/sysv/linux/syscalls.list: Add pointer parameter to
mremap syscall.
Ulrich Drepper [Fri, 14 Oct 2005 06:25:55 +0000 (06:25 +0000)]
[BZ #1405]
* libio/iogetdelim.c (_IO_getdelim): Fix truncation of return
value. Avoid overflow in computation.
Ulrich Drepper [Fri, 14 Oct 2005 05:54:47 +0000 (05:54 +0000)]
[BZ #1373]
2005-10-13 Ulrich Drepper <drepper@redhat.com>
[BZ #1373]
* argp/argp.h: Remove __NTH for __argp_usage inline function.
Ulrich Drepper [Thu, 13 Oct 2005 21:10:24 +0000 (21:10 +0000)]
[BZ #1248]
2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
[BZ #1248]
* posix/regex_internal.h (bitset_not, bitset_merge, bitset_not_merge,
bitset_mask, re_string_allocate, re_string_construct,
re_string_reconstruct, re_string_destruct, re_string_elem_size_at,
re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case,
re_string_fetch_byte_case, 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_insert_last, re_node_set_compare, re_node_set_contains,
re_node_set_remove_at, re_dfa_add_node, re_acquire_state,
re_acquire_state_context): Remove unnecessary forward decls.
(re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
Put __attribute at function definition, now that the function decl
has been removed.
* posix/regex_internal.c (re_string_peek_byte_case,
re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
Likewise.
Ulrich Drepper [Thu, 13 Oct 2005 20:40:05 +0000 (20:40 +0000)]
* posix/regcomp.c: Likewise.
Ulrich Drepper [Thu, 13 Oct 2005 20:08:58 +0000 (20:08 +0000)]
[BZ #1231]
2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
[BZ #1231]
* posix/regex_internal.c (re_string_skip_chars, register_state,
calc_state_hash): Remove forward decls.
* posix/regexec.c (acquire_init_state_context, check_halt_node_context,
proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes,
clean_state_log_if_needed): Likewise.
* posix/regex.c: No need to use K&R definitions for static functions.
* posix/regex_internal.c: Likewise.
Ulrich Drepper [Thu, 13 Oct 2005 19:08:37 +0000 (19:08 +0000)]
[BZ #1466]
* sysdeps/generic/s_csqrt.c (__csqrt): For zero real part, return
principal square root.
* sysdeps/generic/s_csqrtf.c (__csqrtf): Likewise.
* sysdeps/generic/s_csqrtl.c (__csqrtl): Likewise.
* math/libm-test.inc (csqrt_test): Add test for returning
principal value.
Ulrich Drepper [Thu, 13 Oct 2005 16:24:53 +0000 (16:24 +0000)]
* include/features.h: Define _POSIX_C_SOURCE to 200112 for
_XOPEN_SOURCE == 600.
Ulrich Drepper [Thu, 13 Oct 2005 04:48:35 +0000 (04:48 +0000)]
* malloc/malloc.c (_int_free): Fail if block size is obviously wrong.
Ulrich Drepper [Wed, 12 Oct 2005 20:49:06 +0000 (20:49 +0000)]
* include/malloc.h: Remove _int_new_arena prototype.
* malloc/arena.c (_int_new_arena): Move definition ahead of
arena_get2 and make static.
Ulrich Drepper [Wed, 12 Oct 2005 20:18:07 +0000 (20:18 +0000)]
Correctly implement M_MXFAST.
* malloc/malloc.c (struct malloc_state): Replace max_fast with flags
fields.
(global_max_fast): New variable.
(set_max_fast): Change to not require arena parameter and to modify
global_max_fast. Change all callers.
(get_max_fast): New macro. Use this instead of directly accessing
now removed max_fast arena member.
(have_fastchunks): Use flags instead of max_fast.
(clear_fastchunks): Likewise.
(set_fastchunks): Likewise.
(contiguous): Likewise.
(noncontiguous): Likewise.
(set_noncontiguous): Likewise.
(set_contiguous): Likewise.
(malloc_init_state): Explicitly set FASTCHUNKS_BIT. Call set_max_fast
only for main arena.
* malloc/hooks.c (public_sET_STATe): Adjust set_max_fast use.
Ulrich Drepper [Wed, 12 Oct 2005 15:15:56 +0000 (15:15 +0000)]
[BZ #532]
2005-10-12 Ulrich Drepper <drepper@redhat.com>
[BZ #532]
* locales/ts_ZA: New file.
Patch by Dwayne Bailey <dwayne@translate.org.za>.
* SUPPORTED: Add ts_ZA.UTF-8.
Ulrich Drepper [Mon, 10 Oct 2005 15:49:43 +0000 (15:49 +0000)]
* sysdeps/generic/bits/byteswap.h (__bswap_constant_16): New macro.
(__bswap_16): Use it.
(__bswap_constant_32): New macro.
(__bswap_32): Use it.
Ulrich Drepper [Mon, 10 Oct 2005 13:56:58 +0000 (13:56 +0000)]
* malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_recursive_cntr.
Ulrich Drepper [Mon, 10 Oct 2005 13:44:03 +0000 (13:44 +0000)]
* malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_arena_ptr.
Ulrich Drepper [Sat, 8 Oct 2005 17:29:38 +0000 (17:29 +0000)]
* nss/getent.c (hosts_keys): Pass INADDRSZ as size rather
than IN6ADDRSZ to AF_INET gethostbyaddr.
Ulrich Drepper [Sat, 8 Oct 2005 17:28:41 +0000 (17:28 +0000)]
(hosts_keys): Pass INADDRSZ as size rather than IN6ADDRSZ to AF_INET gethostbyaddr.
Roland McGrath [Sat, 8 Oct 2005 06:27:49 +0000 (06:27 +0000)]
[BZ #1438]
2005-10-07 Roland McGrath <roland@redhat.com>
[BZ #1438]
* include/features.h: Make tests on _FORTIFY_SOURCE and __OPTIMIZE__
friendly to -Wundef.
(__USE_FORTIFY_LEVEL): Always define it, to 0 if nothing else.
Roland McGrath [Sat, 8 Oct 2005 06:27:44 +0000 (06:27 +0000)]
[BZ #1438]
2005-10-07 Roland McGrath <roland@redhat.com>
[BZ #1438]
* include/features.h: Make tests on _FORTIFY_SOURCE and __OPTIMIZE__
friendly to -Wundef.
(__USE_FORTIFY_LEVEL): Always define it, to 0 if nothing else.
Ulrich Drepper [Thu, 6 Oct 2005 15:37:11 +0000 (15:37 +0000)]
* sysdeps/unix/sysv/linux/readonly-area.c: Allow fopen to fail because
the file does not exist.
Ulrich Drepper [Thu, 6 Oct 2005 15:36:23 +0000 (15:36 +0000)]
Allow fopen to fail because the file does not exist.
Roland McGrath [Wed, 5 Oct 2005 20:23:18 +0000 (20:23 +0000)]
[BZ #1423]
bz tag
[BZ #1423]
Roland McGrath [Wed, 5 Oct 2005 20:23:05 +0000 (20:23 +0000)]
* crypt/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): New macros.
Roland McGrath [Wed, 5 Oct 2005 19:33:42 +0000 (19:33 +0000)]
* crypt/Makefile (distribute): Remove duplicate defn.
Roland McGrath [Wed, 5 Oct 2005 18:57:11 +0000 (18:57 +0000)]
* sysdeps/generic/ldsodefs.h (struct audit_ifaces):
Use ARCH_PLTENTER_MEMBERS and ARCH_PLTEXIT_MEMBERS macros if defined.
* elf/tst-auditmod1.c: Include <tst-audit.h> to define more
architecture-specific code.
* sysdeps/generic/tst-audit.h: New file.
* elf/Makefile (distribute): Add it.
Roland McGrath [Wed, 5 Oct 2005 18:30:11 +0000 (18:30 +0000)]
* elf/elf.h (R_ARM_TLS_DTPMOD32, R_ARM_TLS_DTPOFF32,
R_ARM_TLS_TPOFF32, R_ARM_TLS_GD32, R_ARM_TLS_LDM32,
R_ARM_TLS_LDO32, R_ARM_TLS_IE32, R_ARM_TLS_LE32): New macros.
Roland McGrath [Tue, 4 Oct 2005 00:40:07 +0000 (00:40 +0000)]
* allocatestack.c (setxid_signal_thread): Add
INTERNAL_SYSCALL_DECL (err).
Roland McGrath [Mon, 3 Oct 2005 19:37:51 +0000 (19:37 +0000)]
sysdeps/powerpc/nofpu moved to ports
2005-10-03 Roland McGrath <roland@redhat.com>
* sysdeps/powerpc/nofpu: Directory removed, saved in ports repository.
Ulrich Drepper [Sun, 2 Oct 2005 15:40:54 +0000 (15:40 +0000)]
* allocatestack.c (setxid_signal_thread): Need to use
atomic_compare_and_exchange_bool_acq.
Ulrich Drepper [Sat, 1 Oct 2005 17:20:34 +0000 (17:20 +0000)]
2005-10-01 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek <jakub@redhat.com>
* descr.h: Define SETXID_BIT and SETXID_BITMASK. Adjust
CANCEL_RESTMASK.
(struct pthread): Move specific_used field to avoid padding.
Add setxid_futex field.
* init.c (sighandler_setxid): Reset setxid flag and release the
setxid futex.
* allocatestack.c (setxid_signal_thread): New function. Broken
out of the bodies of the two loops in __nptl_setxid. For undetached
threads check whether they are exiting and if yes, don't send a signal.
(__nptl_setxid): Simplify loops by using setxid_signal_thread.
* pthread_create.c (start_thread): For undetached threads, check
whether setxid bit is set. If yes, wait until signal has been
processed.
* allocatestack.c (STACK_VARIABLES): Initialize them.
* pthread_create.c (__pthread_create_2_1): Initialize pd.
Ulrich Drepper [Fri, 30 Sep 2005 16:07:32 +0000 (16:07 +0000)]
* posix/regex.h: Pretty printing.
Clean up namespace a bit.
Ulrich Drepper [Fri, 30 Sep 2005 16:00:55 +0000 (16:00 +0000)]
* posix/regexec.c (update_cur_sifted_state, check_arrival,
check_arrival_add_next_nodes): Avoid using uninitialized variable.
* malloc/memusage.c (dest): Fix a bunch of warnings on 32-bit arches.
* sysdeps/i386/fpu/libm-test-ulps: Update for GCC 4.0.x.
Ulrich Drepper [Fri, 30 Sep 2005 15:46:19 +0000 (15:46 +0000)]
* posix/regexec.c (update_cur_sifted_state, check_arrival,
check_arrival_add_next_nodes): Avoid using uninitialized variable.
* malloc/memusage.c (dest): Fix a bunch of warnings on 32-bit arches.
* sysdeps/i386/fpu/libm-test-ulps: Update for GCC 4.0.x.
Ulrich Drepper [Fri, 30 Sep 2005 00:05:01 +0000 (00:05 +0000)]
* elf/rtld.c [DL_ARGV_NOT_RELRO] (_dl_argc, _dl_skip_args):
Ulrich Drepper [Thu, 29 Sep 2005 23:17:56 +0000 (23:17 +0000)]
Patch by Masahide WASHIZAWA <washi@jp.ibm.com>.
Ulrich Drepper [Thu, 29 Sep 2005 23:01:09 +0000 (23:01 +0000)]
* iconvdata/Makefile (modules): Add IBM803, IBM901, IBM902, IBM921,
IBM1008, IBM1008_420, IBM1097, IBM1112, IBM1123, IBM1130, IBM1140,
IBM1141, IBM1142, IBM1143, IBM1144, IBM1145, IBM1146, IBM1147, IBM1148,
IBM1149, IBM1166, IBM1167, IBM4517, IBM4899, IBM4909, IBM4971,
IBM5347, IBM9030, IBM9066, IBM9448, IBM12712, IBM16804.
(distribute): Add ibm803.c, ibm803.h, ibm901.c, ibm901.h, ibm902.c,
ibm902.h, ibm921.c, ibm921.h, ibm1008.c, ibm1008.h, ibm1008_420.c,
ibm1097.c, ibm1097.h, ibm1112.c, ibm1112.h, ibm1123.c, ibm1123.h,
ibm1130.c, ibm1130.h, ibm1140.c, ibm1140.h, ibm1141.c, ibm1141.h,
ibm1142.c, ibm1142.h, ibm1143.c, ibm1143.h, ibm1144.c, ibm1144.h,
ibm1145.c, ibm1145.h, ibm1146.c, ibm1146.h, ibm1147.c, ibm1147.h,
ibm1148.c, ibm1148.h, ibm1149.c, ibm1149.h, ibm1166.c, ibm1166.h,
ibm1167.c, ibm1167.h, ibm4517.c, ibm4517.h, ibm4899.c, ibm4899.h,
ibm4909.c, ibm4909.h, ibm4971.c, ibm4971.h, ibm5347.c, ibm5347.h,
ibm9030.c, ibm9030.h, ibm9066.c, ibm9066.h, ibm9448.c, ibm9448.h,
ibm12712.c, ibm12712.h, ibm16804.c, ibm16804.h.
* iconvdata/TESTS: Add entries for new modules.
* iconvdata/gconv-modules: Likewise.
* iconvdata/ibm803.c: New file.
* iconvdata/ibm803.h: New file.
* iconvdata/ibm901.c: New file.
* iconvdata/ibm901.h: New file.
* iconvdata/ibm902.c: New file.
* iconvdata/ibm902.h: New file.
* iconvdata/ibm921.c: New file.
* iconvdata/ibm921.h: New file.
* iconvdata/ibm1008.c: New file.
* iconvdata/ibm1008.h: New file.
* iconvdata/ibm1008_420.c: New file.
* iconvdata/ibm1097.c: New file.
* iconvdata/ibm1097.h: New file.
* iconvdata/ibm1112.c: New file.
* iconvdata/ibm1112.h: New file.
* iconvdata/ibm1123.c: New file.
* iconvdata/ibm1123.h: New file.
* iconvdata/ibm1130.c: New file.
* iconvdata/ibm1130.h: New file.
* iconvdata/ibm1140.c: New file.
* iconvdata/ibm1140.h: New file.
* iconvdata/ibm1141.c: New file.
* iconvdata/ibm1141.h: New file.
* iconvdata/ibm1142.c: New file.
* iconvdata/ibm1142.h: New file.
* iconvdata/ibm1143.c: New file.
* iconvdata/ibm1143.h: New file.
* iconvdata/ibm1144.c: New file.
* iconvdata/ibm1144.h: New file.
* iconvdata/ibm1145.c: New file.
* iconvdata/ibm1145.h: New file.
* iconvdata/ibm1146.c: New file.
* iconvdata/ibm1146.h: New file.
* iconvdata/ibm1147.c: New file.
* iconvdata/ibm1147.h: New file.
* iconvdata/ibm1148.c: New file.
* iconvdata/ibm1148.h: New file.
* iconvdata/ibm1149.c: New file.
* iconvdata/ibm1149.h: New file.
* iconvdata/ibm1166.c: New file.
* iconvdata/ibm1166.h: New file.
* iconvdata/ibm1167.c: New file.
* iconvdata/ibm1167.h: New file.
* iconvdata/ibm4517.c: New file.
* iconvdata/ibm4517.h: New file.
* iconvdata/ibm4899.c: New file.
* iconvdata/ibm4899.h: New file.
* iconvdata/ibm4909.c: New file.
* iconvdata/ibm4909.h: New file.
* iconvdata/ibm4971.c: New file.
* iconvdata/ibm4971.h: New file.
* iconvdata/ibm5347.c: New file.
* iconvdata/ibm5347.h: New file.
* iconvdata/ibm9030.c: New file.
* iconvdata/ibm9030.h: New file.
* iconvdata/ibm9066.c: New file.
* iconvdata/ibm9066.h: New file.
* iconvdata/ibm9448.c: New file.
* iconvdata/ibm9448.h: New file.
* iconvdata/ibm12712.c: New file.
* iconvdata/ibm12712.h: New file.
* iconvdata/ibm16804.c: New file.
* iconvdata/ibm16804.h: New file.
* iconvdata/testdata/IBM803: New file.
* iconvdata/testdata/IBM803..UTF8: New file.
* iconvdata/testdata/IBM901: New file.
* iconvdata/testdata/IBM901..UTF8: New file.
* iconvdata/testdata/IBM902: New file.
* iconvdata/testdata/IBM902..UTF8: New file.
* iconvdata/testdata/IBM921: New file.
* iconvdata/testdata/IBM921..UTF8: New file.
* iconvdata/testdata/IBM1008: New file.
* iconvdata/testdata/IBM1008..UTF8: New file.
* iconvdata/testdata/IBM1097: New file.
* iconvdata/testdata/IBM1097..UTF8: New file.
* iconvdata/testdata/IBM1112: New file.
* iconvdata/testdata/IBM1112..UTF8: New file.
* iconvdata/testdata/IBM1123: New file.
* iconvdata/testdata/IBM1123..UTF8: New file.
* iconvdata/testdata/IBM1130: New file.
* iconvdata/testdata/IBM1130..UTF8: New file.
* iconvdata/testdata/IBM1140: New file.
* iconvdata/testdata/IBM1140..UTF8: New file.
* iconvdata/testdata/IBM1141: New file.
* iconvdata/testdata/IBM1141..UTF8: New file.
* iconvdata/testdata/IBM1142: New file.
* iconvdata/testdata/IBM1142..UTF8: New file.
* iconvdata/testdata/IBM1143: New file.
* iconvdata/testdata/IBM1143..UTF8: New file.
* iconvdata/testdata/IBM1144: New file.
* iconvdata/testdata/IBM1144..UTF8: New file.
* iconvdata/testdata/IBM1145: New file.
* iconvdata/testdata/IBM1145..UTF8: New file.
* iconvdata/testdata/IBM1146: New file.
* iconvdata/testdata/IBM1146..UTF8: New file.
* iconvdata/testdata/IBM1147: New file.
* iconvdata/testdata/IBM1147..UTF8: New file.
* iconvdata/testdata/IBM1148: New file.
* iconvdata/testdata/IBM1148..UTF8: New file.
* iconvdata/testdata/IBM1149: New file.
* iconvdata/testdata/IBM1149..UTF8: New file.
* iconvdata/testdata/IBM1166: New file.
* iconvdata/testdata/IBM1166..UTF8: New file.
* iconvdata/testdata/IBM1167: New file.
* iconvdata/testdata/IBM1167..UTF8: New file.
* iconvdata/testdata/IBM4517: New file.
* iconvdata/testdata/IBM4517..UTF8: New file.
* iconvdata/testdata/IBM4899: New file.
* iconvdata/testdata/IBM4899..UTF8: New file.
* iconvdata/testdata/IBM4909: New file.
* iconvdata/testdata/IBM4909..UTF8: New file.
* iconvdata/testdata/IBM4971: New file.
* iconvdata/testdata/IBM4971..UTF8: New file.
* iconvdata/testdata/IBM5347: New file.
* iconvdata/testdata/IBM5347..UTF8: New file.
* iconvdata/testdata/IBM9030: New file.
* iconvdata/testdata/IBM9030..UTF8: New file.
* iconvdata/testdata/IBM9066: New file.
* iconvdata/testdata/IBM9066..UTF8: New file.
* iconvdata/testdata/IBM9448: New file.
* iconvdata/testdata/IBM9448..UTF8: New file.
* iconvdata/testdata/IBM12712: New file.
* iconvdata/testdata/IBM12712..UTF8: New file.
* iconvdata/testdata/IBM16804: New file.
* iconvdata/testdata/IBM16804..UTF8: New file.
* iconvdata/run-iconv-test.sh: Run ASCII->encoding->ASCII suntzus
test only if $subset is N.
Ulrich Drepper [Thu, 29 Sep 2005 22:05:24 +0000 (22:05 +0000)]
Tables for IBM1008 iconv module.
Roland McGrath [Thu, 29 Sep 2005 22:03:45 +0000 (22:03 +0000)]
[BZ #1392]
* posix/sys/wait.h [!__GNUC__ || __cplusplus] (__WAIT_INT): Use const.
2005-09-29 Alfred M. Szmidt <ams@gnu.org>
* elf/rtld.c [! DL_ARGV_NOT_RELRO] (_dl_argc, _dl_skip_args):
Don't use attribute_relro.
2005-09-29 Roland McGrath <roland@redhat.com>
[BZ #1392]
Roland McGrath [Thu, 29 Sep 2005 22:03:12 +0000 (22:03 +0000)]
[BZ #1392]
2005-09-29 Roland McGrath <roland@redhat.com>
[BZ #1392]
* posix/sys/wait.h [!__GNUC__ || __cplusplus] (__WAIT_INT): Use const.
Ulrich Drepper [Thu, 29 Sep 2005 21:59:18 +0000 (21:59 +0000)]
IBM1008 iconv module.
Ulrich Drepper [Thu, 29 Sep 2005 21:43:12 +0000 (21:43 +0000)]
Run ASCII->encoding->ASCII suntzus test only if $subset is N.
Roland McGrath [Thu, 29 Sep 2005 20:44:48 +0000 (20:44 +0000)]
[BZ #1392]
2005-09-29 Roland McGrath <roland@redhat.com>
[BZ #1392]
* posix/sys/wait.h (__WAIT_INT): Rewrite using an initializer,
in case __typeof yields a const-qualified type.
Roland McGrath [Thu, 29 Sep 2005 20:44:44 +0000 (20:44 +0000)]
[BZ #1392]
2005-09-29 Roland McGrath <roland@redhat.com>
[BZ #1392]
* posix/sys/wait.h (__WAIT_INT): Rewrite using an initializer,
in case __typeof yields a const-qualified type.
Ulrich Drepper [Wed, 28 Sep 2005 22:38:36 +0000 (22:38 +0000)]
Close descriptor in case of error.
Ulrich Drepper [Wed, 28 Sep 2005 21:19:53 +0000 (21:19 +0000)]
* dirent/dirent.h: Declare fdopendir.
* dirent/Versions: Export fdopendir for GLIBC_2.4.
* dirent/Makefile (routines): Add fdopendir.
(tests): Add tst-fdopendir.
* dirent/tst-fdopendir.c: New file.
* include/dirent.h: Declare __alloc_dir.
* sysdeps/generic/fdopendir.c: New file.
* sysdeps/unix/fdopendir.c: New file.
* sysdeps/unix/opendir.c: Split off back part of opendir into new
function __alloc_dir.
Ulrich Drepper [Wed, 28 Sep 2005 21:10:56 +0000 (21:10 +0000)]
(routines): Add fdopendir. (tests): Add tst-fdopendir.
Roland McGrath [Wed, 28 Sep 2005 20:05:25 +0000 (20:05 +0000)]
[BZ #1384]
2005-09-26 Steven Munroe <sjmunroe@us.ibm.com>
[BZ #1384]
* sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
ynf results.
Roland McGrath [Wed, 28 Sep 2005 20:05:13 +0000 (20:05 +0000)]
[BZ #1384]
2005-09-26 Steven Munroe <sjmunroe@us.ibm.com>
[BZ #1384]
* sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn,
ynf results.
Ulrich Drepper [Wed, 28 Sep 2005 17:33:18 +0000 (17:33 +0000)]
[BZ #1302]
2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
Ulrich Drepper <drepper@redhat.com>
[BZ #1302]
Change bitset word type from unsigned int to unsigned long int,
as this has better performance on typical 64-bit hosts. Change
bitset type name to bitset_t.
* posix/regcomp.c (build_equiv_class, build_charclass):
(build_range_exp, build_collating_symbol):
Prefer bitset_t to re_bitset_ptr_t in prototypes, when the actual
argument is a bitset. This is merely a style issue, but it makes
it clearer that an entire array is expected.
(re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps,
lower_subexp): Adjust for new bitset_t definition.
(lower_subexp, parse_bracket_exp, built_charclass_op): Likewise.
* posix/regex_internal.h (bitset_set, bitset_clear, bitset_contain,
bitset_not, bitset_merge, bitset_set_all, bitset_mask): Likewise.
* posix/regexec.c (check_dst_limits_calc_pos_1,
check_subexp_matching_top, build_trtable, group_nodes_into_DFAstates):
Likewise.
* posix/regcomp.c (utf8_sb_map): Don't assume initializer
== 0xffffffff.
* posix/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
All uses changed.
(BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
(bitset_word_t): New type, replacing 'unsigned int' for bitset uses.
All uses changed.
(BITSET_WORD_MAX): New macro.
(bitset_set, bitset_clear, bitset_contain, bitset_empty,
(bitset_set_all, bitset_copy): Adjust for bitset_t change.
(bitset_empty, bitset_copy):
Prefer sizeof (bitset_t) to multiplying it out ourselves.
(bitset_not_merge): Remove; unused.
(bitset_contain): Return bool, not unsigned int with one bit on.
All callers changed.
* posix/regexec.c (build_trtable): Don't assume bitset_t has no
stricter alignment than re_node_set; do this by defining a new
internal type struct dests_alloc and using it to allocate memory.
Ulrich Drepper [Wed, 28 Sep 2005 06:09:24 +0000 (06:09 +0000)]
[BZ #1230]
2005-09-27 Ulrich Drepper <drepper@redhat.com>
[BZ #1230]
* stdlib/strtod_l.c (STRNCASECMP): Always use C locale object.
(TOLOWER_C): Define. Use it when recognizing inf and nan.
* stdlib/Makefile (tests): Add bug-strtod2.
* stdlib/bug-strtod2.c: New file.
Ulrich Drepper [Wed, 28 Sep 2005 05:31:16 +0000 (05:31 +0000)]
* dlfcn/bug-atexit1.c: New file.
* dlfcn/bug-atexit1-lib.c: New file.
* dlfcn/bug-atexit2.c: New file.
* dlfcn/bug-atexit2-lib.c: New file.
Ulrich Drepper [Wed, 28 Sep 2005 00:14:50 +0000 (00:14 +0000)]
[BZ #1158]
* stdlib/cxa_atexit.c (__new_exitfn): Rewrite to preserve order in
which the functions were registered.
* dlfcn/Makefile: Add rules to build and run bug-atexit1 and
bug-atexit2.
* dlfcn/bug-atext1.c: New file.
* dlfcn/bug-atext1-lib.c: New file.
* dlfcn/bug-atext2.c: New file.
* dlfcn/bug-atext2-lib.c: New file.
Ulrich Drepper [Wed, 28 Sep 2005 00:10:09 +0000 (00:10 +0000)]
(__new_exitfn): Rewrite to preserve order in which the functions were registered.
Roland McGrath [Tue, 27 Sep 2005 21:46:57 +0000 (21:46 +0000)]
[BZ #1361]
[BZ #1361]
Roland McGrath [Tue, 27 Sep 2005 21:45:51 +0000 (21:45 +0000)]
* argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
* argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
argp/argp-xinl.c: Fix up whitespace.
Roland McGrath [Tue, 27 Sep 2005 21:45:41 +0000 (21:45 +0000)]
2005-09-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* argp/argp-fmtstream.h [HAVE_CONFIG_H]: Do not #include <config.h>.
* argp/argp-eexst.c, argp/argp-fmtstream.c, argp/argp-fs-xinl.c,
argp/argp-xinl.c: Fix up whitespace.
Ulrich Drepper [Tue, 27 Sep 2005 19:40:49 +0000 (19:40 +0000)]
[BZ #1078]
2005-09-27 Ulrich Drepper <drepper@redhat.com>
[BZ #1078]
* libio/fileops.c (_IO_new_file_xsputn): Determine amount of
available space in non-line-buffered buffer correctly.
* libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
* stdio-common/Makefile (tests): Add tst-fwrite.
* stdio-common/tst-fwrite.c: New file.
Ulrich Drepper [Tue, 27 Sep 2005 05:45:26 +0000 (05:45 +0000)]
[BZ #838]
* malloc/arena.c (ptmalloc_lock_all): If global lock already taken
by the same thread, just bump the counter.
(ptmalloc_unlock_all): If counter for recursive locks hasn't reached
zero, don't do anything else.
* malloc/Makefile (tests): Add tst-mallocfork.
* malloc/tst-mallocfork.c: New file.
Ulrich Drepper [Tue, 27 Sep 2005 01:56:38 +0000 (01:56 +0000)]
[BZ #808]
Ulrich Drepper [Tue, 27 Sep 2005 01:55:24 +0000 (01:55 +0000)]
[BZ #786]
* malloc/malloc.c (_int_realloc): Make error message clearer.
Ulrich Drepper [Tue, 27 Sep 2005 00:00:42 +0000 (00:00 +0000)]
[BZ #713]
2005-09-26 Ulrich Drepper <drepper@redhat.com>
[BZ #713]
* libio/iofgets.c: Treat N==1 correctly.
* libio/iofgets_u.c: Likewise.
* libio/iofgetws.c: Likewise.
* libio/iofgetws_u.c: Likewise.
* stdio-common/Makefile (tests): Add tst-fgets.
* stdio-common/tst-fgets.c: New file.
Ulrich Drepper [Mon, 26 Sep 2005 23:02:01 +0000 (23:02 +0000)]
[BZ #652]
2005-01-11 Thorsten Kukuk <kukuk@suse.de>
[BZ #652]
* posix/getconf.c: Add new option -a to print the names of
the current system configuration variables to stdout.
Based on patch from Josh Aas <josha@sgi.com>.
Ulrich Drepper [Mon, 26 Sep 2005 21:17:54 +0000 (21:17 +0000)]
[BZ #644]
* sysdeps/posix/getaddrinfo.c (fls): New function.
(gaih_inet): Don't use ffs, use fls. Convert address to native byte
order first.
* posix/Makefile (tests): Add tst-rfc3484.
* posix/tst-rfc3484.c: New file.
Ulrich Drepper [Mon, 26 Sep 2005 21:10:16 +0000 (21:10 +0000)]
(fls): New function. (gaih_inet): Don't use ffs, use fls. Convert address to native byte order first.
Roland McGrath [Mon, 26 Sep 2005 19:58:50 +0000 (19:58 +0000)]
typo
* sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop if