platform/upstream/coreutils.git
25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Apr 1999 04:34:16 +0000 (04:34 +0000)]
*** empty log message ***

25 years agoback out Paul's changes
Jim Meyering [Sun, 4 Apr 1999 02:34:49 +0000 (02:34 +0000)]
back out Paul's changes

25 years agoUse AUTHORS in place of string in parse_long_options call.
Jim Meyering [Sat, 3 Apr 1999 05:26:48 +0000 (05:26 +0000)]
Use AUTHORS in place of string in parse_long_options call.

25 years agoInsert AUTHORS definition.
Jim Meyering [Sat, 3 Apr 1999 05:22:05 +0000 (05:22 +0000)]
Insert AUTHORS definition.

25 years agoUse PROGRAM_NAME in place of string in parse_long_options call.
Jim Meyering [Sat, 3 Apr 1999 05:20:06 +0000 (05:20 +0000)]
Use PROGRAM_NAME in place of string in parse_long_options call.

25 years agodefine PROGRAM_NAME
Jim Meyering [Sat, 3 Apr 1999 05:01:48 +0000 (05:01 +0000)]
define PROGRAM_NAME

25 years ago*** empty log message ***
Jim Meyering [Sat, 3 Apr 1999 03:29:41 +0000 (03:29 +0000)]
*** empty log message ***

25 years ago(S_IWUSR): Define if not already defined.
Jim Meyering [Sat, 3 Apr 1999 03:29:17 +0000 (03:29 +0000)]
(S_IWUSR): Define if not already defined.

25 years ago(isaac_seed): Don't overrun the s->mm buffer.
Jim Meyering [Sat, 3 Apr 1999 03:27:57 +0000 (03:27 +0000)]
(isaac_seed): Don't overrun the s->mm buffer.
Use gethrtime if available.  Don't assume that clock_gettime succeeds.
Put most random sources first.

25 years agoAdd new options -bcCklL and fix some porting problems.
Jim Meyering [Sat, 3 Apr 1999 03:27:27 +0000 (03:27 +0000)]
Add new options -bcCklL and fix some porting problems.
Remove options -dp.  Do not read output files.

(long_opts, usage, main, wipefile): Adjust to new options.
("human.h", "quotearg.h"): New includes.
(struct Options): New members contents, links, n_iterations.
Remove allow_devices, remove_file.  Change n_iterations to size_t.
All uses changed.
(output_block_size): New var.
(usage): Declare __noreturn__ attribute.
(fdatasync): Define to -1 if not present, since we need to invoke both
fdatasync and fsync if both are present.  All invokers of fdatasync
now try fdatasync, then fsync.
(MIXIN): New macro.
(isaac_seed): Use it to mix in values.  Add uid, gid to mix.
Don't use gettimeofday, as it has too many porting problems.
(isaac_seedfd): Remove, since we no longer read the output files.
(sizefd): Remove; we now determine size by writing sequentially.
(dopass, wipename, wipefile, main): Clean up error messages.
(dopass): Keep track of offset relative to start of file, not
end, since we may not know how large the file is.  If size is
negative, write until we fall off the end of the file.
(wipefd): Do not read output file.
Return 0 if successful, -1 if not; do not make a special case for
non-regular files, since our callers have that info now.
(wipename): Now static.  Return errno if error.
(main): "-" now stands for standard output.
Do not shred append-only standard output.
(wipefile): Do not grant read permission to file when wiping it.
Use symbolic permission (S_IWUSR), not octal.
From Paul Eggert.

25 years ago[HAVE_SYS_ACL_H]: Include sys/acl.h.
Jim Meyering [Fri, 2 Apr 1999 05:38:15 +0000 (05:38 +0000)]
[HAVE_SYS_ACL_H]: Include sys/acl.h.
(struct fileinfo): New member `have_acl'.
(gobble_file): Initialize it.
(print_long_format): Use it.
Mostly from Alen Muzinic.

25 years ago*** empty log message ***
Jim Meyering [Fri, 2 Apr 1999 04:24:48 +0000 (04:24 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Fri, 2 Apr 1999 04:20:17 +0000 (04:20 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Fri, 2 Apr 1999 04:15:14 +0000 (04:15 +0000)]
*** empty log message ***

25 years ago(open_maybe_create): New function.
Jim Meyering [Fri, 2 Apr 1999 02:55:10 +0000 (02:55 +0000)]
(open_maybe_create): New function.
(touch): Rewrite not to use `creat' and to eliminate a race
condition that could make touch truncate a nonempty file.
Report and suggestions from Andrew Tridgell.

