Lines Matching defs:uname
61 static int64_t lookup_gid(void *, const char *uname, int64_t);
62 static int64_t lookup_uid(void *, const char *uname, int64_t);
167 lookup_uid(void *private_data, const char *uname, int64_t uid)
173 /* If no uname, just use the uid provided. */
174 if (uname == NULL || *uname == '\0')
177 /* Try to find uname in the cache. */
178 h = hash(uname);
180 if (b->name != NULL && b->hash == h && strcmp(uname, b->name) == 0)
186 b->name = strdup(uname);
201 r = getpwnam_r(uname, &pwent, buffer, bufsize, &result);
221 result = getpwnam(uname);
227 /* TODO: do a uname->uid lookup for Windows. */