Lines Matching defs:pt

92 _PROTOTYPE(static void update_portmap,(struct porttab *pt, char *pn));
169 struct porttab *pt;
230 for (pt = Pth[pr][h]; pt; pt = pt->next) {
231 if (pt->port == port)
234 if (pt)
268 if (!(pt = (struct porttab *)malloc(sizeof(struct porttab)))) {
274 pt->name = nm;
275 pt->nl = nl;
276 pt->port = port;
277 pt->next = Pth[pr][h];
278 pt->ss = 0;
279 Pth[pr][h] = pt;
297 struct porttab *pt;
323 for (pt = Pth[pr][h]; pt; pt = pt->next) {
324 if (pt->port == p)
327 if (pt)
342 if (!(pt = (struct porttab *)malloc(sizeof(struct porttab)))) {
348 pt->name = nm;
349 pt->nl = nl - 1;
350 pt->port = p;
351 pt->next = Pth[pr][h];
352 pt->ss = 0;
353 Pth[pr][h] = pt;
480 struct porttab *pt;
526 for (pt = Pth[pr+2][h]; pt; pt = pt->next) {
527 if (pt->port != p)
529 if (!pt->ss) {
535 (void) update_portmap(pt, pn);
537 return(pt->name);
542 for (pt = Pth[pr][h]; pt; pt = pt->next) {
543 if (pt->port == p)
544 return(pt->name);
565 if (!(pt = (struct porttab *)malloc(sizeof(struct porttab)))) {
582 pt->name = nm;
583 pt->nl = nl;
584 pt->port = p;
585 pt->next = Pth[pr][h];
586 pt->ss = 0;
587 Pth[pr][h] = pt;
608 struct porttab *pt;
624 for (pt = Pth[pr][h]; pt; pt = pt->next) {
625 if (pt->port == p)
626 return(pt->name);
2803 update_portmap(pt, pn)
2804 struct porttab *pt; /* porttab entry */
2810 if (pt->ss)
2813 pt->ss = 1;
2816 nl = al + pt->nl + 2;
2820 Pn, (int)(nl + 1), pn, pt->name);
2823 (void) snpf(cp, nl + 1, "%s[%s]", pn, pt->name);
2824 (void) free((FREE_P *)pt->name);
2825 pt->name = cp;
2826 pt->nl = nl;
2827 pt->ss = 1;