platform/upstream/coreutils.git
27 years agocopyright
Jim Meyering [Sun, 4 Jan 1998 22:46:23 +0000 (22:46 +0000)]
copyright

27 years ago(main, usage): Check for write error to stdout before exiting.
Jim Meyering [Sun, 4 Jan 1998 22:45:28 +0000 (22:45 +0000)]
(main, usage): Check for write error to stdout before exiting.
Include "closeout.h".

27 years ago(parse_long_options): Check for write error to stdout before exiting.
Jim Meyering [Sun, 4 Jan 1998 22:43:44 +0000 (22:43 +0000)]
(parse_long_options): Check for write error to stdout before exiting.

27 years ago(libfu_a_SOURCES): Add closeout.c.
Jim Meyering [Sun, 4 Jan 1998 22:42:38 +0000 (22:42 +0000)]
(libfu_a_SOURCES): Add closeout.c.
(noinst_HEADERS): Add closeout.h.

27 years agoUse a single enumerated type, Verbosity, instead of
Jim Meyering [Sun, 4 Jan 1998 22:41:02 +0000 (22:41 +0000)]
Use a single enumerated type, Verbosity, instead of
the two booleans, verbose and changes_only.  This fixes a bug whereby
--change had the same effect as --verbose.
Plus Paul's close_stdout changes.

27 years agoUse a single enumerated type, Verbosity, instead of
Jim Meyering [Sun, 4 Jan 1998 22:40:27 +0000 (22:40 +0000)]
Use a single enumerated type, Verbosity, instead of
the two booleans, verbose and changes_only.  This fixes a bug whereby
--change had the same effect as --verbose.

27 years ago.
Jim Meyering [Sun, 4 Jan 1998 21:48:30 +0000 (21:48 +0000)]
.

27 years ago.
Jim Meyering [Sun, 4 Jan 1998 21:47:31 +0000 (21:47 +0000)]
.

27 years ago.
Jim Meyering [Sat, 3 Jan 1998 22:53:52 +0000 (22:53 +0000)]
.

27 years ago.
Jim Meyering [Sat, 3 Jan 1998 22:16:23 +0000 (22:16 +0000)]
.

