Lines Matching refs:flds
89 char *flds[F_MAX+1];
94 while ((nf = finds(system, flds, F_MAX)) > 0) {
95 fn = getto(flds);
111 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn,"","") == SUCCESS) {
144 getto(flds)
145 char *flds[];
154 CDEBUG(1, "Device Type %s wanted\n", flds[F_TYPE]);
157 if ((status=rddev(flds[F_TYPE], dev, devbuf, D_MAX)) == FAIL) {
164 if (classmatch(flds, dev) != SUCCESS) {
171 if ((dcf = processdev(flds, dev)) >= 0)
199 classmatch(flds, dev)
200 char *flds[], *dev[];
203 if (EQUALS(flds[F_CLASS], "Any")
208 dev[D_CLASS] = flds[F_CLASS];
210 } else if (EQUALS(flds[F_CLASS], "Any") ||
211 EQUALS(flds[F_CLASS], dev[D_CLASS]))
290 * flds - attibute vector from Systems file
291 * fldcount - number of fields in flds
302 finds(sysnam, flds, fldcount)
303 char *sysnam, *flds[];
321 na = getargs(info, flds, fldcount);
322 bsfix(flds); /* replace \X fields */
323 if ( !EQUALSN(sysnam, flds[F_NAME], MAXBASENAME))
328 !EQUALSN(flds[F_TYPE], Mytype, strlen(Mytype)))) {
331 flds[F_TYPE] : "Missing type entry");
336 flds[F_TYPE] : "<Missing type entry>");
340 (na > F_TIME && ifdate(flds[F_TIME]))) {
343 getProto(_ProtoSys, flds[F_TYPE]);
349 flds[F_NAME]);
352 flds[F_TIME] : "<Missing time entry>");
566 * nf - number of fields in flds array
567 * flds - fields from Systems file
576 chat(nf, flds, fn, phstr1, phstr2)
577 char *flds[], *phstr1, *phstr2;
584 want = flds[k];
604 if (flds[k+1])
605 sendthem(flds[k+1], fn, phstr1, phstr2);