25 years ago*** empty log message ***
Jim Meyering [Fri, 2 Apr 1999 02:47:58 +0000 (02:47 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Thu, 1 Apr 1999 05:16:46 +0000 (05:16 +0000)]
*** empty log message ***

25 years ago(main): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 05:15:37 +0000 (05:15 +0000)]
(main): Qualify a char* with the `const' keyword.

25 years ago(main): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 05:10:41 +0000 (05:10 +0000)]
(main): Qualify a char* with the `const' keyword.

25 years ago(install_file_in_dir): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 05:09:59 +0000 (05:09 +0000)]
(install_file_in_dir): Qualify a char* with the `const' keyword.

25 years ago(main): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 05:08:22 +0000 (05:08 +0000)]
(main): Qualify a char* with the `const' keyword.

25 years ago(main): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 05:07:51 +0000 (05:07 +0000)]
(main): Qualify a char* with the `const' keyword.

25 years agoRemove prototypes and tsort function definitions.
Jim Meyering [Thu, 1 Apr 1999 05:05:17 +0000 (05:05 +0000)]
Remove prototypes and tsort function definitions.

25 years ago(main): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 04:58:29 +0000 (04:58 +0000)]
(main): Qualify a char* with the `const' keyword.

25 years ago(main): Move the declaration of `e' into the scope
Jim Meyering [Thu, 1 Apr 1999 04:56:28 +0000 (04:56 +0000)]
(main): Move the declaration of `e' into the scope
where it's used and make it `const'.

