freebsd-src/lib
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
..
compat Removed gratuitous LIBCOMPATDIR assignments. 2002-04-18 13:24:35 +00:00
csu Use .rodata section for $FreeBSD$. 2002-05-15 04:19:49 +00:00
libalias Fixed the bug in transparent TCP proxying with the "encode_ip_hdr" 2001-12-18 16:13:45 +00:00
libatm Remove multi-line __P() usage. 2002-03-22 09:22:15 +00:00
libbind Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libbz2 I somehow managed to forgot to commit this in my INCS sweep. 2002-05-14 11:41:23 +00:00
libc Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
libc_r Revamp suspend and resume. While I'm here add pthread_suspend_all_np() 2002-05-24 04:32:28 +00:00
libcalendar
libcam string cleanup: 2002-05-14 04:32:02 +00:00
libcom_err
libcompat mdoc(7) police: fixed the whatis entry. 2002-05-18 15:20:28 +00:00
libcrypt crypt(3) incorrectly documents md5 salt, fixed. 2002-04-09 22:32:59 +00:00
libdevinfo MAN[1-9] -> MAN. 2002-05-13 12:11:54 +00:00
libdevstat Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
libdisk NOSHARED is meaningless in the bsd.lib.mk context. 2002-05-13 12:00:45 +00:00
libedit Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
libfetch Do not use __progname directly (except in [gs]etprogname(3)). 2002-03-29 22:43:43 +00:00
libform Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libftpio Modernize my email address. 2002-03-25 13:52:45 +00:00
libio
libipsec just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD. 2002-04-19 04:46:24 +00:00
libipx Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
libisc Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libkse Revamp suspend and resume. While I'm here add pthread_suspend_all_np() 2002-05-24 04:32:28 +00:00
libkvm Catch up to tte.h changes. 2002-05-21 02:22:49 +00:00
libmd Don't build manuals at inappropriate time. 2002-04-10 17:01:55 +00:00
libmenu Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
libmilter Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libmp MAN[1-9] -> MAN. 2002-05-13 12:11:54 +00:00
libncp Add character translation table between Unix and NetWare according 2002-04-20 05:35:02 +00:00
libncurses Initial update of bmake glue for ncurses-5.2-20020518. More to come. 2002-05-21 05:40:28 +00:00
libnetgraph
libopie Updates for OPIE 2.4. 2002-03-22 00:12:20 +00:00
libpam Add openpam_nullconv.3. 2002-05-24 13:22:15 +00:00
libpanel Initial update of bmake glue for ncurses-5.2-20020518 2002-05-21 05:41:07 +00:00
libpcap Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libpthread Revamp suspend and resume. While I'm here add pthread_suspend_all_np() 2002-05-24 04:32:28 +00:00
libradius Add a prototype for rad_get_vendor_attr(). 2002-05-12 10:53:00 +00:00
librpcsvc New cpp(1) doesn't like -I${DESTDIR}/usr/include. 2002-05-14 11:37:10 +00:00
libsbuf Enable WARNS?=2. 2002-01-06 08:47:19 +00:00
libsm Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libsmb Supply SMB_CFG_FILE in CFLAGS. The newly imported smbfs-1.4.2 2001-12-20 16:21:47 +00:00
libsmdb Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libsmutil Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libstand Use an explicitly-sized type instead of daddr_t for on-disk block 2002-05-19 10:50:38 +00:00
libtacplus
libtelnet Removed now unused INTERNALSTATICLIB. 2002-05-13 11:09:07 +00:00
libusbhid Install libusbhid, and use it instead of libusb. 2002-03-28 18:44:25 +00:00
libutil If no old_pw was passed to pw_copy, compare just the name. 2002-05-08 14:52:32 +00:00
libvgl add missing MLINKS 2001-12-21 18:26:01 +00:00
libwrap Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
libxpg4
liby
libypclnt Add ypclnt_havepasswd(), and guard against a possible segfault. 2002-05-08 00:48:39 +00:00
libz Work around a gcc bug which causes zlib to dump core in certain 2002-03-31 23:47:52 +00:00
msun Spread the word of PowerPC. 2002-05-21 04:00:47 +00:00
ncurses Make this a little easier to build standalone. (same change as libpanel) 2002-05-21 07:08:30 +00:00
Makefile Don't try to build libc_r on sparc64, the _atomic_lock.S file isn't implemented. 2002-05-18 09:14:36 +00:00
Makefile.inc