| Rev | Line | |
|---|
| [9] | 1 | .TH DIR 5
|
|---|
| 2 | .SH NAME
|
|---|
| 3 | dir \- directory layout
|
|---|
| 4 | .SH SYNOPSIS
|
|---|
| 5 | .nf
|
|---|
| 6 | .ft B
|
|---|
| 7 | #include <sys/types.h>
|
|---|
| 8 | #include <sys/dir.h>
|
|---|
| 9 | .SH DESCRIPTION
|
|---|
| 10 | The directories of the V1 and V2 file systems are arrays of the
|
|---|
| 11 | following structure defined in <sys/dir.h>:
|
|---|
| 12 | .PP
|
|---|
| 13 | .nf
|
|---|
| 14 | .ta +5n +15n +15n
|
|---|
| 15 | struct direct {
|
|---|
| 16 | ino_t d_ino; /* I-node number */
|
|---|
| 17 | char d_name[14]; /* Name of up to 14 characters */
|
|---|
| 18 | };
|
|---|
| 19 | .fi
|
|---|
| 20 | .DT
|
|---|
| 21 | .PP
|
|---|
| 22 | The
|
|---|
| 23 | .B d_ino
|
|---|
| 24 | field is the inode number of the file named by
|
|---|
| 25 | .BR d_name .
|
|---|
| 26 | .B D_ino
|
|---|
| 27 | is zero if the directory slot isn't allocated. This number is the same as
|
|---|
| 28 | .B st_ino
|
|---|
| 29 | returned by
|
|---|
| 30 | .BR stat (2)
|
|---|
| 31 | unless the entry is mounted on.
|
|---|
| 32 | .B D_name
|
|---|
| 33 | is the name of up to 14 characters, null-terminated only if less then 14
|
|---|
| 34 | in length. Any character other than null or '\fB/\fP' is allowed.
|
|---|
| 35 | .PP
|
|---|
| 36 | See
|
|---|
| 37 | .BR directory (3)
|
|---|
| 38 | for a portable way to access directories, MINIX 3 is probably the last system
|
|---|
| 39 | with these old V7 format directories.
|
|---|
| 40 | .SH "SEE ALSO"
|
|---|
| 41 | .BR directory (3).
|
|---|
| 42 | .SH AUTHOR
|
|---|
| 43 | Kees J. Bot (kjb@cs.vu.nl)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.