1MKNOD(2) System Calls Manual MKNOD(2)
2
3
4
6 mknod - make a directory or a special file
7
9 mknod(name, mode, addr)
10 char *name;
11
13 Mknod creates a new file whose name is the null-terminated string
14 pointed to by name. The mode of the new file (including directory and
15 special file bits) is initialized from mode. (The protection part of
16 the mode is modified by the process's mode mask; see umask(2)). The
17 first block pointer of the i-node is initialized from addr. For ordi‐
18 nary files and directories addr is normally zero. In the case of a
19 special file, addr specifies which special file.
20
21 Mknod may be invoked only by the super-user.
22
24 mkdir(1), mknod(1), filsys(5)
25
27 Zero is returned if the file has been made; -1 if the file already
28 exists or if the user is not the super-user.
29
31 (mknod = 14.)
32 sys mknod; name; mode; addr
33
34
35
36 MKNOD(2)