Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uuid_gen(1M) — HP-UX 9.03

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uuid_gen(1M)

uuid_gen(1M)

NAME

uuid_gen − UUID generating program

SYNOPSIS

/etc/ncs/uuid_gen [-c] [-p] [-C] [-P] [-t] [- version]

DESCRIPTION

uuid_gen generates Universal Unique Identifiers (UUIDs). 

Without options, uuid_gen generates the character-string representation of a UUID.  The -c and -p options are used when generating templates for Network Interface Definition Language (NIDL) files.  The -C and -P options generate source-code representations of UUID s, suitable for initializing variables of type uuid_$t. 

Multiple options can be used in the same command line 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

uuid_gen recognizes the following 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. 

-Pf1 Generate the Pascal source-code representation of a UUID. 

-pf1 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

Generate the 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 the C source-code representation of a UUID:

$ /etc/ncs/uuid_gen −C
= { 0x34dc23af,
    0xf000,
    0x0000,
    0x0d,
    {0x00, 0x00, 0x7c, 0x5f, 0x00, 0x00, 0x00} };

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

uuid_gen(1M)

Managing NCS Software

Hewlett-Packard Company  —  HP-UX Release 9.03: April 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026