Manual Page Result
0
Command: mknod | Section: 2 | Source: UNIX v10 | File: mknod.2
MKNOD(2) System Calls Manual MKNOD(2)
NAME
mknod - make a directory or a special file
SYNOPSIS
int mknod(name, mode, addr)
char *name;
DESCRIPTION
Mknod creates a new file whose name is the null-terminated string
pointed to by name. The mode of the new file (including directory and
special file bits) is initialized from mode. (The protection part of
the mode is modified by the process's mode mask; see stat(2) and
umask(2)). The first block pointer of the inode is initialized from
addr. For ordinary files and directories addr is normally zero. For a
special file, addr is the device number; see mknod(8) and the writeups
in section 4.
Mknod may be invoked only by the super-user.
SEE ALSO
open(2) for creat, mkdir(2), stat(2), umask(2), filsys(5), mknod(8)
DIAGNOSTICS
EEXIST, EFAULT, EIO, ELOOP, ENOENT, ENOTDIR, EPERM, EROFS
MKNOD(2)