Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150685820
D11138.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
887 B
Referenced Files
None
Subscribers
None
D11138.diff
View Options
Index: head/sys/kern/kern_uuid.c
===================================================================
--- head/sys/kern/kern_uuid.c
+++ head/sys/kern/kern_uuid.c
@@ -424,3 +424,10 @@
(c[3] & 0xc0) != 0x80 && /* variant 1? */
(c[3] & 0xe0) != 0xc0) ? EINVAL : 0); /* variant 2? */
}
+
+int
+uuidcmp(const struct uuid *uuid1, const struct uuid *uuid2)
+{
+
+ return (memcmp(uuid1, uuid2, sizeof(struct uuid)));
+}
Index: head/sys/sys/uuid.h
===================================================================
--- head/sys/sys/uuid.h
+++ head/sys/sys/uuid.h
@@ -65,6 +65,7 @@
int printf_uuid(struct uuid *);
int sbuf_printf_uuid(struct sbuf *, struct uuid *);
int parse_uuid(const char *, struct uuid *);
+int uuidcmp(const struct uuid *, const struct uuid *);
void be_uuid_dec(void const *buf, struct uuid *uuid);
void be_uuid_enc(void *buf, struct uuid const *uuid);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 8:53 AM (9 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30756993
Default Alt Text
D11138.diff (887 B)
Attached To
Mode
D11138: UUID API extension to allow for comparison
Attached
Detach File
Event Timeline
Log In to Comment