Lines Matching refs:uuidp
227 int getnamefromuuid(const uuidp_t uuidp, char **name, uuidtype_t *type) { in getnamefromuuid() argument
235 if (search_cachebyuuid(uuidp, name, type) == 0) { in getnamefromuuid()
239 uuid_bin2string(uuidp), in getnamefromuuid()
251 if (memcmp(uuidp, local_user_uuid, 12) == 0) { in getnamefromuuid()
253 memcpy(&tmp, uuidp + 12, sizeof(uint32_t)); in getnamefromuuid()
258 add_cachebyuuid(uuidp, "UUID_ENOENT", UUID_ENOENT, 0); in getnamefromuuid()
262 add_cachebyuuid(uuidp, *name, *type, 0); in getnamefromuuid()
267 uuid_bin2string(uuidp), *name ? *name : "-", uuidtype[(*type) & UUIDTYPESTR_MASK]); in getnamefromuuid()
269 } else if (memcmp(uuidp, local_group_uuid, 12) == 0) { in getnamefromuuid()
271 memcpy(&tmp, uuidp + 12, sizeof(uint32_t)); in getnamefromuuid()
275 add_cachebyuuid(uuidp, "UUID_ENOENT", UUID_ENOENT, 0); in getnamefromuuid()
279 add_cachebyuuid(uuidp, *name, *type, 0); in getnamefromuuid()
286 ret = ldap_getnamefromuuid(uuid_bin2string(uuidp), name, type); in getnamefromuuid()
293 uuid_bin2string(uuidp)); in getnamefromuuid()
294 add_cachebyuuid(uuidp, "UUID_ENOENT", UUID_ENOENT, 0); in getnamefromuuid()
298 add_cachebyuuid(uuidp, *name, *type, 0); in getnamefromuuid()
301 uuid_bin2string(uuidp), *name, uuidtype[(*type) & UUIDTYPESTR_MASK]); in getnamefromuuid()