25 years ago(main): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 04:53:13 +0000 (04:53 +0000)]
(main): Qualify a char* with the `const' keyword.

25 years ago(touch): Qualify a char* with the `const' keyword.
Jim Meyering [Thu, 1 Apr 1999 04:47:55 +0000 (04:47 +0000)]
(touch): Qualify a char* with the `const' keyword.

25 years ago.
Jim Meyering [Wed, 31 Mar 1999 15:21:00 +0000 (15:21 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Wed, 31 Mar 1999 06:02:07 +0000 (06:02 +0000)]
*** empty log message ***

25 years agoDon't include closeout.h or version-etc.h explicitly. Now, they're included via sys2.h.
Jim Meyering [Wed, 31 Mar 1999 05:59:13 +0000 (05:59 +0000)]
Don't include closeout.h or version-etc.h explicitly. Now, they're included via sys2.h.

25 years ago*** empty log message ***
Jim Meyering [Wed, 31 Mar 1999 05:54:11 +0000 (05:54 +0000)]
*** empty log message ***

25 years agoNo longer include long-options.h.
Jim Meyering [Wed, 31 Mar 1999 05:52:46 +0000 (05:52 +0000)]
No longer include long-options.h.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoInclude "closeout.h" and "version-etc.h"
Jim Meyering [Wed, 31 Mar 1999 05:52:46 +0000 (05:52 +0000)]
Include "closeout.h" and "version-etc.h"

25 years ago(AUTHORS): Actually define and use.
Jim Meyering [Wed, 31 Mar 1999 05:06:42 +0000 (05:06 +0000)]
(AUTHORS): Actually define and use.

25 years ago(PROGRAM_NAME, AUTHORS): Define and use.
Jim Meyering [Wed, 31 Mar 1999 04:16:08 +0000 (04:16 +0000)]
(PROGRAM_NAME, AUTHORS): Define and use.

25 years ago(PROGRAM_NAME, AUTHORS): Define and use.
Jim Meyering [Wed, 31 Mar 1999 04:11:35 +0000 (04:11 +0000)]
(PROGRAM_NAME, AUTHORS): Define and use.

25 years agoimport latest
Jim Meyering [Tue, 30 Mar 1999 15:11:20 +0000 (15:11 +0000)]
import latest

25 years ago.
Jim Meyering [Tue, 30 Mar 1999 05:40:40 +0000 (05:40 +0000)]
.

25 years ago.
Jim Meyering [Tue, 30 Mar 1999 04:52:57 +0000 (04:52 +0000)]
.

25 years ago(make_node_op_equals): New function.
Jim Meyering [Tue, 30 Mar 1999 04:51:08 +0000 (04:51 +0000)]
(make_node_op_equals): New function.
(mode_append_entry): Likewise.
(mode_compile): When none of [ugoa] is specified in an `=OP' change
mode request, insert a `=0' entry into the linked list so that all
bits are cleared first.  Use the new functions.

25 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 1999 04:48:57 +0000 (04:48 +0000)]
*** empty log message ***

25 years ago(rmdir): Use pid_t instead of int; check status
Jim Meyering [Tue, 30 Mar 1999 04:48:41 +0000 (04:48 +0000)]
(rmdir): Use pid_t instead of int; check status
against zero.  This is to improve portability.

25 years ago(rename): Use pid_t instead of int; check status
Jim Meyering [Tue, 30 Mar 1999 04:48:17 +0000 (04:48 +0000)]
(rename): Use pid_t instead of int; check status
against zero.  This is to improve portability.

25 years ago(mkdir): Use pid_t instead of int; check status
Jim Meyering [Tue, 30 Mar 1999 04:47:52 +0000 (04:47 +0000)]
(mkdir): Use pid_t instead of int; check status
against zero.  This is to improve portability.

25 years ago(strip): Use standard "cannot fork" message.
Jim Meyering [Tue, 30 Mar 1999 04:43:53 +0000 (04:43 +0000)]
(strip): Use standard "cannot fork" message.
Check for strip nonzero exit status.

25 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 1999 04:36:00 +0000 (04:36 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 1999 04:34:46 +0000 (04:34 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 1999 04:33:22 +0000 (04:33 +0000)]
*** empty log message ***

25 years ago(jm_CHECK_ALL_TYPES): New macro.
Jim Meyering [Tue, 30 Mar 1999 04:29:19 +0000 (04:29 +0000)]
(jm_CHECK_ALL_TYPES): New macro.

25 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 1999 04:39:56 +0000 (04:39 +0000)]
*** empty log message ***

25 years agoDefine GNU_PACKAGE here.
Jim Meyering [Mon, 29 Mar 1999 04:39:50 +0000 (04:39 +0000)]
Define GNU_PACKAGE here.
Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
replaced e.g., in the *.sh files of the sh-utils.

25 years agoPROGRAM_NAME: rename from COMMAND_NAME
Jim Meyering [Mon, 29 Mar 1999 02:56:52 +0000 (02:56 +0000)]
PROGRAM_NAME: rename from COMMAND_NAME

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Mar 1999 21:01:09 +0000 (21:01 +0000)]
*** empty log message ***

25 years ago(get_date): Reuse tm_isdst of first localtime
Jim Meyering [Sun, 28 Mar 1999 20:58:51 +0000 (20:58 +0000)]
(get_date): Reuse tm_isdst of first localtime
call; this is an improvement on a bug fix suggested by
martin@dresden.nacamar.de.  Do not assume that localtime and
gmtime return non-null.
From Paul Eggert.

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Mar 1999 19:06:17 +0000 (19:06 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Mar 1999 14:59:09 +0000 (14:59 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Mar 1999 14:40:37 +0000 (14:40 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sun, 28 Mar 1999 14:40:21 +0000 (14:40 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Mar 1999 14:39:34 +0000 (14:39 +0000)]
*** empty log message ***

25 years ago(mode_compile): Upon allocation failure, free
Jim Meyering [Sun, 28 Mar 1999 05:44:33 +0000 (05:44 +0000)]
(mode_compile): Upon allocation failure, free
everything starting with the head, not the tail.

25 years ago.
Jim Meyering [Sat, 27 Mar 1999 23:07:53 +0000 (23:07 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 27 Mar 1999 14:33:30 +0000 (14:33 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 27 Mar 1999 14:32:36 +0000 (14:32 +0000)]
*** empty log message ***

25 years ago(strip): Use pid_t, not int.
Jim Meyering [Sat, 27 Mar 1999 14:32:06 +0000 (14:32 +0000)]
(strip): Use pid_t, not int.

25 years ago(print_user): Use uid_t instead of int.
Jim Meyering [Sat, 27 Mar 1999 14:29:51 +0000 (14:29 +0000)]
(print_user): Use uid_t instead of int.
(print_group): Use gid_t instead of int.

25 years ago.
Jim Meyering [Fri, 26 Mar 1999 14:27:18 +0000 (14:27 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Fri, 26 Mar 1999 14:26:38 +0000 (14:26 +0000)]
*** empty log message ***

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 14:26:18 +0000 (14:26 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 14:25:30 +0000 (14:25 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 14:23:59 +0000 (14:23 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 14:22:51 +0000 (14:22 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 14:19:02 +0000 (14:19 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 14:18:29 +0000 (14:18 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoreorder includes
Jim Meyering [Fri, 26 Mar 1999 14:12:32 +0000 (14:12 +0000)]
reorder includes

25 years ago(PROGRAM_NAME, AUTHORS): Define and use.
Jim Meyering [Fri, 26 Mar 1999 14:07:12 +0000 (14:07 +0000)]
(PROGRAM_NAME, AUTHORS): Define and use.

25 years ago(PROGRAM_NAME, AUTHORS): Define
Jim Meyering [Fri, 26 Mar 1999 14:05:40 +0000 (14:05 +0000)]
(PROGRAM_NAME, AUTHORS): Define
(long_options): Remove unused struct.
(scanargs): Remove useless loop.
(main): Use PROGRAM_NAME and AUTHORS in call to parse_long_options.

25 years agodefine and use AUTHORS
Jim Meyering [Fri, 26 Mar 1999 05:17:17 +0000 (05:17 +0000)]
define and use AUTHORS

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 04:23:55 +0000 (04:23 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years ago.
Jim Meyering [Fri, 26 Mar 1999 04:23:01 +0000 (04:23 +0000)]
.

25 years ago(libfu_a_SOURCES): Add version-etc.c.
Jim Meyering [Fri, 26 Mar 1999 04:20:23 +0000 (04:20 +0000)]
(libfu_a_SOURCES): Add version-etc.c.
(noinst_HEADERS): Add version-etc.h.

25 years ago(parse_long_options): Remove version-, copyright-,
Jim Meyering [Fri, 26 Mar 1999 04:19:07 +0000 (04:19 +0000)]
(parse_long_options): Remove version-, copyright-,
and author-printing code.  Do it via version_etc.

25 years ago*** empty log message ***
Jim Meyering [Fri, 26 Mar 1999 04:17:33 +0000 (04:17 +0000)]
*** empty log message ***

25 years ago(GETOPT_HELP_CHAR): Define.
Jim Meyering [Fri, 26 Mar 1999 04:12:41 +0000 (04:12 +0000)]
(GETOPT_HELP_CHAR): Define.
(GETOPT_VERSION_CHAR): Define.
(GETOPT_HELP_OPTION_DECL): Define.
(GETOPT_VERSION_OPTION_DECL): Define.
(case_GETOPT_HELP_CHAR): Define.
(case_GETOPT_VERSION_CHAR): Define.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 04:11:15 +0000 (04:11 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years agoNo longer include long-options.h.
Jim Meyering [Fri, 26 Mar 1999 04:10:55 +0000 (04:10 +0000)]
No longer include long-options.h.
Include version-etc.h instead.
(PROGRAM_NAME): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.

25 years ago(recheck): Factor out a block of duplicated code.
Jim Meyering [Thu, 25 Mar 1999 14:29:13 +0000 (14:29 +0000)]
(recheck): Factor out a block of duplicated code.
Set f->size to 0 upon encountering a new file so we read it from
the beginning rather than from then end of the first line or
block.  Otherwise, after a log rotation, tail would omit the first
line or block of the new file.  Reported by Ed Avis.

25 years ago*** empty log message ***
Jim Meyering [Thu, 25 Mar 1999 14:23:40 +0000 (14:23 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 1999 13:48:48 +0000 (13:48 +0000)]
*** empty log message ***

25 years agoimport 1.010
Jim Meyering [Wed, 24 Mar 1999 13:48:22 +0000 (13:48 +0000)]
import 1.010

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 1999 22:36:39 +0000 (22:36 +0000)]
*** empty log message ***

25 years agotweak usage message -- from Karl
Jim Meyering [Mon, 22 Mar 1999 22:36:12 +0000 (22:36 +0000)]
tweak usage message -- from Karl

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 1999 22:35:53 +0000 (22:35 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 1999 13:38:51 +0000 (13:38 +0000)]
*** empty log message ***

25 years agoimport latest
Jim Meyering [Sun, 21 Mar 1999 01:56:57 +0000 (01:56 +0000)]
import latest

25 years ago.
Jim Meyering [Sat, 20 Mar 1999 23:25:35 +0000 (23:25 +0000)]
.

25 years ago.
Jim Meyering [Sat, 20 Mar 1999 23:24:55 +0000 (23:24 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Mar 1999 23:24:23 +0000 (23:24 +0000)]
*** empty log message ***

25 years agos/jm_WITH_REGEX/jm_INCLUDED_REGEX/
Jim Meyering [Sat, 20 Mar 1999 23:24:15 +0000 (23:24 +0000)]
s/jm_WITH_REGEX/jm_INCLUDED_REGEX/

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Mar 1999 23:23:20 +0000 (23:23 +0000)]
*** empty log message ***

25 years ago(jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
Jim Meyering [Sat, 20 Mar 1999 23:23:14 +0000 (23:23 +0000)]
(jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.