summaryrefslogtreecommitdiff
path: root/src/sleep.c
AgeCommit message (Collapse)Author
2004-11-17(main): Use getopt_long rather than getopt.Paul Eggert
2004-10-18(main): Remove declaration of unused local, c.Jim Meyering
2004-09-21Remove now-unused long-options static var.Paul Eggert
(main): Use getopt where it suffices, not getopt_long.
2004-08-02(apply_suffix): Use bool for booleans.Paul Eggert
2004-06-21(main): Standardize on the diagnostics given when someone givesJim Meyering
too few operands ("missing operand after `xxx'") or too many operands ("extra operand `xxx'"). Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
2003-11-27Include "c-strtod.h".Jim Meyering
(main): Update xstrtod call to include new argument, c_strtod.
2003-11-05Cast NULL to `(char *)' in call to variadic function,Jim Meyering
parse_long_options, so that it works even on systems for which sizeof char* != sizeof int.
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-07-23Don't include headers already included by system.h:Jim Meyering
Don't include closeout.h.
2003-06-17(main): Call initialize_main.Jim Meyering
2003-03-08Remove now-unused #include and #define directives.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-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-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2002-03-01reflect renaming: nanosleep.h -> timespec.hJim Meyering
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