kopensolaris-gnu/glibc.git
15 years ago2004-11-17 Roland McGrath <roland@redhat.com>
roland [Wed, 17 Nov 2004 21:26:59 +0000 (21:26 +0000)]
2004-11-17  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread):
Make sure SIGCANCEL is blocked as well.

15 years agoUpdate.
drepper [Wed, 17 Nov 2004 09:10:08 +0000 (09:10 +0000)]
Update.

15 years agoInclude <sys/uio.h>.
drepper [Wed, 17 Nov 2004 09:09:28 +0000 (09:09 +0000)]
Include <sys/uio.h>.

15 years agoUpdate. fedora-glibc-20041116T0856
drepper [Mon, 15 Nov 2004 22:00:25 +0000 (22:00 +0000)]
Update.

15 years ago(nis_clone_object): Rename out3 label to out2 and out2 to out. Remove
drepper [Mon, 15 Nov 2004 21:59:42 +0000 (21:59 +0000)]
(nis_clone_object): Rename out3 label to out2 and out2 to out.  Remove
out label.  Formatting.

15 years agoInclude string.h.
drepper [Mon, 15 Nov 2004 21:59:15 +0000 (21:59 +0000)]
Include string.h.

15 years ago(__libc_fatal): Add loop to fool gcc.
drepper [Mon, 15 Nov 2004 21:57:52 +0000 (21:57 +0000)]
(__libc_fatal): Add loop to fool gcc.
(__libc_message): Fix typo.

15 years ago(__libc_fatal): Add loop to fool gcc.
drepper [Mon, 15 Nov 2004 21:57:08 +0000 (21:57 +0000)]
(__libc_fatal): Add loop to fool gcc.
Include <stdbool.h>.

15 years agoDo not mark __libc_message as noreturn.
drepper [Mon, 15 Nov 2004 21:56:18 +0000 (21:56 +0000)]
Do not mark __libc_message as noreturn.

15 years agoUpdate. fedora-glibc-20041115T0915
drepper [Sat, 13 Nov 2004 19:50:50 +0000 (19:50 +0000)]
Update.

15 years ago(malloc_state): stat_lock_* elements need only be defined if
drepper [Sat, 13 Nov 2004 19:49:43 +0000 (19:49 +0000)]
(malloc_state): stat_lock_* elements need only be defined if
THREAD_STATS is defined.  Remove pad0_ since it does not align with
cache line sizes in general anyway.

15 years agoUpdate.
drepper [Sat, 13 Nov 2004 18:58:01 +0000 (18:58 +0000)]
Update.

15 years ago(print_statistics): Avoid segfaults if not all namespaces
drepper [Sat, 13 Nov 2004 18:57:22 +0000 (18:57 +0000)]
(print_statistics): Avoid segfaults if not all namespaces
are used.  Fix computation of num_relative_relocations on RELA
architectures other than IA-64 and Alpha.

15 years ago(_int_free): Use munmap_chunk for handling mmaped memory.
drepper [Sat, 13 Nov 2004 18:53:57 +0000 (18:53 +0000)]
(_int_free): Use munmap_chunk for handling mmaped memory.

15 years agoUpdate.
drepper [Sat, 13 Nov 2004 05:43:36 +0000 (05:43 +0000)]
Update.

15 years ago(_int_free): Remove test for NULL parameter.
drepper [Sat, 13 Nov 2004 05:42:35 +0000 (05:42 +0000)]
(_int_free): Remove test for NULL parameter.
(_int_realloc): Call _int_free only if memory parameter is not NULL.

15 years agoAdd one missing va_end.
drepper [Sat, 13 Nov 2004 04:56:24 +0000 (04:56 +0000)]
Add one missing va_end.

15 years agoUpdate.
drepper [Sat, 13 Nov 2004 03:13:00 +0000 (03:13 +0000)]
Update.

15 years agoEnsure that debug messages are not printed to the terminal or stderr.
drepper [Sat, 13 Nov 2004 03:12:23 +0000 (03:12 +0000)]
Ensure that debug messages are not printed to the terminal or stderr.

