summaryrefslogtreecommitdiff
path: root/static/v10/man2/mknod.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man2/mknod.2
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man2/mknod.2')
-rw-r--r--static/v10/man2/mknod.242
1 files changed, 42 insertions, 0 deletions
diff --git a/static/v10/man2/mknod.2 b/static/v10/man2/mknod.2
new file mode 100644
index 00000000..74dead4a
--- /dev/null
+++ b/static/v10/man2/mknod.2
@@ -0,0 +1,42 @@
+.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.