summaryrefslogtreecommitdiff
path: root/src/sleep.c
AgeCommit message (Collapse)Author
2001-12-15Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf.
2001-11-25(usage): Indent --help and --version strings to start in the 7th column.Jim Meyering
2001-08-14(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2000-05-11(usage): Don't call close_stdout directly, since thatJim Meyering
didn't cover --version output. (main): Arrange to call close_stdout via atexit, instead.
2000-05-07Include "closeout.h".Jim Meyering
(usage): Call close_stdout just before exit.
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
1999-12-27minor var. renamingsJim 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-19tweak commentJim Meyering
1999-12-19tweak commentJim Meyering
1999-11-28Don't include math.h or float.h.Jim Meyering
Don't use DBL_MAX. Use TIME_T_MAX instead.
1999-11-28don't include assert.hJim Meyering
1999-11-28Round more carefully so we never call nanosleep with more than 999,999,999Jim Meyering
nanoseconds. Comment out assertion because it uses on EINTR.
1999-11-28Rewrite to use nanosleep (hence, timer stops when sleep is suspended)Jim Meyering
and to remove gettimeofday/signal cruft. Improve overflow checking.
1999-11-28*** empty log message ***Jim Meyering
1999-11-28better error checkingJim Meyering
add FIXME comments for non-portable constructs
1999-11-27remove another printf stmtJim Meyering
1999-11-27remove printf stmtsJim Meyering
1999-11-27fix typosJim Meyering
1999-11-27Rewrite to allow fractional seconds and to handle SIGCONT.Jim Meyering
(main): Rewrite. (sighandler): New function. (apply_suffix): New function. (timeval_subtract): New function.
1999-11-27(usage): Add elipses to show that sleep allows more than one argument.Jim Meyering
1999-11-27(argdecode): Move definition to precede use.Jim Meyering
Remove prototype.
1999-08-30(usage): Correct --help message.Jim Meyering
1999-03-31(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-06Include long-options.h.Jim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-25(usage): Remove static attribute.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1997-12-21s/__P/PARAMS/Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support:Jim Meyering
call setlocale, bindtextdomain, and textdomain.
1996-01-17(argdecode): Declare parameter const.Jim Meyering