summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1999-04-04back out Paul's changesJim Meyering
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering
1999-04-03Insert AUTHORS definition.Jim Meyering
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering
1999-04-03define PROGRAM_NAMEJim Meyering
1999-04-03(S_IWUSR): Define if not already defined.Jim Meyering
1999-04-03(isaac_seed): Don't overrun the s->mm buffer.Jim Meyering
Use gethrtime if available. Don't assume that clock_gettime succeeds. Put most random sources first.
1999-04-03Add new options -bcCklL and fix some porting problems.Jim Meyering
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.
1999-04-02[HAVE_SYS_ACL_H]: Include sys/acl.h.Jim Meyering
(struct fileinfo): New member `have_acl'. (gobble_file): Initialize it. (print_long_format): Use it. Mostly from Alen Muzinic.
1999-04-02(open_maybe_create): New function.Jim Meyering
(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.
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(install_file_in_dir): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01Remove prototypes and tsort function definitions.Jim Meyering
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(main): Move the declaration of `e' into the scopeJim Meyering
where it's used and make it `const'.
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(touch): Qualify a char* with the `const' keyword.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-31No longer include long-options.h.Jim Meyering
[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.
1999-03-31Include "closeout.h" and "version-etc.h"Jim Meyering
1999-03-31(AUTHORS): Actually define and use.Jim Meyering
1999-03-31(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-31(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-30(strip): Use standard "cannot fork" message.Jim Meyering
Check for strip nonzero exit status.
1999-03-29PROGRAM_NAME: rename from COMMAND_NAMEJim Meyering
1999-03-27(strip): Use pid_t, not int.Jim Meyering
1999-03-27(print_user): Use uid_t instead of int.Jim Meyering
(print_group): Use gid_t instead of int.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26reorder includesJim Meyering
1999-03-26(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-26(PROGRAM_NAME, AUTHORS): DefineJim Meyering
(long_options): Remove unused struct. (scanargs): Remove useless loop. (main): Use PROGRAM_NAME and AUTHORS in call to parse_long_options.
1999-03-26define and use AUTHORSJim Meyering
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26(GETOPT_HELP_CHAR): Define.Jim Meyering
(GETOPT_VERSION_CHAR): Define. (GETOPT_HELP_OPTION_DECL): Define. (GETOPT_VERSION_OPTION_DECL): Define. (case_GETOPT_HELP_CHAR): Define. (case_GETOPT_VERSION_CHAR): Define.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-26No longer include long-options.h.Jim Meyering
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.
1999-03-25(recheck): Factor out a block of duplicated code.Jim Meyering
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.
1999-03-22tweak usage message -- from KarlJim Meyering
1999-03-22*** empty log message ***Jim Meyering
1999-03-20Don't modify PATH just to get GNU nice. Instead, tryJim Meyering
to find an absolute path for GNU nice. From Bruno Haible.
1999-03-20[WINSIZE_IN_PTEM]: Include sys/stream.h and sys/ptem.h.Jim Meyering
Required by SCO ODT 2.0 systems. Reported by William Bader.
1999-03-18(remove_cwd_entries): Reflect changes in hash_insert.Jim Meyering
(remove_init): Call hash_initialize with one more argument.