Lines Matching defs:entry

734 	struct	svcfields entry;
748 if ((rtn = svc_format(buf, &entry)) != 0) {
757 sprintf(mesg, "Entry for code \"%s\" has incorrect format", entry.svc_code);
766 printf("%s\t", entry.svc_code);
767 if (*entry.addr)
768 printf("%s\t", entry.addr);
769 else if (strchr(entry.lflags, 'd'))
774 if (strchr(entry.flags, 'x') == NULL)
781 (*entry.rpc)?entry.rpc:"NORPC", entry.id,
782 (*entry.modules)?entry.modules:"NOMODULES",
783 entry.command, (*entry.comment)?entry.comment:"");
786 if (strchr(entry.flags, 'x') == NULL)
1137 struct svcfields entry;
1153 if ((rtn = svc_format(buf, &entry)) != 0) {
1163 sprintf(mesg, "Entry for code \"%s\" has incorrect format", entry.svc_code);
1170 printf("%s\n", entry.addr);
1176 p = strchr(entry.comment, '\n');
1179 old_addsvc(NLPSSVCCODE, laddr, entry.command, entry.comment, entry.modules, entry.id, entry.flags, netspec);
1195 if ((rtn = svc_format(buf, &entry)) != 0) {
1205 sprintf(mesg, "Entry for code \"%s\" has incorrect format", entry.svc_code);
1212 printf("%s\n", entry.addr);
1218 p = strchr(entry.comment, '\n');
1221 old_addsvc(TTYSVCCODE, taddr, entry.command, entry.comment, entry.modules, entry.id, entry.flags, netspec);
1243 svc_format(char *buf, struct svcfields *entry)
1248 entry->pmtag = buf;
1252 entry->pmtype = ptr;
1253 if ((ptr = strchr(entry->pmtype, ':')) == NULL)
1256 entry->svc_code = ptr;
1258 if (strcmp(entry->pmtype, LISTENTYPE) != 0)
1261 if ((ptr = strchr(entry->svc_code, ':')) == NULL)
1264 entry->flags = ptr;
1265 if ((ptr = strchr(entry->flags, ':')) == NULL)
1268 entry->id = ptr;
1269 if ((ptr = strchr(entry->id, ':')) == NULL)
1272 entry->res1 = ptr;
1273 if ((ptr = strchr(entry->res1, ':')) == NULL)
1276 entry->res2 = ptr;
1277 if ((ptr = strchr(entry->res2, ':')) == NULL)
1280 entry->res3 = ptr;
1281 if ((ptr = strchr(entry->res3, ':')) == NULL)
1284 entry->addr = ptr;
1285 if ((ptr = strchr(entry->addr, ':')) == NULL)
1288 entry->rpc = ptr;
1289 if ((ptr = strchr(entry->rpc, ':')) == NULL)
1292 if (*entry->rpc) {
1293 if ((tmp = strchr(entry->rpc, ',')) == NULL)
1297 entry->lflags = ptr;
1298 if ((ptr = strchr(entry->lflags, ':')) == NULL)
1301 entry->modules = ptr;
1302 if ((ptr = strchr(entry->modules, ':')) == NULL)
1305 entry->command = ptr;
1306 if ((ptr = strchr(entry->command, '#')) == NULL)
1309 entry->comment = ptr;