aboutsummaryrefslogtreecommitdiff
path: root/toys/sleep.c
blob: 84de7ac2b3a9f806ff1f16365551725b3554809d (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/007904975/utilities/sleep.html
 */

#include "toys.h"

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