.th MKNOD IV 3/6/86
.sh NAME
mknod \*- make a directory or a special file
.sh SYNOPSIS
(mknod = 14.; not in assembler)
.br
.ft B
sys  mknod; name; mode; addr
.s3
mknod(name, mode, addr)
.br
char *name;
.ft R
.sh 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 first physical address of the file
is initialized from
addr.
Note that in the case of a directory,
addr
should be zero.
In the case of a special file,
addr
specifies which special file.
.sh "SEE ALSO"
mkdir (I), mknod (IVII), fs (V)
.sh DIAGNOSTICS
Error bit (c-bit)
is set if the file already exists.
From C, a \*-1 value indicates an error.
.sh KSOS
Manipulation of special files is an NKSR function;
hence, in the UNIX Emulator,
this call can only be used to make directories.
