Lines Matching refs:dev
134 char *dev[D_MAX+2], devbuf[BUFSIZ];
143 if ((status = rddev(flds[F_TYPE], dev, devbuf, D_MAX)) ==
151 if (classmatch(flds, dev) != SUCCESS) {
153 DEBUG(7, " - class (%s) not wanted.\n", dev[D_CLASS]);
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")) {
188 dev[D_CLASS] = DEFAULT_BAUDRATE;
190 } else if (EQUALS(dev[D_CLASS], "Any")) {
191 dev[D_CLASS] = flds[F_CLASS];
194 EQUALS(flds[F_CLASS], dev[D_CLASS]))
211 rddev(char *type, char *dev[], char *buf, int devcount)
220 na = getargs(buf, dev, devcount);
223 if (strncmp(dev[D_LINE], "/dev/", 5) == 0) {
225 /* "/dev/", do the same here. */
226 (void) strcpy(dev[D_LINE], &(dev[D_LINE][5]));
231 if ((commap = strchr(dev[D_LINE], ',')) != NULL) {
241 (void) strcpy(d_type, dev[D_TYPE]);
249 if ((Myline != NULL) && (!EQUALS(Myline, dev[D_LINE])))
252 bsfix(dev); /* replace \X fields */
255 getProto(_ProtoDev, dev[D_TYPE]);