Lines Matching refs:line
33 bool ParseIdFromProcStatusLine(char* line, uid_t* id) { in ParseIdFromProcStatusLine() argument
39 if (!SplitIdsAndSkip(line, "\t\n ", /*num_to_skip=*/1, &ids) || in ParseIdFromProcStatusLine()
47 bool ParseGroupsFromProcStatusLine(char* line, std::vector<gid_t>* ids) { in ParseGroupsFromProcStatusLine() argument
51 return SplitIdsAndSkip(line, "\t\n ", /*num_to_skip=*/1, ids); in ParseGroupsFromProcStatusLine()
68 char* line = nullptr; in ParseProcStatusFile() local
69 if (getline(&line, &line_length, status_file) < 0) { in ParseProcStatusFile()
70 free(line); in ParseProcStatusFile()
73 if (strncmp("Uid:", line, 4) == 0) { in ParseProcStatusFile()
74 parsed_user = ParseIdFromProcStatusLine(line, real_user_id); in ParseProcStatusFile()
75 } else if (strncmp("Gid:", line, 4) == 0) { in ParseProcStatusFile()
76 parsed_group = ParseIdFromProcStatusLine(line, real_group_id); in ParseProcStatusFile()
77 } else if (strncmp("Groups:", line, 7) == 0) { in ParseProcStatusFile()
79 ParseGroupsFromProcStatusLine(line, supplementary_group_ids); in ParseProcStatusFile()
81 free(line); in ParseProcStatusFile()