platform/upstream/coreutils.git
19 years ago(canon_host) [HAVE_GETADDRINFO]: Use memset
Jim Meyering [Sat, 9 Apr 2005 14:08:30 +0000 (14:08 +0000)]
(canon_host) [HAVE_GETADDRINFO]: Use memset
rather than `= { 0 };' to initialize local `hint'.

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 13:57:56 +0000 (13:57 +0000)]
*** empty log message ***

19 years agoReadability nit:
Jim Meyering [Sat, 9 Apr 2005 13:57:51 +0000 (13:57 +0000)]
Readability nit:

  Change this:
  #  define __attribute__(x)
  to this:
  #  define __attribute__(x) /* empty */

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 13:29:01 +0000 (13:29 +0000)]
*** empty log message ***

19 years ago(posixtime) [lint]: Avoid spurious warning from gcc-4's
Jim Meyering [Sat, 9 Apr 2005 13:28:25 +0000 (13:28 +0000)]
(posixtime) [lint]: Avoid spurious warning from gcc-4's
-Wuninitialized: initialize tm0.tm_year.

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 12:35:44 +0000 (12:35 +0000)]
*** empty log message ***

19 years ago(humblock): Set *options even when returning due to
Jim Meyering [Sat, 9 Apr 2005 12:35:41 +0000 (12:35 +0000)]
(humblock): Set *options even when returning due to
xstrtoumax conversion failure.  Thanks to a used-uninitialized
warning from gcc-4.

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 12:00:36 +0000 (12:00 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 11:57:02 +0000 (11:57 +0000)]
*** empty log message ***

19 years ago(rm invocation): Say that --recursive removes
Jim Meyering [Sat, 9 Apr 2005 11:56:55 +0000 (11:56 +0000)]
(rm invocation): Say that --recursive removes
listed directories too, not just their contents.

19 years ago(usage): Mention that --recursive removes listed
Jim Meyering [Sat, 9 Apr 2005 10:39:17 +0000 (10:39 +0000)]
(usage): Mention that --recursive removes listed
directories too, not just their contents.
Say that by default, rm does not remove directories.

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 07:25:06 +0000 (07:25 +0000)]
*** empty log message ***

19 years ago(sc_system_h_headers): Propagate exit status through trap.
Jim Meyering [Sat, 9 Apr 2005 07:24:49 +0000 (07:24 +0000)]
(sc_system_h_headers): Propagate exit status through trap.

19 years agoDon't include "timespec.h". system.h does that.
Jim Meyering [Sat, 9 Apr 2005 07:23:50 +0000 (07:23 +0000)]
Don't include "timespec.h".  system.h does that.

19 years ago(iread, iwrite): Use char * buffer, not void *, so we can do pointer
Paul Eggert [Sat, 9 Apr 2005 06:16:14 +0000 (06:16 +0000)]
(iread, iwrite): Use char * buffer, not void *, so we can do pointer
arithmetic on it.

19 years agoRegenerate.
Paul Eggert [Sat, 9 Apr 2005 05:03:01 +0000 (05:03 +0000)]
Regenerate.

19 years agoSignal-handling cleanup motivated by core dumps in dd.
Paul Eggert [Sat, 9 Apr 2005 05:00:40 +0000 (05:00 +0000)]
Signal-handling cleanup motivated by core dumps in dd.

