| /freebsd-12-stable/sys/kern/ |
| D | kern_uuid.c | 58 CTASSERT(sizeof(struct uuid) == 16); 131 struct uuid * 132 kern_uuidgen(struct uuid *store, size_t count) in kern_uuidgen() 134 struct uuid_private uuid; in kern_uuidgen() local 140 uuid_node(uuid.node); in kern_uuidgen() 143 if (uuid_last.time.ll == 0LL || uuid_last.node[0] != uuid.node[0] || in kern_uuidgen() 144 uuid_last.node[1] != uuid.node[1] || in kern_uuidgen() 145 uuid_last.node[2] != uuid.node[2]) in kern_uuidgen() 146 uuid.seq = (uint16_t)arc4random() & 0x3fff; in kern_uuidgen() 148 uuid.seq = (uuid_last.seq + 1) & 0x3fff; in kern_uuidgen() [all …]
|
| /freebsd-12-stable/lib/libc/uuid/ |
| D | uuid_stream.c | 58 uuid_enc_le(void *buf, const uuid_t *uuid) in uuid_enc_le() argument 63 le32enc(p, uuid->time_low); in uuid_enc_le() 64 le16enc(p + 4, uuid->time_mid); in uuid_enc_le() 65 le16enc(p + 6, uuid->time_hi_and_version); in uuid_enc_le() 66 p[8] = uuid->clock_seq_hi_and_reserved; in uuid_enc_le() 67 p[9] = uuid->clock_seq_low; in uuid_enc_le() 69 p[10 + i] = uuid->node[i]; in uuid_enc_le() 73 uuid_dec_le(const void *buf, uuid_t *uuid) in uuid_dec_le() argument 78 uuid->time_low = le32dec(p); in uuid_dec_le() 79 uuid->time_mid = le16dec(p + 4); in uuid_dec_le() [all …]
|
| D | Makefile.inc | 5 .PATH: ${LIBC_SRCTOP}/uuid 10 SYM_MAPS+= ${LIBC_SRCTOP}/uuid/Symbol.map 12 MAN+= uuid.3 13 MLINKS+=uuid.3 uuid_compare.3 14 MLINKS+=uuid.3 uuid_create.3 15 MLINKS+=uuid.3 uuid_create_nil.3 16 MLINKS+=uuid.3 uuid_equal.3 17 MLINKS+=uuid.3 uuid_from_string.3 18 MLINKS+=uuid.3 uuid_hash.3 19 MLINKS+=uuid.3 uuid_is_nil.3 [all …]
|
| /freebsd-12-stable/usr.bin/mkimg/ |
| D | uuid.c | 43 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 46 uuid_generate_time((void *)uuid); in osdep_uuidgen() 54 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 57 uuidgen((void *)uuid, 1); in osdep_uuidgen() 66 osdep_uuidgen(mkimg_uuid_t *uuid) in osdep_uuidgen() argument 79 uuid->time_low = (uint32_t)time; in osdep_uuidgen() 80 uuid->time_mid = (uint16_t)(time >> 32); in osdep_uuidgen() 81 uuid->time_hi_and_version = (uint16_t)(time >> 48) & 0xfff; in osdep_uuidgen() 82 uuid->time_hi_and_version |= 1 << 12; in osdep_uuidgen() 86 uuid->clock_seq_hi_and_reserved = (uint8_t)(seq >> 8) & 0x3f; in osdep_uuidgen() [all …]
|
| /freebsd-12-stable/sys/sys/ |
| D | uuid.h | 46 struct uuid { struct 61 struct uuid *kern_uuidgen(struct uuid *, size_t); argument 66 int snprintf_uuid(char *, size_t, struct uuid *); 67 int printf_uuid(struct uuid *); 68 int sbuf_printf_uuid(struct sbuf *, struct uuid *); 76 int validate_uuid(const char *, size_t, struct uuid *, int); 77 int parse_uuid(const char *, struct uuid *); 83 int uuidcmp(const struct uuid *, const struct uuid *); 85 void be_uuid_dec(void const *buf, struct uuid *uuid); 86 void be_uuid_enc(void *buf, struct uuid const *uuid); [all …]
|
| D | efi.h | 53 struct uuid ct_uuid; 140 efi_status (*rt_getvar)(efi_char *, struct uuid *, uint32_t *, 142 efi_status (*rt_scanvar)(u_long *, efi_char *, struct uuid *) 144 efi_status (*rt_setvar)(efi_char *, struct uuid *, uint32_t, 184 int efi_get_table(struct uuid *uuid, void **ptr); 189 int efi_var_get(uint16_t *name, struct uuid *vendor, uint32_t *attrib, 191 int efi_var_nextname(size_t *namesize, uint16_t *name, struct uuid *vendor); 192 int efi_var_set(uint16_t *name, struct uuid *vendor, uint32_t attrib,
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_fs_base/ |
| D | uuid.c | 37 const char **uuid; member 45 return svn_fs_bdb__get_uuid(trail->fs, args->idx, args->uuid, in txn_body_get_uuid() 59 const char *uuid; in svn_fs_base__populate_uuid() local 63 args.uuid = &uuid; in svn_fs_base__populate_uuid() 67 if (uuid) in svn_fs_base__populate_uuid() 70 fs->uuid = apr_pstrdup(fs->pool, uuid); in svn_fs_base__populate_uuid() 81 const char *uuid; member 89 return svn_fs_bdb__set_uuid(trail->fs, args->idx, args->uuid, in txn_body_set_uuid() 96 const char *uuid, in svn_fs_base__set_uuid() argument 103 if (! uuid) in svn_fs_base__set_uuid() [all …]
|
| /freebsd-12-stable/libexec/rc/rc.d/ |
| D | hostid | 46 uuid=$1 48 id=`echo -n $uuid | /sbin/md5` 53 check_startmsgs && echo "Setting hostuuid: ${uuid}." 54 ${SYSCTL} kern.hostuuid="${uuid}" >/dev/null 61 uuid=$1 68 case "${uuid}" in 105 uuid=`kenv -q smbios.system.uuid` 107 if valid_hostid $uuid; then 108 echo "${uuid}" 115 uuid=`hostid_hardware` [all …]
|
| /freebsd-12-stable/usr.sbin/bluetooth/sdpd/ |
| D | ssar.c | 53 server_search_uuid_sub(uint8_t *buf, uint8_t const * const eob, const uint128_t *uuid) in server_search_uuid_sub() argument 73 if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) in server_search_uuid_sub() 86 if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) in server_search_uuid_sub() 94 if (memcmp(&duuid, uuid, sizeof(duuid)) == 0) in server_search_uuid_sub() 156 server_search_uuid(provider_p const provider, const uint128_t *uuid) in server_search_uuid() argument 168 if (server_search_uuid_sub(buffer, buffer + len, uuid) == 0) in server_search_uuid() 191 uint128_t uuid, puuid; in server_prepare_service_search_attribute_response() local 310 memcpy(&uuid, &uuid_base, sizeof(uuid)); in server_prepare_service_search_attribute_response() 311 uuid.b[2] = *sspptr ++; in server_prepare_service_search_attribute_response() 312 uuid.b[3] = *sspptr ++; in server_prepare_service_search_attribute_response() [all …]
|
| D | ssr.c | 64 uint128_t uuid, puuid; in server_prepare_service_search_response() local 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.b[1] = *req ++; in server_prepare_service_search_response() 166 uuid.b[2] = *req ++; in server_prepare_service_search_response() 167 uuid.b[3] = *req ++; in server_prepare_service_search_response() 175 memcpy(uuid.b, req, 16); in server_prepare_service_search_response() [all …]
|
| /freebsd-12-stable/contrib/apr-util/test/ |
| D | testuuid.c | 23 apr_uuid_t uuid; in test_uuid_parse() local 27 apr_uuid_get(&uuid); in test_uuid_parse() 28 apr_uuid_format(buf, &uuid); in test_uuid_parse() 32 memcmp(&uuid, &uuid2, sizeof(uuid)) == 0); in test_uuid_parse() 37 apr_uuid_t uuid; in test_gen2() local 41 apr_uuid_get(&uuid); in test_gen2() 45 memcmp(&uuid, &uuid2, sizeof(uuid)) != 0); in test_gen2()
|
| D | testdbm.c | 39 apr_uuid_t uuid; in generate_table() local 43 apr_uuid_get(&uuid); in generate_table() 44 table[i].key.dptr = apr_pmemdup(p, uuid.data, sizeof(uuid.data)); in generate_table() 45 table[i].key.dsize = sizeof(uuid.data); in generate_table() 48 apr_uuid_format(table[i].val.dptr, &uuid); in generate_table() 52 apr_uuid_get(&uuid); in generate_table() 53 table[i].val.dptr = apr_pmemdup(p, uuid.data, sizeof(uuid.data)); in generate_table() 54 table[i].val.dsize = sizeof(uuid.data); in generate_table() 57 apr_uuid_format(table[i].key.dptr, &uuid); in generate_table()
|
| /freebsd-12-stable/contrib/wpa/src/utils/ |
| 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-12-stable/sys/geom/part/ |
| D | g_part_bsd64.c | 65 struct uuid d_stor_uuid; /* unique uuid for label */ 98 struct uuid p_type_uuid;/* mount type as UUID */ 99 struct uuid p_stor_uuid;/* unique uuid for storage */ 109 struct uuid d_stor_uuid; 119 struct uuid type_uuid; 120 struct uuid stor_uuid; 171 #define EQUUID(a, b) (memcmp(a, b, sizeof(struct uuid)) == 0) 172 static struct uuid bsd64_uuid_unused = GPT_ENT_TYPE_UNUSED; 173 static struct uuid bsd64_uuid_dfbsd_swap = GPT_ENT_TYPE_DRAGONFLY_SWAP; 174 static struct uuid bsd64_uuid_dfbsd_ufs1 = GPT_ENT_TYPE_DRAGONFLY_UFS1; [all …]
|
| D | g_part_gpt.c | 70 #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 …]
|
| /freebsd-12-stable/usr.sbin/bluetooth/btpand/ |
| D | sdp.c | 62 _sdp_match_uuid16(uint8_t **ptr, uint8_t *limit, uint16_t uuid) in _sdp_match_uuid16() argument 68 u1.time_low = uuid; in _sdp_match_uuid16() 86 _sdp_get_uuid(uint8_t **ptr, uint8_t *limit, uuid_t *uuid) in _sdp_get_uuid() argument 98 memcpy(uuid, &BASE_UUID, sizeof(uuid_t)); in _sdp_get_uuid() 99 uuid->time_low = be16dec(p); in _sdp_get_uuid() 107 memcpy(uuid, &BASE_UUID, sizeof(uuid_t)); in _sdp_get_uuid() 108 uuid->time_low = be32dec(p); in _sdp_get_uuid() 116 uuid_dec_be(p, uuid); in _sdp_get_uuid()
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_client/ |
| D | relocate.c | 49 const char *uuid; member 64 const char *uuid, in validator_func() argument 94 url_uuid->uuid = apr_pstrdup(pool, uuid); in validator_func() 106 &url_uuid->uuid, in validator_func() 121 if (uuid && strcmp(uuid, url_uuid->uuid) != 0) in validator_func() 125 url, url_uuid->uuid, uuid); in validator_func()
|
| /freebsd-12-stable/contrib/wpa/src/wps/ |
| 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 …]
|
| D | wps.h | 247 const u8 *uuid, 569 const u8 *uuid; member 585 const u8 *uuid; member 599 const u8 *uuid; member 604 const u8 *uuid; member 660 u8 uuid[16]; member 855 const u8 *uuid, const u8 *pin, size_t pin_len, 857 int wps_registrar_invalidate_pin(struct wps_registrar *reg, const u8 *uuid); 859 int wps_registrar_unlock_pin(struct wps_registrar *reg, const u8 *uuid); 907 int wps_er_pbc(struct wps_er *er, const u8 *uuid, const u8 *addr); [all …]
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_fs_base/bdb/ |
| D | uuids-table.c | 73 apr_uuid_t uuid; in svn_fs_bdb__open_uuids_table() local 86 apr_uuid_get(&uuid); in svn_fs_bdb__open_uuids_table() 87 apr_uuid_format(buffer, &uuid); in svn_fs_bdb__open_uuids_table() 98 const char **uuid, in svn_fs_bdb__get_uuid() argument 122 *uuid = apr_pstrmemdup(pool, value.data, value.size); in svn_fs_bdb__get_uuid() 129 const char *uuid, in svn_fs_bdb__set_uuid() argument 143 value.size = (u_int32_t) strlen(uuid); in svn_fs_bdb__set_uuid() 144 value.data = apr_pstrmemdup(pool, uuid, value.size + 1); in svn_fs_bdb__set_uuid()
|
| /freebsd-12-stable/usr.sbin/bluetooth/sdpcontrol/ |
| D | search.c | 129 int128_t uuid; in print_service_class_id_list() local 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() local 495 SDP_GET_UUID128(&uuid, start); in print_bluetooth_profile_descriptor_list() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Utility/ |
| D | ReproducerProvider.h | 228 void AddSymbolFile(const UUID *uuid, const FileSpec &module_path, 234 Entry(std::string uuid) : uuid(std::move(uuid)) {} in Entry() 235 Entry(std::string uuid, std::string module_path, std::string symbol_path) in Entry() 236 : uuid(std::move(uuid)), module_path(std::move(module_path)), in Entry() 239 bool operator==(const Entry &rhs) const { return uuid == rhs.uuid; } 240 bool operator<(const Entry &rhs) const { return uuid < rhs.uuid; } 242 std::string uuid; member 400 std::pair<FileSpec, FileSpec> GetPaths(const UUID *uuid) const; 427 io.mapRequired("uuid", entry.uuid); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /freebsd-12-stable/bin/uuidgen/ |
| D | uuidgen.c | 51 uuid_t *store, *uuid; in main() local 104 uuid = store; in main() 106 if (uuidgen(uuid++, 1) != 0) in main() 111 uuid = store; in main() 113 uuid_to_string(uuid++, &p, &status); in main()
|
| /freebsd-12-stable/contrib/wpa/wpa_supplicant/ |
| D | wps_supplicant.h | 53 const char *uuid, const char *pin); 54 int wpas_wps_er_pbc(struct wpa_supplicant *wpa_s, const char *uuid); 55 int wpas_wps_er_learn(struct wpa_supplicant *wpa_s, const char *uuid, 57 int wpas_wps_er_set_config(struct wpa_supplicant *wpa_s, const char *uuid, 59 int wpas_wps_er_config(struct wpa_supplicant *wpa_s, const char *uuid, 62 int ndef, const char *uuid); 79 int ndef, int cr, const char *uuid);
|
| /freebsd-12-stable/contrib/sqlite3/tea/ |
| D | Makefile.in | 316 $(srcdir)/manifest.uuid: 317 printf "git-" >$(srcdir)/manifest.uuid 318 (cd $(srcdir); git rev-parse HEAD >>$(srcdir)/manifest.uuid || \ 319 (printf "svn-r" >$(srcdir)/manifest.uuid ; \ 320 svn info --show-item last-changed-revision >>$(srcdir)/manifest.uuid) || \ 321 printf "unknown" >$(srcdir)/manifest.uuid) 323 sampleUuid.h: $(srcdir)/manifest.uuid 325 cat $(srcdir)/manifest.uuid >>$@ 344 dist: dist-clean $(srcdir)/manifest.uuid 355 $(srcdir)/manifest.uuid \
|