|
|
1.1 root 1: .th DIRECTORY V 9/10/73
2: .sh NAME
3: dir \*- format of directories
4: .sh DESCRIPTION
5: A directory
6: behaves exactly like an ordinary file, save that no
7: user may write into a directory.
8: The fact that a file is a directory is indicated by
9: a bit in the flag word of its i-node entry.
10: Directory entries are 16 bytes long.
11: The first word is the i-number of the file represented
12: by the entry, if non-zero; if zero, the entry is empty.
13: .s3
14: Bytes 2-15 represent the (14-character)
15: file name, null padded on the right.
16: These bytes are not cleared for empty slots.
17: .s3
18: By convention, the first two entries in each directory
19: are for ``\fB.\fR'' and ``\fB..\fR''. The first is an entry for the
20: directory itself. The second is for the parent
21: directory.
22: The meaning of ``\fB..\fR'' is modified for the root directory
23: of the master file system and for the root directories of removable
24: file systems.
25: In the first case, there is no parent, and in the second,
26: the system does not permit off-device references.
27: Therefore in both cases ``\fB..\fR'' has the
28: same meaning as ``\fB.\fR''.
29: .sh "SEE ALSO"
30: file system (V)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.