Lines Matching full:line_buf
2483 const char *line_buf, *line_end;
2519 line_buf = buf;
2521 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) {
2522 line_len = line_end - line_buf + 1;
2533 line_buf = line_end + 1;
2539 if (!isspace(line_buf[i]))
2545 line_buf = line_end + 1;
2550 if (line_buf[i] == '#') {
2551 line_buf = line_end + 1;
2571 while (i < line_len && (!isspace(line_buf[i]))) {
2572 if (line_buf[i] == '\\') {
2593 line_buf = line_end + 1;
2597 temp->path = (char *)strndup(&line_buf[start], regex_len);
2607 if (!isspace(line_buf[i]))
2614 line_buf = line_end + 1;
2619 if (line_buf[i] == '-') {
2626 line_buf = line_end + 1;
2632 (char *)strndup(&line_buf[i], type_len);
2644 if (!isspace(line_buf[i]))
2651 line_buf = line_end + 1;
2660 while (i < line_len && (!isspace(line_buf[i])))
2665 temp->context = (char *)strndup(&line_buf[start], context_len);
2684 line_buf = line_end + 1;
2825 const char *line_buf, *line_end;
2842 line_buf = buf;
2844 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) {
2845 line_len = line_end - line_buf + 1;
2849 line_buf = line_end + 1;
2855 if (!isspace(line_buf[i]))
2861 line_buf = line_end + 1;
2866 if (line_buf[i] == '#') {
2867 line_buf = line_end + 1;
2876 (line_buf, priority_names[i],
2891 for (; offset < line_len && isspace(line_buf[offset]);
2904 (char *)strndup(line_buf + offset, line_len - offset);
2925 line_buf = line_end + 1;