1MKNOD(2)                      System Calls Manual                     MKNOD(2)
2
3
4

NAME

6       mknod - make a directory or a special file
7

SYNOPSIS

9       mknod(name, mode, addr)
10       char *name;
11

DESCRIPTION

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

SEE ALSO

24       mkdir(1), mknod(1), filsys(5)
25

DIAGNOSTICS

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

ASSEMBLER

31       (mknod = 14.)
32       sys mknod; name; mode; addr
33
34
35
36                                                                      MKNOD(2)
Impressum