History log of /freebsd-10.0-release/bin/sleep/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


251433 05-Jun-2013 jilles

sleep: Explain in a comment why the [EINTR] check is there.

Suggested by: eadler


251078 28-May-2013 jilles

sleep: Improve nanosleep() error handling:

* Work around kernel bugs that cause a spurious [EINTR] return if a
debugger (such as truss(1)) is attached.

* Write an error message if an error other than [EINTR] occurs.

PR: bin/178664


210750 02-Aug-2010 kib

Document the new argument parser for sleep(1) and SIGINFO behaviour.
Remove higlight for the unportability notice.

MFC after: 3 weeks


210749 02-Aug-2010 kib

Simplify argument parser by using sscanf(); simplify usage() by not
refusing to use stdio.
Reduce nesting level in the sleep loop by returning earlier for negative
timeouts.
Limit the maximum timeout to INT_MAX seconds.

Submitted by: bde
MFC after: 3 weeks


210696 31-Jul-2010 kib

Deal with proper format for printing time_t.

Reported by: ache
MFC after: 3 weeks


210679 31-Jul-2010 kib

Report the time left for the sleep on SIGINFO.
Be stricter in the checking of interval specification.

PR: bin/139345
MFC after: 3 weeks


148816 07-Aug-2005 stefanf

Fix a comment.

Submitted by: Liam J. Foy


140353 16-Jan-2005 ru

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


114575 03-May-2003 markm

Fix warnings. This is now WARNS=9, std=c99 clean in i386.
Use return(0) for main() instead of exit(0). Makes it a
wee bit smaller.


114433 01-May-2003 obrien

Quiet warnings about copyright[].


106883 14-Nov-2002 njl

Minimal take on previous commit -- remove getopt and printf. Static size
is reduced by 40k, dynamic by a few bytes.
Functional changes:
* "sleep -- arg" now returns usage() instead of ignoring the --
* "sleep -1" now returns immediately instead of returning usage()

Reviewed by: jmallett


106882 14-Nov-2002 njl

Back out previous commit since there is controversy about changing so much
in sleep including duping strtol(3). Code changes also increased
dynamic size of sleep(1).


106874 13-Nov-2002 njl

Remove getopt and strtol dependencies, reducing size of static exe.
Preserve older desired behavior, accept [+-]*[0-9]*\.[0-9]*
Remove a few unnecessary casts.

%ls -l /bin/sleep
-r-xr-xr-x 1 root wheel 61332 Oct 28 05:16 /bin/sleep
%ls -l /usr/obj/usr/src/bin/sleep/sleep
-rwxr-xr-x 1 root wheel 19124 Nov 13 12:12 /usr/obj/usr/src/bin/sleep/sleep

Submitted by: Tim Kientzle <kientzle@acm.org>


99110 30-Jun-2002 obrien

Consistently use FBSDID


98092 10-Jun-2002 tjr

Sort sections, use Ex macro in Diagnostics section, point out that the first
example only works with csh(1).


98091 10-Jun-2002 tjr

Add History section. sleep appeared in v4.


90111 02-Feb-2002 imp

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o Change
int
foo() {
...
to
int
foo(void)
{
...


87323 04-Dec-2001 obrien

Default to WARNS=2. Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by: mike


81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


78624 22-Jun-2001 dd

WARNS= -> WARNS?=

Submitted by: Mike Barcroft <mike@q9media.com>


76881 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC After: 1 week


70056 15-Dec-2000 ru

Prepare for mdoc(7)NG.


57695 02-Mar-2000 sheldonh

Remove more single-space hard sentence breaks.


52604 28-Oct-1999 ru

Restore reference to sleep(3).


51835 01-Oct-1999 ru

Let sleep(1) handle fractions of a second (up to nanosecond).

This is a conservative change. It does the same thing in weird
cases like the old one. For example, 'sleep abcd' still sleeps
for zero seconds. `sleep 10.a' and `sleep 10.05aa' do the best
and not abort (ie: 10.a == 10 seconds, 10.05a == 10.05 seconds).


50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


49891 16-Aug-1999 ru

Describe proper signals behavior rather than just removing it.
Remove obsoleted reference to alarm(3).

Submitted by: bde


49576 09-Aug-1999 ru

There is no special handling for SIGALRM as
sleep(3) is implemented using nanosleep(2).


46684 08-May-1999 kris

Various spelling/formatting changes.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


36152 18-May-1998 charnier

Correct use of .Nm. Add rcsid.


28130 12-Aug-1997 ache

Describe signals behaviour now


24348 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21635 13-Jan-1997 wosch

Sort cross references.


20423 14-Dec-1996 steve

Cleanup man page and -Wall cleaning.


3044 24-Sep-1994 dg

Added $Id$


1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.