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

1.1     ! root        1: /* fsend.c - fsend */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <frame.h>
        !             6: #ifndef        NNETS
        !             7: #define        NNETS   0
        !             8: #endif
        !             9: 
        !            10: /*------------------------------------------------------------------------
        !            11:  *  fsend  --  enqueue a message for transmission to another machine
        !            12:  *------------------------------------------------------------------------
        !            13:  */
        !            14: SYSCALL        fsend(netid, toaddr, fptr)
        !            15:        int     netid;
        !            16:        int     toaddr;
        !            17:        struct frame *fptr;
        !            18: {
        !            19:        struct  fglob   *fgptr;
        !            20: 
        !            21:        if (netid < 0 || netid >= NNETS)
        !            22:                return(SYSERR);
        !            23:        fgptr = &fdata[netid];
        !            24:        setfa(fptr, toaddr, fgptr->fmachid);
        !            25:        psend(fgptr->foport, fptr);
        !            26:        signal(fgptr->fosem);
        !            27:        return(OK);
        !            28: }

unix.superglobalmegacorp.com

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