Annotation of xinu/sys/remove.c, revision 1.1.1.1

1.1       root        1: /* remove.c - remove */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <file.h>
                      6: #include <name.h>
                      7: 
                      8: /*------------------------------------------------------------------------
                      9:  *  remove  -  remove a file given its name (key is optional)
                     10:  *------------------------------------------------------------------------
                     11:  */
                     12: SYSCALL        remove(name, key)
                     13: char   *name;
                     14: int    key;
                     15: {
                     16:        char    fullnam[NAMLEN];
                     17:        struct  devsw   *devptr;
                     18:        int     dev;
                     19: 
                     20:        if ( (dev=nammap(name, fullnam)) == SYSERR)
                     21:                return(SYSERR);
                     22:        devptr = &devtab[dev];
                     23:        return( (*devptr->dvcntl)(devptr, FLREMOVE, fullnam, key) );
                     24: }

unix.superglobalmegacorp.com

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