UUID_GEN(8) Domain/OS BSD UUID_GEN(8)
NAME
uuid_gen - UUID generating program for NCS 1.5.1
SYNOPSIS
/etc/ncs/uuid_gen [ -c ] [ -p ] [ -C ] [ -P ] [ -t ] [ -version ]
DESCRIPTION
The uuid_gen program generates Universal Unique Identifiers (UUIDs) in
the format used by NCS 1.5.1. To generate a UUID in the format used by
NCS 2.0, use the uuidgen command.
Without options, uuid_gen generates the character-string representation
of a UUID. The -c and -p options enable you to generate templates for
Network Interface Definition Language (NIDL) files. The -C and -P
options enable you to generate source-code representations of UUIDs,
suitable for initializing variables of type uuid_$t.
You can specify several options at once to generate several
representations for the same UUID. To generate the default character-
string representation as well as one of the optional representations, use
the -t option.
OPTIONS
-C Generate the C source-code representation of a UUID.
-c Generate a template, including a UUID attribute, for an
interface definition in the C syntax of NIDL.
-P Generate the Pascal source-code representation of a UUID.
-p Generate a template, including a UUID attribute, for an
interface definition in the Pascal syntax of NIDL.
-t Generate the character-string representation of a UUID. This
option allows you to request the default output of uuid_gen
while also requesting optional output forms.
-version Display the version of NCK that this uuid_gen belongs to, but
do not generate a UUID.
EXAMPLES
1. Generate the character-string representation of a UUID:
$ /etc/ncs/uuid_gen
34dc23469000.0d.00.00.7c.5f.00.00.00
2. Generate a template for an interface definition in the C syntax of
NIDL:
$ /etc/ncs/uuid_gen -c
%c
[
uuid(34dc239ec000.0d.00.00.7c.5f.00.00.00),
version(1)
]
interface INTERFACENAME {
}
3. Generate the C source-code representation of a UUID:
$ /etc/ncs/uuid_gen -C
= { 0x34dc23af,
0xf000,
0x0000,
0x0d,
{0x00, 0x00, 0x7c, 0x5f, 0x00, 0x00, 0x00} };
4. Generate both the character-string representation and the C source-
code representation of a UUID:
$ /etc/ncs/uuid_gen -t -C
450ccaed6000.0d.00.02.18.cb.00.00.00
= { 0x450ccaed,
0x6000,
0x0000,
0x0d,
{0x00, 0x02, 0x18, 0xcb, 0x00, 0x00, 0x00} };
SEE ALSO
uuidgen