.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)mknod.2 4.1 (Berkeley) %G%
mknod \- make a directory or a special file
.B mknod(name, mode, addr)
whose name is the null-terminated string pointed
(including directory and special file bits)
(The protection part of the mode
is modified by the process's mode mask; see
The first block pointer of the i-node
For ordinary files and directories
In the case of a special file,
specifies which special file.
may be invoked only by the super-user.
mkdir(1), mknod(1), filsys(5)
Zero is returned if the file has been made; \-1
if the file already exists
or if the user is not the super-user.
.B sys mknod; name; mode; addr