summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-09-13(main): Handle leading command line argument of `--'.Jim Meyering
2002-09-13(usage): Explain that %S's range of [0..60] is required --Jim Meyering
rather than 0..59 -- to accommodate the occasional positive leap second.
2002-09-12.Jim Meyering
2002-09-12(nanosec_libs): Define.Jim Meyering
(sleep_LDADD, tail_LDADD): Use it here.
2002-09-12.Jim Meyering
2002-09-12Factor nanosleep-related code into ../lib/xnanosleep.c.Jim Meyering
Include xnanosleep.h. Factor out fenv.h-related code. (timespec_subtract): Remove function. (main): Remove code that deals with computing start and stop times as well as the loop around nanosleep. Now that's in xnanosleep.c.
2002-09-12Include xnanosleep.h and xstrtod.h.Jim Meyering
Move declaration of global variable, sleep_interval, to ... (main): ...here. (usage): Update description of --sleep-interval option. (tail_forever): New parameter, sleep_interval. Update caller. Use xnanosleep, rather than sleep. (parse_options): New parameter, sleep_interval. Update caller. Use xstrtod, now that we accept floating point values.
2002-09-06.Jim Meyering
2002-09-06(prompt): Change comment to give a better note to translators.Jim Meyering
2002-09-02(NEED_PATHCONF_WRAPPER): Define.Jim Meyering
(pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
2002-09-02(skip): Add casts to avoid warning about comparisonJim Meyering
between signed and unsigned. Also rearrange range-checking comparisons to make them more readable.
2002-09-02(print_table_row): Use an unsigned type for widthsJim Meyering
to avoid warning about comparison between signed and unsigned. (list_signals): Likewise.
2002-09-02(skip): Add a cast to avoid warning about comparisonJim Meyering
between signed and unsigned.
2002-08-31Symlinks were always reported as using 0 blocks.Jim Meyering
(ST_NBLOCKS): Don't depend on file type. This reverts the change of 2000-01-30. Based on a report and patch from Neil Brown via Michael Stone.
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-30Change `error (1, ...' to `error (EXIT_FAILURE, ...'.Jim Meyering
2002-08-29(is_empty_dir): Detect and diagnose readdir failures.Jim Meyering
Always close directory handle.
2002-08-29(print_dir): Detect and diagnose readdir failures.Jim Meyering
On some systems (at least EMC Celerra and Solaris5.8), this appears to be necessary. (print_dir): Rename local variable: reading -> dirp.
2002-08-29(remove_cwd_entries): Use closedir (not CLOSEDIR) when ignoring any return ↵Jim Meyering
value.
2002-08-29(print_dir): Rename local variable: reading -> dirp.Jim Meyering
2002-08-29(remove_cwd_entries): Detect and diagnose readdirJim Meyering
failures. On some systems (at least EMC Celerra and Solaris5.8), this appears to be necessary.
2002-08-28(remove_cwd_entries): Use CLOSEDIR, not closedir.Jim Meyering
Give a diagnostic and fail if closedir fails.
2002-08-26(close_stdout_wrapper): New, kludgey, function and file-scoped global.Jim Meyering
(main): Register it with atexit. Close STDOUT_FILENO, to avoid a problem when writing to /dev/audio on at least Solaris 2.7 and 2.8 systems.
2002-08-25(main): Close STDIN_FILENO rather than a literal `0'.Jim Meyering
2002-08-20.Jim Meyering
2002-08-10Don't use "exec --"; it's not portable and shouldn't be needed.Jim Meyering
2002-08-09.Jim Meyering
2002-08-09(main): Don't ignore -COLUMN if it's the last option.Jim Meyering
(usage): Clarify help text for the -COLUMN option.
2002-08-08Guard inclusion of <langinfo.h> withJim Meyering
`#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.
2002-08-07(main): Adjust to posixtime signature change.Jim Meyering
Remove unnecessary initialization. Use localtime, not posixtm, to warn about obsolete "touch".
2002-08-07(main): Adjust to posixtime signature change.Jim Meyering
2002-08-05.Jim Meyering
2002-08-04*** empty log message ***Jim Meyering
2002-08-04(check-README): New target/rule.Jim Meyering
(check): Depend on it.
2002-08-03(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Set to false.Jim Meyering
2002-08-02Include hard-locale.h, xmemcoll.h.Jim Meyering
(hard_LC_COLLATE): New var. (different): Args are now char *, not const char *. Use xmemcoll instead of memcmp to compare lines, so that LC_COLLATE has effect. However, use memcmp if it is an easy locale. (check_file): Do not include newline in comparison, so that xmemcoll has a byte to stomp on temporarily. (main): Set hard_LC_COLLATE.
2002-08-01(run_shell): Exit with status 126 or 127 when execvp orJim Meyering
execv fails, for consistency with POSIX commands like env and nice.
2002-08-01(main): Exit with status 126 or 127 when execvp orJim Meyering
execv fails, for consistency with POSIX commands like env and nice.
2002-08-01Change behavior to conform to POSIX 1003.1-2001:Jim Meyering
- Do not adjust scheduling priority. - Redirects stderr to stdout, if stderr is not a terminal. - Exit status is now 126 if command was found but not invoked, 127 if nohup failed or if command was not found. Fix bug: command was run if nohup.out wasn't writeable.
2002-07-29.Jim Meyering
2002-07-29Adjust command examples in comments to use POSIX 1003.1-2001 option syntax.Jim Meyering
From Paul Eggert.
2002-07-27(UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Remove definitions.Jim Meyering
Now they're defined in readutmp.h. (print_deadprocs): Remove obsolete FIXME comment.
2002-07-27Port to POSIX 1003.1-2001 "nice", whichJim Meyering
requires the option "-n 5" rather than "-5". This matters with GNU "nice" if the user has set the _POSIX2_VERSION environment variable.
2002-07-26Don't include malloc.h -- it was unnecessary.Jim Meyering
2002-07-24undo last changeJim Meyering
2002-07-22(usage): The short form of --dereference is now -L, not -l.Jim Meyering
2002-07-22Add new option, --presume-input-tty, for testing only.Jim Meyering
Not documented.
2002-07-22rm would prompt for non-dangling symlinksJim Meyering
(prompt): When not interactive, don't prompt for a symlink.
2002-07-20(copy_internal): Use file_name_lookup, not getdport.Jim Meyering
Patch by Alfred M. Szmidt.
2002-07-20(main): Add an explicit `exit (EXIT_SUCCESS);'Jim Meyering
for --version, rather than falling through.