freebsd-nq/lib/libc/sys
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
..
__error.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
_exit.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
accept.2 Some updates to mention accept filters and how 2002-05-08 18:19:01 +00:00
access.2 - Bump document date for eaccess(2) addition. 2001-10-11 15:27:53 +00:00
acct.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
adjtime.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_cancel.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_error.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_read.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_return.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_suspend.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_waitcomplete.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
aio_write.2 Fix reference to aio_read, should be aio_write 2001-10-16 00:49:19 +00:00
bind.2 - There is no such thing as a socket structure. sockets are integers. 2001-11-05 18:05:56 +00:00
brk.2 Change brk's prototype from char *brk(const char *) to int brk(const void *) 2002-01-24 12:11:31 +00:00
chdir.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
chflags.2 Document the lchflags(2) syscall. 2002-05-05 23:51:32 +00:00
chmod.2 Fix a typo. 2001-12-07 14:58:41 +00:00
chown.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
chroot.2 Add xref to jail(2). 2001-12-28 09:26:45 +00:00
clock_gettime.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
close.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
connect.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
dup.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
execve.2 mdoc(7) police: markup the previous delta. 2001-12-04 16:09:27 +00:00
extattr_get_file.2 mdoc(7) police: punctuation nit. 2002-03-15 17:57:41 +00:00
fcntl.2 Use the correct macros for F_SETFD/F_GETFD instead of magic numbers. 2002-04-13 10:16:53 +00:00
fhopen.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
flock.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
fork.2 Document behaviour with respect to interval timers. 2002-01-09 14:44:06 +00:00
fsync.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
ftruncate.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
getdirentries.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
getdtablesize.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getfh.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getfsstat.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getgid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getgroups.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getitimer.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getlogin.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getpeername.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
getpgrp.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getpid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getpriority.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getrlimit.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getrusage.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getsid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
getsockname.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
getsockopt.2 Minor grammar and punctuation fixes 2002-01-04 18:17:07 +00:00
gettimeofday.2 mdoc(7) police: Fix xref to timeradd(3). 2002-03-15 17:59:46 +00:00
getuid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
intro.2 Improve punctuation consistency: all errors had a '.' after them 2002-03-08 21:00:27 +00:00
ioctl.2 Correct markup. 2002-04-14 02:29:20 +00:00
issetugid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
jail.2 Remove extra word. 2002-05-26 05:24:53 +00:00
kenv.2 mdoc(7) police: polishing. 2002-04-19 11:24:02 +00:00
kill.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kldfind.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kldfirstmod.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kldload.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kldnext.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kldstat.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kldsym.2 Another punctuation fix (missing comma ending preposition). 2001-09-01 21:32:52 +00:00
kldunload.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kqueue.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
ktrace.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
link.2 Refer to chflags(2) instead of chflags(1) (since we're a section 2 2001-10-23 00:54:58 +00:00
listen.2 Some updates to mention accept filters and how 2002-05-08 18:19:01 +00:00
lseek.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
lseek.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
madvise.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
Makefile.inc Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
mincore.2 Correct a typo. 2002-03-09 07:05:22 +00:00
minherit.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mkdir.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mkfifo.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mknod.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mlock.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mmap.2 mdoc(7) police: hard sentence breaks, whitespace at EOL, contractions. 2002-03-15 18:04:00 +00:00
mmap.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
modfind.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
modnext.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
modstat.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mount.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
mprotect.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
msync.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
munmap.2 We are munmap(2), so there's no need to list ourselves in the SEE ALSO 2002-01-07 06:12:25 +00:00
nanosleep.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
nfssvc.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
open.2 Fix the description of the O_NONBLOCK flag to match reality. 2002-01-22 14:18:55 +00:00
pathconf.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
pipe.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
poll.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
pread.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
profil.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
ptrace.2 mdoc(7) police: Fixed the spammage of this file with trailing whitespaces 2002-03-20 13:40:08 +00:00
pwrite.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
quotactl.2 Update the EINVAL description again - it turns out that EINVAL 2002-05-17 16:39:21 +00:00
read.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
readlink.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
reboot.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
recv.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
rename.2 Bump p1003.1-90 to p1003.1-96. 2001-11-29 03:21:16 +00:00
revoke.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
rfork.2 Document that rfork() will return EINVAL if flags not listed in the 2001-12-19 00:59:54 +00:00
rmdir.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
rtprio.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sched_get_priority_max.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sched_setparam.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sched_setscheduler.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sched_yield.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
select.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
semctl.2 Add GETPID to the list of operations for which semctl(2) returns the value. 2002-03-06 14:14:36 +00:00
semget.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
semop.2 mdoc(7) police: general cleanup. 2001-11-21 15:41:49 +00:00
send.2 Document ENETDOWN. 2001-11-05 00:44:38 +00:00
sendfile.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00
setgroups.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
setpgid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
setregid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
setresuid.2 Fixed misspelled arg type in synopsis. 2001-10-03 01:45:37 +00:00
setreuid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
setsid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
setuid.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
shm_open.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
shmat.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
shmctl.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
shmget.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
shutdown.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sigaction.2 Remove __P() usage. 2002-03-21 22:49:10 +00:00
sigaltstack.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sigpending.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sigprocmask.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sigreturn.2 mdoc(7) police: join OS version with the corresponding macro. 2001-10-19 14:44:13 +00:00
sigstack.2 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
sigsuspend.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sigwait.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
socket.2 Features are deprecated, not depreciated. 2002-03-18 01:52:19 +00:00
socketpair.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
stat.2 Document that the type of st_flags is now fflags_t. 2002-02-15 22:37:15 +00:00
statfs.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
swapon.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
symlink.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sync.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
sysarch.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
syscall.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
truncate.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
truncate.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
umask.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
undelete.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
unlink.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
utimes.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
uuidgen.2 Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
vfork.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
wait.2 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
write.2 Remove the internal implementation details of wrapping syscalls, 2001-10-26 17:38:20 +00:00