Mercurial > hg > toybox
view toys/sleep.c @ 234:163498bf547b
Move NEWTOY() list from end of toylist.h to generated/newtoys.h.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 19 Jan 2008 17:43:27 -0600 |
parents | d4176f3f3835 |
children | 7cb15eae1664 |
line wrap: on
line source
/* vi: set sw=4 ts=4: * * sleep.c - Wait for a number of seconds. * * Copyright 2007 Rob Landley <rob@landley.net> * * See http://www.opengroup.org/onlinepubs/009695399/utilities/sleep.html USE_SLEEP(NEWTOY(sleep, "<1", TOYFLAG_BIN)) config SLEEP bool "sleep" default y help usage: sleep SECONDS Wait a decimal integer number of seconds. */ #include "toys.h" void sleep_main(void) { toys.exitval = sleep(atol(*toys.optargs)); }