• Home
  • Raw
  • Download

Lines Matching refs:cp

555 	const char *cp = strstr(string, find);  in tomoyo_find_yesno()  local
557 if (cp) { in tomoyo_find_yesno()
558 cp += strlen(find); in tomoyo_find_yesno()
559 if (!strncmp(cp, "=yes", 4)) in tomoyo_find_yesno()
561 else if (!strncmp(cp, "=no", 3)) in tomoyo_find_yesno()
579 const char *cp = strstr(string, find); in tomoyo_set_uint() local
581 if (cp) in tomoyo_set_uint()
582 sscanf(cp + strlen(find), "=%u", i); in tomoyo_set_uint()
678 char *cp; in tomoyo_write_profile() local
684 i = simple_strtoul(data, &cp, 10); in tomoyo_write_profile()
685 if (*cp != '-') in tomoyo_write_profile()
687 data = cp + 1; in tomoyo_write_profile()
691 cp = strchr(data, '='); in tomoyo_write_profile()
692 if (!cp) in tomoyo_write_profile()
694 *cp++ = '\0'; in tomoyo_write_profile()
698 = tomoyo_get_name(cp); in tomoyo_write_profile()
712 tomoyo_set_uint(&profile->pref[i], cp, in tomoyo_write_profile()
716 return tomoyo_set_mode(data, cp, profile); in tomoyo_write_profile()
1213 const char *cp = tomoyo_dif[idx]; in tomoyo_write_domain() local
1215 if (strncmp(data, cp, strlen(cp) - 1)) in tomoyo_write_domain()
2005 char *cp = strchr(header, '\n'); in tomoyo_add_entry() local
2008 if (!cp) in tomoyo_add_entry()
2010 cp = strchr(cp + 1, '\n'); in tomoyo_add_entry()
2011 if (!cp) in tomoyo_add_entry()
2013 *cp++ = '\0'; in tomoyo_add_entry()
2014 len = strlen(cp) + 1; in tomoyo_add_entry()
2016 if (*cp == 'f') { in tomoyo_add_entry()
2034 snprintf(buffer, len - 1, "%s", cp); in tomoyo_add_entry()
2628 char *cp = strchr(line, ' '); in tomoyo_parse_policy() local
2630 if (cp) { in tomoyo_parse_policy()
2631 *cp++ = '\0'; in tomoyo_parse_policy()
2633 memmove(line, cp, strlen(cp) + 1); in tomoyo_parse_policy()
2675 char *cp = kzalloc(len, GFP_NOFS); in tomoyo_write_control() local
2677 if (!cp) { in tomoyo_write_control()
2681 memmove(cp, cp0, head->w.avail); in tomoyo_write_control()
2683 head->write_buf = cp; in tomoyo_write_control()
2684 cp0 = cp; in tomoyo_write_control()