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

1.1     ! root        1: /* rfseek.c - rfseek */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <fserver.h>
        !             6: #include <rfile.h>
        !             7: 
        !             8: /*------------------------------------------------------------------------
        !             9:  *  rfseek  --  seek to a specified position of a remote file
        !            10:  *------------------------------------------------------------------------
        !            11:  */
        !            12: rfseek(devptr, offset)
        !            13: struct devsw   *devptr;
        !            14: long   offset;
        !            15: {
        !            16:        struct  rfblk   *rfptr;
        !            17: 
        !            18:        rfptr = (struct rfblk *)devptr->dvioblk;
        !            19:        wait(rfptr->rf_mutex);
        !            20:        rfptr->rf_pos = offset;
        !            21:        signal(rfptr->rf_mutex);
        !            22:        return(OK);
        !            23: }

unix.superglobalmegacorp.com

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