19 years ago(SA_NOCLDSTOP): Define to 0 if not defined.
Paul Eggert [Sat, 9 Apr 2005 04:57:37 +0000 (04:57 +0000)]
(SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(main) [! SA_NOCLDSTOP]: Use it.

19 years agoRemove all uses of signals; modern hosts have
Paul Eggert [Sat, 9 Apr 2005 04:57:15 +0000 (04:57 +0000)]
Remove all uses of signals; modern hosts have
/dev/random and don't need this gorp.
Do not include signal.h.
(env, sigill_handler, isaac_seed_machdep): Remove.  All uses removed.

19 years ago(SA_NOCLDSTOP): Define to 0 if not defined.
Paul Eggert [Sat, 9 Apr 2005 04:56:10 +0000 (04:56 +0000)]
(SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(main) [! SA_NOCLDSTOP]: Use it.

19 years agoDo not include safe-read.h or full-write; no longer needed.
Paul Eggert [Sat, 9 Apr 2005 04:55:40 +0000 (04:55 +0000)]
Do not include safe-read.h or full-write; no longer needed.
(process_signals): Add forward decl.
(SA_NOCLDSTOP, sigprocmask, sigset_t) [!defined SA_NOCLDSTOP]:
New macros.
(siginterrupt) [! HAVE_SIGINTERRUPT]: New macro.
(SA_NODEFER) [!defined SA_NODEFER]: New macro.
(SA_RESETHAND) [!defined SA_RESETHAND]: New macro.
(caught_signals, interrupt_signal, info_signal_count, catch_siginfo):
New vars.
(usage): Mention -USR1 versus -INFO.
(cleanup): Don't invoke print_stats; the caller must do it now.
All callers changed.
(quit): Process signals just before exiting.
(interrupt_handler): Simply record the signal and return.
(siginfo_handler): Simply increment the signal counter and return.
(install_handler): Remove, replacing with:
(install_signal_handlers, process_signals, iread, iwrite):
New functions.  All callers to safe_read and full_write replaced
by iread and iwrite.  All callers to install_handler replaced by
install_handlers.

Do not include inttostr.h, no longer needed.
(print_stats, main): Rewrite and simplify formats to use PRIuMAX
instead of umaxtostr.
(print_stats): Work even in languages that have special
forms for two of things, for r_truncate and w_bytes.  We can't
fix delta_s in this way, since ngettext doesn't support floating-point.
(main): Rewrite to avoid casts.

19 years ago(SA_NOCLDSTOP): Define to 0 if not defined.
Paul Eggert [Sat, 9 Apr 2005 04:55:05 +0000 (04:55 +0000)]
(SA_NOCLDSTOP): Define to 0 if not defined.
All uses changed.
(siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
(delete_all_files): New arg IN_SIGNAL_HANDLER, to avoid undefined
behavior when called from a signal handler.  All uses changed.
(main) [!defined SA_NOCLDSTOP]:
Use siginterrupt to specify that system calls should be interrupted.

19 years ago(RETSIGTYPE): Remove; no longer needed. All uses replaced with void.
Paul Eggert [Sat, 9 Apr 2005 04:54:23 +0000 (04:54 +0000)]
(RETSIGTYPE): Remove; no longer needed.  All uses replaced with void.

19 years ago(gl_PREREQ_NANOSLEEP): Check for siginterrupt.
Paul Eggert [Sat, 9 Apr 2005 04:53:53 +0000 (04:53 +0000)]
(gl_PREREQ_NANOSLEEP): Check for siginterrupt.

19 years ago(gl_MACROS): Check for siginterrupt.
Paul Eggert [Sat, 9 Apr 2005 04:52:54 +0000 (04:52 +0000)]
(gl_MACROS): Check for siginterrupt.
(gl_CHECK_ALL_TYPES): Do not require AC_TYPE_SIGNAL.

19 years ago(rpl_nanosleep): Include "timespec.h" before macros
Paul Eggert [Sat, 9 Apr 2005 04:52:25 +0000 (04:52 +0000)]
(rpl_nanosleep): Include "timespec.h" before macros
that might redefine system include files.
(siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
(my_usleep): Use NULL rather than (void *) 0.
(rpl_nanosleep) [!defined SA_NOCLDSTOP]:
Use siginterrupt to specify that system calls should be interrupted.
(rpl_nanosleep): Move initialization of suspended closer to call of
my_usleep.

19 years ago(dd invocation): Document the distinction between
Paul Eggert [Sat, 9 Apr 2005 04:51:52 +0000 (04:51 +0000)]
(dd invocation): Document the distinction between
INFO and USR1 for dd, and the effect of POSIXLY_CORRECT here.

19 years agoDocument that dd no longer treats QUIT or PIPE specially,
Paul Eggert [Sat, 9 Apr 2005 04:51:11 +0000 (04:51 +0000)]
Document that dd no longer treats QUIT or PIPE specially,
and when conforming to POSIX no longer treats USR1 specially.
Document that dd no longer dumps core when handling signals.

19 years ago*** empty log message ***
Jim Meyering [Thu, 7 Apr 2005 20:10:54 +0000 (20:10 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 7 Apr 2005 20:10:17 +0000 (20:10 +0000)]
*** empty log message ***

19 years ago(binary_operator) [LINT]: Initialize lt and rt to 0.
Jim Meyering [Thu, 7 Apr 2005 20:10:03 +0000 (20:10 +0000)]
(binary_operator) [LINT]: Initialize lt and rt to 0.

19 years ago(digest_check) [LINT]: Initialize hex_digest to NULL.
Jim Meyering [Thu, 7 Apr 2005 20:09:46 +0000 (20:09 +0000)]
(digest_check) [LINT]: Initialize hex_digest to NULL.

19 years ago*** empty log message ***
Jim Meyering [Thu, 7 Apr 2005 17:14:45 +0000 (17:14 +0000)]
*** empty log message ***

19 years ago(binop): Move function definition to precede first use so we can...
Jim Meyering [Thu, 7 Apr 2005 17:14:14 +0000 (17:14 +0000)]
(binop): Move function definition to precede first use so we can...
(binop): ...remove prototype.

19 years ago*** empty log message ***
Jim Meyering [Thu, 7 Apr 2005 17:12:32 +0000 (17:12 +0000)]
*** empty log message ***

19 years ago(is_int, age_of, binop): Declare `char *' parameters to be `const'.
Jim Meyering [Thu, 7 Apr 2005 17:12:27 +0000 (17:12 +0000)]
(is_int, age_of, binop): Declare `char *' parameters to be `const'.

19 years ago*** empty log message ***
Jim Meyering [Wed, 6 Apr 2005 07:41:20 +0000 (07:41 +0000)]
*** empty log message ***

19 years agoRemove rw.
Jim Meyering [Wed, 6 Apr 2005 07:41:14 +0000 (07:41 +0000)]
Remove rw.

19 years agoRemove file -- many invalid message strings.
Jim Meyering [Wed, 6 Apr 2005 07:40:51 +0000 (07:40 +0000)]
Remove file -- many invalid message strings.

19 years agoRegenerate.
Paul Eggert [Tue, 5 Apr 2005 22:25:26 +0000 (22:25 +0000)]
Regenerate.

19 years agoAdd examples to basename, cat, chgrp, chown, dirname.
Paul Eggert [Tue, 5 Apr 2005 22:23:29 +0000 (22:23 +0000)]
Add examples to basename, cat, chgrp, chown, dirname.

19 years ago(usage): Add examples.
Paul Eggert [Tue, 5 Apr 2005 22:21:50 +0000 (22:21 +0000)]
(usage): Add examples.

19 years ago(.x.1): Remove "COMMAND.td/" from examples.
Paul Eggert [Tue, 5 Apr 2005 22:21:14 +0000 (22:21 +0000)]
(.x.1): Remove "COMMAND.td/" from examples.

19 years agoAdd examples to cat, chown, chgrp, basename, dirname. Change ln examples
Paul Eggert [Tue, 5 Apr 2005 22:20:31 +0000 (22:20 +0000)]
Add examples to cat, chown, chgrp, basename, dirname.  Change ln examples
to match that format.

19 years ago(cat invocation, chown invocation)
Paul Eggert [Tue, 5 Apr 2005 22:20:05 +0000 (22:20 +0000)]
(cat invocation, chown invocation)
(chgrp invocation, basename invocation, dirname invocation):
Add examples, which are copies of the examples newly added
to the usage messages.
(ln invocation): Use same format as other examples above,
for consistency.

19 years ago*** empty log message ***
Jim Meyering [Tue, 5 Apr 2005 11:53:59 +0000 (11:53 +0000)]
*** empty log message ***

19 years ago(usage): Mention that some shells provide a built-in function by the same name.
Jim Meyering [Tue, 5 Apr 2005 11:53:47 +0000 (11:53 +0000)]
(usage): Mention that some shells provide a built-in function by the same name.

19 years ago(usage): Mention that some shells provide a
Jim Meyering [Tue, 5 Apr 2005 11:53:38 +0000 (11:53 +0000)]
(usage): Mention that some shells provide a
built-in function by the same name.

19 years ago.
Jim Meyering [Tue, 5 Apr 2005 11:45:49 +0000 (11:45 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 5 Apr 2005 11:45:06 +0000 (11:45 +0000)]
*** empty log message ***

19 years ago(SUBDIRS): Add tee.
Jim Meyering [Tue, 5 Apr 2005 11:44:54 +0000 (11:44 +0000)]
(SUBDIRS): Add tee.

19 years ago(AC_CONFIG_FILES): Add tests/tee/Makefile.
Jim Meyering [Tue, 5 Apr 2005 11:44:32 +0000 (11:44 +0000)]
(AC_CONFIG_FILES): Add tests/tee/Makefile.

19 years ago.
Jim Meyering [Tue, 5 Apr 2005 11:43:03 +0000 (11:43 +0000)]
.

19 years ago(tee): When closing files, do not close stdout,
Jim Meyering [Tue, 5 Apr 2005 11:40:53 +0000 (11:40 +0000)]
(tee): When closing files, do not close stdout,
leave this job to close_stdout() instead.
From Dmitry V. Levin.

19 years ago*** empty log message ***
Jim Meyering [Tue, 5 Apr 2005 08:56:15 +0000 (08:56 +0000)]
*** empty log message ***

19 years agoAdd Kinyarwanda (rw).
Jim Meyering [Tue, 5 Apr 2005 08:56:04 +0000 (08:56 +0000)]
Add Kinyarwanda (rw).

19 years agoversion: 5.3.0
Jim Meyering [Tue, 5 Apr 2005 08:55:06 +0000 (08:55 +0000)]
version: 5.3.0

19 years ago(usage): Move USAGE_BUILTIN_WARNING to end of --help output.
Jim Meyering [Mon, 4 Apr 2005 22:30:57 +0000 (22:30 +0000)]
(usage): Move USAGE_BUILTIN_WARNING to end of --help output.

19 years ago(USAGE_BUILTIN_WARNING): remove trailing newline
Jim Meyering [Mon, 4 Apr 2005 22:30:22 +0000 (22:30 +0000)]
(USAGE_BUILTIN_WARNING): remove trailing newline

19 years ago.
Jim Meyering [Mon, 4 Apr 2005 22:29:37 +0000 (22:29 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Apr 2005 22:00:11 +0000 (22:00 +0000)]
*** empty log message ***

19 years agoRemove `DESCRIPTION' section, now that --help includes it.
Jim Meyering [Mon, 4 Apr 2005 21:59:58 +0000 (21:59 +0000)]
Remove `DESCRIPTION' section, now that --help includes it.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Apr 2005 21:58:09 +0000 (21:58 +0000)]
*** empty log message ***

19 years ago(usage): Mention that some shells provide a built-in
Jim Meyering [Mon, 4 Apr 2005 21:57:45 +0000 (21:57 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.

19 years ago*** empty log message ***
Jim Meyering [Mon, 4 Apr 2005 21:57:32 +0000 (21:57 +0000)]
*** empty log message ***

19 years ago(usage): Mention that some shells provide a built-in
Jim Meyering [Mon, 4 Apr 2005 21:57:04 +0000 (21:57 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.

19 years ago(usage): Mention that some shells provide a built-in
Jim Meyering [Mon, 4 Apr 2005 21:56:01 +0000 (21:56 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.

19 years ago(usage): Mention that some shells provide a built-in
Jim Meyering [Mon, 4 Apr 2005 21:55:06 +0000 (21:55 +0000)]
(usage): Mention that some shells provide a built-in
function by the same name.

19 years ago(USAGE_BUILTIN_WARNING): New macro.
Jim Meyering [Mon, 4 Apr 2005 21:51:30 +0000 (21:51 +0000)]
(USAGE_BUILTIN_WARNING): New macro.

19 years agogetdate patch for empty string near dst changes.
Paul Eggert [Mon, 4 Apr 2005 19:52:07 +0000 (19:52 +0000)]
getdate patch for empty string near dst changes.

19 years ago(parser_control): rels_seen is now a boolean, not a
Paul Eggert [Mon, 4 Apr 2005 19:51:49 +0000 (19:51 +0000)]
(parser_control): rels_seen is now a boolean, not a
count, since there's no maximum.  All uses changed.
Add member dsts_seen.
(local_zone): Accumulate dsts_seen rather than relying on tm_isdst
not being INT_MAX.
(get_date): Initialize dsts_seen, and check that it doesn't go over 1.
Use pc_rels_seen to decide whther a date is absolute.

(number): Don't overwrite year.
(get_date): Initialize pc.year.digits to 0, not 4, to enable above check.

19 years ago*** empty log message ***
Jim Meyering [Sun, 3 Apr 2005 13:13:06 +0000 (13:13 +0000)]
*** empty log message ***

19 years ago(main): Fix off-by-one error.
Jim Meyering [Sun, 3 Apr 2005 13:12:53 +0000 (13:12 +0000)]
(main): Fix off-by-one error.
pr -$(perl -e 'print "0"x63 . 1') would write one byte beyond the
end of a malloc'd buffer.

19 years agoCorrect indentation of the two just-split lines.
Jim Meyering [Fri, 1 Apr 2005 22:29:15 +0000 (22:29 +0000)]
Correct indentation of the two just-split lines.

19 years agosplit two longer-than-80-column lines
Jim Meyering [Fri, 1 Apr 2005 20:06:22 +0000 (20:06 +0000)]
split two longer-than-80-column lines

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Apr 2005 20:05:37 +0000 (20:05 +0000)]
*** empty log message ***

19 years ago(main): Free column_count_string when done with it.
Jim Meyering [Fri, 1 Apr 2005 20:05:33 +0000 (20:05 +0000)]
(main): Free column_count_string when done with it.

19 years ago.
Jim Meyering [Fri, 1 Apr 2005 07:44:41 +0000 (07:44 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Apr 2005 07:40:44 +0000 (07:40 +0000)]
*** empty log message ***

19 years agoDon't let pr treat +1:-1 like +1:18446744073709551615.
Jim Meyering [Fri, 1 Apr 2005 07:40:33 +0000 (07:40 +0000)]
Don't let pr treat +1:-1 like +1:18446744073709551615.

(neg-page): Add a test for this.

19 years ago*** empty log message ***
Jim Meyering [Fri, 1 Apr 2005 07:39:49 +0000 (07:39 +0000)]
*** empty log message ***

19 years agoDon't let pr treat +1:-1 like +1:18446744073709551615.
Jim Meyering [Fri, 1 Apr 2005 07:39:45 +0000 (07:39 +0000)]
Don't let pr treat +1:-1 like +1:18446744073709551615.

(strtoumax): Remove declaration.
(first_last_page): Use xstrtoumax in place of strtoumax,
so we don't interpret a negative page number (e.g., in an option
like --pages=1:-1) as valid.

19 years ago(gl_READUTMP): Restore the requirement for gl_FUNC_FREE.
Paul Eggert [Wed, 30 Mar 2005 07:41:47 +0000 (07:41 +0000)]
(gl_READUTMP): Restore the requirement for gl_FUNC_FREE.

19 years ago* readutmp.m4 (gl_READUTMP): Restore requirement for gl_FUNC_FREE.
Paul Eggert [Wed, 30 Mar 2005 07:41:18 +0000 (07:41 +0000)]
* readutmp.m4 (gl_READUTMP): Restore requirement for gl_FUNC_FREE.

19 years ago* readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume
Paul Eggert [Wed, 30 Mar 2005 07:40:17 +0000 (07:40 +0000)]
* readutmp.c (read_utmp) [!defined UTMP_NAME_FUNCTION]: Don't assume
utmp file is a regular file.

19 years ago(read_utmp) [!defied UTMP_NAME_FUNCTION]: Add support for options.
Paul Eggert [Wed, 30 Mar 2005 07:39:33 +0000 (07:39 +0000)]
(read_utmp) [!defied UTMP_NAME_FUNCTION]: Add support for options.
Don't assume the file is a regular file.

19 years agowho, pinky, uptime, and users now check for valid PIDs in supposed login
Paul Eggert [Wed, 30 Mar 2005 05:25:10 +0000 (05:25 +0000)]
who, pinky, uptime, and users now check for valid PIDs in supposed login
sessions.

19 years ago(who): New arg OPTIONS. All uses changed.
Paul Eggert [Wed, 30 Mar 2005 05:24:05 +0000 (05:24 +0000)]
(who): New arg OPTIONS.  All uses changed.
(main): Check PIDs when invoked with zero or two arguments.
Omit duplicate code in 2-arg case.
(UT_PID): Moved to ../lib/readutmp.h.

19 years ago(users): New arg OPTIONS. All uses changed.
Paul Eggert [Wed, 30 Mar 2005 05:23:17 +0000 (05:23 +0000)]
(users): New arg OPTIONS.  All uses changed.
(main): Check PIDs when invoked with zero arguments.

19 years ago(uptime): New arg OPTIONS. All uses changed.
Paul Eggert [Wed, 30 Mar 2005 05:22:30 +0000 (05:22 +0000)]
(uptime): New arg OPTIONS.  All uses changed.
(main): Check PIDs when invoked with zero arguments.

19 years ago(short_pinky): Adjust to read_utmp signature change.
Paul Eggert [Wed, 30 Mar 2005 05:21:31 +0000 (05:21 +0000)]
(short_pinky): Adjust to read_utmp signature change.

19 years ago* readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
Paul Eggert [Wed, 30 Mar 2005 05:20:57 +0000 (05:20 +0000)]
* readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
Remove duplicate call to AC_LIBOBJ(readutmp).
(gl_PREREQ_READUTMP): Remove.  All uses removed.  This module
no longer relies on free (NULL) working.

19 years ago(gl_READUTMP): Require AC_C_INLINE.
Paul Eggert [Wed, 30 Mar 2005 05:20:25 +0000 (05:20 +0000)]
(gl_READUTMP): Require AC_C_INLINE.
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
Remove duplicate call to AC_LIBOBJ(readutmp).
(gl_PREREQ_READUTMP): Remove.  All uses removed.  This module
no longer relies on free (NULL) working.

19 years agoreadutmp changes to allow checking for live pids
Paul Eggert [Wed, 30 Mar 2005 05:19:48 +0000 (05:19 +0000)]
readutmp changes to allow checking for live pids

19 years ago(read_utmp): New arg OPTIONS. All uses changed.
Paul Eggert [Wed, 30 Mar 2005 05:19:11 +0000 (05:19 +0000)]
(read_utmp): New arg OPTIONS.  All uses changed.
(UT_PID): Moved here from ../src/who.c.
(READ_UTMP_CHECK_PIDS): New constant.

19 years ago(read_utmp): New arg OPTIONS. All uses changed.
Paul Eggert [Wed, 30 Mar 2005 05:18:37 +0000 (05:18 +0000)]
(read_utmp): New arg OPTIONS.  All uses changed.
Include signal.h, stdbool.h.
(desirable_utmp_entry): New function.
(read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
using x2nrealloc, to simplify logic.
(read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
size calculation.

19 years ago*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 19:01:43 +0000 (19:01 +0000)]
*** empty log message ***

19 years ago(ptr_align): Declare `ptr' parameter to be a
Jim Meyering [Tue, 29 Mar 2005 19:01:34 +0000 (19:01 +0000)]
(ptr_align): Declare `ptr' parameter to be a
`const' pointer, since this function never writes through it.

19 years agoRemove #if-0'd-out code.
Jim Meyering [Tue, 29 Mar 2005 14:09:35 +0000 (14:09 +0000)]
Remove #if-0'd-out code.

19 years ago*** empty log message ***
Jim Meyering [Tue, 29 Mar 2005 12:06:20 +0000 (12:06 +0000)]
*** empty log message ***