15 years agoAlso print message with __libc_message.
drepper [Sat, 13 Nov 2004 03:11:28 +0000 (03:11 +0000)]
Also print message with __libc_message.

15 years agoDeclare __libc_message.
drepper [Sat, 13 Nov 2004 03:11:03 +0000 (03:11 +0000)]
Declare __libc_message.

15 years ago(malloc_printerr): Use __libc_message.
drepper [Sat, 13 Nov 2004 03:10:31 +0000 (03:10 +0000)]
(malloc_printerr): Use __libc_message.

15 years agoAdd new function __libc_message which performs the printing and simple
drepper [Sat, 13 Nov 2004 03:09:29 +0000 (03:09 +0000)]
Add new function __libc_message which performs the printing and simple
format string handling.  The string is written to tty, stderr, syslog
in this order, stopping after the first successful output.

15 years ago.
roland [Fri, 12 Nov 2004 21:51:46 +0000 (21:51 +0000)]
.

15 years ago2004-11-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
roland [Fri, 12 Nov 2004 21:51:33 +0000 (21:51 +0000)]
2004-11-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>

* elf/elf.h: Add 20 bit relocations R_390_*20.

15 years agoRemove gpl2lgpl variable.
drepper [Fri, 12 Nov 2004 19:46:34 +0000 (19:46 +0000)]
Remove gpl2lgpl variable.

15 years agoUpdate.
drepper [Fri, 12 Nov 2004 19:22:26 +0000 (19:22 +0000)]
Update.

15 years agoInclude linux/posix_types.h.
drepper [Fri, 12 Nov 2004 19:21:32 +0000 (19:21 +0000)]
Include linux/posix_types.h.

15 years agoUpdate.
drepper [Fri, 12 Nov 2004 19:06:21 +0000 (19:06 +0000)]
Update.

15 years ago(ypprot_err): Fix "minor optimizations".
drepper [Fri, 12 Nov 2004 19:05:10 +0000 (19:05 +0000)]
(ypprot_err): Fix "minor optimizations".

15 years agoUpdate. fedora-glibc-20041112T1640
drepper [Fri, 12 Nov 2004 09:45:05 +0000 (09:45 +0000)]
Update.

15 years ago(tests): Add bug-regex24.
drepper [Fri, 12 Nov 2004 09:44:09 +0000 (09:44 +0000)]
(tests): Add bug-regex24.

15 years ago(check_dst_limits_calc_pos_1): Use the map to cut recursive paths.
drepper [Fri, 12 Nov 2004 09:43:20 +0000 (09:43 +0000)]
(check_dst_limits_calc_pos_1): Use the map to cut recursive paths.
Make exit condition more precise.
(match_ctx_add_entry): Initialize the map.

15 years ago(struct re_backref_cache_entry): Add a map of reachable subexpression
drepper [Fri, 12 Nov 2004 09:42:23 +0000 (09:42 +0000)]
(struct re_backref_cache_entry): Add a map of reachable subexpression
nodes from each backreference cache entry.

15 years agoTest of matching subexpressions.
drepper [Fri, 12 Nov 2004 09:41:34 +0000 (09:41 +0000)]
Test of matching subexpressions.

15 years agoUpdate.
drepper [Fri, 12 Nov 2004 01:27:04 +0000 (01:27 +0000)]
Update.

15 years agoAdd rules to build and test tst-setuid1 and tst-setuid1-static.
drepper [Fri, 12 Nov 2004 01:26:09 +0000 (01:26 +0000)]
Add rules to build and test tst-setuid1 and tst-setuid1-static.

15 years agoTests for set[gu]id.
drepper [Fri, 12 Nov 2004 01:25:37 +0000 (01:25 +0000)]
Tests for set[gu]id.

