Lines Matching refs:line_buf

2446 	const char *line_buf, *line_end;  in semanage_fc_sort()  local
2482 line_buf = buf; in semanage_fc_sort()
2484 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) { in semanage_fc_sort()
2485 line_len = line_end - line_buf + 1; in semanage_fc_sort()
2496 line_buf = line_end + 1; in semanage_fc_sort()
2502 if (!isspace(line_buf[i])) in semanage_fc_sort()
2508 line_buf = line_end + 1; in semanage_fc_sort()
2513 if (line_buf[i] == '#') { in semanage_fc_sort()
2514 line_buf = line_end + 1; in semanage_fc_sort()
2534 while (i < line_len && (!isspace(line_buf[i]))) { in semanage_fc_sort()
2535 if (line_buf[i] == '\\') { in semanage_fc_sort()
2556 line_buf = line_end + 1; in semanage_fc_sort()
2560 temp->path = (char *)strndup(&line_buf[start], regex_len); in semanage_fc_sort()
2570 if (!isspace(line_buf[i])) in semanage_fc_sort()
2577 line_buf = line_end + 1; in semanage_fc_sort()
2582 if (line_buf[i] == '-') { in semanage_fc_sort()
2589 line_buf = line_end + 1; in semanage_fc_sort()
2595 (char *)strndup(&line_buf[i], type_len); in semanage_fc_sort()
2607 if (!isspace(line_buf[i])) in semanage_fc_sort()
2614 line_buf = line_end + 1; in semanage_fc_sort()
2623 while (i < line_len && (!isspace(line_buf[i]))) in semanage_fc_sort()
2628 temp->context = (char *)strndup(&line_buf[start], context_len); in semanage_fc_sort()
2647 line_buf = line_end + 1; in semanage_fc_sort()
2788 const char *line_buf, *line_end; in semanage_nc_sort() local
2805 line_buf = buf; in semanage_nc_sort()
2807 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) { in semanage_nc_sort()
2808 line_len = line_end - line_buf + 1; in semanage_nc_sort()
2812 line_buf = line_end + 1; in semanage_nc_sort()
2818 if (!isspace(line_buf[i])) in semanage_nc_sort()
2824 line_buf = line_end + 1; in semanage_nc_sort()
2829 if (line_buf[i] == '#') { in semanage_nc_sort()
2830 line_buf = line_end + 1; in semanage_nc_sort()
2839 (line_buf, priority_names[i], in semanage_nc_sort()
2854 for (; offset < line_len && isspace(line_buf[offset]); in semanage_nc_sort()
2867 (char *)strndup(line_buf + offset, line_len - offset); in semanage_nc_sort()
2888 line_buf = line_end + 1; in semanage_nc_sort()