From bc7cb1a15a67c859c8c71c4b52bb35fe9425a63d Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Nov 2003 18:04:47 +0000 Subject: new utilities. the .C files compile but are renamed to avoid building automatically. --- src/cmd/sleep.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/cmd/sleep.c (limited to 'src/cmd/sleep.c') diff --git a/src/cmd/sleep.c b/src/cmd/sleep.c new file mode 100644 index 00000000..68cdc7a4 --- /dev/null +++ b/src/cmd/sleep.c @@ -0,0 +1,13 @@ +#include +#include + +void +main(int argc, char *argv[]) +{ + long secs; + + if(argc>1) + for(secs = atol(argv[1]); secs > 0; secs--) + sleep(1000); + exits(0); +} -- cgit v1.2.3