Lines Matching defs:str
2088 * Get the user id for str. Returns 0 on success or
2092 * ENOENT no passwd entry for str
2097 get_uid(const char *str, struct method_context *ci, uid_t *uidp)
2099 if (isdigit(str[0])) {
2104 uid = strtol(str, &cp, 10);
2133 getpwnam_r(str, &ci->pwd, ci->pwbuf, ci->pwbufsz);
2162 get_gid(const char *str)
2164 if (isdigit(str[0])) {
2169 gid = strtol(str, &cp, 10);
2190 ret = getgrnam_r(str, &grp, buffer, buflen);
2206 * EINVAL - str is invalid
2211 get_projid(const char *str, struct method_context *cip)
2218 if (strcmp(str, ":default") == 0) {
2255 if (!isdigit(str[0])) {
2256 cip->project = strdup(str);
2261 projid = strtol(str, &cp, 10);
2316 get_groups(char *str, struct method_context *ci)
2324 if (str[0] == '\0') {
2329 for (cp = str, i = 0; *cp != '\0'; ) {
4023 const char *pgtype, uint32_t pgflags, const char *pname, const char *str)
4044 if (scf_value_set_astring(v, str) != SCF_SUCCESS)