Lines Matching refs:uuidp
220 * uuidp: pointer to a uuid
227 int getnamefromuuid(const uuidp_t uuidp, char **name, uuidtype_t *type) {
234 if (search_cachebyuuid(uuidp, name, type) == 0) {
238 uuid_bin2string(uuidp),
250 if (memcmp(uuidp, local_user_uuid, 12) == 0) {
252 uid = ntohl(*(uint32_t *)(uuidp + 12));
255 add_cachebyuuid(uuidp, "UUID_ENOENT", UUID_ENOENT, 0);
259 add_cachebyuuid(uuidp, *name, *type, 0);
264 uuid_bin2string(uuidp), *name, uuidtype[(*type) & UUIDTYPESTR_MASK]);
266 } else if (memcmp(uuidp, local_group_uuid, 12) == 0) {
268 gid = ntohl(*(uint32_t *)(uuidp + 12));
271 add_cachebyuuid(uuidp, "UUID_ENOENT", UUID_ENOENT, 0);
275 add_cachebyuuid(uuidp, *name, *type, 0);
282 ret = ldap_getnamefromuuid(uuid_bin2string(uuidp), name, type);
289 uuid_bin2string(uuidp));
290 add_cachebyuuid(uuidp, "UUID_ENOENT", UUID_ENOENT, 0);
294 add_cachebyuuid(uuidp, *name, *type, 0);
297 uuid_bin2string(uuidp), *name, uuidtype[(*type) & UUIDTYPESTR_MASK]);