|
|
Xinu for VAX
/* x_close.c - x_close */
#include <conf.h>
#include <kernel.h>
/*------------------------------------------------------------------------
* x_close - (command close) close a device given its id
*------------------------------------------------------------------------
*/
COMMAND x_close(stdin, stdout, stderr, nargs, args)
int stdin, stdout, stderr, nargs;
char *args[];
{
if (nargs != 2) {
fprintf(stderr, "use: close device-number\n");
return(SYSERR);
}
return(close(atoi(args[1])));
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.