projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
More stuff.
[oweals/busybox.git]
/
sleep.c
1
#include "internal.h"
2
#include <stdio.h>
3
4
const char sleep_usage[] = " NUMBER\n"
5
"Pause for NUMBER seconds.\n";
6
7
extern int
8
sleep_main(int argc, char * * argv)
9
{
10
if ( (argc < 2) || (**(argv+1) == '-') ) {
11
usage( sleep_usage );
12
}
13
14
if ( sleep(atoi(*(++argv))) != 0 ) {
15
perror( "sleep");
16
exit (FALSE);
17
} else
18
exit (TRUE);
19
}