9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

sleep.c (170B)


      1 #include <u.h>
      2 #include <libc.h>
      3 
      4 void
      5 main(int argc, char *argv[])
      6 {
      7 	long secs;
      8 
      9 	if(argc>1)
     10 		for(secs = atol(argv[1]); secs > 0; secs--)
     11 			sleep(1000);
     12 	exits(0);
     13 }