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 indi-
cates 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.
PORTABILITY
All UNIX systems. Within POSIX, mknod has been superseded by
mkfifo for pipes. The POSIX family of standards have not yet
designed an alternative to mknod for special files.
MPE/iX NOTES
For information on how the current MPE/iX implementation may
affect the operation of this utility, see Appendix A, MPE/iX
1
mknod(1) MPE/iX Shell and Utilities mknod(1)
______________________________________________________________________
Implementation Considerations.
SEE ALSO
mkfifo(1)
2