Lines Matching defs:str
2259 * Get the user id for str. Returns 0 on success or
2263 * ENOENT no passwd entry for str
2268 get_uid(const char *str, struct method_context *ci, uid_t *uidp)
2270 if (isdigit(str[0])) {
2275 uid = strtol(str, &cp, 10);
2304 getpwnam_r(str, &ci->pwd, ci->pwbuf, ci->pwbufsz);
2333 get_gid(const char *str)
2335 if (isdigit(str[0])) {
2340 gid = strtol(str, &cp, 10);
2361 ret = getgrnam_r(str, &grp, buffer, buflen);
2377 * EINVAL - str is invalid
2382 get_projid(const char *str, struct method_context *cip)
2389 if (strcmp(str, ":default") == 0) {
2426 if (!isdigit(str[0])) {
2427 cip->project = strdup(str);
2432 projid = strtol(str, &cp, 10);
2487 get_groups(char *str, struct method_context *ci)
2495 if (str[0] == '\0') {
2500 for (cp = str, i = 0; *cp != '\0'; ) {
4076 const char *pgtype, uint32_t pgflags, const char *pname, const char *str)
4097 if (scf_value_set_astring(v, str) != SCF_SUCCESS)