15 years ago(__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the calling thread,
drepper [Fri, 12 Nov 2004 01:24:55 +0000 (01:24 +0000)]
(__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the calling thread,
return its return value and set errno on failure.

15 years ago(struct xid_command): Change id type to long array.
drepper [Fri, 12 Nov 2004 01:24:24 +0000 (01:24 +0000)]
(struct xid_command): Change id type to long array.

15 years ago(__nptl_setxid): Change return type to int.
drepper [Fri, 12 Nov 2004 01:23:59 +0000 (01:23 +0000)]
(__nptl_setxid): Change return type to int.

15 years ago(HAVE_PTR__NPTL_SETXID): Remove.
drepper [Fri, 12 Nov 2004 01:22:40 +0000 (01:22 +0000)]
(HAVE_PTR__NPTL_SETXID): Remove.
(struct xid_command): Add forward decl.
(struct pthread_functions): Change return type of __nptl_setxid hook to int.

15 years agoNPTL definitions for setXid function definitions.
drepper [Fri, 12 Nov 2004 01:22:00 +0000 (01:22 +0000)]
NPTL definitions for setXid function definitions.

15 years agoUpdate.
drepper [Fri, 12 Nov 2004 01:20:42 +0000 (01:20 +0000)]
Update.

15 years ago(binaries-static): Add xtests-static.
drepper [Fri, 12 Nov 2004 01:19:22 +0000 (01:19 +0000)]
(binaries-static): Add xtests-static.

15 years ago(run-program-prefix): Filter also xtests-static.
drepper [Fri, 12 Nov 2004 01:18:47 +0000 (01:18 +0000)]
(run-program-prefix): Filter also xtests-static.

15 years agoUnix definitions for setXid function definitions.
drepper [Fri, 12 Nov 2004 01:17:42 +0000 (01:17 +0000)]
Unix definitions for setXid function definitions.

15 years ago(setresuid, setresgid): Remove.
drepper [Fri, 12 Nov 2004 01:15:38 +0000 (01:15 +0000)]
(setresuid, setresgid): Remove.

15 years agoRemove sys/syscall.h, sys/types.h, linux/posix_types.h, sysdep.h and
drepper [Fri, 12 Nov 2004 01:15:05 +0000 (01:15 +0000)]
Remove sys/syscall.h, sys/types.h, linux/posix_types.h, sysdep.h and
pthread-functions.h includes.  Include setxid.h.  Use
INLINE_SETXID_SYSCALL macro instead of INLINE_SYSCALL, kill the
HAVE_PTR__NPTL_SETXID guarded snippets.

15 years ago.
roland [Thu, 11 Nov 2004 22:31:17 +0000 (22:31 +0000)]
.

15 years ago2004-11-09 Paul Eggert <eggert@cs.ucla.edu.
roland [Thu, 11 Nov 2004 22:30:56 +0000 (22:30 +0000)]
2004-11-09  Paul Eggert  <eggert@cs.ucla.edu.

[BZ #535]
* time/difftime.c: Fix a double-rounding bug on hosts with
64-bit time_t and long double being IEEE double.  Also, port
to more valid C99 hosts, even those that have padding bits.
Don't include <values.h> since it is marked as an obsolescent
interface.  Include <limits.h>, <float.h>, and <stdint.h> instead.
(TYPE_BITS, TYPE_FLOATING, TYPE_SIGNED): New macros.
(subtract): New static function, that works correctly without
double-rounding, even on hosts with 64-bit time_t.  Also cater
to hosts with padding bits.
(__difftime): Use it.  Use DBL_MANT_DIG and LDBL_MANT_DIG to
determine whether floating types are wide enough: the old
test (which used sizeof) could in theory report the wrong results
on hosts with padding bits in floating-point values.

15 years ago.
roland [Thu, 11 Nov 2004 22:15:51 +0000 (22:15 +0000)]
.

15 years ago2004-11-11 Simon Josefsson <jas@extundo.com>
roland [Thu, 11 Nov 2004 22:15:46 +0000 (22:15 +0000)]
2004-11-11  Simon Josefsson  <jas@extundo.com>

[BZ #542]
* sysdeps/generic/strtok_r.c [HAVE_CONFIG_H]: Include config.h.
[!_LIBC]: Include strtok_r.h (in gnulib), map __strtok_r to
strtok_r and __rawmemchr to strch.
(__strtok_r): Use C89 prototype.
[weak_alias]: Move calls to libc_hidden_def and weak_alias into
this #ifdef.

15 years ago.
roland [Thu, 11 Nov 2004 00:28:28 +0000 (00:28 +0000)]
.

15 years ago2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
roland [Thu, 11 Nov 2004 00:28:17 +0000 (00:28 +0000)]
2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #541]
* time/mktime.c (SHR): New macro, which is a portable
substitute for >> that should work even on Crays.
(TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
Problem reported by Mark D. Baushke in
<http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.

15 years agoUpdate.
drepper [Wed, 10 Nov 2004 18:51:26 +0000 (18:51 +0000)]
Update.

15 years ago(match_ctx_free_subtops): Remove, merge into...
drepper [Wed, 10 Nov 2004 18:50:30 +0000 (18:50 +0000)]
(match_ctx_free_subtops): Remove, merge into...
(match_ctx_clean): ... this function.
(match_ctx_free): Call match_ctx_clean.

15 years agoUpdate.
drepper [Wed, 10 Nov 2004 15:48:06 +0000 (15:48 +0000)]
Update.

15 years ago(transit_state): Remove the check for out-of-bounds buffers.
drepper [Wed, 10 Nov 2004 15:47:09 +0000 (15:47 +0000)]
(transit_state): Remove the check for out-of-bounds buffers.
(check_matching): Check here for out-of-bounds buffers.
(re_search_internal): Store into match_kind a set of bits
indicating which incantation of fastmap scanning must be
used.  Use a switch statement instead of multiple ifs.
Exit the final "for (;;)" with goto free_return unless
the match succeeded, thus simplifying some conditionals.

15 years ago(re_string_reconstruct, re_string_context_at): Add several branch
drepper [Wed, 10 Nov 2004 14:29:26 +0000 (14:29 +0000)]
(re_string_reconstruct, re_string_context_at): Add several branch
predictions for case-sensitive matching and no transition table being
used.

15 years agoDon't use error to print error message, they won't end up in the .out file.
drepper [Wed, 10 Nov 2004 14:27:52 +0000 (14:27 +0000)]
Don't use error to print error message, they won't end up in the .out file.

15 years agoUpdate. fedora-glibc-20041110T0839
drepper [Wed, 10 Nov 2004 07:54:40 +0000 (07:54 +0000)]
Update.

15 years ago(tests): Add tst-exit3.
drepper [Wed, 10 Nov 2004 07:54:08 +0000 (07:54 +0000)]
(tests): Add tst-exit3.

15 years agoTest refcouting in thread creation.
drepper [Wed, 10 Nov 2004 07:53:49 +0000 (07:53 +0000)]
Test refcouting in thread creation.

15 years agoUse map from nscd_getgr.c.
drepper [Wed, 10 Nov 2004 07:52:02 +0000 (07:52 +0000)]
Use map from nscd_getgr.c.

15 years agoUse map from nscd_gethost.c.
drepper [Wed, 10 Nov 2004 07:51:37 +0000 (07:51 +0000)]
Use map from nscd_gethost.c.

15 years agoAdjust for libc_locked_map_ptr change.
drepper [Wed, 10 Nov 2004 07:51:12 +0000 (07:51 +0000)]
Adjust for libc_locked_map_ptr change.
(hst_map_free): Ensure no crash after memory is freed.
Make map externally visible.

15 years agoAdjust for libc_locked_map_ptr change.
drepper [Wed, 10 Nov 2004 07:50:46 +0000 (07:50 +0000)]
Adjust for libc_locked_map_ptr change.
(gr_map_free): Ensure no crash after memory is freed.
Make map externally visible.

15 years ago(libc_locked_map_ptr): Add new first parameter, used as class for
drepper [Wed, 10 Nov 2004 07:50:03 +0000 (07:50 +0000)]
(libc_locked_map_ptr): Add new first parameter, used as class for
definition.

15 years agoAdjust for libc_locked_map_ptr change.
drepper [Wed, 10 Nov 2004 07:49:22 +0000 (07:49 +0000)]
Adjust for libc_locked_map_ptr change.
(pw_map_free): Ensure no crash after memory is freed.

15 years ago(libc_locked_map_ptr): Add new first parameter, used as class for definition.
drepper [Wed, 10 Nov 2004 07:44:56 +0000 (07:44 +0000)]
(libc_locked_map_ptr): Add new first parameter, used as class for definition.

15 years agoAdd some checks to detect corrupt databases.
drepper [Wed, 10 Nov 2004 07:28:10 +0000 (07:28 +0000)]
Add some checks to detect corrupt databases.

15 years agoUpdate.
drepper [Wed, 10 Nov 2004 07:26:28 +0000 (07:26 +0000)]
Update.

15 years agoUpdate.
drepper [Wed, 10 Nov 2004 00:50:40 +0000 (00:50 +0000)]
Update.

15 years agoAdd 5 new tests.
drepper [Wed, 10 Nov 2004 00:50:02 +0000 (00:50 +0000)]
Add 5 new tests.

15 years ago(calc_eclosure_iter): Don't access dfa->edests[node].elems[0] if
drepper [Wed, 10 Nov 2004 00:49:33 +0000 (00:49 +0000)]
(calc_eclosure_iter): Don't access dfa->edests[node].elems[0] if
dfa->edests[node].nelem == 0.

15 years agoPretty printing.
drepper [Wed, 10 Nov 2004 00:46:50 +0000 (00:46 +0000)]
Pretty printing.

15 years ago.
drepper [Wed, 10 Nov 2004 00:38:10 +0000 (00:38 +0000)]
.

15 years agoUpdate.
drepper [Wed, 10 Nov 2004 00:37:05 +0000 (00:37 +0000)]
Update.

15 years agoDetermine sin6_scope_id field value correctly.
drepper [Wed, 10 Nov 2004 00:36:30 +0000 (00:36 +0000)]
Determine sin6_scope_id field value correctly.

15 years agoUpdate.
drepper [Tue, 9 Nov 2004 23:12:36 +0000 (23:12 +0000)]
Update.

15 years agoTest for bookkeeping of running threads.
drepper [Tue, 9 Nov 2004 23:11:16 +0000 (23:11 +0000)]
Test for bookkeeping of running threads.

15 years ago(tests): Add tst-exit2.
drepper [Tue, 9 Nov 2004 23:11:12 +0000 (23:11 +0000)]
(tests): Add tst-exit2.

15 years ago.
roland [Tue, 9 Nov 2004 21:52:54 +0000 (21:52 +0000)]
.

15 years ago2004-11-09 Roland McGrath <roland@redhat.com>
roland [Tue, 9 Nov 2004 21:52:48 +0000 (21:52 +0000)]
2004-11-09  Roland McGrath  <roland@redhat.com>

[BZ #530]
* sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
here, before calling clone.
* pthread_create.c (start_thread): Don't do it here.

15 years agoPretty printing.
drepper [Tue, 9 Nov 2004 09:12:14 +0000 (09:12 +0000)]
Pretty printing.

15 years agoUpdate.
drepper [Tue, 9 Nov 2004 07:05:27 +0000 (07:05 +0000)]
Update.

15 years ago(tests): Add bug-ungetc3.
drepper [Tue, 9 Nov 2004 07:04:56 +0000 (07:04 +0000)]
(tests): Add bug-ungetc3.

15 years agoTest for ftell after ungetc.
drepper [Tue, 9 Nov 2004 07:04:36 +0000 (07:04 +0000)]
Test for ftell after ungetc.

15 years ago(_IO_new_file_seekoff): If mode is 0 and fp->_offset == _IO_pos_BAD,
drepper [Tue, 9 Nov 2004 07:04:08 +0000 (07:04 +0000)]
(_IO_new_file_seekoff): If mode is 0 and fp->_offset == _IO_pos_BAD,
just call _IO_SYSSEEK (fp, 0, dir) and if successful set fp->_offset.

15 years ago.
roland [Mon, 8 Nov 2004 23:15:54 +0000 (23:15 +0000)]
.

15 years ago2004-11-03 Marcus Brinkmann <marcus@gnu.org>
roland [Mon, 8 Nov 2004 23:15:46 +0000 (23:15 +0000)]
2004-11-03  Marcus Brinkmann  <marcus@gnu.org>

* sysdeps/gnu/_G_config.h (_G_HAVE_MREMAP): Define symbol.
* sysdeps/mach/hurd/_G_config.h: New file.
* libio/fileops.c (mmap_remap_check) [__linux__]: Replaced with
[_G_HAVE_MREMAP].

15 years agoUpdate.
drepper [Mon, 8 Nov 2004 22:49:44 +0000 (22:49 +0000)]
Update.

15 years ago(utf8_sb_map): Define.
drepper [Mon, 8 Nov 2004 22:48:34 +0000 (22:48 +0000)]
(utf8_sb_map): Define.
(free_dfa_content): Don't free dfa->sb_char if it's a pointer to utf8_sb_map.
(init_dfa): Use utf8_sb_map instead of initializing memory when the encoding
is UTF-8.

15 years ago(build_wcs_upper_buffer) [!_LIBC]: Enable optimizations based on map_notascii.
drepper [Mon, 8 Nov 2004 22:21:32 +0000 (22:21 +0000)]
(build_wcs_upper_buffer) [!_LIBC]: Enable optimizations based on map_notascii.

15 years ago[HAVE_LANGINFO_H || HAVE_LANGINFO_CODESET || _LIBC]: Include langinfo.h.
drepper [Mon, 8 Nov 2004 22:20:23 +0000 (22:20 +0000)]
[HAVE_LANGINFO_H || HAVE_LANGINFO_CODESET || _LIBC]: Include langinfo.h.

15 years agoRemove unused variables.
drepper [Mon, 8 Nov 2004 22:19:27 +0000 (22:19 +0000)]
Remove unused variables.

15 years ago(init_dfa): Get the codeset name outside glibc as well. Check if it
drepper [Mon, 8 Nov 2004 22:12:03 +0000 (22:12 +0000)]
(init_dfa): Get the codeset name outside glibc as well.  Check if it
is spelled UTF8 as well as UTF-8, and check case-insensitively.  Set
dfa->map_notascii manually when outside glibc.

15 years ago(check_dst_limits): Hoist computation of the source
drepper [Mon, 8 Nov 2004 21:48:14 +0000 (21:48 +0000)]
(check_dst_limits): Hoist computation of the source
and destination bkref_idx out of the loop.  Pass it to
check_dst_limits_calc_pos.
(check_dst_limits_calc_pos_1): New function, containing the recursive
loop of check_dst_limits_calc_pos; uses the "more" field of
struct re_backref_cache to control the loop.
(check_dst_limits_calc_pos): Store into "boundaries" the position
relative to lim's start and end positions.  Do not accept eclosures,
accept bkref_idx instead.  Call check_dst_limits_calc_pos_1 to do the work.
(sift_states_bkref): Use the "more" field of struct re_backref_cache
to control the loop.  A big "if" was turned into a continue and the
function was reindented.
(get_subexp): Use the "more" field of struct re_backref_cache
to control the loop.
(match_ctx_add_entry): Initialize the bkref_ents' "more" field.
(search_cur_bkref_entry): Return -1 if out of bounds.

15 years ago(struct re_backref_cache_entry): Add "more" field.
drepper [Mon, 8 Nov 2004 21:47:11 +0000 (21:47 +0000)]
(struct re_backref_cache_entry): Add "more" field.