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

1.1       root        1: /* x_unmou.c -  x_unmou */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <io.h>
                      6: #include <name.h>
                      7: 
                      8: /*------------------------------------------------------------------------
                      9:  *  x_unmou  -  (command unmount) remove a prefix from the namespace table
                     10:  *------------------------------------------------------------------------
                     11:  */
                     12: COMMAND        x_unmou(stdin, stdout, stderr, nargs, args)
                     13: int    stdin, stdout, stderr, nargs;
                     14: char   *args[];
                     15: {
                     16:        if (nargs != 2) {
                     17:                fprintf(stderr, "use: unmount prefix\n");
                     18:                return(SYSERR);
                     19:        }
                     20:        if (unmount(args[1]) == SYSERR) {
                     21:                fprintf(stderr, "unmount fails.\n");
                     22:                return(SYSERR);
                     23:        }
                     24:        return(OK);
                     25: }

unix.superglobalmegacorp.com

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