summaryrefslogtreecommitdiff
path: root/static/unix-v10/man2/mknod.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man2/mknod.2
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man2/mknod.2')
-rw-r--r--static/unix-v10/man2/mknod.242
1 files changed, 42 insertions, 0 deletions
diff --git a/static/unix-v10/man2/mknod.2 b/static/unix-v10/man2/mknod.2
new file mode 100644
index 00000000..74dead4a
--- /dev/null
+++ b/static/unix-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.