Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mknod(2)



  mknod(8)                            CLIX                            mknod(8)



  NAME

    mknod - Builds a special file

  SYNOPSIS

    /etc/mknod name b|c major minor

    /etc/mknod name p

  DESCRIPTION

    The mknod command makes a directory entry and corresponding inode for a
    special file.

    The first argument for both cases shown in SYNOPSIS is the name of the
    entry.  The CLIX convention is to keep such files in the /dev directory.

    In the first case, the second argument is b if the special file is block-
    type (disks, tape) or c if it is character-type (other devices).  The last
    two arguments are numbers specifying the major device type and the minor
    device (for example, unit, drive, or line number).  They may be either
    decimal or octal.  The assignment of major device numbers is specific to
    each system.  The information is contained in the system source file
    conf.c.  You must be the superuser to use this form of the command.

    The second case is the form of the mknod command that is used to create
    FIFOs (another name for named pipes).

  EXAMPLES

    1.  mknod /tmp/pipe p

    2.  mknod /dev/fred b 16 3

    3.  mknod /dev/con2 c 64 130

  CAUTIONS

    If mknod is used to create a device in a remote directory (Remote File
    Sharing), the major and minor device numbers are interpreted by the
    server.

  DIAGNOSTICS

    usage: mknod name b/c major minor

  EXIT VALUES

    The mknod command exits with a value of 0 if successful and a value of 2
    if an error occurs.



  2/94 - Intergraph Corporation                                              1






  mknod(8)                            CLIX                            mknod(8)



  RELATED INFORMATION

    Functions: mknod(2)



















































  2                                              Intergraph Corporation - 2/94




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