comparison 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 <rob@landley.net>
date Sun, 20 Jan 2008 17:25:44 -0600
parents 163498bf547b
children a057cbaeaf16
comparison
equal deleted inserted replaced
236:6b292ee780ab 237:7cb15eae1664
17 Wait a decimal integer number of seconds. 17 Wait a decimal integer number of seconds.
18 */ 18 */
19 19
20 #include "toys.h" 20 #include "toys.h"
21 21
22 DEFINE_GLOBALS(
23 long seconds;
24 )
25
22 void sleep_main(void) 26 void sleep_main(void)
23 { 27 {
24 toys.exitval = sleep(atol(*toys.optargs)); 28 toys.exitval = sleep(atol(*toys.optargs));
25 } 29 }