|
|
1.1 root 1: .th MKNOD II 8/5/73
2: .sh NAME
3: mknod \*- make a directory or a special file
4: .sh SYNOPSIS
5: (mknod = 14.; not in assembler)
6: .br
7: .ft B
8: sys mknod; name; mode; addr
9: .s3
10: mknod(name, mode, addr)
11: .br
12: char *name;
13: .ft R
14: .sh DESCRIPTION
15: .it Mknod
16: creates a new file
17: whose name is the null-terminated string pointed
18: to by
19: .it name.
20: The mode of the new file
21: (including directory and special file bits)
22: is initialized from
23: .it mode.
24: The first physical address of the file
25: is initialized from
26: .it addr.
27: Note that in the case of a directory,
28: .it addr
29: should be zero.
30: In the case of a special file,
31: .it addr
32: specifies which special file.
33: .s3
34: .it Mknod
35: may be invoked only by the super-user.
36: .sh "SEE ALSO"
37: mkdir(I), mknod(I), fs(V)
38: .sh DIAGNOSTICS
39: Error bit (c-bit)
40: is set if the file already exists
41: or if the user is not the super-user.
42: From C, a \*-1 value indicates an error.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.