Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.1;crty (create_type), revision 1.0, 88/07/02
crty (create_type) - create a new type.
usage: crty [-n node_spec] [-l] [-u high.low] [-bin pathname] [-r] [-t] [-f]{cl} type_name



DESCRIPTION
     crty creates a new type.  It creates an identifier for the new type, and
     associates it with the supplied type name.  New types are used to
     identify a new kind of manager for streams.

     Named traits are a new feature at SR10.1. In order to use a named trait,
     you may need to reformat your system's types file.


     type_name (required)
                    Specify the name to assign to the created type.

OPTIONS
     -n node_spec   Specify the node on which the type is to be created.  Type
                    help node_spec for details about node specification
                    syntax.  You may also specify the entry directory of a
                    volume mounted for software installation, as shown in the
                    example below. If this option is omitted, the type is
                    created on the current node.

     -l             List the type name/type identifier pair that is created.

     -b[inary] pathname
                    Create the type from the specified object module (which
                    was created by crtyobj).  This allows you to use an object
                    module (shipped on media like floppies, magnetic tapes,
                    etc) to add a new type to a system.

     -u high.low    Create the type with the specified unique identifier
                    (UID).  Give the high and low addresses for the UID as
                    indicated.

                    Note:     Use this option only for system debugging.
                              Misuse of this option may cause programs to
                              behave incorrectly.

     -t[rait]       Create a named trait instead of a type.

     -f[ormat]      Systems before SR10.1 did not support named traits. They
                    need to have the types file reformatted when you first
                    create a named trait. Use this option to reformat the
                    types file. The "-format" option has no effect if the
                    types file already has the new format.

                    Reformatted types files are upwards compatible with older
                    types files, and should not cause interoperability
                    problems between nodes. Once reformatted, however, they
                    can not be converted back to the older format.  Older
                    nodes will see named traits as types.

     -r[eplace]     Use this option when the type or trait name already exists
                    on your system, and you wish to change its identifier.

                    Use this option carefully. If a type or trait has the
                    wrong identifier associated with its name, you may lose
                    the ability to access files or other system features. You
                    may also lose the ability to share information with other
                    nodes.



EXAMPLES
     $ crty example_type -l
     "example_type" 24BF9F41.100001FB created.

     $ crty example_type -n //test_vol -l
     "example_type" 24BFA6F8.200001FB created on volume //test_vol.

     In the following example, the disk has been mounted for software
     installation. The disk's top level directory (cataloged as /mount_disk by
     the mtvol command) must contain a sys directory. If it does not, you get
     a "type manager directory not found" error.

     $ mtvol w /mount_disk
     $ /etc/mount /mount_disk
     $ crty example_type -n /mount_disk -l
     "example_type" 24BFB71E.200001FB
      created on volume //my_node/mount_disk.


SEE ALSO
     More information is available.  Type

     help  dlty     For information on deleting types

     help  lty      For information on listing types

     help  inty     For information on intalling new types

     help trty      For information on testing a type trait

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