| /freebsd/sys/kern/ |
| H A D | kern_uuid.c | 56 CTASSERT(sizeof(struct uuid) == 16); 129 struct uuid * 130 kern_uuidgen(struct uuid *store, size_t count) in kern_uuidgen() 132 struct uuid_private uuid; in kern_uuidgen() local 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.seq = (uint16_t)arc4random() & 0x3fff; in kern_uuidgen() 146 uuid.seq = (uuid_last.seq + 1) & 0x3fff; in kern_uuidgen() [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/sys/sys/ |
| H A D | uuid.h | 50 struct uuid { struct 65 struct uuid *kern_uuidgen(struct uuid *, size_t); argument 70 int snprintf_uuid(char *, size_t, struct uuid *); 71 int printf_uuid(struct uuid *); 72 int sbuf_printf_uuid(struct sbuf *, struct uuid *); 80 int validate_uuid(const char *, size_t, struct uuid *, int); 81 int parse_uuid(const char *, struct uuid *); 87 int uuidcmp(const struct uuid *, const struct uuid *); 89 void be_uuid_dec(void const *buf, struct uuid *uuid); 90 void be_uuid_enc(void *buf, struct uuid const *uuid); [all …]
|
| /freebsd/usr.bin/mkimg/ |
| H A D | uuid.c | 43 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 46 uuid_generate_time((void *)uuid); in osdep_uuidgen() 55 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 71 uuid->time_low = (uint32_t)time; in osdep_uuidgen() 72 uuid->time_mid = (uint16_t)(time >> 32); in osdep_uuidgen() 73 uuid->time_hi_and_version = (uint16_t)(time >> 48) & 0xfff; in osdep_uuidgen() 74 uuid->time_hi_and_version |= 1 << 12; in osdep_uuidgen() 78 uuid->clock_seq_hi_and_reserved = (uint8_t)(seq >> 8) & 0x3f; in osdep_uuidgen() 79 uuid->clock_seq_low = (uint8_t)seq; in osdep_uuidgen() 82 uuid->node[i] = (uint8_t)random(); in osdep_uuidgen() [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/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/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/crypto/krb5/src/ccapi/server/win/ |
| H A D | ccs_win_pipe.c | 42 struct ccs_win_pipe_t* ccs_win_pipe_new (const char* uuid, const UINT64 h) { in ccs_win_pipe_new() argument 49 if (!uuid) {err = cci_check_error(ccErrBadParam);} in ccs_win_pipe_new() 53 uuidCopy = (char*)malloc(1+strlen(uuid)); in ccs_win_pipe_new() 55 strcpy(uuidCopy, uuid); in ccs_win_pipe_new() 61 out_pipe->uuid = uuidCopy; in ccs_win_pipe_new() 90 if (!in_pipe->uuid) free(in_pipe->uuid); in ccs_win_pipe_release() 106 if (!in_pipe->uuid) { in ccs_win_pipe_valid() 147 else {result = in_pipe->uuid;} in ccs_win_pipe_getUuid()
|
| /freebsd/contrib/llvm-project/lldb/source/Core/ |
| H A D | DynamicLoader.cpp | 160 if (UUID uuid = m_process->FindModuleUUID(file.GetPath())) { in FindModuleViaTarget() local 162 module_spec.GetUUID() = uuid; in FindModuleViaTarget() 198 Process *process, llvm::StringRef name, UUID uuid, addr_t value, in LoadBinaryWithUUIDAndAddress() argument 211 if (uuid.IsValid()) in LoadBinaryWithUUIDAndAddress() 212 prog_str << uuid.GetAsString(); in LoadBinaryWithUUIDAndAddress() 218 if (!uuid.IsValid() && !value_is_offset) { in LoadBinaryWithUUIDAndAddress() 222 uuid = memory_module_sp->GetUUID(); in LoadBinaryWithUUIDAndAddress() 223 if (uuid.IsValid()) { in LoadBinaryWithUUIDAndAddress() 225 prog_str << uuid.GetAsString(); in LoadBinaryWithUUIDAndAddress() 230 module_spec.GetUUID() = uuid; in LoadBinaryWithUUIDAndAddress() [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/contrib/libarchive/libarchive/ |
| H A D | archive_write_set_format_warc.c | 445 struct warc_uuid uuid; in warc_populate_header() local 447 warc_generate_uuid(&uuid); in warc_populate_header() 456 uuid.value[0U], in warc_populate_header() 457 uuid.value[1U] >> 16U, uuid.value[1U] & 0xffffU, in warc_populate_header() 458 uuid.value[2U] >> 16U, uuid.value[2U] & 0xffffU, in warc_populate_header() 459 uuid.value[3U]); in warc_populate_header() 483 warc_generate_uuid(struct warc_uuid *uuid) in warc_generate_uuid() argument 485 archive_random(uuid->value, sizeof(uuid->value)); in warc_generate_uuid() 487 uuid->value[1U] &= 0xffff0fffU; in warc_generate_uuid() 488 uuid->value[1U] |= 0x4000U; in warc_generate_uuid() [all …]
|
| /freebsd/bin/uuidgen/ |
| H A D | uuidgen.c | 74 uuidgen_v4(struct uuid *store, int count) in uuidgen_v4() 77 struct uuid *item; in uuidgen_v4() 83 size = sizeof(struct uuid) * count; in uuidgen_v4() 109 uuid_t *store, *uuid; in main() local 179 uuid = store; in main() 182 if (uuidgen(uuid++, 1) != 0) in main() 185 if (uuidgen_v4(uuid++, 1) != 0) in main() 193 uuid = store; in main() 195 tostring(uuid++, &p, &status); in main()
|
| /freebsd/usr.sbin/efitable/ |
| H A D | efitable.c | 94 struct uuid uuid; in main() local 107 uuid_from_string(uuid_str, &uuid, &status); in main() 112 if (!memcmp(&uuid, &efi_table_ops[n].guid, in main() 113 sizeof(uuid))) { in main() 156 memcpy(&table.uuid, &efi_table_ops[efi_idx].guid, sizeof(struct uuid)); in main() 195 char *uuid; in efi_table_print_esrt() local 197 uuid_to_string((const uuid_t *)&e->fw_class, &uuid, &status); in efi_table_print_esrt() 204 xo_emit("{P: }{Lwc:FwClass}{:fw_class/%s}\n", uuid); in efi_table_print_esrt()
|
| /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/crypto/krb5/src/ccapi/lib/win/ |
| H A D | ccapi_os_ipc.cxx | 113 UUID __RPC_FAR uuid; in cci_os_ipc_thread_init() local 119 err = cci_check_error(UuidCreate(&uuid)); // Get a UUID in cci_os_ipc_thread_init() 121 err = UuidToString(&uuid, &uuidString); in cci_os_ipc_thread_init() 186 char* uuid = NULL; in cci_os_ipc_msg() local 211 uuid = tspdata_getUUID(ptspdata); in cci_os_ipc_msg() 241 uuid = tspdata_getUUID(ptspdata); in cci_os_ipc_msg() 242 lenUUID = 1 + strlen(uuid); /* 1+ includes terminating \0. */ in cci_os_ipc_msg() 248 (unsigned char*)uuid, in cci_os_ipc_msg() 306 char* uuid = NULL; in ccapi_connect() local 315 uuid = tspdata_getUUID(tsp); in ccapi_connect() [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/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/include/sys/ |
| H A D | efi_partition.h | 46 (1 * (sizeof (struct uuid))))) 61 struct uuid efi_gpt_DiskGUID; 283 struct uuid efi_gpe_PartitionTypeGUID; 284 struct uuid efi_gpe_UniquePartitionGUID; 302 struct uuid p_guid; /* partition type GUID */ 306 struct uuid p_uguid; /* unique partition GUID */ 323 struct uuid efi_disk_uguid; /* unique disk GUID */ 347 struct uuid p_type;
|
| /freebsd/contrib/llvm-project/lldb/source/Symbol/ |
| H A D | LocateSymbolFile.cpp | |
| /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() 251 return o && o.map("triple", header.triple) && o.map("uuid", header.uuid) && in fromJSON()
|