view toys/sleep.c @ 237:7cb15eae1664

Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS() macros in each C file, and making generated/globals.h from that. Rename "toy" to "this" along the way to avoid toy/toys confusion.
author Rob Landley <>
date Sun, 20 Jan 2008 17:25:44 -0600
parents 163498bf547b
children a057cbaeaf16
line wrap: on
line source

/* vi: set sw=4 ts=4:
 * sleep.c - Wait for a number of seconds.
 * Copyright 2007 Rob Landley <>
 * See


config SLEEP
	bool "sleep"
	default y
	  usage: sleep SECONDS

	  Wait a decimal integer number of seconds.

#include "toys.h"

	long seconds;

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