kopensolaris-gnu/glibc.git
14 years ago(_nss_files_setnetgrent): We don't need locking for the stream. Use
drepper [Sat, 10 Sep 2005 00:06:32 +0000 (00:06 +0000)]
(_nss_files_setnetgrent): We don't need locking for the stream.  Use
feof_unlocked.

14 years ago.
drepper [Fri, 9 Sep 2005 16:58:19 +0000 (16:58 +0000)]
.

14 years ago(_nl_load_locale_from_archive): Free normalized_codeset even if p was
drepper [Fri, 9 Sep 2005 16:56:52 +0000 (16:56 +0000)]
(_nl_load_locale_from_archive): Free normalized_codeset even if p was
already normalized.

14 years ago.
roland [Thu, 8 Sep 2005 22:37:21 +0000 (22:37 +0000)]
.

14 years ago2005-09-08 Roland McGrath <roland@redhat.com>
roland [Thu, 8 Sep 2005 22:36:54 +0000 (22:36 +0000)]
2005-09-08  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Decode DSOCAPS
properly, first byte is bit number in mask.  Skip disabled caps.

14 years ago.
drepper [Thu, 8 Sep 2005 17:41:56 +0000 (17:41 +0000)]
.

14 years ago(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
drepper [Thu, 8 Sep 2005 17:40:52 +0000 (17:40 +0000)]
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(__pthread_cond_signal): Use FUTEX_WAKE_OP.

14 years ago(__pthread_cond_signal): Use lll_futex_wake_unlock.
drepper [Thu, 8 Sep 2005 17:39:53 +0000 (17:39 +0000)]
(__pthread_cond_signal): Use lll_futex_wake_unlock.

14 years ago(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
drepper [Thu, 8 Sep 2005 17:39:04 +0000 (17:39 +0000)]
(FUTEX_WAKE_OP, FUTEX_OP_CLEAR_WAKE_IF_GT_ONE): Define.
(lll_futex_wake_unlock): Define.

14 years ago.
roland [Thu, 8 Sep 2005 08:09:16 +0000 (08:09 +0000)]
.

14 years ago2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
roland [Thu, 8 Sep 2005 08:09:07 +0000 (08:09 +0000)]
2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #1033]
* time/mktime.c: Import from gnulib.
The following macros are now consistent with other gnulib code.
This does not change mktime's behavior.
(TYPE_IS_INTEGER): New macro.
(time_t_is_integer): Use it.
(TYPE_TWOS_COMPLEMENT): New macro.
(twos_complement_arithmetic): Use it.
(TYPE_ONES_COMPLEMENT): New macro.
(TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
mktime doesn't use this, but the code now matches other gnulib code.
(ranged_convert): Pacify GCC 4.0 in a different way, which
generates a few bytes less code.
(ranged_convert, __mktime_internal): When calling a function via a
pointer P, use P () rather than (*P) (), as we now assume C89 or
better.

14 years ago2005-07-11 Derek R. Price <derek@ximbiot.com>
roland [Thu, 8 Sep 2005 08:09:03 +0000 (08:09 +0000)]
2005-07-11  Derek R. Price  <derek@ximbiot.com>

[BZ #1061]
* sysdeps/generic/glob.c (glob): Only a 0 return from
getlogin_r means success, according to POSIX 1003.2.

14 years ago.
drepper [Wed, 7 Sep 2005 19:55:12 +0000 (19:55 +0000)]
.

14 years agoUpdate to match tzdata2005m.
drepper [Wed, 7 Sep 2005 19:54:00 +0000 (19:54 +0000)]
Update to match tzdata2005m.

14 years ago.
drepper [Wed, 7 Sep 2005 16:15:23 +0000 (16:15 +0000)]
.

14 years ago(check_dst_limits_calc_pos_1): Mark eclosure as const.
drepper [Wed, 7 Sep 2005 16:14:42 +0000 (16:14 +0000)]
(check_dst_limits_calc_pos_1): Mark eclosure as const.

14 years agoAdd many more consts.
drepper [Wed, 7 Sep 2005 16:09:50 +0000 (16:09 +0000)]
Add many more consts.

14 years ago(re_match_context_t): Make dfa a const pointer.
drepper [Wed, 7 Sep 2005 16:00:46 +0000 (16:00 +0000)]
(re_match_context_t): Make dfa a const pointer.

14 years ago.
drepper [Wed, 7 Sep 2005 15:26:18 +0000 (15:26 +0000)]
.

14 years ago(transit_state_bkref): Make DFA a const pointer.
drepper [Wed, 7 Sep 2005 15:25:13 +0000 (15:25 +0000)]
(transit_state_bkref): Make DFA a const pointer.
(get_subexp): Likewise.
(check_arrival): Likewise.
(check_arrival_expand_ecl): Mark DFA parameter as const.
(check_arrival_expand_ecl_sub): Likewise.
(check_arrival_expand_ecl): Mark eclosure as const.

14 years ago.
drepper [Wed, 7 Sep 2005 07:16:24 +0000 (07:16 +0000)]
.

14 years ago(find_recover_state): Remove unnecessary initialization.
drepper [Wed, 7 Sep 2005 07:15:25 +0000 (07:15 +0000)]
(find_recover_state): Remove unnecessary initialization.

14 years ago.
drepper [Wed, 7 Sep 2005 07:03:41 +0000 (07:03 +0000)]
.

14 years agoUpdate from tzcode2005m.
drepper [Wed, 7 Sep 2005 07:03:08 +0000 (07:03 +0000)]
Update from tzcode2005m.

14 years agoUpdate from tzdata2005m.
drepper [Wed, 7 Sep 2005 07:00:54 +0000 (07:00 +0000)]
Update from tzdata2005m.

14 years ago.
drepper [Wed, 7 Sep 2005 05:41:42 +0000 (05:41 +0000)]
.

14 years ago(merge_state_with_log): Define dfa as const pointer.
drepper [Wed, 7 Sep 2005 05:40:53 +0000 (05:40 +0000)]
(merge_state_with_log): Define dfa as const pointer.
(transit_state_sb): Likewise.
(transit_state_mb): Likewise.
(sift_states_iter_mb): Likewise.
(check_arrival_add_next_nodes): Likewise.
(check_node_accept_bytes): Change first parameter to pointer-to-const.
[_LIBC] (re_search_2_stub): Use mempcpy.

14 years ago.
drepper [Wed, 7 Sep 2005 01:15:33 +0000 (01:15 +0000)]
.

14 years ago(re_string_reconstruct): Avoid calling mbrtowc for very simple UTF-8 case.
drepper [Wed, 7 Sep 2005 01:14:09 +0000 (01:14 +0000)]
(re_string_reconstruct): Avoid calling mbrtowc for very simple UTF-8 case.

14 years agoFix last check-in.
drepper [Wed, 7 Sep 2005 01:02:21 +0000 (01:02 +0000)]
Fix last check-in.

14 years ago(build_wcs_upper_buffer): Fix portability bugs in int versus size_t
drepper [Wed, 7 Sep 2005 00:45:44 +0000 (00:45 +0000)]
(build_wcs_upper_buffer): Fix portability bugs in int versus size_t
comparisons.

14 years ago(create_ci_newstate, create_cd_newstate, register_state): Make first
drepper [Wed, 7 Sep 2005 00:23:41 +0000 (00:23 +0000)]
(create_ci_newstate, create_cd_newstate, register_state): Make first
pointer arg a pointer-to-const.

(re_acquire_state): Make DFA pointer arg a pointer-to-const.

14 years ago(search_cur_bkref_entry, check_dst_limits):
drepper [Wed, 7 Sep 2005 00:07:35 +0000 (00:07 +0000)]
(search_cur_bkref_entry, check_dst_limits):
(check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
(group_nodes_into_DFAstates): Likewise.

14 years agoAdjust prototypes of re_acquire_state and re_acquire_state_context.
drepper [Tue, 6 Sep 2005 23:56:39 +0000 (23:56 +0000)]
Adjust prototypes of re_acquire_state and re_acquire_state_context.

14 years ago(search_duplicated_node): Make first pointer arg a pointer-to-const.
drepper [Tue, 6 Sep 2005 23:49:41 +0000 (23:49 +0000)]
(search_duplicated_node): Make first pointer arg a pointer-to-const.

14 years ago(re_search_internal): Simplify update of
drepper [Tue, 6 Sep 2005 23:35:05 +0000 (23:35 +0000)]
(re_search_internal): Simplify update of
rm_so and rm_eo by replacing "if (A == B) A += C - B;"
with the equivalent of "if (A == B) A = C;".

14 years ago(re_compile_internal): Change third parameter type to size_t.
drepper [Tue, 6 Sep 2005 23:29:56 +0000 (23:29 +0000)]
(re_compile_internal): Change third parameter type to size_t.
(init_dfa): Likewise.  Make sure that arithmetic on pat_len doesn't overflow.

14 years ago(re_dfa_add_node): Use size_t as type for new_nodes_alloc. Check for overflow.
drepper [Tue, 6 Sep 2005 23:28:55 +0000 (23:28 +0000)]
(re_dfa_add_node): Use size_t as type for new_nodes_alloc.  Check for overflow.

14 years ago(struct re_dfa_t): Change type of nodes_alloc and nodes_len to size_t.
drepper [Tue, 6 Sep 2005 23:27:40 +0000 (23:27 +0000)]
(struct re_dfa_t): Change type of nodes_alloc and nodes_len to size_t.

14 years ago(check_dst_limits_calc_pos_1): Don't assume 1<<31 has defined behavior
drepper [Tue, 6 Sep 2005 23:08:47 +0000 (23:08 +0000)]
(check_dst_limits_calc_pos_1): Don't assume 1<<31 has defined behavior
on hosts with 32-bit int, since the signed shift might overflow.  Use
1u<<31 instead.
(check_subexp_matching_top): Likewise.

(check_dst_limits_calc_pos_1): Do not shift more bits than there are
in a word, as the resulting behavior is undefined.  In one case, a <=
should have been an <, and in another case the whole test was missing.

14 years ago(bitset_set, bitset_clear, bitset_contain): Don't assume 1<<31 has
drepper [Tue, 6 Sep 2005 23:05:18 +0000 (23:05 +0000)]
(bitset_set, bitset_clear, bitset_contain): Don't assume 1<<31 has
defined behavior on hosts with 32-bit int, since the signed shift
might overflow.  Use 1u<<31 instead.

(BYTE_BITS): Remove.  All uses changed to the standard name CHAR_BIT.

14 years ago(re_compile_fastmap_iter, init_dfa, init_word_char):
drepper [Tue, 6 Sep 2005 23:03:50 +0000 (23:03 +0000)]
(re_compile_fastmap_iter, init_dfa, init_word_char):
(optimize_subexps, lower_subexp):
Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
since the signed shift might overflow.  Use 1u<<31 instead.

(optimize_subexps, lower_subexp): Use CHAR_BIT rather than 8, for clarity.

(init_dfa): Make table_size unsigned, so that we don't have to worry
about portability issues when shifting it left.  Remove
no-longer-needed test for table_size > 0.

(parse_sub_exp): Do not shift more bits than there are in a word, as
the resulting behavior is undefined.

14 years ago.
drepper [Tue, 6 Sep 2005 21:15:13 +0000 (21:15 +0000)]
.

14 years ago(init_dfa): Don't initialize unused members.
drepper [Tue, 6 Sep 2005 21:05:50 +0000 (21:05 +0000)]
(init_dfa): Don't initialize unused members.

14 years ago(re_sub_match_top_t): Remove unused member next_last_offset.
drepper [Tue, 6 Sep 2005 21:04:31 +0000 (21:04 +0000)]
(re_sub_match_top_t): Remove unused member next_last_offset.
(struct re_dfa_t): Remove unused member states_alloc.

14 years agoInclude <alloca.h>.
drepper [Tue, 6 Sep 2005 20:51:14 +0000 (20:51 +0000)]
Include <alloca.h>.
(__libc_use_alloca) [!defined _LIBC]: New macro.

14 years agoRemove portability cruft for alloca. This no longer needs to be at
drepper [Tue, 6 Sep 2005 20:49:44 +0000 (20:49 +0000)]
Remove portability cruft for alloca.  This no longer needs to be at
the start of the file, and can be moved into regex_internal.h and
simplified.

14 years ago(set_regs): Don't alloca with an unbounded size.
drepper [Tue, 6 Sep 2005 20:48:27 +0000 (20:48 +0000)]
(set_regs): Don't alloca with an unbounded size.

(build_trtable): Remove "#ifdef _LIBC", since the code now works outside glibc.

14 years agoRemove use of _RE_ARGS.
drepper [Tue, 6 Sep 2005 20:37:50 +0000 (20:37 +0000)]
Remove use of _RE_ARGS.

14 years ago(find_recover_state): Change "err" to "*err".
drepper [Tue, 6 Sep 2005 20:30:31 +0000 (20:30 +0000)]
(find_recover_state): Change "err" to "*err".

14 years ago(POSIX Regexp Compilation): Likewise.
drepper [Tue, 6 Sep 2005 20:23:05 +0000 (20:23 +0000)]
(POSIX Regexp Compilation): Likewise.
Similarly for regcomp and regexec.  Also, first 2 args of regexec
and 2nd arg of regerror are const.

14 years ago(regerror): Pointer args are 'restrict', as per POSIX.
drepper [Tue, 6 Sep 2005 20:22:13 +0000 (20:22 +0000)]
(regerror): Pointer args are 'restrict', as per POSIX.

14 years ago(regerror): Pointer args are 'restrict', as per POSIX.
drepper [Tue, 6 Sep 2005 20:20:56 +0000 (20:20 +0000)]
(regerror): Pointer args are 'restrict', as per POSIX.

14 years agoDo not include <sys/types.h>, as POSIX no longer requires this. (The
drepper [Tue, 6 Sep 2005 20:09:38 +0000 (20:09 +0000)]
Do not include <sys/types.h>, as POSIX no longer requires this.  (The
code never needed it.)

14 years ago(sift_states_bkref): re_node_set_insert returns int, not reg_errcode_t.
drepper [Tue, 6 Sep 2005 19:34:30 +0000 (19:34 +0000)]
(sift_states_bkref): re_node_set_insert returns int, not reg_errcode_t.

14 years ago(calc_state_hash): Put 'inline' before type, since some compilers warn
drepper [Tue, 6 Sep 2005 18:52:05 +0000 (18:52 +0000)]
(calc_state_hash): Put 'inline' before type, since some compilers warn
about it otherwise.

14 years ago(create_initial_state): Remove duplicate decl.
drepper [Tue, 6 Sep 2005 18:37:06 +0000 (18:37 +0000)]
(create_initial_state): Remove duplicate decl.

14 years ago(_RE_ARGS): Remove. No longer needed, since we assume C89 or better.
drepper [Tue, 6 Sep 2005 18:17:56 +0000 (18:17 +0000)]
(_RE_ARGS): Remove.  No longer needed, since we assume C89 or better.
All uses removed.

14 years agoPrevent using C++ compilers.
drepper [Tue, 6 Sep 2005 18:14:53 +0000 (18:14 +0000)]
Prevent using C++ compilers.

14 years ago(duplicate_node): Return new index, not an error code, and let the
drepper [Tue, 6 Sep 2005 18:03:28 +0000 (18:03 +0000)]
(duplicate_node): Return new index, not an error code, and let the
caller return REG_ESPACE if out of space.  This removes an
uninitialied-variable warning with GCC 4.0.1, and also avoids taking
the address of a local variable.  All callers changed.

14 years ago(__strptime_internal): Rename parameter to avoid bogus compiler warning.
drepper [Tue, 6 Sep 2005 17:40:26 +0000 (17:40 +0000)]
(__strptime_internal): Rename parameter to avoid bogus compiler warning.

14 years ago(proceed_next_node): Redo local variables to avoid GCC shadowing warnings.
drepper [Tue, 6 Sep 2005 17:36:11 +0000 (17:36 +0000)]
(proceed_next_node): Redo local variables to avoid GCC shadowing warnings.

14 years ago(re_string_realloc_buffers):
drepper [Tue, 6 Sep 2005 17:29:29 +0000 (17:29 +0000)]
(re_string_realloc_buffers):
(re_node_set_insert, re_node_set_insert_last, re_dfa_add_node):
Rename local variables to avoid GCC shadowing warnings.

Minor code rearrangements.

14 years ago(init_dfa): Store __btowc value in wint_t, not wchar_t. Remove
drepper [Tue, 6 Sep 2005 16:42:00 +0000 (16:42 +0000)]
(init_dfa): Store __btowc value in wint_t, not wchar_t.  Remove
now-unnecessary cast.
(build_range_exp): Likewise.

14 years ago.
drepper [Tue, 6 Sep 2005 05:38:04 +0000 (05:38 +0000)]
.

14 years ago(__ieee754_hypotf): Remove the exponent bias from the increment value
drepper [Tue, 6 Sep 2005 05:36:56 +0000 (05:36 +0000)]
(__ieee754_hypotf): Remove the exponent bias from the increment value
for scaling by 2^60.

14 years ago.
drepper [Tue, 6 Sep 2005 01:20:31 +0000 (01:20 +0000)]
.

14 years ago.
drepper [Tue, 6 Sep 2005 01:19:22 +0000 (01:19 +0000)]
.

14 years ago.
drepper [Tue, 6 Sep 2005 01:18:13 +0000 (01:18 +0000)]
.

14 years agoRegenerated: autoconf configure.in
drepper [Tue, 6 Sep 2005 01:18:05 +0000 (01:18 +0000)]
Regenerated: autoconf  configure.in

14 years agoCompile source test file with -fPIC for -shared.
drepper [Tue, 6 Sep 2005 01:16:56 +0000 (01:16 +0000)]
Compile source test file with -fPIC for -shared.

14 years ago(__lll_mutex_lock_wait): Fix typo in register name.
drepper [Tue, 6 Sep 2005 01:15:33 +0000 (01:15 +0000)]
(__lll_mutex_lock_wait): Fix typo in register name.

14 years ago.
drepper [Mon, 5 Sep 2005 07:10:37 +0000 (07:10 +0000)]
.

14 years agoFix error message.
drepper [Mon, 5 Sep 2005 07:01:40 +0000 (07:01 +0000)]
Fix error message.

14 years ago(do_test): Unlink correct file.
drepper [Mon, 5 Sep 2005 06:57:55 +0000 (06:57 +0000)]
(do_test): Unlink correct file.

14 years ago.
drepper [Mon, 5 Sep 2005 05:01:36 +0000 (05:01 +0000)]
.

14 years agoEliminate DEFINE_DIRECTION_OBJECTS macro use, it wasn't used.
drepper [Mon, 5 Sep 2005 05:00:46 +0000 (05:00 +0000)]
Eliminate DEFINE_DIRECTION_OBJECTS macro use, it wasn't used.
Remove use of from_object and to_object variable, replace with some
constants.  Adjust users.

14 years ago.
drepper [Sun, 4 Sep 2005 20:49:31 +0000 (20:49 +0000)]
.

14 years agoi386 are obsolete.
drepper [Sun, 4 Sep 2005 20:47:49 +0000 (20:47 +0000)]
i386 are obsolete.

14 years agoSmaller types than int are not always atomic.
drepper [Sun, 4 Sep 2005 20:45:58 +0000 (20:45 +0000)]
Smaller types than int are not always atomic.

14 years ago.
drepper [Sun, 4 Sep 2005 20:10:35 +0000 (20:10 +0000)]
.

14 years ago(_IO_old_file_xsputn): If overflow fails and no more data would have
drepper [Sun, 4 Sep 2005 20:09:33 +0000 (20:09 +0000)]
(_IO_old_file_xsputn): If overflow fails and no more data would have
to be written signal error.

14 years ago(_IO_new_file_xsputn): If overflow fails and no more data would have
drepper [Sun, 4 Sep 2005 20:07:40 +0000 (20:07 +0000)]
(_IO_new_file_xsputn): If overflow fails and no more data would have
to be written signal error.

(_IO_new_file_overflow): Use NULL not 0.

14 years ago(tests): Add tst-put-error.
drepper [Sun, 4 Sep 2005 20:04:54 +0000 (20:04 +0000)]
(tests): Add tst-put-error.

14 years agoTest of sputn error after first output.
drepper [Sun, 4 Sep 2005 20:04:34 +0000 (20:04 +0000)]
Test of sputn error after first output.

14 years ago.
drepper [Fri, 2 Sep 2005 07:34:55 +0000 (07:34 +0000)]
.

14 years ago(_dl_map_object_from_fd): No need to change protection of memory used
drepper [Fri, 2 Sep 2005 07:33:58 +0000 (07:33 +0000)]
(_dl_map_object_from_fd): No need to change protection of memory used
for the last segment.

14 years ago.
roland [Fri, 2 Sep 2005 05:07:56 +0000 (05:07 +0000)]
.

14 years ago2005-08-22 Robert Millan <robertmh@gnu.org>
roland [Fri, 2 Sep 2005 05:07:50 +0000 (05:07 +0000)]
2005-08-22  Robert Millan  <robertmh@gnu.org>

* sysdeps/mach/hurd/nfs/nfs.h: Move to ...
* sysdeps/generic/nfs/nfs.h: ... here.

14 years ago.
drepper [Thu, 1 Sep 2005 15:16:13 +0000 (15:16 +0000)]
.

14 years agoRemove __wur from ungetc, sscanf, and vsscanf.
drepper [Thu, 1 Sep 2005 15:14:59 +0000 (15:14 +0000)]
Remove __wur from ungetc, sscanf, and vsscanf.
Add __wur to feof{,_unlocked}, ferror{,_unlocked}, fileno{,_unlocked}, and
popen.

14 years ago.
drepper [Tue, 30 Aug 2005 22:48:53 +0000 (22:48 +0000)]
.

14 years ago(__ieee754_hypotf): Add missing exponent bias to the value for 2^126.
drepper [Tue, 30 Aug 2005 22:47:14 +0000 (22:47 +0000)]
(__ieee754_hypotf): Add missing exponent bias to the value for 2^126.

[!__STDC__]: Fix function name.

14 years agoDynamic linker definitions of linux/ppc64.
drepper [Tue, 30 Aug 2005 22:33:13 +0000 (22:33 +0000)]
Dynamic linker definitions of linux/ppc64.

14 years ago(DL_ADDR_SYM_MATCH): Define.
drepper [Tue, 30 Aug 2005 22:32:22 +0000 (22:32 +0000)]
(DL_ADDR_SYM_MATCH): Define.

14 years ago(_dl_addr): Use DL_ADDR_SYM_MATCH macro.
drepper [Tue, 30 Aug 2005 22:31:41 +0000 (22:31 +0000)]
(_dl_addr): Use DL_ADDR_SYM_MATCH macro.

14 years ago. fedora-glibc-20050824T0705
drepper [Wed, 24 Aug 2005 06:37:27 +0000 (06:37 +0000)]
.

14 years ago(nscd_parse_file): Use error while process isn't running in the
drepper [Wed, 24 Aug 2005 06:36:45 +0000 (06:36 +0000)]
(nscd_parse_file): Use error while process isn't running in the
background, not dbg_log.
Mark messages with _().  Unify testing for database name.

14 years ago(main): Use error while process isn't running in the background, not dbg_log.
drepper [Wed, 24 Aug 2005 06:33:23 +0000 (06:33 +0000)]
(main): Use error while process isn't running in the background, not dbg_log.

14 years ago.
drepper [Wed, 24 Aug 2005 01:12:37 +0000 (01:12 +0000)]
.