freebsd-skq/sys
marcel 58435e6cb7 Add uuidgen(2) and uuidgen(1).
The uuidgen command, by means of the uuidgen syscall, generates one
or more Universally Unique Identifiers compatible with OSF/DCE 1.1
version 1 UUIDs.

From the Perforce logs (change 11995):

Round of cleanups:
o  Give uuidgen() the correct prototype in syscalls.master
o  Define struct uuid according to DCE 1.1 in sys/uuid.h
o  Use struct uuid instead of uuid_t. The latter is defined
   in sys/uuid.h but should not be used in kernel land.
o  Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid()
   to kern_uuid.c for use in the kernel (currently geom_gpt.c).
o  Rename the non-standard struct uuid in kern/kern_uuid.c
   to struct uuid_private and give it a slightly better definition
   for better byte-order handling. See below.
o  In sys/gpt.h, fix the broken uuid definitions to match the now
   compliant struct uuid definition. See below.
o  In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change.

A note about byte-order:
        The standard failed to provide a non-conflicting and
unambiguous definition for the binary representation. My initial
implementation always wrote the timestamp as a 64-bit little-endian
(2s-complement) integral. The clock sequence was always written
as a 16-bit big-endian (2s-complement) integral. After a good
nights sleep and couple of Pan Galactic Gargle Blasters (not
necessarily in that order :-) I reread the spec and came to the
conclusion that the time fields are always written in the native
by order, provided the the low, mid and hi chopping still occurs.
The spec mentions that you "might need to swap bytes if you talk
to a machine that has a different byte-order". The clock sequence
is always written in big-endian order (as is the IEEE 802 address)
because its division is resulting in bytes, making the ordering
unambiguous.
2002-05-28 06:16:08 +00:00
..
alpha Add declarations of suword32 and suword64. Add implementations of one or 2002-05-26 16:03:13 +00:00
amd64 Add declarations of suword32 and suword64. Add implementations of one or 2002-05-26 16:03:13 +00:00
arm Move MI stuff out of MD param.h files. 2002-05-14 20:35:29 +00:00
boot Cosmetic change (align with other boot blocks): 2002-05-26 10:11:17 +00:00
cam Add a Quirk entry for the USB SimpleTech UCF-100 compact flash reader. 2002-05-19 21:59:28 +00:00
coda More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
compat Fixed a printf format error. It was old and should have been detected by 2002-05-25 10:48:03 +00:00
conf Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
contrib Merge updates from 3.4.26 - 3.4.27. 2002-04-27 16:56:25 +00:00
crypto Fixed AES encryption algorithm bug 2002-05-24 07:26:17 +00:00
ddb Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It 2002-05-07 10:59:52 +00:00
dev Regen. 2002-05-27 00:01:21 +00:00
fs Convert unionfs to nmount. 2002-05-24 00:44:44 +00:00
geom Add a proof-of-concept encryption class. 2002-05-26 18:14:38 +00:00
gnu Convert ext2fs to nmount(2). 2002-05-24 17:38:01 +00:00
i4b Fixed printf format errors which apparently crept in while -Wformat was 2002-05-25 11:18:03 +00:00
i386 Add declarations of suword32 and suword64. Add implementations of one or 2002-05-26 16:03:13 +00:00
ia64 Make the run queue parameters machine dependent. Optimize 64 bit 2002-05-25 01:12:23 +00:00
isa After some comments from bde, rewrite the loops to avoid turning the 2002-05-14 21:28:45 +00:00
isofs/cd9660 Quick fix for non-unique inode numbers for hard links. We use the 2002-05-22 08:50:18 +00:00
kern Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
libkern Remove bogus include of <machine/ansi.h>. 2002-04-11 06:53:40 +00:00
modules Remove asr from the ia64 build. Its use of KERNBASE appears i386 2002-05-19 03:59:06 +00:00
net Make discard devices clonable and unloadable. Also, change the 2002-05-25 20:20:35 +00:00
netatalk Fix warning; Extra tokens after #endif 2002-05-24 06:11:07 +00:00
netatm Pacify gcc by preinitializing a variable. 2002-05-24 06:17:42 +00:00
netgraph Fix warnings: deprecated use of label at end of compound statement 2002-05-24 07:02:04 +00:00
netinet - Change the newly turned INVARIANTS #ifdef blocks (they were changed from 2002-05-21 18:52:24 +00:00
netinet6 o Conditionalize sections for POSIX.1-2001 compatibility. 2002-05-23 18:48:27 +00:00
netipx Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
netkey pacify gcc-3.1's -Wunused checking. 2002-05-24 05:53:57 +00:00
netnatm Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
netncp Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
netns Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
netsmb Fix trivial warning: 2002-05-24 05:40:51 +00:00
nfs Remove unused include. 2002-03-20 10:12:07 +00:00
nfsclient Don't tsleep() with an sb_mtx held. 2002-05-27 05:20:15 +00:00
nfsserver Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
pc98 MFi386: revision 1.519 2002-05-14 12:31:47 +00:00
pccard Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
pci Enhance the use of the watchdog timer in this driver so that it will 2002-05-15 17:05:28 +00:00
posix4 Change p_can{debug,see,sched,signal}()'s first argument to be a thread 2002-05-19 00:14:50 +00:00
powerpc Print srr1 in printtrap() 2002-05-27 11:20:19 +00:00
rpc
security/lomac Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
sparc64 Add declarations of suword32 and suword64. Add implementations of one or 2002-05-26 16:03:13 +00:00
sys Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
tools include systm.h in vnode_if.c so that panic is defined when we're doing 2002-05-04 02:35:13 +00:00
ufs Remove IFS from 5.0-CURRENT. This facilitates introducing UFS2 as 2002-05-19 00:11:08 +00:00
vm o Remove unused #defines. 2002-05-27 22:10:28 +00:00
Makefile Milestone #1 in cross-arch make releases. 2002-04-26 17:55:27 +00:00