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

1.1     ! root        1: /* getmid.c - getmid */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <frame.h>
        !             6: 
        !             7: #define        MACHID  1               /* temporary value for testing          */
        !             8: #ifndef        NNETS
        !             9: #define        NNETS   0
        !            10: #endif
        !            11: 
        !            12: /*------------------------------------------------------------------------
        !            13:  *  getmid  --  get the machine id for this machine on a given net
        !            14:  *------------------------------------------------------------------------
        !            15:  */
        !            16: SYSCALL        getmid(netid)
        !            17:        int     netid;
        !            18: {
        !            19:        int     id;
        !            20:        char    ch;
        !            21: 
        !            22:        if (netid < 0 || netid > NNETS)
        !            23:                return(SYSERR);
        !            24: 
        !            25:        return(MACHID); /* replace by value from ROM if feasible */
        !            26: }

unix.superglobalmegacorp.com

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