Lines Matching refs:p
25 char *p = *ptr; in read_typeset() local
35 while (p < end && isspace(*p)) in read_typeset()
36 p++; in read_typeset()
38 if (p == end) in read_typeset()
41 if (*p == '~') { in read_typeset()
45 p++; in read_typeset()
46 while (p < end && isspace(*p)) in read_typeset()
47 p++; in read_typeset()
48 if (p == end) in read_typeset()
52 if (*p == '{') { in read_typeset()
56 p++; in read_typeset()
60 if (*p == '}') { in read_typeset()
66 p++; in read_typeset()
70 if (*p == '*') { in read_typeset()
74 p++; in read_typeset()
78 if (*p == '-') { in read_typeset()
82 p++; in read_typeset()
86 if (*p == '#') { in read_typeset()
87 while (p < end && *p != '\n') in read_typeset()
88 p++; in read_typeset()
92 start = p; in read_typeset()
93 … while (p < end && !isspace(*p) && *p != ':' && *p != ';' && *p != '{' && *p != '}' && *p != '#') in read_typeset()
94 p++; in read_typeset()
96 if (p == start) in read_typeset()
99 len = p - start; in read_typeset()
138 } while (p < end && openparens); in read_typeset()
140 if (p == end) in read_typeset()
176 *ptr = p; in read_typeset()
185 char *p = *ptr; in read_classperms() local
193 while (p < end && isspace(*p)) in read_classperms()
194 p++; in read_classperms()
196 if (p == end || *p != ':') in read_classperms()
198 p++; in read_classperms()
204 while (p < end && isspace(*p)) in read_classperms()
205 p++; in read_classperms()
207 if (p == end) in read_classperms()
210 if (*p == '{') { in read_classperms()
214 p++; in read_classperms()
218 if (*p == '}') { in read_classperms()
224 p++; in read_classperms()
228 if (*p == '#') { in read_classperms()
229 while (p < end && *p != '\n') in read_classperms()
230 p++; in read_classperms()
234 start = p; in read_classperms()
235 while (p < end && !isspace(*p) && *p != '{' && *p != '}' && *p != ';' && *p != '#') in read_classperms()
236 p++; in read_classperms()
238 if (p == start) in read_classperms()
241 id = calloc(1, p - start + 1); in read_classperms()
244 memcpy(id, start, p - start); in read_classperms()
262 } while (p < end && openparens); in read_classperms()
264 if (p == end) in read_classperms()
271 while (p < end && isspace(*p)) in read_classperms()
272 p++; in read_classperms()
274 if (p == end) in read_classperms()
277 if (*p == '~') { in read_classperms()
281 p++; in read_classperms()
282 while (p < end && isspace(*p)) in read_classperms()
283 p++; in read_classperms()
284 if (p == end) in read_classperms()
288 if (*p == '{') { in read_classperms()
292 p++; in read_classperms()
296 if (*p == '}') { in read_classperms()
302 p++; in read_classperms()
306 if (*p == '#') { in read_classperms()
307 while (p < end && *p != '\n') in read_classperms()
308 p++; in read_classperms()
312 start = p; in read_classperms()
313 while (p < end && !isspace(*p) && *p != '{' && *p != '}' && *p != ';' && *p != '#') in read_classperms()
314 p++; in read_classperms()
316 if (p == start) in read_classperms()
319 id = calloc(1, p - start + 1); in read_classperms()
322 memcpy(id, start, p - start); in read_classperms()
348 } while (p < end && openparens); in read_classperms()
350 if (p == end) in read_classperms()
365 *ptr = p; in read_classperms()
382 char *p, *start; in check_neverallows() local
384 p = text; in check_neverallows()
385 while (p < end) { in check_neverallows()
386 while (p < end && isspace(*p)) in check_neverallows()
387 p++; in check_neverallows()
389 if (*p == '#') { in check_neverallows()
390 while (p < end && *p != '\n') in check_neverallows()
391 p++; in check_neverallows()
395 start = p; in check_neverallows()
396 while (p < end && !isspace(*p)) in check_neverallows()
397 p++; in check_neverallows()
399 len = p - start; in check_neverallows()
412 if (read_typeset(policydb, &p, end, &avrule->stypes, &avrule->flags)) in check_neverallows()
415 if (read_typeset(policydb, &p, end, &avrule->ttypes, &avrule->flags)) in check_neverallows()
418 if (read_classperms(policydb, &p, end, &avrule->perms)) in check_neverallows()
421 while (p < end && *p != ';') in check_neverallows()
422 p++; in check_neverallows()
424 if (p == end || *p != ';') in check_neverallows()