File:  [XINU] / xinu / sys / shell / x_sleep.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:04 2018 UTC (8 years, 3 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19870308, HEAD
Xinu for VAX

/* x_sleep.c - x_sleep */

#include <conf.h>
#include <kernel.h>

/*------------------------------------------------------------------------
 *  x_sleep  -  (command sleep) delay for a given number of seconds
 *------------------------------------------------------------------------
 */
COMMAND	x_sleep(stdin, stdout, stderr, nargs, args)
int	stdin, stdout, stderr, nargs;
char	*args[];
{
	if (nargs != 2) {
		fprintf(stderr, "usage: sleep delay\n");
		return(SYSERR);
	}
	return( sleep( atoi(args[1]) ) );
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.