Lines Matching defs:str
67 * skipn_spaces - Removes leading whitespace from @str.
68 * @str: The string to be stripped.
70 * Returns a pointer to the first non-whitespace character in @str.
74 const char *skipn_spaces(const char *str, size_t n)
76 for (; n && isspace(*str); --n)
77 ++str;
79 return (char *)str;
122 * @str: message to log
124 void aa_info_message(const char *str)
129 aad(&sa)->info = str;
132 printk(KERN_INFO "AppArmor: %s\n", str);
137 struct counted_str *str;
139 str = kmalloc(sizeof(struct counted_str) + size, gfp);
140 if (!str)
143 kref_init(&str->count);
144 return str->name;
198 * @str: character buffer to store string in (at least 10 characters)
199 * @str_size: size of the @str buffer
203 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, u32 mask)
214 *str++ = chrs[i];
218 *str = '\0';
242 char str[33];
246 aa_perm_mask_to_str(str, sizeof(str), chrs, mask & chrsmask);
248 audit_log_format(ab, "%s", str);