Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2002 23:16:08 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/sys Makefile.inc uuidgen.2 src/sys/conf files src/sys/kern init_sysent.c kern_uuid.c syscalls.c src/sys/sys syscall.h syscall.mk sysproto.h uuid.h src/usr.bin Makefile src/usr.bin/uuidgen Makefile uuidgen.1 uuidgen.c
Message-ID:  <200205280616.g4S6G8729478@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcel      2002/05/27 23:16:08 PDT

  Modified files:
    lib/libc/sys         Makefile.inc 
    sys/conf             files 
    sys/kern             init_sysent.c syscalls.c 
    sys/sys              syscall.h syscall.mk sysproto.h 
    usr.bin              Makefile 
  Added files:
    lib/libc/sys         uuidgen.2 
    sys/kern             kern_uuid.c 
    sys/sys              uuid.h 
    usr.bin/uuidgen      Makefile uuidgen.1 uuidgen.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.94      +1 -1      src/lib/libc/sys/Makefile.inc
  1.1       +83 -0     src/lib/libc/sys/uuidgen.2 (new)
  1.637     +1 -0      src/sys/conf/files
  1.123     +2 -1      src/sys/kern/init_sysent.c
  1.1       +222 -0    src/sys/kern/kern_uuid.c (new)
  1.110     +2 -1      src/sys/kern/syscalls.c
  1.109     +3 -2      src/sys/sys/syscall.h
  1.64      +3 -2      src/sys/sys/syscall.mk
  1.101     +6 -1      src/sys/sys/sysproto.h
  1.1       +70 -0     src/sys/sys/uuid.h (new)
  1.206     +1 -0      src/usr.bin/Makefile
  1.1       +6 -0      src/usr.bin/uuidgen/Makefile (new)
  1.1       +71 -0     src/usr.bin/uuidgen/uuidgen.1 (new)
  1.1       +113 -0    src/usr.bin/uuidgen/uuidgen.c (new)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205280616.g4S6G8729478>