aboutsummaryrefslogtreecommitdiff
path: root/toys/sleep.c
blob: 0c01a6ea9c13f27307008575c126ba831edf2e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* vi: set sw=4 ts=4: */
/*
 * sleep.c - Wait for a number of seconds.
 *
 * See http://www.opengroup.org/onlinepubs/009695399/utilities/sleep.html
 */

#include "toys.h"

void sleep_main(void)
{
	toys.exitval = sleep(atol(*toys.optargs));
}