summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-01-22[! HAVE_DECL_STRTOUL]: Declare strtoul.Jim Meyering
[! HAVE_DECL_STRTOULL]: Declare strtoull. Required for some AIX systems. Reported by Christian Krackowizer.
2000-01-22Topologically sort the functions and remove fwd declarations.Jim Meyering
2000-01-22(enum Format_type): Declare.Jim Meyering
(format_type): New global to take place of intconv. (DO_printf): New macro. (main): Use it.
2000-01-22Add support for octal and hexadecimal output.Jim Meyering
(intconv): New variable. (usage): Update. (main): Call scan_arg instead of scan_double_arg. Call check_format before scan_arg. (scan_int_arg, scan_arg): New functions. (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X. (print_numbers): If intconv is true, pass an int argument to printf.
2000-01-22("xstrtol.h"): Include.Jim Meyering
(Filter): Rename from PFL. (non_neg_strtol): Remove function. (find_bracketed_repeat): Use xstrtoul instead of non_neg_strtol. (squeeze_filter, set_initialize, main): Use size_t and ssize_t in place of long and int in several decls. (read_and_delete, read_and_xlate): Likewise, and remove assertion.
2000-01-21Correct copying notice to use GPL, per author's request.Jim Meyering
(AUTHORS): Add djm.
2000-01-21Correct copying notice to use GPL, per author's request.Jim Meyering
2000-01-21(PFI): Return `long', not `int'.Jim Meyering
(PFL): Rename from PFI now that it returns long. (squeeze_filter): Declare as `long': i, nr, out_len.
2000-01-19Tweak sort performance.Jim Meyering
(hard_LC_CTYPE): Remove. (keylist): Renamed from keyhead. Now a pointer, not a mostly-unused struct. All uses changed. (findlines, keycompare, CMP_WITH_IGNORE, compare, checkfp, mergefps, sort): Tune and use a more consistent style for reallocation. (keycompare, main): Don't worry about LC_CTYPE; it's buggy with multibyte chars anyway. (compare): Invoke alloca (0) after each call to keycompare, not just the ones that return nonzero. This avoids a memory leak on architectures without builtin alloca that occurs sometimes when a file contains all duplicate lines.
2000-01-18(interrupt_handler, main):Jim Meyering
Don't use SA_INTERRUPT to decide whether to call sigaction, as POSIX.1 doesn't require SA_INTERRUPT and some systems (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988).
2000-01-18(sighandler, main):Jim Meyering
Don't use SA_INTERRUPT to decide whether to call sigaction, as POSIX.1 doesn't require SA_INTERRUPT and some systems (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988).
2000-01-18(interrupt_handler):Jim Meyering
Don't use SA_INTERRUPT to decide whether to call sigaction, as POSIX.1 doesn't require SA_INTERRUPT and some systems (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988). (install_handler): Use SA_NOCLDSTOP, not _POSIX_VERSION, to decide whether to call sigaction; this fixes an old typo.
2000-01-16(usage): Correct error in %V description.Jim Meyering
From Wolfram Kleff.
2000-01-15(TAB_STOP_SENTINEL): Define.Jim Meyering
(unexpand): Use it instead of INT_MAX. Declare column and pending to be `unsigned'. Increment pending and column counters only if column is smaller than TAB_STOP_SENTINEL.
2000-01-13(fillbuf): Avoid quadratic behavior with long lines.Jim Meyering
Also, stop worrying about ancient memchr bug (misbehavior when size is zero), since other code doesn't worry either.
2000-01-12(count_entry): Adjust to new calling convention for excluded_filename.Jim Meyering
(main): Likewise, for add_exclude_file.
2000-01-09(do_link): Produce the same sort of one-line output forJim Meyering
`--backup --verbose' as cp, mv, install. Before this, the backup file name wasn't printed at all.
2000-01-09This affects cp, install, and mv.Jim Meyering
(copy_internal): When making backup files in verbose mode, print the backup file name on the same line as the rest of the information, e.g., `a -> b (backup: b.~13~)' rather than on a line by itself.
2000-01-08(PAGES_OPTION, COLUMNS_OPTION): Define these and use them instead ofJim Meyering
`CHAR_MAX + n'.
2000-01-08(OUTPUT_DELIMITER_OPTION): Define this and use it instead of `CHAR_MAX + n'.Jim Meyering
2000-01-06add blank lineJim Meyering
2000-01-06(apply_suffix): Comment.Jim Meyering
2000-01-06fix typo in commentJim Meyering
2000-01-06Minor code cleanup.Jim Meyering
(clock_get_realtime): Return argument, for convenience. (main): Use this to simplify main sleep loop.
2000-01-05Include nanosleep.h.Jim Meyering
(AUTHORS): Add Paul Eggert.
2000-01-05Add #pragma STDC FENV_ACCESS ON if C99.Jim Meyering
(<fenv.h>): Include if available. (main): Always round floating-point interval calculations upwards, as we must sleep for at least the specified time. Do the right thing with NaNs.
2000-01-02update usageJim Meyering
2000-01-02Remove non-POSIX warning about trailing-slashed symlink-to-directory.Jim Meyering
2000-01-02New option: --strip-trailing-slashes.Jim Meyering
2000-01-02(#pragma alloca): Add if _AIX is defined.Jim Meyering
(path-concat.h): Include. (show_point): If HAVE_REALPATH or HAVE_RESOLVEPATH is defined, find the real absolute path for PATH, and use that to find the mount point. (show_point): Prefer non-dummy entries in shortcuts, too. Disable bogus mount dirs instead of restatting them each time.
1999-12-30(remove_parents, main): Don't pass errno to errorJim Meyering
when printing "removing directory" message. Failure of rmdir is handled elsewhere.
1999-12-27minor var. renamingsJim Meyering
1999-12-27tweak --helpJim Meyering
1999-12-25Use < rather than >.Jim Meyering
(main): Normalize ts_stop.
1999-12-23(USE_CLOCK_GETTIME): Define.Jim Meyering
[USE_CLOCK_GETTIME]: Include sys/time.h. (timespec_subtract): New function. (clock_get_realtime): New function. (sighandler): Remove function. (main): Reimplement again, using nanosleep and clock_gettime.
1999-12-23(usage): Correct typos.Jim Meyering
List new --target-directory=... usage. Reported by Göran Uddeborg
1999-12-23(usage): List new --target-directory=... usage.Jim Meyering
1999-12-22(ceil_percent): Remove.Jim Meyering
(show_dev): Avoid overflow problems when calculating percent. Do not display negative percents.
1999-12-19tweak commentJim Meyering
1999-12-19tweak commentJim Meyering
1999-12-19[! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Use lstat wrapper.Jim Meyering
[Notice the new test in m4/lstat-slash.m4. ] (main): Back out change from 1999-02-19 that made ls remove trailing slashes from command line arguments to accommodate early versions of Linux. Now, `ls symlink-to-dir/' acts like `ls symlink-to-dir/.' thus following the symbolic link, as POSIX says it should. Suggestion from Bruno Haible and Andreas Schwab.
1999-12-18(wipename): When repeatedly renaming a file, making the name shorterJim Meyering
and shorter, skip to the next shorter length length if a rename fails (e.g. due to permission denied). Otherwise, this loop would iterate for so long that shred would appear to be stuck in an infinite loop for any but the shortest file names.
1999-12-18(print_entry): Correct do_lookup test so that whoJim Meyering
prints whatever host information it has, even without --lookup.
1999-12-15(decode_switches): If -c or -u is specified and not -l (or any otherJim Meyering
option that implies -l), and no sort-type was specified, then sort by the ctime (-c) or atime (-u). Part of this change reverts the 1998-01-10 delta. (usage): Update to reflect this change. Reported by Paul Slootman via Michael Stone.
1999-12-12Move 120+ lines of stat.h-related macros from system.h (not shared)Jim Meyering
to sys2.h, which is shared between fileutils, sh-utils, textutils. * src/system.h: Move them from here... * src/sys2.h: ... to here.
1999-12-12(S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): DefineJim Meyering
if not defined. This was necessary on a NeXT Turbostation running Mach 3.3. Reported by Nelson H. F. Beebe.
1999-12-09(IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.Jim Meyering
1999-12-09(BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):Jim Meyering
Define these and use them instead of `CHAR_MAX + n'.
1999-12-09(BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): DefineJim Meyering
these and use them instead of `CHAR_MAX + n'.
1999-12-09(anonymous enum): Define TIME_OPTION, and ...Jim Meyering
(longopts): ...use it here instead of `CHAR_MAX + 1'. (main): Likewise.