mknod(1M) mknod(1M)
NAME
mknod - make a special file
SYNOPSIS
/sbin/mknod name b | c major minor
/sbin/mknod name p
DESCRIPTION
mknod makes a directory entry for a special file.
In the first case, name is the special file to be created. The second
argument is b to indicate a block-type special file or c to indicate
a character-type. The last two arguments are numbers specifying the
major and minor device numbers; these may be either decimal or octal.
The assignment of major device numbers is specific to each system.
The p option is used to create a FIFO (named pipe).
The m option is used to create a shared memory file.
The s option is used to create a semaphore file.
NOTES
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.
Only the b option requires super-user priviledges; the others do not.
SEE ALSO
mknod(2) in the Programmer's Reference Manual.
8/91 Page 1