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

1.1     ! root        1: /* rfwrite.c - rfwrite */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  rfwrite  --  write one or more bytes to a remote file
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: rfwrite(devptr, buff, len)
        !            12: struct devsw   *devptr;
        !            13: char   *buff;
        !            14: int    len;
        !            15: {
        !            16:        int     i;
        !            17: 
        !            18:        if (len < 0)
        !            19:                return(SYSERR);
        !            20:        for (i=len ; i > 0 ; i-=RDATLEN, buff+=RDATLEN)
        !            21:                if (rfio(devptr,FS_WRITE,buff,min(i,RDATLEN)) == SYSERR)
        !            22:                        return(SYSERR);
        !            23:        return(len);
        !            24: }

unix.superglobalmegacorp.com

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