Lines Matching defs:uuid
30 #include <atalk/uuid.h>
71 * convert ascii string that can include dashes to binary uuid.
74 void uuid_string2bin( const char *uuidstring, uuidp_t uuid) {
95 uuid[i++] = val + c;
104 * Convert 16 byte binary uuid to neat ascii represantation including dashes.
108 const char *uuid_bin2string(unsigned char *uuid) {
115 c = *uuid;
116 uuid++;
133 * uuid: pointer to uuid_t storage that the caller must provide
136 int getuuidfromname( const char *name, uuidtype_t type, uuidp_t uuid) {
144 ret = search_cachebyname(name, &mytype, uuid);
153 uuid_bin2string(uuid));
160 uuid_string2bin( uuid_string, uuid);
162 name, uuidtype[type & UUIDTYPESTR_MASK], uuid_bin2string(uuid));
176 memcpy(uuid, nulluuid, 16);
178 localuuid_from_id(uuid, UUID_USER, pwd->pw_uid);
181 name, uuidtype[type & UUIDTYPESTR_MASK], uuid_bin2string(uuid));
189 memcpy(uuid, nulluuid, 16);
191 localuuid_from_id(uuid, UUID_GROUP, grp->gr_gid);
194 name, uuidtype[type & UUIDTYPESTR_MASK], uuid_bin2string(uuid));
198 add_cachebyname(name, uuid, mytype, 0);
210 * uuidp: pointer to a uuid