Lines Matching refs:contab
54 struct contab *mhash[128]; /* 128 == the 0177 on line above */
97 munhash(&contab[oldmn]); in casern()
98 contab[oldmn].rq = j; in casern()
99 maddhash(&contab[oldmn]); in casern()
107 struct contab *rp; in maddhash()
109 struct contab **hp;
122 struct contab *mp; in munhash()
124 struct contab *p;
125 struct contab **lp;
147 struct contab *p; in mrehash()
152 for (p=contab; p < &contab[NM]; p++) in mrehash()
154 for (p=contab; p < &contab[NM]; p++) { in mrehash()
232 if (contab[newmn].rq) in casede()
233 munhash(&contab[newmn]); in casede()
234 contab[newmn].rq = i; in casede()
235 maddhash(&contab[newmn]); in casede()
256 struct contab *p;
260 return(p - contab);
270 if (contab[i].mx)
271 ffree((filep)contab[i].mx);
272 munhash(&contab[i]);
273 contab[i].rq = 0;
274 contab[i].mx = 0;
275 contab[i].f = 0;
293 if (app && oldmn >= 0 && contab[oldmn].mx) {
295 ip = (filep)contab[oldmn].mx;
306 if (contab[i].rq == 0)
318 contab[i].mx = (unsigned) nextb;
322 contab[i].rq = -1;
324 contab[i].rq = mn;
325 maddhash(&contab[i]);
453 cc1 = contab[oldmn].rq & 0177; in alloc()
454 if ((cc2 = (contab[oldmn].rq >> BYTE) & 0177) == 0) in alloc()
734 if ((i = getsn()) == 0 || (j = findmn(i)) == -1 || !contab[j].mx) { in setstr()
742 return pushi((filep)contab[j].mx, i); in setstr()
1013 if ((xx = contab[i].rq) == 0 || contab[i].mx == 0) in casepm()
1017 j = (filep) contab[i].mx; in casepm()