Lines Matching defs:flds
85 char *flds[F_MAX+1];
89 while ((nf = finds(system, flds, F_MAX)) > 0) {
90 fn = getto(flds);
95 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn, "", "") ==
132 getto(char *flds[])
140 CDEBUG(1, "Device Type %s wanted\n", flds[F_TYPE]);
143 if ((status = rddev(flds[F_TYPE], dev, devbuf, D_MAX)) ==
151 if (classmatch(flds, dev) != SUCCESS) {
157 if ((dcf = processdev(flds, dev)) >= 0)
184 classmatch(char *flds[], char *dev[])
187 if (EQUALS(flds[F_CLASS], "Any") && EQUALS(dev[D_CLASS], "Any")) {
191 dev[D_CLASS] = flds[F_CLASS];
193 } else if (EQUALS(flds[F_CLASS], "Any") ||
194 EQUALS(flds[F_CLASS], dev[D_CLASS]))
270 * flds - attibute vector from Systems file
271 * fldcount - number of fields in flds
282 finds(char *sysnam, char *flds[], int fldcount)
309 na = getargs(info, flds, fldcount);
310 bsfix(flds); /* replace \X fields */
311 if (!EQUALSN(sysnam, flds[F_NAME], MAXBASENAME))
315 (!EQUALSN(flds[F_TYPE], Mytype, strlen(Mytype)))) {
317 DEBUG(7, " - type (%s) not wanted.\n", flds[F_TYPE]);
322 DEBUG(5, " - device type %s.\n", flds[F_TYPE]);
325 if (!EQUALS(Progname, "uucico") || ifdate(flds[F_TIME])) {
327 getProto(_ProtoSys, flds[F_TYPE]);
331 CDEBUG(1, "Wrong Time To Call: %s\n", flds[F_TIME]);
367 * nf - number of fields in flds array
368 * flds - fields from Systems file
377 chat(int nf, char *flds[], int fn, char *phstr1, char *phstr2)
383 want = flds[k];
403 if (flds[k+1])
404 sendthem(flds[k+1], fn, phstr1, phstr2);