Annotation of xinu/sys/rfcntl.c, revision 1.1

1.1     ! root        1: /* rfcntl.c - rfcntl */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  rfcntl  --  control the remote file server access system
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: rfcntl(devptr, func, addr, addr2)
        !            12: struct devsw   *devptr;
        !            13: int    func;
        !            14: char   *addr;
        !            15: char   *addr2;
        !            16: {
        !            17:        long    junk;
        !            18:        int     len;
        !            19: 
        !            20:        junk = 0L;
        !            21:        switch (func) {
        !            22: 
        !            23:        case RFCLEAR:
        !            24:                /* clear port associated with rfserver */
        !            25:                control(Rf.device, DG_CLEAR);
        !            26:                return(OK);
        !            27: 
        !            28:        /* Universal file manipulation functions */
        !            29: 
        !            30:        case FLACCESS:
        !            31:                return(rfmkpac(FS_ACCESS,addr,&junk,(char *)&junk,addr2));
        !            32: 
        !            33:        case FLREMOVE:
        !            34:                return( rfmkpac(FS_UNLINK, addr, &junk, NULLSTR, 0) );
        !            35: 
        !            36:        case FLRENAME:
        !            37:                len = strlen(addr2) + 1;
        !            38:                return( rfmkpac(FS_RENAME, addr, &junk, addr2, len) );
        !            39: 
        !            40:        default:
        !            41:                return(SYSERR);
        !            42:        }       
        !            43: }

unix.superglobalmegacorp.com

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