File:  [Research Unix] / researchv10dc / dist / man / v4 / man2 / mknod.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.th MKNOD II 8/5/73
.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
.it Mknod
creates a new file
whose name is the null-terminated string pointed
to by
.it name.
The mode of the new file
(including directory and special file bits)
is initialized from
.it mode.
The first physical address of the file
is initialized from
.it addr.
Note that in the case of a directory,
.it addr
should be zero.
In the case of a special file,
.it addr
specifies which special file.
.s3
.it Mknod
may be invoked only by the super-user.
.sh "SEE ALSO"
mkdir(I), mknod(I), fs(V)
.sh DIAGNOSTICS
Error bit (c-bit)
is set if the file already exists
or if the user is not the super-user.
From C, a \*-1 value indicates an error.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.