|
|
1.1 ! root 1: struct oargs { ! 2: int lmachno; ! 3: int lchno; ! 4: int dmachno; ! 5: int dlchno; ! 6: }; ! 7: ! 8: struct voargs { ! 9: int lmachno; ! 10: int lchno; ! 11: int dmachno; ! 12: int dlchno; ! 13: int pdid; ! 14: }; ! 15: ! 16: struct cargs { ! 17: int lmachno; ! 18: int lchno; ! 19: }; ! 20: ! 21: struct gpargs { ! 22: int lmachno; ! 23: int lch; ! 24: char *addr; ! 25: int len; ! 26: struct status *status; ! 27: }; ! 28: ! 29: struct gmargs { ! 30: struct pair { ! 31: int lmachno; ! 32: int lchno; ! 33: } *pairp; ! 34: char *addr; ! 35: int len; ! 36: struct status *status; ! 37: }; ! 38: ! 39: struct raargs { ! 40: int machno; ! 41: }; ! 42: ! 43: struct chargs { ! 44: int dummy; ! 45: }; ! 46: ! 47: struct wargs { ! 48: int dummy; ! 49: }; ! 50: ! 51: struct pargs { ! 52: int dummy; ! 53: }; ! 54: ! 55: struct sargs { ! 56: int dummy; ! 57: }; ! 58: ! 59: #define NUMDEV 16 ! 60: ! 61: #undef NUMLCH ! 62: #ifdef USG5 ! 63: /* warning: NUMLCH must be identically defined in /usr/include/sys/space.h */ ! 64: #define NUMLCH 9 ! 65: #define MAXMUX 4 ! 66: #else ! 67: #define NUMLCH 32 ! 68: #define MAXMUX 32 ! 69: #endif ! 70: ! 71: struct sninfo { ! 72: int snnpackets, snnbadlen; ! 73: int snnack, snnrdy, snnrnr; ! 74: int snndata, snnnolc, snnchksum, snnrack; ! 75: int snsack, snsrnr, sns1rdy, snsrdy, snsdata, snsnack, snlost; ! 76: int snlock; ! 77: int snxcnt, snrcnt; ! 78: int sninbytes, snoutbytes; ! 79: int snrout, sninloop, snoutfull, sncntoutfull; ! 80: int sndevlock[NUMDEV]; ! 81: struct chdat *snlink[NUMDEV]; ! 82: int snsched, sntimeout; ! 83: int snenqlost[NUMLCH]; ! 84: }; ! 85: ! 86: struct snmach { ! 87: int machno; ! 88: int lmachno; ! 89: }; ! 90: ! 91: struct openwait { ! 92: int pid; ! 93: }; ! 94: #define ownext(owptr) (owptr >= &sn_openwait[NUMDEV-1] ? &sn_openwait[0] : owptr+1) ! 95: struct openinfo { ! 96: struct openwait *owaddr, *head, *tail; ! 97: }; ! 98: ! 99: /* ! 100: * Network commands ! 101: */ ! 102: #ifdef BSD42 ! 103: #define NIOOPEN _IOW(n, 0, struct oargs) ! 104: #define NIOCLOSE _IOW(n, 1, struct cargs) ! 105: #define NIOGET _IOW(n, 2, struct gpargs) ! 106: #define NIOPUT _IOW(n, 3, struct gpargs) ! 107: #define NIOCHECK _IOW(n, 4, struct chargs) ! 108: #define NIOWAIT _IOW(n, 5, struct wargs) ! 109: #define NIOPURGE _IOW(n, 6, struct pargs) ! 110: #define NIOSETVEC _IOW(n, 7, struct sargs) ! 111: #define NIOGETM _IOW(n, 8, struct gmargs) ! 112: #define NIORESET _IOW(n, 9, struct raargs) ! 113: #define NIOABORT _IOW(n, 10, struct raargs) ! 114: #define NIOREADSTATUS _IO(n, 11) ! 115: #define NIOPOPEN _IOW(n, 12, struct voargs) ! 116: #define NIOCHSTATUS _IO(n, 13) ! 117: #define NIOSETMACH _IO(n, 14) ! 118: #define NIOGETMACH _IO(n, 15) ! 119: #define NIOXOPEN _IOWR(n, 16, struct voargs) ! 120: #define NIOQSTATUS _IO(n, 17) ! 121: #define NIOZEROSTAT _IO(n, 18) ! 122: #else ! 123: #define NIOOPEN (('n'<<8)|0) ! 124: #define NIOCLOSE (('n'<<8)|1) ! 125: #define NIOGET (('n'<<8)|2) ! 126: #define NIOPUT (('n'<<8)|3) ! 127: #define NIOCHECK (('n'<<8)|4) ! 128: #define NIOWAIT (('n'<<8)|5) ! 129: #define NIOPURGE (('n'<<8)|6) ! 130: #define NIOSETVEC (('n'<<8)|7) ! 131: #define NIOGETM (('n'<<8)|8) ! 132: #define NIORESET (('n'<<8)|9) ! 133: #define NIOABORT (('n'<<8)|10) ! 134: #define NIOREADSTATUS (('n'<<8)|11) ! 135: #define NIOPOPEN (('n'<<8)|12) ! 136: #define NIOCHSTATUS (('n'<<8)|13) ! 137: #define NIOSETMACH (('n'<<8)|14) ! 138: #define NIOGETMACH (('n'<<8)|15) ! 139: #define NIOXOPEN (('n'<<8)|16) ! 140: #define NIOQSTATUS (('n'<<8)|17) ! 141: #define NIOZEROSTAT (('n'<<8)|18) ! 142: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.