Lines Matching defs:line

37  * operations from a supplied menu or from the command line. Diagnostic
187 " Use fdisk_file to initialize on-line fdisk table.\n"
652 static int pars_fdisk(char *line,
761 * Process command-line options.
1326 char line[256];
1336 /* Read a line from the file */
1337 while (fgets(line, sizeof (line) - 1, fp)) {
1338 if (line[0] == '\0' || line[0] == '\n' || line[0] == '*')
1341 line[strlen(line)] = '\0';
1342 if (sscanf(line, "%hu %hu %hu %hu %hu %hu %d",
1352 line);
1357 } /* while (fgets(line, sizeof (line) - 1, fp)) */
1764 char line[256];
1800 /* Read a line from the file */
1801 while (fgets(line, sizeof (line) - 1, fp)) {
1802 if (pars_fdisk(line, &id, &act, &bhead, &bsect,
1815 " entry \"%s\".\n", line);
1847 /* This line should be logical drive info */
1914 " entry \"%s\".\n", line);
1933 " entry \"%s\".\n", line);
1946 line);
2002 line);
2006 } /* while (fgets(line, sizeof (line) - 1, fp)) */
2019 /* Parse the user-supplied deletion line (-D) */
2086 /* Parse the user-supplied addition line (-A) */
2569 char *line,
2580 if (line[0] == '\0' || line[0] == '\n' || line[0] == '*')
2582 line[strlen(line)] = '\0';
2583 for (i = 0; i < strlen(line); i++) {
2584 if (line[i] == '\0') {
2586 } else if (line[i] == ':') {
2587 line[i] = ' ';
2590 (void) strncpy(buf, line, 256);
2596 (void) printf("Invalid input %s in line %s.\n",
2597 tok, line);
2604 (void) printf("Invalid input %s in line %s.\n", tok,
2605 line);
2610 if (sscanf(line, "%d %d %d %d %d %d %d %d %u %u",
2613 (void) fprintf(stderr, "Syntax error:\n \"%s\".\n", line);
2850 * at least warning line. Clearing warning line as workaround
3849 /* Clear the warning line */