Commit Graph
157 Commits
Author SHA1 Message Date
Jim Meyering dc98736719 update Copyright years for 1996 1996-04-24 04:42:21 +00:00
Jim Meyering 5de0b392f2 Update FSF's address. 1996-03-24 18:47:09 +00:00
Jim Meyering bb6a548712 (main): Declare to be of type int, not void. 1996-03-21 22:45:19 +00:00
Jim Meyering ca0246a4c1 Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:49:28 +00:00
Jim Meyering 10c96c43ac (main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.
1996-03-12 03:08:30 +00:00
Jim Meyering 3b69e6514c Remove comma after last item in enum.
(human_readable): Fix off-by-one error that converted
1024*1024 to 1024K rather than 1G.  Describe the function.
1996-02-01 04:13:26 +00:00
Jim Meyering 7bfb13dea7 Tweak usage. 1996-01-20 14:27:56 +00:00
Jim Meyering 744d31d57a (main): New options --human-readable (-h) and --megabytes (-m).
(human_readable): New function.
From Larry McVoy (lm@sgi.com).
1996-01-20 14:26:04 +00:00
Jim Meyering 073c4cb543 Mark all translatable strings using po-mode.el. 1995-11-29 19:24:52 +00:00
Jim Meyering 57ec0f45c9 s/non-zero/nonzero/g 1995-11-27 05:34:31 +00:00
Jim Meyering f1e1eb58be Break long lines. 1995-11-15 15:45:28 +00:00
Jim Meyering c6ca8a1528 Remove bogus __P junk on xstat dcl. 1995-11-10 14:44:37 +00:00
Jim Meyering b7b00aad08 Protect prototypes with __P. 1995-11-09 23:41:10 +00:00
Jim Meyering c0d94c89ec Protoize. 1995-11-09 17:02:23 +00:00
Jim Meyering b3303ba072 Declare stat, xstat. 1995-10-01 22:40:11 +00:00
Jim Meyering be22aff966 (save_cwd, restore_cwd, free_cwd): Remove functions.
New versions have been broken out into save-cwd.c.
(du_files): Adapt to handle status code returned by new versions
of save_cwd and restore_cwd.
(count_entry): Likewise.
1995-08-05 03:10:27 +00:00
Jim Meyering ec8d1fce62 (main): Include program name in --version output. 1995-06-22 18:43:14 +00:00
Jim Meyering ee79446888 (usage): Add one or two lines of descriptive text. 1995-05-22 04:30:18 +00:00
Jim Meyering 99ce9e9832 Use stat (lstat), not safe_stat (safe_lstat). 1995-05-13 12:48:33 +00:00
Jim Meyering 1423198343 add 1995 to Copyright dates 1995-03-10 04:15:06 +00:00
Jim Meyering 6812f61900 (restore_cwd): Test whether fchdir return value is non-zero, not negative.
Be consistent!
1995-02-23 21:14:12 +00:00
Jim Meyering aeebbd038c (save_cwd) [!HAVE_FCHDIR]: Avoid a core dump via abort() which occurred
because cwd->desc was uninitialed.
(restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition of fchdir.
Both from Bruno Haible.
1995-02-23 21:12:11 +00:00
Jim Meyering 875eafd489 (count_entry): Fix bug in polarity of safe-stat status test. 1995-02-21 05:19:03 +00:00
Jim Meyering 03daea30a6 (save_cwd, restore_cwd): New functions.
(main): Use them instead of in-line versions.
(count_entry): Use them here instead of relying on chdir ("..") --
but only when necessary.  Before, with --dereference (-L),
traversing a symlink caused failure because chdir ("..") didn't
work as expected.  Reported by Bruno Haible.
1995-02-21 05:01:08 +00:00
Jim Meyering 69f39255bc Rename SAFE_STAT and SAFE_LSTAT to lower case names. 1995-01-27 17:03:21 +00:00
Jim Meyering 59097c0922 Include "error.h" rather than simply declaring `void error ();'. 1994-12-27 13:36:22 +00:00
Jim Meyering 1d6dc36be9 (du_files): Handle very low-probability fchdir failure (when errno != 0
&& errno != EINVAL).
1994-12-03 20:38:20 +00:00
Jim Meyering 9f715b2bdb (du_files): Variable name changes. 1994-12-03 20:29:28 +00:00
Jim Meyering 103e83b65e (du_files): Work around SunOS restriction that fchdir doesn't work when
accounting is enabled -- modelled after djm's find.c mods.
1994-12-03 20:26:33 +00:00
Jim Meyering 2e9d555f8c . 1994-10-27 13:45:55 +00:00
Jim Meyering 154bd660bb merge with 3.9p 1994-10-20 16:16:39 +00:00
Jim Meyering f17c045d21 . 1994-10-02 02:09:38 +00:00
Jim Meyering da13561d3d merge with 3.9f 1994-08-19 22:42:59 +00:00
Jim Meyering 1763c83a50 . 1994-08-19 12:45:55 +00:00
Jim Meyering a8778c2665 merge with 3.9e 1994-07-30 18:59:12 +00:00
Jim Meyering 32bd426778 . 1994-07-30 16:34:17 +00:00
Jim Meyering f980ff966d (main): Initialize cwd_only in first two statements, rather than as part
of the declaration.  The latter evoked an error from /bin/cc of HPUX 9.01.
1994-07-02 04:25:04 +00:00
Jim Meyering a3ad002027 (count_entry): Print "/" instead of "". 1994-06-18 21:04:00 +00:00
Jim Meyering 7b3845a4a5 . 1994-01-29 19:06:23 +00:00
Jim Meyering 200b442ee4 . 1994-01-29 18:31:36 +00:00
Jim Meyering 723d3d528d merge with 3.8.4k 1993-10-19 00:00:06 +00:00
Jim Meyering 712ac6d5a0 add newline back, but only for --help output 1993-10-18 03:22:20 +00:00
Jim Meyering 47ff7adaa2 Change fprintf (stdout' to printf ('. 1993-10-18 03:11:02 +00:00
Jim Meyering ce559ec2e5 remove extra newline in usage message 1993-10-18 03:03:07 +00:00
Jim Meyering 87372cd3ae merge with 3.8.3e 1993-10-09 20:44:16 +00:00
Jim Meyering 95f7eb6267 merge with 3.8.3d 1993-10-08 00:51:10 +00:00
Jim Meyering f2080b7714 merge with 3.8.3b 1993-10-06 16:44:26 +00:00
Jim Meyering 19cd821ddb merge with 3.8.3a 1993-10-06 00:24:55 +00:00
Jim Meyering 410da16d02 merge with 3.8.1 1993-08-05 02:20:48 +00:00
Jim Meyering d1c5cbfcdd merge with 3.5.5 1993-05-22 02:09:05 +00:00