source: trunk/minix/man/man5/dir.5@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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