Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uuid_gen(1M) — HP-UX 8.07

Media Vault

Software Library

Restoration Projects

Artifacts Sought

uuid_gen(1M)

NAME

uuid_gen − UUID generating program

SYNOPSIS

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

DESCRIPTION

The uuid_gen program generates Universal Unique Identifiers (UUIDs). 

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. 

−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

Managing NCS Software

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

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