fixed it to work on terminals with over 48 lines, and fixed bug
[unix-history] / .ref-BSD-3 / usr / man / man2 / mknod.2
CommitLineData
e6817382
BJ
1.TH MKNOD 2
2.SH NAME
3mknod \- make a directory or a special file
4.SH SYNOPSIS
5.B mknod(name, mode, addr)
6.br
7.B char *name;
8.SH DESCRIPTION
9.I Mknod
10creates a new file
11whose name is the null-terminated string pointed
12to by
13.IR name .
14The mode of the new file
15(including directory and special file bits)
16is initialized from
17.IR mode .
18(The protection part of the mode
19is modified by the process's mode mask; see
20.IR umask (2)).
21The first block pointer of the i-node
22is initialized from
23.IR addr .
24For ordinary files and directories
25.I addr
26is normally zero.
27In the case of a special file,
28.I addr
29specifies which special file.
30.PP
31.I Mknod
32may be invoked only by the super-user.
33.SH "SEE ALSO"
34mkdir(1), mknod(1), filsys(5)
35.SH DIAGNOSTICS
36Zero is returned if the file has been made; \-1
37if the file already exists
38or if the user is not the super-user.
39.SH "ASSEMBLER (PDP-11)"
40(mknod = 14.)
41.br
42.B sys mknod; name; mode; addr