summaryrefslogtreecommitdiff
path: root/src/sleep.c
AgeCommit message (Collapse)Author
2007-08-30Use PACKAGE_NAME instead of GNU_PACKAGE.Eric Blake
* src/Makefile.am (.sh, uninstall-local): Adjust all users of hand-rolled GNU_PACKAGE to instead use autoconf-provided PACKAGE_NAME. * src/basename.c (main): Likewise. * src/chroot.c (main): Likewise. * src/dirname.c (main): Likewise. * src/echo.c (main): Likewise. * src/expr.c (main): Likewise. * src/factor.c (main): Likewise. * src/groups.sh (version): Likewise. Also, reflect change in --version output due to GPLv3. * src/hostid.c (main): Likewise. * src/hostname.c (main): Likewise. * src/link.c (main): Likewise. * src/logname.c (main): Likewise. * src/nice.c (main): Likewise. * src/nohup.c (main): Likewise. * src/printenv.c (main): Likewise. * src/printf.c (main): Likewise. * src/pwd.c (main): Likewise. * src/setuidgid.c (main): Likewise. * src/sleep.c (main): Likewise. * src/system.h (case_GETOPT_VERSION_CHAR): Likewise. * src/test.c (main): Likewise. * src/true.c (main): Likewise. * src/unlink.c (main): Likewise. * src/uptime.c (main): Likewise. * src/users.c (main): Likewise. * src/whoami.c (main): Likewise. * src/yes.c (main): Likewise. * configure.ac (AC_CHECK_DECLS): No need to check strtoimax, strtoumax, since gnulib does this.
2007-07-23Update all copyright notices to use the newer form.Jim Meyering
2007-07-10Change "version 2" to "version 3" in all copyright notices.Jim Meyering
2007-03-28Help translators include translation team's web or email address.Jim Meyering
* src/system.h (emit_bug_reporting_address): New function. * src/base64.c: Use it rather than a literal printf. * src/basename.c, src/cat.c, src/chgrp.c, src/chmod.c: * src/chown.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c: * src/csplit.c, src/cut.c, src/date.c, src/dd.c, src/df.c: * src/dircolors.c, src/dirname.c, src/du.c, src/echo.c, src/env.c: * src/expand.c, src/expr.c, src/factor.c, src/fmt.c, src/fold.c: * src/head.c, src/hostid.c, src/hostname.c, src/id.c, src/install.c: * src/join.c, src/kill.c, src/link.c, src/ln.c, src/logname.c: * src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, src/mknod.c: * src/mv.c, src/nice.c, src/nl.c, src/nohup.c, src/od.c: * src/paste.c, src/pathchk.c, src/pinky.c, src/pr.c, src/printenv.c: * src/printf.c, src/ptx.c, src/pwd.c, src/readlink.c, src/rm.c: * src/rmdir.c, src/seq.c, src/setuidgid.c, src/shred.c, src/shuf.c: * src/sleep.c, src/sort.c, src/split.c, src/stat.c, src/stty.c: * src/su.c, src/sum.c, src/sync.c, src/system.h, src/tac.c: * src/tail.c, src/tee.c, src/test.c, src/touch.c, src/tr.c: * src/true.c, src/tsort.c, src/tty.c, src/uname.c, src/unexpand.c: * src/uniq.c, src/unlink.c, src/uptime.c, src/users.c, src/wc.c: * src/who.c, src/whoami.c, src/yes.c: Likewise.
2005-12-28Don't include <assert.h>; it wasn't used.Jim Meyering
2005-12-04(usage): Say what happens with two or more arguments.Jim Meyering
2005-06-16Don't embed `this'-style quotes in format strings.Jim Meyering
Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
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.