/freebsd/sys/kern/ |
H A D | kern_uuid.c | 40 #include <sys/uuid.h> 56 CTASSERT(sizeof(struct uuid) == 16); 129 struct uuid * in kern_uuidgen() 130 kern_uuidgen(struct uuid *store, size_t count) in kern_uuidgen() 132 struct uuid_private uuid; in kern_uuidgen() 138 uuid_node(uuid.node); in kern_uuidgen() 141 if (uuid_last.time.ll == 0LL || uuid_last.node[0] != uuid.node[0] || in kern_uuidgen() 142 uuid_last.node[1] != uuid.node[1] || in kern_uuidgen() 143 uuid_last.node[2] != uuid.node[2]) in kern_uuidgen() 144 uuid in kern_uuidgen() 131 struct uuid_private uuid; kern_uuidgen() local 270 snprintf_uuid(char * buf,size_t sz,struct uuid * uuid) snprintf_uuid() argument 283 printf_uuid(struct uuid * uuid) printf_uuid() argument 292 sbuf_printf_uuid(struct sbuf * sb,struct uuid * uuid) sbuf_printf_uuid() argument 318 le_uuid_enc(void * buf,struct uuid const * uuid) le_uuid_enc() argument 334 le_uuid_dec(void const * buf,struct uuid * uuid) le_uuid_dec() argument 350 be_uuid_enc(void * buf,struct uuid const * uuid) be_uuid_enc() argument 366 be_uuid_dec(void const * buf,struct uuid * uuid) be_uuid_dec() argument 382 validate_uuid(const char * str,size_t size,struct uuid * uuid,int flags) validate_uuid() argument 440 parse_uuid(const char * str,struct uuid * uuid) parse_uuid() argument [all...] |
/freebsd/lib/libc/uuid/ |
H A D | uuid_stream.c | 55 uuid_enc_le(void *buf, const uuid_t *uuid) in uuid_enc_le() argument 60 le32enc(p, uuid->time_low); in uuid_enc_le() 61 le16enc(p + 4, uuid->time_mid); in uuid_enc_le() 62 le16enc(p + 6, uuid->time_hi_and_version); in uuid_enc_le() 63 p[8] = uuid->clock_seq_hi_and_reserved; in uuid_enc_le() 64 p[9] = uuid->clock_seq_low; in uuid_enc_le() 66 p[10 + i] = uuid->node[i]; in uuid_enc_le() 70 uuid_dec_le(const void *buf, uuid_t *uuid) in uuid_dec_le() argument 75 uuid->time_low = le32dec(p); in uuid_dec_le() 76 uuid->time_mid = le16dec(p + 4); in uuid_dec_le() [all …]
|
H A D | Makefile.inc | 3 .PATH: ${LIBC_SRCTOP}/uuid 8 SYM_MAPS+= ${LIBC_SRCTOP}/uuid/Symbol.map 10 MAN+= uuid.3 11 MLINKS+=uuid.3 uuid_compare.3 12 MLINKS+=uuid.3 uuid_create.3 13 MLINKS+=uuid.3 uuid_create_nil.3 14 MLINKS+=uuid.3 uuid_equal.3 15 MLINKS+=uuid.3 uuid_from_string.3 16 MLINKS+=uuid.3 uuid_hash.3 17 MLINKS+=uuid.3 uuid_is_nil.3 [all …]
|
/freebsd/usr.bin/mkimg/ |
H A D | uuid.c | 41 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 44 uuid_generate_time((void *)uuid); in osdep_uuidgen() 52 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 55 uuidgen((void *)uuid, 1); in osdep_uuidgen() 64 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 77 uuid->time_low = (uint32_t)time; in osdep_uuidgen() 78 uuid->time_mid = (uint16_t)(time >> 32); in osdep_uuidgen() 79 uuid->time_hi_and_version = (uint16_t)(time >> 48) & 0xfff; in osdep_uuidgen() 80 uuid->time_hi_and_version |= 1 << 12; in osdep_uuidgen() 84 uuid->clock_seq_hi_and_reserved = (uint8_t)(seq >> 8) & 0x3f; in osdep_uuidgen() [all …]
|
/freebsd/sys/sys/ |
H A D | uuid.h | 44 struct uuid { struct 59 struct uuid *kern_uuidgen(struct uuid *, size_t); argument 64 int snprintf_uuid(char *, size_t, struct uuid *); 65 int printf_uuid(struct uuid *); 66 int sbuf_printf_uuid(struct sbuf *, struct uuid *); 74 int validate_uuid(const char *, size_t, struct uuid *, int); 75 int parse_uuid(const char *, struct uuid *); 81 int uuidcmp(const struct uuid *, const struct uuid *); 83 void be_uuid_dec(void const *buf, struct uuid *uuid); 84 void be_uuid_enc(void *buf, struct uuid const *uuid); [all …]
|
H A D | efi.h | 58 struct uuid ct_uuid; 142 struct uuid fw_class; 172 efi_status (*rt_getvar)(efi_char *, struct uuid *, uint32_t *, 174 efi_status (*rt_scanvar)(u_long *, efi_char *, struct uuid *) 176 efi_status (*rt_setvar)(efi_char *, struct uuid *, uint32_t, 249 int (*get_table)(struct uuid *, void **); 250 int (*copy_table)(struct uuid *, void **, size_t, size_t *); 258 int (*var_get)(uint16_t *, struct uuid *, uint32_t *, size_t *, 260 int (*var_nextname)(size_t *, uint16_t *, struct uuid *); 261 int (*var_set)(uint16_t *, struct uuid *, uint32_t, size_t, void *); [all …]
|
/freebsd/libexec/rc/rc.d/ |
H A D | hostid | 45 uuid=$1 47 id=`echo -n $uuid | /sbin/md5` 52 startmsg "Setting hostuuid: ${uuid}." 53 ${SYSCTL} kern.hostuuid="${uuid}" >/dev/null 60 uuid=$1 67 case "${uuid}" in 106 uuid=`kenv -q smbios.system.uuid` 108 if valid_hostid $uuid; then 109 echo "${uuid}" 110 elif [ "$uuid" ]; then [all …]
|
/freebsd/usr.sbin/bluetooth/sdpd/ |
H A D | ssar.c | 52 server_search_uuid_sub(uint8_t *buf, uint8_t const * const eob, const uint128_t *uuid) in server_search_uuid_sub() argument 72 if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) in server_search_uuid_sub() 85 if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) in server_search_uuid_sub() 93 if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) in server_search_uuid_sub() 155 server_search_uuid(provider_p const provider, const uint128_t *uuid) in server_search_uuid() argument 167 if (server_search_uuid_sub(buffer, buffer + len, uuid) == 0) in server_search_uuid() 190 uint128_t uuid, puuid; in server_prepare_service_search_attribute_response() local 309 memcpy(&uuid, &uuid_base, sizeof(uuid)); in server_prepare_service_search_attribute_response() 310 uuid.b[2] = *sspptr ++; in server_prepare_service_search_attribute_response() 311 uuid.b[3] = *sspptr ++; in server_prepare_service_search_attribute_response() [all …]
|
H A D | ssr.c | 47 #include "uuid-private.h" 64 uint128_t uuid, puuid; in server_prepare_service_search_response() 153 memcpy(&uuid, &uuid_base, sizeof(uuid)); in server_prepare_service_search_response() 154 uuid.b[2] = *req ++; in server_prepare_service_search_response() 155 uuid.b[3] = *req ++; in server_prepare_service_search_response() 163 memcpy(&uuid, &uuid_base, sizeof(uuid)); in server_prepare_service_search_response() 164 uuid.b[0] = *req ++; in server_prepare_service_search_response() 165 uuid in server_prepare_service_search_response() 63 uint128_t uuid, puuid; server_prepare_service_search_response() local [all...] |
/freebsd/usr.sbin/efitable/ |
H A D | efitable.c | 52 struct uuid uuid; member 57 .uuid = EFI_TABLE_ESRT }, 59 .uuid = EFI_PROPERTIES_TABLE } 89 struct uuid uuid; in main() local 94 uuid_from_string(uuid_str, &uuid, &status); in main() 99 if (!memcmp(&uuid, &efi_table_ops[n].uuid, in main() 100 sizeof(uuid))) { in main() 143 table.uuid = efi_table_ops[efi_idx].uuid; in main() 182 char *uuid; in efi_table_print_esrt() local 184 uuid_to_string(&e->fw_class, &uuid, &status); in efi_table_print_esrt() [all …]
|
/freebsd/contrib/wpa/src/utils/ |
H A D | uuid.c | 65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument 69 if (uuid[i]) in is_nil_uuid() 75 int uuid_random(u8 *uuid) in uuid_random() argument 83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random() 84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random() 87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random() 90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random() 93 uuid[8] = 0x80 | (uuid[8] & 0x3f); in uuid_random()
|
/freebsd/sys/geom/part/ |
H A D | g_part_gpt.c | 68 #define EQUUID(a,b) (memcmp(a, b, sizeof(struct uuid)) == 0) 165 static struct uuid gpt_uuid_apple_apfs = GPT_ENT_TYPE_APPLE_APFS; 166 static struct uuid gpt_uuid_apple_boot = GPT_ENT_TYPE_APPLE_BOOT; 167 static struct uuid gpt_uuid_apple_core_storage = 169 static struct uuid gpt_uuid_apple_hfs = GPT_ENT_TYPE_APPLE_HFS; 170 static struct uuid gpt_uuid_apple_label = GPT_ENT_TYPE_APPLE_LABEL; 171 static struct uuid gpt_uuid_apple_raid = GPT_ENT_TYPE_APPLE_RAID; 172 static struct uuid gpt_uuid_apple_raid_offline = GPT_ENT_TYPE_APPLE_RAID_OFFLINE; 173 static struct uuid gpt_uuid_apple_tv_recovery = GPT_ENT_TYPE_APPLE_TV_RECOVERY; 174 static struct uuid gpt_uuid_apple_ufs = GPT_ENT_TYPE_APPLE_UFS; [all …]
|
H A D | g_part_bsd64.c | 62 struct uuid d_stor_uuid; /* unique uuid for label */ 95 struct uuid p_type_uuid;/* mount type as UUID */ 96 struct uuid p_stor_uuid;/* unique uuid for storage */ 106 struct uuid d_stor_uuid; 116 struct uuid type_uuid; 117 struct uuid stor_uuid; 169 #define EQUUID(a, b) (memcmp(a, b, sizeof(struct uuid)) == 0) 170 static struct uuid bsd64_uuid_unused = GPT_ENT_TYPE_UNUSED; 171 static struct uuid bsd64_uuid_dfbsd_swap = GPT_ENT_TYPE_DRAGONFLY_SWAP; 172 static struct uuid bsd64_uuid_dfbsd_ufs1 = GPT_ENT_TYPE_DRAGONFLY_UFS1; [all …]
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | sdp.c | 61 _sdp_match_uuid16(uint8_t **ptr, uint8_t *limit, uint16_t uuid) in _sdp_match_uuid16() argument 67 u1.time_low = uuid; in _sdp_match_uuid16() 85 _sdp_get_uuid(uint8_t **ptr, uint8_t *limit, uuid_t *uuid) in _sdp_get_uuid() argument 97 memcpy(uuid, &BASE_UUID, sizeof(uuid_t)); in _sdp_get_uuid() 98 uuid->time_low = be16dec(p); in _sdp_get_uuid() 106 memcpy(uuid, &BASE_UUID, sizeof(uuid_t)); in _sdp_get_uuid() 107 uuid->time_low = be32dec(p); in _sdp_get_uuid() 115 uuid_dec_be(p, uuid); in _sdp_get_uuid()
|
/freebsd/bin/uuidgen/ |
H A D | uuidgen.c | 72 uuidgen_v4(struct uuid *store, int count) in uuidgen_v4() 75 struct uuid *item; in uuidgen_v4() 81 size = sizeof(struct uuid) * count; in uuidgen_v4() 107 uuid_t *store, *uuid; in main() local 175 uuid = store; in main() 178 if (uuidgen(uuid++, 1) != 0) in main() 181 if (uuidgen_v4(uuid++, 1) != 0) in main() 189 uuid = store; in main() 191 tostring(uuid++, &p, &status); in main()
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | DynamicLoader.cpp | 190 Process *process, llvm::StringRef name, UUID uuid, addr_t value, in LoadBinaryWithUUIDAndAddress() argument 203 if (uuid.IsValid()) in LoadBinaryWithUUIDAndAddress() 204 prog_str << uuid.GetAsString(); in LoadBinaryWithUUIDAndAddress() 210 if (!uuid.IsValid() && !value_is_offset) { in LoadBinaryWithUUIDAndAddress() 214 uuid = memory_module_sp->GetUUID(); in LoadBinaryWithUUIDAndAddress() 215 if (uuid.IsValid()) { in LoadBinaryWithUUIDAndAddress() 217 prog_str << uuid.GetAsString(); in LoadBinaryWithUUIDAndAddress() 222 module_spec.GetUUID() = uuid; in LoadBinaryWithUUIDAndAddress() 225 if (uuid.IsValid()) { in LoadBinaryWithUUIDAndAddress() 292 name.str().c_str(), uuid.GetAsString().c_str(), in LoadBinaryWithUUIDAndAddress() [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_er.c | 44 ev->uuid = sta->uuid; in wps_er_sta_event() 60 const u8 *uuid) in wps_er_sta_get() argument 66 (uuid == NULL || in wps_er_sta_get() 67 os_memcmp(uuid, sta->uuid, WPS_UUID_LEN) == 0)) in wps_er_sta_get() 100 struct in_addr *addr, const u8 *uuid, in wps_er_ap_get() argument 106 (uuid == NULL || in wps_er_ap_get() 107 os_memcmp(uuid, ap->uuid, WPS_UUID_LEN) == 0) && in wps_er_ap_get() 137 evap->uuid = ap->uuid; in wps_er_ap_event() 279 const u8 *uuid) in wps_er_ap_get_settings() argument 283 if (os_memcmp(uuid, s->uuid, WPS_UUID_LEN) == 0) in wps_er_ap_get_settings() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolLocator/DebugSymbols/ |
H A D | SymbolLocatorDebugSymbols.cpp | 56 CFUUIDRef uuid, CFURLRef exec_url) = nullptr; 95 const UUID *uuid = module_spec.GetUUIDPtr(); in LocateExecutableObjectFile() local 119 if (uuid && uuid->IsValid()) { in LocateExecutableObjectFile() 121 llvm::ArrayRef<uint8_t> module_uuid = uuid->GetBytes(); in LocateExecutableObjectFile() 150 path, uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 157 dsym_filespec, uuid, arch); in LocateExecutableObjectFile() 172 path, uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 180 CFCString uuid_cfstr(uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 198 uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 210 if (image_info.uuid && (!module_spec.GetUUID() || in LocateExecutableObjectFile() [all …]
|
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | adv_data.c | 223 uuid_t uuid; in adv_uuid2str() local 233 uuid.time_low = le32dec(data+12); in adv_uuid2str() 234 uuid.time_mid = le16dec(data+10); in adv_uuid2str() 235 uuid.time_hi_and_version = le16dec(data+8); in adv_uuid2str() 236 uuid.clock_seq_hi_and_reserved = data[7]; in adv_uuid2str() 237 uuid.clock_seq_low = data[6]; in adv_uuid2str() 239 uuid.node[i] = data[5 - i]; in adv_uuid2str() 241 uuid_to_string(&uuid, &tmpstr, &ustatus); in adv_uuid2str()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/ |
H A D | ObjectFileJSON.cpp | 81 UUID uuid; in CreateInstance() local 82 uuid.SetFromStringRef(header.uuid); in CreateInstance() 93 length, std::move(arch), std::move(uuid), type, in CreateInstance() 139 UUID uuid; in GetModuleSpecifications() local 140 uuid.SetFromStringRef(header.uuid); in GetModuleSpecifications() 143 spec.GetUUID() = std::move(uuid); in GetModuleSpecifications() 151 UUID uuid, Type type, in ObjectFileJSON() argument 155 m_arch(std::move(arch)), m_uuid(std::move(uuid)), m_type(type), in ObjectFileJSON() 208 return o && o.map("triple", header.triple) && o.map("uuid", header.uuid) && in fromJSON()
|
/freebsd/sys/dev/efidev/ |
H A D | efirt.c | 334 get_table(struct uuid *uuid, void **ptr) in get_table() argument 348 if (!bcmp(&ct->ct_uuid, uuid, sizeof(*uuid))) { in get_table() 367 struct uuid uuid = EFI_TABLE_ESRT; in get_table_length() local 373 error = efi_get_table(&uuid, (void **)&esrt); in get_table_length() 409 struct uuid uuid = EFI_PROPERTIES_TABLE; in get_table_length() local 416 error = efi_get_table(&uuid, (void **)&prop); in get_table_length() 444 copy_table(struct uuid *uuid, void **buf, size_t buf_len, size_t *table_len) in copy_table() argument 447 struct uuid uuid; in copy_table() member 458 if (!bcmp(&tables[table_idx].uuid, uuid, sizeof(*uuid))) in copy_table() 724 var_get(efi_char *name, struct uuid *vendor, uint32_t *attrib, in var_get() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | efi_partition.h | 45 (1 * (sizeof (struct uuid))))) 60 struct uuid efi_gpt_DiskGUID; 282 struct uuid efi_gpe_PartitionTypeGUID; 283 struct uuid efi_gpe_UniquePartitionGUID; 301 struct uuid p_guid; /* partition type GUID */ 305 struct uuid p_uguid; /* unique partition GUID */ 322 struct uuid efi_disk_uguid; /* unique disk GUID */ 346 struct uuid p_type;
|
/freebsd/usr.sbin/bluetooth/sdpcontrol/ |
H A D | search.c | 129 int128_t uuid; in print_service_class_id_list() 131 SDP_GET_UUID128(&uuid, start); in print_service_class_id_list() 133 ntohl(*(uint32_t *)&uuid.b[0]), in print_service_class_id_list() 134 ntohs(*(uint16_t *)&uuid.b[4]), in print_service_class_id_list() 135 ntohs(*(uint16_t *)&uuid.b[6]), in print_service_class_id_list() 136 ntohs(*(uint16_t *)&uuid.b[8]), in print_service_class_id_list() 137 ntohs(*(uint16_t *)&uuid.b[10]), in print_service_class_id_list() 138 ntohl(*(uint32_t *)&uuid.b[12])); in print_service_class_id_list() 493 int128_t uuid; in print_bluetooth_profile_descriptor_list() 495 SDP_GET_UUID128(&uuid, star in print_bluetooth_profile_descriptor_list() 128 int128_t uuid; print_service_class_id_list() local 492 int128_t uuid; print_bluetooth_profile_descriptor_list() local [all...] |
/freebsd/sys/contrib/openzfs/config/ |
H A D | user-libuuid.m4 | 5 …ZFS_AC_FIND_SYSTEM_LIBRARY(LIBUUID, [uuid], [uuid/uuid.h], [], [uuid], [uuid_generate uuid_is_null…
|
/freebsd/contrib/llvm-project/lldb/source/Symbol/ |
H A D | LocateSymbolFile.cpp |
|