Lines Matching refs:line
270 char *line = NULL;
280 while (getline(&line, &sz, proc_cgroups) != -1) {
285 if (line[0] == '#')
287 if (!line[0])
290 tab1 = strchr(line, '\t');
308 (*kernel_subsystems)[kernel_subsystems_count] = strdup(line);
317 free(line);
330 char *line = NULL;
344 while (getline(&line, &sz, proc_self_cgroup) != -1) {
354 if (!line[0])
357 colon1 = strchr(line, ':');
375 hierarchy_number = strtoul(line, &colon2, 10);
428 free(line);
437 char *line = NULL;
454 while (getline(&line, &sz, proc_self_mountinfo) != -1) {
462 if (line[0] && line[strlen(line) - 1] == '\n')
463 line[strlen(line) - 1] = '\0';
465 for (i = 0, line_tok = line; (token = strtok_r(line_tok, " ", &saveptr)); line_tok = NULL) {
569 free(line);
1681 char *line = NULL;
1691 while (getline(&line, &sz, proc_pid_cgroup) != -1) {
1699 if (!line[0])
1702 if (line[strlen(line) - 1] == '\n')
1703 line[strlen(line) - 1] = '\0';
1705 colon1 = strchr(line, ':');
1723 hierarchy_number = strtoul(line, &endptr, 10);
1767 free(line);
1776 free(line);
2061 char *line = NULL;
2091 while (getline(&line, &sz, devices_list) != -1) {
2092 size_t len = strlen(line);
2093 if (len > 0 && line[len-1] == '\n')
2094 line[len-1] = '\0';
2095 if (strcmp(line, "a *:* rwm") == 0) {
2098 } else if (for_allow && strcmp(line, v) == 0) {
2106 free(line);