134660Sbostic /* 234660Sbostic * Copyright (c) 1988 Regents of the University of California. 334660Sbostic * All rights reserved. 434660Sbostic * 542542Sbostic * %sccs.include.redist.c% 634660Sbostic */ 734660Sbostic 834660Sbostic #ifndef lint 934660Sbostic char copyright[] = 1034660Sbostic "@(#) Copyright (c) 1988 Regents of the University of California.\n\ 1134660Sbostic All rights reserved.\n"; 1234660Sbostic #endif /* not lint */ 1334660Sbostic 1434660Sbostic #ifndef lint 15*47834Sbostic static char sccsid[] = "@(#)sleep.c 5.5 (Berkeley) 04/08/91"; 1634660Sbostic #endif /* not lint */ 1734660Sbostic 18*47834Sbostic #include <unistd.h> 1934660Sbostic #include <stdio.h> 20*47834Sbostic #include <stdlib.h> 2134660Sbostic 221093Sbill main(argc, argv) 2334660Sbostic int argc; 2434660Sbostic char **argv; 251093Sbill { 2634660Sbostic int secs; 271093Sbill 2834660Sbostic if (argc != 2) { 29*47834Sbostic (void)fprintf(stderr, "usage: sleep time\n"); 3034660Sbostic exit(1); 311093Sbill } 3234660Sbostic if ((secs = atoi(argv[1])) > 0) 3334660Sbostic (void)sleep(secs); 3434660Sbostic exit(0); 351093Sbill } 36