Commit | Line | Data |
---|---|---|
1094cf0a KT |
1 | .pa 1 |
2 | .he 'DIRECTORY (V)'3/15/72'DIRECTORY (V)' | |
3 | .ti 0 | |
4 | NAME format of directories | |
5 | .sp | |
6 | .ti 0 | |
7 | DESCRIPTION A direc\ 6tory | |
8 | behaves exactly like an ordinary file, save that no | |
9 | user may write into a directory. | |
10 | The fact that a file is a directory is indicated by | |
11 | a bit in the flag word of its i-node entry. | |
12 | ||
13 | Directory entries are 10 bytes long. | |
14 | The first word is the i-number of the file represented | |
15 | by the entry, if non-zero; if zero, the entry is empty. | |
16 | ||
17 | Bytes 2-9 represent the (8-character) | |
18 | file name, null padded on the right. | |
19 | These bytes are not cleared for empty slots. | |
20 | ||
21 | By convention, the first two entries in each directory | |
22 | are for "." and "..". The first is an entry for the | |
23 | directory itself. The second is for the parent | |
24 | directory. | |
25 | The meaning of ".." is modified for the root directory | |
26 | of the master file system and for the root directories of removable | |
27 | file systems. | |
28 | In the first case, there is no parent, and in the second, | |
29 | the system does not permit off-device references. | |
30 | Therefore in both cases ".." has the | |
31 | same meaning as ".". | |
32 | .sp | |
33 | .ti 0 | |
34 | SEE ALSO file system (V) |