projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7e38a366757e2ce103ae5df7a54b237412285a57
[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
}