Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering fb059dc67c *** empty log message *** FILEUTILS-4_0f 1999-04-11 02:19:51 +00:00
Jim Meyering 12562e897d . 1999-04-11 02:17:48 +00:00
Jim Meyering cc40ff77a8 . 1999-04-11 02:17:20 +00:00
Jim Meyering 294b139566 *** empty log message *** 1999-04-11 02:15:26 +00:00
Jim Meyering 54047adacd *** empty log message *** 1999-04-11 01:45:44 +00:00
Jim Meyering 4d062fbe6d *** empty log message *** 1999-04-11 01:44:26 +00:00
Jim Meyering 23dfcdb368 `ls --color' would segfault
Include assert.h.
(color_indicator[]): Add an entry for the type, `door.'
(main): Assert that the lengths of the color_indicator and
indicator_name arrays are appropriately related.
1999-04-11 01:43:34 +00:00
Jim Meyering e6a9ce41b6 *** empty log message *** 1999-04-11 01:35:01 +00:00
Jim Meyering 03e24361ee (scanargs): Fix bug introduced with last change: now that
the loop is gone, manually decrement argc and increment argv.
1999-04-11 01:32:28 +00:00
Jim Meyering 24c8bc7107 *** empty log message *** 1999-04-08 13:44:31 +00:00
Jim Meyering 4ab8ea3cb7 (Options for date): Document --iso-8601 1999-04-08 13:44:19 +00:00
Jim Meyering 75e403b3b3 Accept new option: --iso-8601. 1999-04-08 13:44:00 +00:00
Jim Meyering 367c2367a6 *** empty log message *** 1999-04-07 17:43:47 +00:00
Jim Meyering 1ff7d4be9b (difftm): Protoize. 1999-04-07 17:43:36 +00:00
Jim Meyering 43dcc7ef21 . 1999-04-07 17:43:12 +00:00
Jim Meyering b655fc9cf7 . 1999-04-07 17:41:57 +00:00
Jim Meyering b6dfae5d0e *** empty log message *** 1999-04-07 12:53:22 +00:00
Jim Meyering 1f8c95df83 split long line 1999-04-06 17:26:07 +00:00
Jim Meyering 2af4373a90 Update from master source in libc, removing %f. 1999-04-06 14:22:06 +00:00
Jim Meyering 20203a77e1 *** empty log message *** 1999-04-06 14:15:04 +00:00
Jim Meyering d712631a71 Remove test for %f. 1999-04-06 14:14:58 +00:00
Jim Meyering 2d9a947471 *** empty log message *** 1999-04-05 03:51:33 +00:00
Jim Meyering 47a4b79f74 Comment out the test added on 1999-01-31. 1999-04-05 03:51:17 +00:00
Jim Meyering b967ecb86b (url_dir_list): Define properly.
(real_dir_list): Likewise.
1999-04-05 02:00:03 +00:00
Jim Meyering 4fa4d097bd *** empty log message *** 1999-04-04 23:15:20 +00:00
Jim Meyering 5050912be0 Don't include string.h.
[!HAVE_CONFIG_H]: Include string.h here.
[!HAVE_CONFIG_H]: Hard-code RETSIGTYPE to `int'.
(sigill_handler): Change return type and type of local `oldhandler' to
RETSIGTYPE.
(isaac_seed_machdep): Change and type of local `oldhandler' to
RETSIGTYPE.
1999-04-04 23:15:07 +00:00
Jim Meyering a147c61141 use dquotes, not squotes FILEUTILS-4_0e 1999-04-04 21:07:25 +00:00
Jim Meyering 4afd87dd11 *** empty log message *** 1999-04-04 20:54:30 +00:00
Jim Meyering 339497e1f4 *** empty log message *** 1999-04-04 16:02:28 +00:00
Jim Meyering 62528b9cf8 Change the sed command used to extract the
filename from ls -l output, to accommodate the change in format.
1999-04-04 16:00:50 +00:00
Jim Meyering 50c573d457 Add case_GETOPT_* cases. 1999-04-04 15:46:31 +00:00
Jim Meyering 96309d1da7 *** empty log message *** 1999-04-04 15:44:58 +00:00
Jim Meyering d815c152df Standardize --help and --version processing. 1999-04-04 15:44:26 +00:00
Jim Meyering 25abb410d4 define/use AUTHORS 1999-04-04 14:44:45 +00:00
Jim Meyering baa8cd4493 *** empty log message *** 1999-04-04 14:43:27 +00:00
Jim Meyering d008b48e3b (print_long_format): Add a space between %s and %3u. This
assures that even when modebuf has the trailing `+' and there are more
than 99 hard links to a file, the permissions string and the link count
will be separated.
1999-04-04 14:41:43 +00:00
Jim Meyering 5b86bf7cde import latest 1999-04-04 14:33:18 +00:00
Jim Meyering 54ec5153c5 (S_IWUSR): Define if not already defined. 1999-04-04 14:32:58 +00:00
Jim Meyering 6369a887ba . 1999-04-04 14:30:44 +00:00
Jim Meyering 42edc330ed fix comments
add FIXME
1999-04-04 14:30:30 +00:00
Jim Meyering e0e1dc0bf8 (dopass): add curly braces to avoid warning about ambiguous `else'.
(wipefd): Add parentheses suggested by gcc.
(do_wipefd): Remove declaration of unused local.
1999-04-04 04:54:34 +00:00
Jim Meyering f381610dd5 [!HAVE_CONFIG_H] (xstrtoul, error, close_stdout): Added stubs
to allow standalone compilation.

(wipefile): Added support for emulating /dev/fd/# files even if
the OS doesn't support them.  From Paul Eggert.

(main, usage): Changed --device short option to -D.

(wipefd, do_wipefd): Renamed function to do_wipefd and added
separate wipefd that performs sanity checks on externally-opened file
descriptors, such as not append-only.  From Paul Eggert.

(do_wipefd, isaac_seedfd): Do not read file for any reason.
if the file is low-entropy, it's a security hole.
(wipefile) Changed to open O_WRONLY and chmod to write-only when
forcing.
(isaac_seedfd) Function deleted as unnecessary.
From Paul Eggert.

(dopass): Dynamically fall back to fsync() if fdatasync() fails,
since POSIX, in their infinitesimal wisdom, encourage implementations
that return constant -1, making compile-time testing useless.
From Paul Eggert.

(dopass): Changed to support a size of -1 to mean "unknown".
This entailed changing to a counting-up offset rather than couting-down
cursize for the central state variable.  Also changed size argument to
be call-by-reference so that it can be passed back once known.
(sizer) Function deleted as unnecessary.
(wipefd): Changed to match.  From Paul Eggert

(dopass): Try to skip over bad blocks in destination files.
Also added ftruncate() for more complete destruction of metadata.

(main, usage): Changed "-" to stand for standard output.
(wipefd): Added error message to detect conflict with -v.

(dopass): Added periodic fsync() calls to keep the pass progress
display in sync with reality.  Hopefully they're sufficiently far spaced
that throughput isn't affected.  It might be a good thing to do even in
non-verbose mode, to avoid filling up the kernel caches with dirty data.
Also added ftruncate() for more complete destruction of metadata.

(quotearg_colon): New function to print
pathological filenames properly.
[!HAVE_CONFIG_H] (quotearg_colon_buf) New internal helper function
that does most of the work.
(wipefd, do_wipefd, dopass) Now take a qname (pre-quoted name) argument.
(wipename, wipefile, main) Changed diagnostics to use quotearg_colon.
Error messages are also in a more uniform format.
From Paul Eggert.

(struct Options, main, do_wipefd): Added -s/--size=N flag.
(xstrtoul): Added support for valid_suffixes to help this.
(usage) Documented it.

(error): Changed some arguments from N_() to _(), since error()
does not translate its argument.  I think this is a bug.

(struct Options do_wipefd, wipefd, wipefile, main): moved passes
argument into the Options structure as n_iterations, which is now a
size_t.  From Paul Eggert.

(isaac_seed_start, isaac_seed_data, isaac_seed_finish): New functions
to manage seeding of RNG with arbitrary-sized data.
(isaac_init): commented out as dead code.
(isaac_seed): changed to use new functions to prevent any possibility of
a buffer overflow.

(isaac_seed): Added support for Solaris' gethrtime()
configure.in: Corresponding feature test.  From Paul Eggert.

(wipename): Change remove() to unlink() for speed & portability.
Use lstat() instead of access() to see if a filename is taken.  This
works even on dangling symlinks and avoids the suid problems of
access(2).  From Paul Eggert.

(isaac_seed_machdep): New function for reading cycle counters
1999-04-04 04:37:39 +00:00
Jim Meyering 034df8db20 *** empty log message *** 1999-04-04 04:34:16 +00:00
Jim Meyering 8fe009ed7c back out Paul's changes 1999-04-04 02:34:49 +00:00
Jim Meyering c21cecaea8 Use AUTHORS in place of string in parse_long_options call. 1999-04-03 05:26:48 +00:00
Jim Meyering 1d47220ab2 Insert AUTHORS definition. 1999-04-03 05:22:05 +00:00
Jim Meyering cf691ec714 Use PROGRAM_NAME in place of string in parse_long_options call. 1999-04-03 05:20:06 +00:00
Jim Meyering 7c2d5de6c7 define PROGRAM_NAME 1999-04-03 05:01:48 +00:00
Jim Meyering db6ce0481b *** empty log message *** 1999-04-03 03:29:41 +00:00
Jim Meyering 98327bba60 (S_IWUSR): Define if not already defined. 1999-04-03 03:29:17 +00:00