1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/usr.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
..
apply Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
ar Add .Pp before enumerating options 2002-04-19 23:18:18 +00:00
asa #include <unistd.h> for getopt() and friends. 2002-05-15 03:31:40 +00:00
at Add the SUSv3 -l option to at. This is an alias for atq. Allow job ids 2002-05-16 00:47:14 +00:00
awk BWK awk appears to work for world builds just fine now. We want to make 2002-05-10 20:36:21 +00:00
banner remove __P 2002-03-22 01:22:50 +00:00
basename Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
biff Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
brandelf Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
bzip2 Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
c89 Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
calendar Add my birthday to the list. Apparently, I share a birthday with dwhite. 2002-05-17 17:49:32 +00:00
cap_mkdb Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
catman Add C rewrites of catman and makewhatis. These aren't quite as 2002-05-18 09:19:08 +00:00
chat Remove GCC-specific flags. 2002-04-28 13:53:38 +00:00
checknr Use `The .Nm utility'. Introduce options with well known sentence. 2002-04-19 23:23:28 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chkey Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
chpass Use libutil and libypclnt for all passwd manipulation and NIS needs. 2002-05-08 00:54:29 +00:00
cksum remove __P 2002-03-22 01:22:50 +00:00
cmp remove __P 2002-03-22 01:22:50 +00:00
col Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
colcrt Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
colldef Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
colrm Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
column remove __P 2002-03-22 01:22:50 +00:00
comm Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
compile_et
compress Add a Standards section, and note that compress(1) and uncompress(1) now 2002-05-17 01:54:17 +00:00
csplit Handle the case where a negative offset in a regular expression match 2002-05-16 05:04:26 +00:00
ctags Exit non-zero if the tags file cannot be opened. 2002-05-27 03:54:45 +00:00
cut Initialise the `positions' array correctly before use. 2002-05-27 02:01:25 +00:00
dig
dirname remove __P 2002-03-22 01:22:50 +00:00
dnskeygen
dnsquery
doscmd More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
du More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
ee - Properly initialize the count_win when the user turns the info window 2002-05-06 00:25:36 +00:00
elf2aout Make it work for a different endianness binary. 2002-05-25 13:43:16 +00:00
enigma Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
env remove __P 2002-03-22 01:22:50 +00:00
expand If processing of one file fails, try to process the remaining files and 2002-05-24 06:00:47 +00:00
false Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
fetch Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
file Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
file2c Modernize my email address 2002-03-25 13:53:46 +00:00
find Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
finger Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
fmt Very minor whitespace nit. 2002-04-28 13:59:42 +00:00
fold Typo: use plural now that we have more than one option. 2002-05-25 03:08:21 +00:00
from Introduce flags enumeration with standard 2002-03-26 12:15:31 +00:00
fstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
fsync Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
ftp Connect lukemftp to the build as the default ftp client. Lukemftp 2001-12-13 23:46:44 +00:00
gcore Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
gencat Add FBSDID. Spelling. Remove unused includes. Check more malloc failures. 2002-03-26 12:39:08 +00:00
getconf
getopt Minor nit; return(foo) from main rather than exit(foo). 2002-04-28 14:04:24 +00:00
gprof Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
head Fix VCS tags; ANSIfy functions 2002-04-28 13:50:54 +00:00
help Handle numeric keys by checking a "default" file. Handle number-less keys 2002-05-23 14:58:22 +00:00
hesinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
hexdump From NetBSD: 2002-05-27 03:17:28 +00:00
host
id remove __P 2002-03-22 01:22:50 +00:00
indent Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ipcrm Add some function prototypes to squash warnings. 2002-04-28 13:49:15 +00:00
ipcs Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
join Easy warns fixes; sort out some types and me them a bit more consistent; 2002-04-28 13:46:40 +00:00
jot Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
kdump I now don't seem to be able to reproduce the -DNOCLEAN buildworld 2002-04-11 14:49:32 +00:00
kenv Add a reference to the kenv(2) manpage. 2002-04-18 18:49:41 +00:00
keylogin Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
keylogout Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
killall Mark a warning as such. Without this, it isn't obvious whether 2002-05-20 07:17:22 +00:00
ktrace Warnings fix; ANSIfy, constify, mark unused function parameter(s). 2002-04-28 13:00:16 +00:00
ktrdump Add a man page. 2002-04-02 04:26:37 +00:00
lam Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
last Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
lastcomm Use `The .Nm utility'. Add section number to .Xr. 2002-04-20 21:28:47 +00:00
ldd Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE) 2002-05-17 17:06:56 +00:00
leave Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
less Update for less v371 2002-01-07 20:37:33 +00:00
lessecho
lesskey
lex Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
limits Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
locate remove __P 2002-03-22 01:22:50 +00:00
lock Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lockf Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
logger .Nm is not required at the begining of this sentence. 2002-04-20 21:33:10 +00:00
login Don't use PAM_SILENT unless hushlogin is set (perforce change 10123) 2002-04-22 06:27:16 +00:00
logname remove __P 2002-03-22 01:22:50 +00:00
look Fix a const-char vs char issue. 2002-04-28 12:39:12 +00:00
lorder Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lsvfs More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
m4 Add Standards, Diagnostics and History sections. 2002-05-26 07:07:14 +00:00
mail Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
make Back out the ``run shell from $PATH'' change; this was an overkill 2002-05-24 15:51:27 +00:00
makewhatis Unroff all forms of \f and \*, and the simplest form of \s. 2002-05-22 11:08:41 +00:00
mesg Affect the first of stdin, stdout and stderr that is attached to a terminal. 2002-05-06 04:33:04 +00:00
minigzip Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkdep Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkfifo Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mklocale Declarations cleanup; make sure externs are in a common header. 2002-04-28 12:34:54 +00:00
mkstr warns fixes; ANSIfy, deregister, constify. 2002-04-28 12:28:41 +00:00
mktemp Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
msgs Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mt Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ncal Easy warns fixes; constify. 2002-04-28 12:25:03 +00:00
ncplist Style fixes; whitespace and header order. 2002-04-28 12:21:31 +00:00
ncplogin Fix VCS inclusion and tidy up #includes. 2002-04-28 12:19:30 +00:00
netstat Cast to kill warnings. De-register. 2002-04-28 12:17:27 +00:00
newgrp Add the newgrp(1) utility, which changes groups. This is required by 2002-05-28 05:05:28 +00:00
newkey ANSIfy, VCS inclusions and some very minor style. 2002-04-28 12:09:33 +00:00
nfsstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
nice If we can't change the scheduling priority, warn but still execute 2002-05-13 08:03:20 +00:00
nl The XCU issue 5 requirement of accepting the file operand intermingled 2002-05-27 06:53:54 +00:00
nm Fix some easy warnings; ANSIfy, constify. 2002-04-28 12:04:20 +00:00
nohup remove __P 2002-03-22 01:33:25 +00:00
objformat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
opieinfo Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
opiekey Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
opiepasswd Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
pagesize Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
passwd #include <stdlib.h> for exit(3) prototype. 2002-05-11 03:18:14 +00:00
paste Use fgetln(3) to handle lines of unlimited length instead of a 2002-05-24 08:56:49 +00:00
pathchk Add the pathchk utility, which checks pathnames for validity or 2002-05-22 10:30:16 +00:00
perl WARNS 6 this. 2002-05-18 05:33:28 +00:00
pr Add P1003.1-2001 -f and -p options. 2002-03-31 18:44:36 +00:00
printenv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
printf Handle numbers larger than QUAD_MAX for unsigned conversions correctly. 2002-04-25 01:10:11 +00:00
quota Fix some low-hanging fruit in the warnings department; ANSIfy functions, 2002-04-28 11:44:30 +00:00
ranlib ANSIfy functions, and move extern declarations into a shared header 2002-04-28 11:59:43 +00:00
renice Sync usage message with manual page synopsis. 2002-05-25 11:37:10 +00:00
rev remove __P 2002-03-22 01:33:25 +00:00
rlogin Really include <paths.h> (it seems it was brought in indirectly) 2002-05-08 00:47:02 +00:00
rpcgen Back out part of previous commit - K&R doesn't have const. 2002-05-09 11:24:58 +00:00
rpcinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
rs Use __FBSDID, ANSIfy functions, fix const string. 2002-04-28 11:00:34 +00:00
rsh Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits. 2002-05-08 00:47:01 +00:00
rup Style only; format function declarations, sort header includes, and 2002-04-28 10:49:15 +00:00
ruptime Use __FBSDID(), ANSIfy headings, use const/unsigned in minor but 2002-04-28 10:56:09 +00:00
rusers Trivial warnings fixes; staticise and use unsigned. 2002-04-28 11:13:20 +00:00
rwall Revert/fix the most controversial parts of the last commit: 2002-03-07 14:11:41 +00:00
rwho remove __P 2002-03-22 01:33:25 +00:00
sasc remove __P 2002-03-22 01:42:45 +00:00
sccs Add a usage(). 2002-05-22 16:09:52 +00:00
script Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
sed If a file argument cannot be processed, process the remaining ones 2002-05-24 10:58:21 +00:00
shar
showmount More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
size Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
smbutil Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
sockstat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
soelim Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
split Claim conformance to IEEE Std 1003.1-2001. 2002-05-27 06:08:14 +00:00
strings Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
strip Do not override the `install' target. 2002-04-29 10:28:11 +00:00
su Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
symorder Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
systat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
tabs Mark argc as __unused to silence GCC. 2002-05-21 02:48:55 +00:00
tail Fix up vendor IDs. 2002-04-13 20:59:48 +00:00
talk Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tconv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tcopy Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tee Revert part of the previous revision. Changing exit() to return() in main() 2002-05-17 11:16:49 +00:00
telnet Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
tftp To perform even basic error checking, one must have an exit code that 2002-05-12 01:47:50 +00:00
time Determine exit status to use before writing diagnostic message; warn() 2002-05-25 03:32:23 +00:00
tip More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
top remove __P 2002-03-22 01:42:45 +00:00
touch remove __P 2002-03-22 01:42:45 +00:00
tput remove __P 2002-03-22 01:42:45 +00:00
tr remove __P 2002-03-22 01:42:45 +00:00
true Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
truncate remove __P 2002-03-22 01:42:45 +00:00
truss OOPS! rev 1.16 accidently changed the default outfile from stderr to 2002-05-16 21:58:57 +00:00
tset Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
tsort Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
tty Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uac Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ul Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uname remove __P 2002-03-22 01:42:45 +00:00
unexpand Some minor nits exposed by the Open Group's VSC Lite verification suite: 2002-04-25 23:04:52 +00:00
unifdef Sync with upstream version: 2002-05-23 16:50:41 +00:00
uniq Add the word ``fields'' to the description, and change an instance from 2002-05-24 19:12:02 +00:00
units Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon. 2001-12-18 11:25:58 +00:00
unvis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
usbhidctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
users Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uudecode Synch usage() and manpage for b64encode/b64decode. 2002-05-19 11:22:54 +00:00
uuencode Fix a late-night buglet in MLINKS ordering. 2002-05-19 20:39:42 +00:00
uuidgen Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
vacation Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
vgrind Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vi Remove Perl and TCL/TK bits, neither of which are in the base system 2002-05-18 14:27:17 +00:00
vis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vmstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
w Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
wall Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
wc remove __P 2002-03-22 01:42:45 +00:00
what remove __P 2002-03-22 01:42:45 +00:00
whereis
which Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
who Reimplement the who(1) utility to add some features required by SUSv3: 2002-05-09 23:04:40 +00:00
whois Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
window Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
write Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
xargs Simplify prerun() in the case where there are no arguments. Can't do -I or -J 2002-05-17 07:55:24 +00:00
xinstall More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
xlint Make sure the file in Attic is really "dead". 2002-05-07 06:57:04 +00:00
xstr Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
yacc Restore some of the original variable names, but fix the warnings their 2002-04-23 20:30:30 +00:00
yes Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypcat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypmatch Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypwhich Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Makefile Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
Makefile.inc Backout -Werror protection. No need to walk all over the upcoming 2002-02-06 18:13:12 +00:00