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

1.1       root        1: /* rfputc.c - rfputc */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <network.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  rfputc  --  put a single character into a remote file
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: rfputc(devptr, ch)
                     12: struct devsw   *devptr;
                     13: char   ch;
                     14: {
                     15:        char    outch;
                     16: 
                     17:        outch = ch;
                     18:        if ( write(devptr->dvnum, &outch, 1) == 1)
                     19:                return(OK);
                     20:        else
                     21:                return(SYSERR);
                     22: }

unix.superglobalmegacorp.com

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