1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/bin
Marcel Moolenaar 52183d0145 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
..
cat Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 20:51:00 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chio Replace use of __progname with the functionally identical and more 2002-03-24 14:56:55 +00:00
chmod Fix warnings inspired by lint, a commercial lint and WARNS=4 2002-02-22 20:45:09 +00:00
cp Optimize prev. commit code a bit 2002-05-17 12:24:19 +00:00
csh Use NLSLINKS to setup symbolic links in NLS area 2002-03-04 12:29:21 +00:00
date s/CMOS/hardware as talked about on cvs-committers. 2002-04-16 14:28:47 +00:00
dd Add semicolon to empty default case to silence warning. 2002-05-11 03:12:02 +00:00
df Unconditionally update the maximum field width statistics when we 2002-05-18 21:10:40 +00:00
domainname Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
echo clarify code: 2002-03-04 05:30:04 +00:00
ed Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
expr EXPR_COMPAT should imply -e, since there is no way to specify it otherwise, 2002-05-11 03:08:12 +00:00
getfacl Partially fix (well, work around) warnings inspired by lint, a 2002-02-22 21:02:58 +00:00
hostname Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
kenv Add a reference to the kenv(2) manpage. 2002-04-18 18:49:41 +00:00
kill o __P has been reoved 2002-02-02 06:48:10 +00:00
ln Note that the lutimes(2) and lchflags(2) syscalls also do not follow symlinks. 2002-05-26 12:51:38 +00:00
ls Add missing options required by SUSv3: 2002-05-19 02:51:36 +00:00
mkdir Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
mv Remove local definition of _PATH_CP, and use <paths.h>, _PATH_CP is in the 2002-05-17 11:38:48 +00:00
pax more file system > filesystem 2002-05-16 03:51:38 +00:00
ps The sysctl has changed from 'kern.ps_showallprocs' to 2002-05-16 11:51:05 +00:00
pwd Back out part of previous commit: make -P the default again until I'm 2002-05-18 13:52:07 +00:00
rcp Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits. 2002-05-08 00:47:01 +00:00
realpath Use `The .Nm utility' 2002-04-20 11:58:12 +00:00
rm Consistancy check s/file system/filesystem/ 2002-05-16 01:57:20 +00:00
rmail Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
rmdir o __P has been reoved 2002-02-02 06:48:10 +00:00
setfacl Remove extraneous blank line 2002-02-19 02:36:35 +00:00
sh sh appeared in Version 1, not System V.1. 2002-05-25 12:18:27 +00:00
sleep o __P has been reoved 2002-02-02 06:50:57 +00:00
stty o __P has been reoved 2002-02-02 06:50:57 +00:00
sync o __P has been reoved 2002-02-02 06:50:57 +00:00
test while i'm breaking stuff, use __dead2 instead of GCC specific __attribute__. 2002-05-11 01:25:54 +00:00
uuidgen Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
Makefile Introduce NO_RCMNDS flag so as to not compile rsh, rlogin, and rcp on will, 2002-04-09 18:25:44 +00:00
Makefile.inc Remove gCC'isms. 2002-05-10 01:48:15 +00:00