Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mknod(II) — UNIX 6th Edition 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir (I)

mknod (VIII)

fs (V)

MKNOD(II)  −  PWB/UNIX 8/5/73

NAME

mknod − make a directory or a special file

SYNOPSIS

(mknod = 14.; not in assembler)
sys  mknod; name; mode; addr mknod(name, mode, addr)
char *name;

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.  Mknod may be invoked only by the super-user. 

SEE ALSO

mkdir (I), mknod (VIII), fs (V)

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. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026