Lines Matching defs:line

62 static int namematch(const char *label, char *line, const char *name);
192 /* got a (logical) line from Sysfiles */
242 /* got a (logical) line from Devconfig */
260 * given a file pointer and buffer, construct logical line in buffer
261 * (i.e., concatenate lines ending in '\'). return length of line
266 getaline(FILE *f, char *line)
269 lptr = line;
270 while (fgets(lptr, (line + BUFSIZ) - lptr, f) != NULL) {
273 /* empty buf or line too long! */
276 if (lend == line) /* empty line - ignore */
284 return (lptr - line);
289 * and a line: if line begins with the label and if the name appears
294 namematch(const char *label, char *line, const char *name)
298 if (strncmp(label, line, strlen(label)) != SAME)
299 return (FALSE); /* probably a comment line */
300 line += strlen(label);
301 if (*line == '\0')
309 while ((lend = strchr(line, ':')) != NULL) {
311 if (strcmp(line, name) == SAME)
313 line = lend+1;
315 return (strcmp(line, name) == SAME);
338 * look at top token in array: should be line of the form
346 char **line, *equals;
351 for (line = tokens; (line - tokens) < NTOKENS && *line; line++) {
352 equals = strchr(*line, '=');
359 if (strcmp(*line, "systems") == SAME)
361 else if (strcmp(*line, "devices") == SAME)
363 else if (strcmp(*line, "dialers") == SAME)
365 else if (strcmp(*line, "pop") == SAME)
367 else if (strcmp(*line, "push") == SAME)
369 else if (strcmp(*line, "connecttime") == SAME)
371 else if (strcmp(*line, "expecttime") == SAME)
373 else if (strcmp(*line, "msgtime") == SAME)
379 "unrecognized label %s", *line);
387 * and a line of colon-separated files, add 'em to list
391 setfile(char **type, char *line)
396 if (*line == 0)
402 for (tok = strtok(line, ":"); tok != NULL; tok = strtok(NULL, ":")) {
421 * and a line of colon-separated modules, add 'em to list
425 setioctl(char **type, char *line)
429 if (*line == 0)
434 for (tok = strtok(line, ":"); tok != NULL; tok = strtok(NULL, ":")) {
480 * get next line from Systems file
490 /* initialize devices and dialers whenever a new line is read */
528 * get next line from Devices file
569 * get next line from Dialers file
737 /* got a (logical) line from Config file */