Annotation of researchv10dc/man/adm/man2/mknod.2, revision 1.1.1.1

1.1       root        1: .TH MKNOD 2
                      2: .CT 2 sa
                      3: .SH NAME
                      4: mknod \(mi make a directory or a special file
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .B int mknod(name, mode, addr)
                      8: .B char *name;
                      9: .nf
                     10: .SH DESCRIPTION
                     11: .I Mknod
                     12: creates a new file
                     13: whose name is the null-terminated string pointed
                     14: to by
                     15: .IR name .
                     16: The mode of the new file
                     17: (including directory and special file bits)
                     18: is initialized from
                     19: .IR mode .
                     20: (The protection part of the mode
                     21: is modified by the process's mode mask; see
                     22: .IR stat (2)
                     23: and
                     24: .IR umask (2)).
                     25: The first block pointer of the inode
                     26: is initialized from
                     27: .IR addr .
                     28: For ordinary files and directories
                     29: .I addr
                     30: is normally zero.
                     31: For a special file,
                     32: .I addr
                     33: is the device number;
                     34: see
                     35: .IR mknod (8)
                     36: and the writeups in section 4.
                     37: .PP
                     38: .I Mknod
                     39: may be invoked only by the super-user.
                     40: .SH "SEE ALSO"
                     41: .IR open (2)
                     42: for
                     43: .IR creat ,
                     44: .IR mkdir (2), 
                     45: .IR stat (2),
                     46: .IR umask (2),
                     47: .IR filsys (5),
                     48: .IR mknod (8)
                     49: .SH DIAGNOSTICS
                     50: .BR EEXIST ,
                     51: .BR EFAULT ,
                     52: .BR EIO ,
                     53: .BR ELOOP ,
                     54: .BR ENOENT ,
                     55: .BR ENOTDIR ,
                     56: .BR EPERM ,
                     57: .BR EROFS

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.