uuid_gen(1ncs)uuid_gen(1ncs)Nameuuid_gen - UUID generating program
Syntax
/etc/ncs/uuid_gen [ -c ] [ -C ] [ -version ]
Description
The program generates Universal Unique Identifiers (UUIDs). Without
options, it generates a character-string representation of a UUID. The
-c option enables you to generate a template for Network Interface Def‐
inition Language (NIDL) files. The -C option enables you to generate
source-code representations of UUIDs, suitable for initializing vari‐
ables of type
Options-c Generate a template, including a UUID attribute, for an
interface definition in the C syntax of NIDL.
-C Generate a C source-code representation of a UUID.
-version Display the version of the Network Computing Kernel (NCK)
that this belongs to but do not generate a UUID. (NCK is
part of the Network Computing System (NCS) on which DECrpc is
based.)
Examples
Generate a character-string representation of a UUID:
$ /etc/ncs/uuid_gen
34dc23469000.0d.00.00.7c.5f.00.00.00
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 {
}
Generate a template for an interface definition in the C syntax of
NIDL. Redirect the output to the file
$ /etc/ncs/uuid_gen -c >myfile.idl
Generate a C source-code representation of a UUID:
$ /etc/ncs/uuid_gen -C
= { 0x34dc23af,
0xf000,
0x0000,
0x0d,
{0x00, 0x00, 0x7c, 0x5f, 0x00, 0x00, 0x00} };
See Also
DECrpc Programming Guide
uuid_gen(1ncs)