Unix/Linux Go Back    

Unix Version 7 - man page for mknod (v7 section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

MKNOD(2)										 MKNOD(2)

       mknod - make a directory or a special file

       mknod(name, mode, addr)
       char *name;

       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  protection  part  of the mode is modified by the process's mode mask; see umask(2)).
       The first block pointer of the i-node is initialized from addr.	For  ordinary  files  and
       directories  addr  is  normally zero.  In the case of a special file, addr specifies which
       special file.

       Mknod may be invoked only by the super-user.

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

       Zero is returned if the file has been made; -1 if the file already exists or if	the  user
       is not the super-user.

       (mknod = 14.)
       sys mknod; name; mode; addr

Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 09:01 PM.