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

1.1       root        1: /* rfclose.c - rfclose */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <network.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  rfclose  --  close a remote file by deallocating pseudo device
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: rfclose(devptr)
                     12: struct devsw   *devptr;
                     13: {
                     14:        struct  rfblk   *rfptr;
                     15:        long    junk;           /* argument to rfmkpac; not really used */
                     16: 
                     17:        rfptr = (struct rfblk *)devptr->dvioblk;
                     18:        if (rfptr->rf_state == RFREE)
                     19:                return(SYSERR);
                     20:        wait(rfptr->rf_mutex);
                     21:        junk = 0L; /* 0L is long zero constant */
                     22:        rfmkpac(FS_CLOSE,rfptr->rf_name,&junk,(char *)&junk,0);
                     23:        rfptr->rf_state = RFREE;
                     24:        signal(rfptr->rf_mutex);
                     25:        return(OK);
                     26: }

unix.superglobalmegacorp.com

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