summaryrefslogtreecommitdiffstats
path: root/bin/sleep
Commit message (Collapse)AuthorAgeFilesLines
* MFC r272777,r272779,r272780,r272781,r272782,r272783,r272784,r272787,r272788:ngie2015-01-012-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r272777: Integrate usr.sbin/nmtree/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division r272779: Integrate usr.sbin/basename/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division r272780: Integrate usr.bin/cmp/tests from NetBSD into atf/kyua In collaboration with: sjg Sponsored by: EMC / Isilon Storage Division r272781: Integrate usr.bin/dirname/tests from NetBSD into atf/kyua In collaboration with: pho, sjg Sponsored by: EMC / Isilon Storage Division r272782: Integrate bin/sleep/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272783: Integrate usr.bin/cut/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272784: Integrate usr.bin/grep/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division r272787: Integrate usr.bin/diff/tests from NetBSD into atf/kyua at gnu/usr.bin/diff/tests Sponsored by: EMC / Isilon Storage Division r272788: Integrate usr.bin/gzip/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division
* sleep: Explain in a comment why the [EINTR] check is there.jilles2013-06-051-0/+6
| | | | Suggested by: eadler
* sleep: Improve nanosleep() error handling:jilles2013-05-281-2/+3
| | | | | | | | | * 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
* Document the new argument parser for sleep(1) and SIGINFO behaviour.kib2010-08-021-6/+7
| | | | | | Remove higlight for the unportability notice. MFC after: 3 weeks
* Simplify argument parser by using sscanf(); simplify usage() by notkib2010-08-021-72/+19
| | | | | | | | | | 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
* Deal with proper format for printing time_t.kib2010-07-311-3/+5
| | | | | Reported by: ache MFC after: 3 weeks
* Report the time left for the sleep on SIGINFO.kib2010-07-311-19/+47
| | | | | | | Be stricter in the checking of interval specification. PR: bin/139345 MFC after: 3 weeks
* Fix a comment.stefanf2005-08-071-1/+1
| | | | Submitted by: Liam J. Foy
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-2/+2
| | | | Sort standard sections in the (documented) preferred order.
* /*- or .\"- or #- to begin license clauses.imp2005-01-102-1/+2
|
* Remove clause 3 from the UCB licenses.markm2004-04-062-8/+0
| | | | OK'ed by: imp, core
* Fix warnings. This is now WARNS=9, std=c99 clean in i386.markm2003-05-031-9/+10
| | | | | Use return(0) for main() instead of exit(0). Makes it a wee bit smaller.
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Minimal take on previous commit -- remove getopt and printf. Static sizenjl2002-11-141-15/+9
| | | | | | | | | 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
* Back out previous commit since there is controversy about changing so muchnjl2002-11-141-24/+30
| | | | | in sleep including duping strtol(3). Code changes also increased dynamic size of sleep(1).
* Remove getopt and strtol dependencies, reducing size of static exe.njl2002-11-131-30/+24
| | | | | | | | | | | | 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>
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Sort sections, use Ex macro in Diagnostics section, point out that the firsttjr2002-06-101-11/+4
| | | | example only works with csh(1).
* Add History section. sleep appeared in v4.tjr2002-06-101-0/+5
|
* o __P has been reovedimp2002-02-021-6/+3
| | | | | | | | | | | | | | | | | | 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) { ...
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* mdoc(7) police:ru2001-08-071-4/+2
| | | | | | | 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.
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-202-0/+3
| | | | MFC After: 1 week
* Prepare for mdoc(7)NG.ru2000-12-151-1/+1
|
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Restore reference to sleep(3).ru1999-10-281-1/+2
|
* Let sleep(1) handle fractions of a second (up to nanosecond).ru1999-10-012-12/+72
| | | | | | | 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).
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Describe proper signals behavior rather than just removing it.ru1999-08-161-2/+8
| | | | | | Remove obsoleted reference to alarm(3). Submitted by: bde
* There is no special handling for SIGALRM asru1999-08-091-11/+3
| | | | sleep(3) is implemented using nanosleep(2).
* Various spelling/formatting changes.kris1999-05-081-2/+2
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Correct use of .Nm. Add rcsid.charnier1998-05-182-8/+10
|
* Describe signals behaviour nowache1997-08-121-1/+7
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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.
* Sort cross references.wosch1997-01-131-3/+3
|
* Cleanup man page and -Wall cleaning.steve1996-12-142-6/+6
|
* Added $Id$dg1994-09-243-0/+4
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-263-0/+201
OpenPOWER on IntegriCloud