Annotation of xinu/sys/shell/x_close.c, revision 1.1.1.1

1.1       root        1: /* x_close.c - x_close */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: 
                      6: /*------------------------------------------------------------------------
                      7:  *  x_close  -  (command close) close a device given its id
                      8:  *------------------------------------------------------------------------
                      9:  */
                     10: COMMAND        x_close(stdin, stdout, stderr, nargs, args)
                     11: int    stdin, stdout, stderr, nargs;
                     12: char   *args[];
                     13: {
                     14:        if (nargs != 2) {
                     15:                fprintf(stderr, "use: close device-number\n");
                     16:                return(SYSERR);
                     17:        }
                     18:        return(close(atoi(args[1])));
                     19: }

unix.superglobalmegacorp.com

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