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