Lines Matching defs:num_roles
22 unsigned int num_roles;
167 return user->num_roles;
182 sizeof(char *) * (user->num_roles + 1));
187 user->num_roles++;
189 user->roles[user->num_roles - 1] = role_cp;
207 for (i = 0; i < user->num_roles; i++)
217 const char **roles_arr, unsigned int num_roles)
223 if (num_roles > 0) {
226 tmp_roles = (char **)calloc(1, sizeof(char *) * num_roles);
230 for (i = 0; i < num_roles; i++) {
238 for (i = 0; i < user->num_roles; i++)
242 user->num_roles = num_roles;
250 for (i = 0; i < num_roles; i++) {
262 const char ***roles_arr, unsigned int *num_roles)
267 (const char **)malloc(sizeof(char *) * user->num_roles);
271 for (i = 0; i < user->num_roles; i++)
275 *num_roles = user->num_roles;
291 for (i = 0; i < user->num_roles; i++) {
295 user->roles[i] = user->roles[user->num_roles - 1];
296 user->num_roles--;
314 user->num_roles = 0;
339 for (i = 0; i < user->num_roles; i++) {
371 for (i = 0; i < user->num_roles; i++)