/openbsd/sys/kern/ |
H A D | kern_uuid.c | 81 uuid_snprintf(char *buf, size_t sz, const struct uuid *uuid) in uuid_snprintf() argument 94 uuid_printf(const struct uuid *uuid) in uuid_printf() argument 196 uuid_enc_le(void *buf, const struct uuid *uuid) in uuid_enc_le() argument 201 le32enc(p, uuid->time_low); in uuid_enc_le() 205 p[9] = uuid->clock_seq_low; in uuid_enc_le() 207 p[10 + i] = uuid->node[i]; in uuid_enc_le() 211 uuid_dec_le(const void *buf, struct uuid *uuid) in uuid_dec_le() argument 220 uuid->clock_seq_low = p[9]; in uuid_dec_le() 222 uuid->node[i] = p[10 + i]; in uuid_dec_le() 226 uuid_enc_be(void *buf, const struct uuid *uuid) in uuid_enc_be() argument [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/behavior/ |
H A D | uuid.t | 36 is($hub->uuid, 'hub-1', "First hub got a uuid"); 38 is($events->[0]->uuid, 'event-1', "First event gets first uuid"); 44 is($events->[1]->uuid, 'event-2', "Second event gets correct uuid"); 48 is($events->[2]->uuid, 'event-3', "Third event gets correct uuid"); 52 is($events->[3]->uuid, 'event-6', "subtest event gets correct uuid (not next)"); 53 is($events->[3]->subtest_uuid, 'hub-3', "subtest event gets correct subtest-uuid (next hub uuid)"); 57 is($events->[3]->subevents->[0]->uuid, 'event-4', "First subevent gets next event uuid"); 61 is($events->[3]->subevents->[1]->uuid, 'event-5', "Second subevent gets next event uuid"); 65 is($events->[5]->uuid, 'event-10', "subtest event gets correct uuid (not next)"); 70 is($events->[5]->subevents->[0]->uuid, 'event-8', "First subevent gets next event uuid"); [all …]
|
/openbsd/regress/lib/libc/uuid/ |
H A D | uuidtest.c | 29 struct uuid uuid, uuid2, uuid_want; in main() local 38 uuid_from_string(uuid_str, &uuid, &status); in main() 117 uuid_create_nil(&uuid, &status); in main() 149 uuid_create(&uuid, &status); in main() 173 rc = uuid_equal(&uuid, &uuid, &status); in main() 184 uuid_create_nil(&uuid, &status); in main() 185 rc = uuid_equal(&uuid, &uuid2, &status); in main() 213 uuid_enc_le(bin, &uuid); in main() 225 uuid_dec_le(bin, &uuid); in main() 237 uuid_enc_be(bin, &uuid); in main() [all …]
|
/openbsd/lib/libc/uuid/ |
H A D | uuid_stream.c | 161 le32enc(p, uuid->time_low); in uuid_enc_le() 165 p[9] = uuid->clock_seq_low; in uuid_enc_le() 167 p[10 + i] = uuid->node[i]; in uuid_enc_le() 176 uuid->time_low = le32dec(p); in uuid_dec_le() 180 uuid->clock_seq_low = p[9]; in uuid_dec_le() 182 uuid->node[i] = p[10 + i]; in uuid_dec_le() 191 be32enc(p, uuid->time_low); in uuid_enc_be() 195 p[9] = uuid->clock_seq_low; in uuid_enc_be() 197 p[10 + i] = uuid->node[i]; in uuid_enc_be() 210 uuid->clock_seq_low = p[9]; in uuid_dec_be() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/Event/ |
H A D | V2.pm | 29 my $uuid; 30 if ($uuid = $self->{+UUID}) { 31 …croak "uuid '$uuid' passed to constructor, but uuid '$self->{+ABOUT}->{uuid}' is already set in th… 32 if $self->{+ABOUT}->{uuid} && $self->{+ABOUT}->{uuid} ne $uuid; 34 $self->{+ABOUT}->{uuid} = $uuid; 36 elsif ($self->{+ABOUT} && $self->{+ABOUT}->{uuid}) { 37 $uuid = $self->{+ABOUT}->{uuid}; 38 $self->SUPER::set_uuid($uuid); 49 my ($uuid) = @_; 50 $self->{+ABOUT}->{uuid} = $uuid; [all …]
|
/openbsd/usr.sbin/ldapd/ |
H A D | uuid.c | 145 uuid_create(afsUUID *uuid) in uuid_create() argument 208 memcpy(uuid->node, nodeaddr, 6); in uuid_create() 220 uuid->time_low, in uuid_to_string() 221 uuid->time_mid, in uuid_to_string() 222 uuid->time_hi_and_version, in uuid_to_string() 225 (unsigned char)uuid->node[0], in uuid_to_string() 226 (unsigned char)uuid->node[1], in uuid_to_string() 227 (unsigned char)uuid->node[2], in uuid_to_string() 228 (unsigned char)uuid->node[3], in uuid_to_string() 229 (unsigned char)uuid->node[4], in uuid_to_string() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/modules/Event/ |
H A D | V2.t | 15 ['uuid', '_meta'], 22 uuid set_uuid 31 exception { $CLASS->new(uuid => 1, about => {uuid => 2}) }, 32 qr/uuid '1' passed to constructor, but uuid '2' is already set in the 'about' facet/, 37 is($one->about->{uuid}, 123, "Set uuid in about facet"); 40 is($one->uuid, 123, "set uuid attribute"); 49 ok(!$one->uuid, "no uuid attribute"); 50 ok(!($one->about && $one->about->{uuid}), "no uuid in about facet"); 52 is($one->about->{uuid}, 123, "Set uuid in about facet"); 53 is($one->uuid, 123, "set uuid attribute"); [all …]
|
H A D | Generic.t | 40 $e->hubs->[0]->{uuid} ? (uuid => $e->hubs->[0]->{uuid}) : (uuid => undef), 43 $e->uuid ? (uuid => $e->uuid) : (),
|
/openbsd/sys/sys/ |
H A D | uuid.h | 48 struct uuid { struct 62 int uuid_snprintf(char *, size_t, const struct uuid *); argument 63 int uuid_printf(const struct uuid *); 64 void uuid_dec_be(const void *, struct uuid *); 65 void uuid_dec_le(const void *, struct uuid *); 66 void uuid_enc_be(void *, const struct uuid *); 67 void uuid_enc_le(void *, const struct uuid *); 71 typedef struct uuid uuid_t;
|
/openbsd/sys/arch/arm64/dev/ |
H A D | smbios.c | 445 for (i = 0; i < sizeof(sys->uuid); i++) { in smbios_info() 446 if (sys->uuid[i] != 0xff) in smbios_info() 448 if (sys->uuid[i] != 0) in smbios_info() 457 for (i = 0; i < sizeof(sys->uuid); i++) in smbios_info() 458 enqueue_randomness(sys->uuid[i]); in smbios_info() 464 sys->uuid[0], sys->uuid[1], sys->uuid[2], in smbios_info() 465 sys->uuid[3], sys->uuid[4], sys->uuid[5], in smbios_info() 466 sys->uuid[6], sys->uuid[7], sys->uuid[8], in smbios_info() 467 sys->uuid[9], sys->uuid[10], sys->uuid[11], in smbios_info() 468 sys->uuid[12], sys->uuid[13], sys->uuid[14], in smbios_info() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/Util/ |
H A D | Facets2Legacy.pm | 115 sub uuid { subroutine 121 $meth = $in->can('SUPER::uuid') if $meth == \&uuid; 122 my $uuid = $in->$meth if $meth && $meth != \&uuid; 123 return $uuid if $uuid; 130 return $facet_data->{about}->{uuid} if $facet_data->{about} && $facet_data->{about}->{uuid};
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | bios.c | 505 for (i = 0; i < sizeof(sys->uuid); i++) { in smbios_info() 506 if (sys->uuid[i] != 0xff) in smbios_info() 508 if (sys->uuid[i] != 0) in smbios_info() 517 for (i = 0; i < sizeof(sys->uuid); i++) in smbios_info() 518 enqueue_randomness(sys->uuid[i]); in smbios_info() 524 sys->uuid[0], sys->uuid[1], sys->uuid[2], in smbios_info() 525 sys->uuid[3], sys->uuid[4], sys->uuid[5], in smbios_info() 526 sys->uuid[6], sys->uuid[7], sys->uuid[8], in smbios_info() 527 sys->uuid[9], sys->uuid[10], sys->uuid[11], in smbios_info() 528 sys->uuid[12], sys->uuid[13], sys->uuid[14], in smbios_info() [all …]
|
/openbsd/gnu/llvm/lldb/source/Symbol/ |
H A D | LocateSymbolFile.cpp | 56 const lldb_private::UUID *uuid) { in FileAtPathContainsArchAndUUID() argument 64 if ((uuid == nullptr || (spec.GetUUIDPtr() && spec.GetUUID() == *uuid)) && in FileAtPathContainsArchAndUUID() 216 const UUID *uuid = module_spec.GetUUIDPtr(); in LocateExecutableSymbolFileDsym() local 221 arch ? arch->GetArchitectureName() : "<NULL>", (const void *)uuid); in LocateExecutableSymbolFileDsym() 241 const UUID *uuid = module_spec.GetUUIDPtr(); in LocateExecutableObjectFile() local 245 arch ? arch->GetArchitectureName() : "<NULL>", (const void *)uuid); in LocateExecutableObjectFile() 403 void Symbols::DownloadSymbolFileAsync(const UUID &uuid) { in DownloadSymbolFileAsync() argument 412 if (g_seen_uuids.count(uuid)) in DownloadSymbolFileAsync() 414 g_seen_uuids.insert(uuid); in DownloadSymbolFileAsync() 419 module_spec.GetUUID() = uuid; in DownloadSymbolFileAsync() [all …]
|
H A D | LocateSymbolFileMacOSX.cpp | 45 CFUUIDRef uuid, CFURLRef exec_url) = nullptr; 61 const UUID *uuid = module_spec.GetUUIDPtr(); in LocateMacOSXFilesUsingDebugSymbols() local 85 if (uuid && uuid->IsValid()) { in LocateMacOSXFilesUsingDebugSymbols() 87 llvm::ArrayRef<uint8_t> module_uuid = uuid->GetBytes(); in LocateMacOSXFilesUsingDebugSymbols() 116 path, uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols() 138 path, uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols() 164 uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols() 176 if (image_info.uuid && (!module_spec.GetUUID() || in LocateMacOSXFilesUsingDebugSymbols() 184 uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols() 197 path, uuid->GetAsString().c_str()); in LocateMacOSXFilesUsingDebugSymbols() [all …]
|
/openbsd/gnu/llvm/lldb/source/Core/ |
H A D | DynamicLoader.cpp | 189 Process *process, llvm::StringRef name, UUID uuid, addr_t value, in LoadBinaryWithUUIDAndAddress() argument 197 module_spec.GetUUID() = uuid; in LoadBinaryWithUUIDAndAddress() 199 if (!uuid.IsValid() && !value_is_offset) { in LoadBinaryWithUUIDAndAddress() 203 uuid = memory_module_sp->GetUUID(); in LoadBinaryWithUUIDAndAddress() 206 if (uuid.IsValid()) { in LoadBinaryWithUUIDAndAddress() 208 module_spec.GetUUID() = uuid; in LoadBinaryWithUUIDAndAddress() 245 uuid.GetAsString().c_str(), in LoadBinaryWithUUIDAndAddress() 252 uuid.GetAsString().c_str()); in LoadBinaryWithUUIDAndAddress() 259 uuid.GetAsString().c_str(), value); in LoadBinaryWithUUIDAndAddress() 271 uuid.GetAsString().c_str(), in LoadBinaryWithUUIDAndAddress()
|
/openbsd/sys/dev/efi/ |
H A D | efiio.h | 49 struct uuid fw_class; 61 struct uuid uuid; /* UUID to look up */ member 71 struct uuid vendor; /* Vendor's UUID for variable */
|
/openbsd/sys/arch/i386/i386/ |
H A D | bios.c | 610 bcopy(&bios_bootsr->uuid, &sr_bootuuid, in bios_getopt() 1063 if (sys->uuid[i] != 0xff) in smbios_info() 1065 if (sys->uuid[i] != 0) in smbios_info() 1074 for (i = 0; i < sizeof(sys->uuid); i++) in smbios_info() 1075 enqueue_randomness(sys->uuid[i]); in smbios_info() 1081 sys->uuid[0], sys->uuid[1], sys->uuid[2], in smbios_info() 1082 sys->uuid[3], sys->uuid[4], sys->uuid[5], in smbios_info() 1083 sys->uuid[6], sys->uuid[7], sys->uuid[8], in smbios_info() 1084 sys->uuid[9], sys->uuid[10], sys->uuid[11], in smbios_info() 1085 sys->uuid[12], sys->uuid[13], sys->uuid[14], in smbios_info() [all …]
|
/openbsd/gnu/llvm/lldb/source/Plugins/ObjectFile/Breakpad/ |
H A D | ObjectFileBreakpad.cpp | 25 UUID uuid; member 44 UUID uuid = Info && Info->ID ? Info->ID : Module->ID; in parse() local 45 return Header{ArchSpec(triple), std::move(uuid)}; in parse() 84 std::move(header->uuid)); in CreateInstance() 101 spec.GetUUID() = std::move(header->uuid); in GetModuleSpecifications() 111 UUID uuid) in ObjectFileBreakpad() argument 113 m_arch(std::move(arch)), m_uuid(std::move(uuid)) {} in ObjectFileBreakpad()
|
/openbsd/sys/dev/pci/drm/i915/ |
H A D | i915_query.c | 237 char uuid[UUID_STRING_LEN + 1]; in query_perf_config_data() local 269 BUILD_BUG_ON(sizeof(user_query_config_ptr->uuid) >= sizeof(uuid)); in query_perf_config_data() 271 memset(&uuid, 0, sizeof(uuid)); in query_perf_config_data() 272 if (copy_from_user(uuid, user_query_config_ptr->uuid, in query_perf_config_data() 273 sizeof(user_query_config_ptr->uuid))) in query_perf_config_data() 279 if (!strcmp(tmp->uuid, uuid)) { in query_perf_config_data() 338 memcpy(user_config.uuid, oa_config->uuid, sizeof(user_config.uuid)); in query_perf_config_data()
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_procmaps_mac.cpp | 188 extern bool _dyld_get_shared_cache_uuid(uuid_t uuid); 196 uuid_t uuid; in GetDyldImageHeaderViaSharedCache() local 197 bool hasCache = _dyld_get_shared_cache_uuid(uuid); in GetDyldImageHeaderViaSharedCache() 207 uuid, ^(const dyld_shared_cache_dylib_text_info *info) { in GetDyldImageHeaderViaSharedCache() 300 internal_memcpy(segment->uuid, layout_data->current_uuid, kModuleUUIDSize); in NextSegmentLoad() 340 const uint8_t *uuid = &uuid_lc->uuid[0]; in FindUUID() local 341 internal_memcpy(uuid_output, uuid, kModuleUUIDSize); in FindUUID() 437 segment.uuid, data_.current_instrumented); in DumpListOfModules()
|
/openbsd/sbin/fdisk/ |
H A D | part.h | 40 const char *PRT_uuid_to_desc(const struct uuid *); 41 char *PRT_uuid_to_menudflt(const struct uuid *); 43 int PRT_protected_uuid(const struct uuid *);
|
H A D | part.c | 772 find_gpt_type(const struct uuid *uuid) in find_gpt_type() argument 779 if (uuid != NULL) { in find_gpt_type() 780 uuid_to_string(uuid, &guid, &status); in find_gpt_type() 931 PRT_protected_uuid(const struct uuid *uuid) in PRT_protected_uuid() argument 936 gt = find_gpt_type(uuid); in PRT_protected_uuid() 1098 PRT_uuid_to_desc(const struct uuid *uuid) in PRT_uuid_to_desc() argument 1105 desc = find_gpt_desc(find_gpt_type(uuid)); in PRT_uuid_to_desc() 1109 uuid_to_string(uuid, &str, &status); in PRT_uuid_to_desc() 1120 PRT_uuid_to_menudflt(const struct uuid *uuid) in PRT_uuid_to_menudflt() argument 1126 mi = find_gpt_menuitem(find_gpt_type(uuid)); in PRT_uuid_to_menudflt() [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/ |
H A D | Event.pm | 93 my $uuida = $tracea->uuid; 94 my $uuidb = $traceb->uuid; 131 if (my $uuid = $self->uuid) { 132 $out{about}->{uuid} = $uuid;
|
/openbsd/gnu/llvm/compiler-rt/lib/asan/scripts/ |
H A D | asan_symbolize.py | 720 self.uuid = uuid 731 uuid=self.uuid 755 if not isinstance(self.uuid, str): 788 uuid = None 797 uuid = split_uuid_line[1] 799 if uuid is None: 806 return uuid 847 if uuid != module_desc.uuid: 848 logging.warning("Detected UUID mismatch {} != {}".format(uuid, module_desc.uuid)) 896 uuid = m_obj.group('uuid') [all …]
|
/openbsd/gnu/llvm/lldb/examples/python/ |
H A D | symbolication.py | 37 import uuid 230 def __init__(self, path, uuid=None): argument 235 self.uuid = uuid 247 obj = cls(module.file.fullpath, module.uuid) 269 print('uuid = %s' % (self.uuid)) 280 if self.uuid: 403 if not self.uuid and self.module: 404 self.uuid = uuid.UUID(self.module.GetUUIDString()) 405 return self.uuid 408 if self.uuid: [all …]
|