MPE/iX Shell and Utilities Reference Manual, Vol 1

mknod(1) MPE/iX Shell and Utilities mknod(1)
NAME
mknod — build a special file
SYNOPSIS
mknod pathname b major minor
mknod pathname c major minor
mknod pathname p
DESCRIPTION
mknod creates a special file with the given pathname. b indicates block-special files (for
example, disks and tapes), while c indicates character-special files (for example, printers and
other devices). major gives the major device type and minor the minor device type; device
types can be either octal or decimal numbers. Device type must be obtained from the system
source file conf.c.
The final form of mknod in the SYNOPSIS section (p) creates a
FIFO special file (that is, a
named pipe).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
Message: block special file "filename": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: character special file "filename": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: fifo file "filename: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: Missing major/minor device
Cause: You failed to specify the major or minor device type argument for a character or
block special file.
Action: Provide the missing argument.
1-376 Commands and Utilities