27 years ago.
Jim Meyering [Sat, 3 Jan 1998 22:14:58 +0000 (22:14 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 22:13:53 +0000 (22:13 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 18:10:47 +0000 (18:10 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 18:09:23 +0000 (18:09 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 16:47:35 +0000 (16:47 +0000)]
*** empty log message ***

27 years ago(show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'
Jim Meyering [Sat, 3 Jan 1998 16:47:21 +0000 (16:47 +0000)]
(show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'
just like `fsu.fsu_blocks == 0' as an indicator that usage information
is invalid.  This happens with Solaris-5.5.1 CD-ROM partitions.

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 14:40:33 +0000 (14:40 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 12:03:01 +0000 (12:03 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 3 Jan 1998 11:58:49 +0000 (11:58 +0000)]
*** empty log message ***

27 years agoGuard PARAMS-enabling definition with
Jim Meyering [Sat, 3 Jan 1998 11:56:58 +0000 (11:56 +0000)]
Guard PARAMS-enabling definition with
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to be consistent.

27 years agoGuard PARAMS-enabling definition with
Jim Meyering [Sat, 3 Jan 1998 11:56:09 +0000 (11:56 +0000)]
Guard PARAMS-enabling definition with
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to avoid
problems with Irix4's cc.  From Kaveh Ghazi.

27 years ago*** empty log message *** FILEUTILS-3_16i
Jim Meyering [Fri, 2 Jan 1998 23:18:08 +0000 (23:18 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jan 1998 23:16:53 +0000 (23:16 +0000)]
*** empty log message ***

27 years ago(get_ids): When otherwise unspecified, set uid and gid to -1.
Jim Meyering [Fri, 2 Jan 1998 23:16:38 +0000 (23:16 +0000)]
(get_ids): When otherwise unspecified, set uid and gid to -1.

27 years ago(make_path): Try to change ownership only if we've just created the
Jim Meyering [Fri, 2 Jan 1998 23:15:39 +0000 (23:15 +0000)]
(make_path): Try to change ownership only if we've just created the
directory.  Fix latent bug (s/&&/||/ in two places -- also, note that
it could not be exercised via install or mkdir) whereby chown would
not be invoked when only one of owner/group is not -1.

27 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 21:33:29 +0000 (21:33 +0000)]
*** empty log message ***

27 years ago(remove_cwd_entries): Initialize the entry-name obstack
Jim Meyering [Thu, 1 Jan 1998 21:32:46 +0000 (21:32 +0000)]
(remove_cwd_entries): Initialize the entry-name obstack
only once and never free it.

27 years ago(show_dev): Move check for 0-block device (and return if
Jim Meyering [Thu, 1 Jan 1998 21:30:00 +0000 (21:30 +0000)]
(show_dev): Move check for 0-block device (and return if
not e.g., -a) back up to precede first print stmt.

27 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:45:43 +0000 (19:45 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:44:02 +0000 (19:44 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:41:47 +0000 (19:41 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Thu, 1 Jan 1998 19:36:19 +0000 (19:36 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Wed, 31 Dec 1997 21:36:14 +0000 (21:36 +0000)]
*** empty log message ***

27 years ago(show_dev): Print inode counts human readably.
Jim Meyering [Wed, 31 Dec 1997 21:34:07 +0000 (21:34 +0000)]
(show_dev): Print inode counts human readably.

27 years ago(decode_switches): -h and -H override output units.
Jim Meyering [Wed, 31 Dec 1997 21:33:51 +0000 (21:33 +0000)]
(decode_switches): -h and -H override output units.
(print_dir, gobble_file, print_long_format,
print_file_name_and_frills): Print disk allocations human readably.

27 years ago.
Jim Meyering [Wed, 31 Dec 1997 14:28:44 +0000 (14:28 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Wed, 31 Dec 1997 14:04:54 +0000 (14:04 +0000)]
*** empty log message ***

27 years ago(show_dev): Move computation of
Jim Meyering [Wed, 31 Dec 1997 14:04:20 +0000 (14:04 +0000)]
(show_dev): Move computation of
blocks_used etc. and blocks_percent_used,
inodes_used etc. and inodes_percent_used into respective branches
of the `if (inode_format)' statement where they're actually used.

27 years ago*** empty log message ***
Jim Meyering [Wed, 31 Dec 1997 11:01:48 +0000 (11:01 +0000)]
*** empty log message ***

27 years agoDefine and use PARAMS, not __EXCLUDE_P.
Jim Meyering [Wed, 31 Dec 1997 11:01:35 +0000 (11:01 +0000)]
Define and use PARAMS, not __EXCLUDE_P.

27 years agoUse PARAMS, not __EXCLUDE_P.
Jim Meyering [Wed, 31 Dec 1997 11:01:18 +0000 (11:01 +0000)]
Use PARAMS, not __EXCLUDE_P.

27 years ago(usage): s/TAB/ /g
Jim Meyering [Mon, 29 Dec 1997 22:09:28 +0000 (22:09 +0000)]
(usage): s/TAB/      /g

27 years ago*** empty log message ***
Jim Meyering [Mon, 29 Dec 1997 21:29:51 +0000 (21:29 +0000)]
*** empty log message ***

27 years ago(remove_cwd_entries): Plug a gross leak -- don't call
Jim Meyering [Mon, 29 Dec 1997 21:04:26 +0000 (21:04 +0000)]
(remove_cwd_entries): Plug a gross leak -- don't call
obstack_init inside the loop.

27 years ago*** empty log message ***
Jim Meyering [Mon, 29 Dec 1997 12:06:02 +0000 (12:06 +0000)]
*** empty log message ***

27 years ago(usage): Replace TABs with spaces in --help message.
Jim Meyering [Mon, 29 Dec 1997 12:05:36 +0000 (12:05 +0000)]
(usage): Replace TABs with spaces in --help message.

27 years ago(invalid_arg): Use a single fprintf and whole
Jim Meyering [Mon, 29 Dec 1997 12:02:43 +0000 (12:02 +0000)]
(invalid_arg): Use a single fprintf and whole
format statements to ease translation.
Convert from K&R to ANSI function dcls.

27 years ago.
Jim Meyering [Sun, 28 Dec 1997 21:49:54 +0000 (21:49 +0000)]
.

27 years agoUse ANSI syntax, not K&R.
Jim Meyering [Sun, 28 Dec 1997 10:41:01 +0000 (10:41 +0000)]
Use ANSI syntax, not K&R.

27 years ago*** empty log message ***
Jim Meyering [Sun, 28 Dec 1997 10:38:30 +0000 (10:38 +0000)]
*** empty log message ***

27 years ago(make_path) [!__STDC__]: Remove K&R-style definition.
Jim Meyering [Sun, 28 Dec 1997 10:38:15 +0000 (10:38 +0000)]
(make_path) [!__STDC__]: Remove K&R-style definition.

27 years agodefine PARAMS
Jim Meyering [Sun, 28 Dec 1997 09:48:26 +0000 (09:48 +0000)]
define PARAMS

27 years agoAdd PARAMS.
Jim Meyering [Sun, 28 Dec 1997 08:04:08 +0000 (08:04 +0000)]
Add PARAMS.

27 years agoRemove incorrect declaration of group_member.
Jim Meyering [Sun, 28 Dec 1997 08:03:54 +0000 (08:03 +0000)]
Remove incorrect declaration of group_member.
Include group-member.h instead.
Based on suggestion from Ulrich Drepper.

27 years ago*** empty log message *** FILEUTILS-3_16h
Jim Meyering [Sat, 27 Dec 1997 23:55:40 +0000 (23:55 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 27 Dec 1997 23:55:18 +0000 (23:55 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Thu, 25 Dec 1997 23:06:12 +0000 (23:06 +0000)]
.

27 years agonew version from kb
Jim Meyering [Thu, 25 Dec 1997 18:00:21 +0000 (18:00 +0000)]
new version from kb

27 years ago.
Jim Meyering [Thu, 25 Dec 1997 17:51:15 +0000 (17:51 +0000)]
.

27 years ago(_GNU_SOURCE): Define only if not already defined.
Jim Meyering [Thu, 25 Dec 1997 17:44:08 +0000 (17:44 +0000)]
(_GNU_SOURCE): Define only if not already defined.

27 years ago.
Jim Meyering [Thu, 25 Dec 1997 17:43:21 +0000 (17:43 +0000)]
.

27 years ago.
Jim Meyering [Thu, 25 Dec 1997 17:05:45 +0000 (17:05 +0000)]
.

27 years ago(get_ids): Don't cast GID_T_MAX to long, it might overflow.
Jim Meyering [Thu, 25 Dec 1997 17:05:23 +0000 (17:05 +0000)]
(get_ids): Don't cast GID_T_MAX to long, it might overflow.

27 years ago(skip): Compare lseek return value with -1 to allow it
Jim Meyering [Thu, 25 Dec 1997 17:04:15 +0000 (17:04 +0000)]
(skip): Compare lseek return value with -1 to allow it
to be negative as signed value.

27 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 17:02:25 +0000 (17:02 +0000)]
Declare stpcpy only if not defined as macro.

27 years ago(S_ISLNK): Define this instead of S_ISDIR.
Jim Meyering [Thu, 25 Dec 1997 17:01:35 +0000 (17:01 +0000)]
(S_ISLNK): Define this instead of S_ISDIR.

27 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 17:01:13 +0000 (17:01 +0000)]
Declare stpcpy only if not defined as macro.

27 years agoDeclare stpcpy only if not defined as macro.
Jim Meyering [Thu, 25 Dec 1997 16:49:08 +0000 (16:49 +0000)]
Declare stpcpy only if not defined as macro.

27 years agoInclude <string.h> if available.
Jim Meyering [Thu, 25 Dec 1997 16:48:51 +0000 (16:48 +0000)]
Include <string.h> if available.

27 years ago(copy_internal): Use S_ISLNK only if defined.
Jim Meyering [Thu, 25 Dec 1997 16:48:29 +0000 (16:48 +0000)]
(copy_internal): Use S_ISLNK only if defined.

27 years ago.
Jim Meyering [Wed, 24 Dec 1997 13:16:54 +0000 (13:16 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 22:48:24 +0000 (22:48 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Sun, 21 Dec 1997 22:48:08 +0000 (22:48 +0000)]
.

27 years agos/__P/PARAMS/
Jim Meyering [Sun, 21 Dec 1997 22:39:53 +0000 (22:39 +0000)]
s/__P/PARAMS/

27 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 22:32:44 +0000 (22:32 +0000)]
*** empty log message ***

27 years agos/__P/PARAMS/
Jim Meyering [Sun, 21 Dec 1997 22:30:30 +0000 (22:30 +0000)]
s/__P/PARAMS/

27 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:22:04 +0000 (22:22 +0000)]
Don't include limits.h.

27 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:21:26 +0000 (22:21 +0000)]
Don't include limits.h.

27 years agoDon't include limits.h or sys/param.h.
Jim Meyering [Sun, 21 Dec 1997 22:21:10 +0000 (22:21 +0000)]
Don't include limits.h or sys/param.h.

27 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:20:17 +0000 (22:20 +0000)]
Don't include limits.h.
These are all done in system.h now.

27 years agoDon't include limits.h.
Jim Meyering [Sun, 21 Dec 1997 22:20:01 +0000 (22:20 +0000)]
Don't include limits.h.
(UINT_MAX): Don't define.
(INT_MAX): Don't define.
These are all done in system.h now.

27 years ago.
Jim Meyering [Sun, 21 Dec 1997 12:29:32 +0000 (12:29 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:18:05 +0000 (12:18 +0000)]
*** empty log message ***

27 years agoUse PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 12:17:26 +0000 (12:17 +0000)]
Use PARAMS, not __P.

27 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:11:32 +0000 (12:11 +0000)]
*** empty log message ***

27 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:11:17 +0000 (12:11 +0000)]
increment serial number

27 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:55 +0000 (12:10 +0000)]
increment serial number

27 years agoincrement serial number
Jim Meyering [Sun, 21 Dec 1997 12:10:26 +0000 (12:10 +0000)]
increment serial number

27 years agoFix reversed types on -1 args to chown.
Jim Meyering [Sun, 21 Dec 1997 12:10:07 +0000 (12:10 +0000)]
Fix reversed types on -1 args to chown.
From Kaveh Ghazi.

27 years ago.
Jim Meyering [Sun, 21 Dec 1997 12:06:03 +0000 (12:06 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 1997 12:05:56 +0000 (12:05 +0000)]
*** empty log message ***

27 years agoInclude exclude.h.
Jim Meyering [Sun, 21 Dec 1997 12:05:42 +0000 (12:05 +0000)]
Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.

27 years agoremove FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:57:17 +0000 (11:57 +0000)]
remove FIXME-describe comments

27 years agoadd FIXME-describe comments
Jim Meyering [Sun, 21 Dec 1997 11:56:34 +0000 (11:56 +0000)]
add FIXME-describe comments

27 years agoInclude exclude.h.
Jim Meyering [Sun, 21 Dec 1997 11:47:27 +0000 (11:47 +0000)]
Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.

27 years ago(libfu_a_SOURCES): Add exclude.c.
Jim Meyering [Sun, 21 Dec 1997 11:46:49 +0000 (11:46 +0000)]
(libfu_a_SOURCES): Add exclude.c.
(noinst_HEADERS): Add exclude.h.

27 years ago.
Jim Meyering [Sun, 21 Dec 1997 11:43:34 +0000 (11:43 +0000)]
.

27 years ago.
Jim Meyering [Sun, 21 Dec 1997 11:24:53 +0000 (11:24 +0000)]
.

27 years agoUse PARAMS, not __P.
Jim Meyering [Sun, 21 Dec 1997 11:22:51 +0000 (11:22 +0000)]
Use PARAMS, not __P.

27 years ago(rpl_chown): Rename from chown.
Jim Meyering [Sun, 21 Dec 1997 11:17:20 +0000 (11:17 +0000)]
(rpl_chown): Rename from chown.
Undefine chown just after including config.h.
Include sys/stat.h.
Use correct ordering of uid and gid parameters both in function
definition and in call to chown.
With patches from Kaveh Ghazi.