direct(4) (BSD Compatibility Package) direct(4)
NAME
direct - file system independent directory entry
SYNOPSIS
#include <direct.h>
DESCRIPTION
Different file system types may have different directory entries. The
direct structure defines a file system independent directory entry,
which contains information common to directory entries in different
file system types. A set of these structures is returned by the
readdir(3C) system call.
The direct structure is defined in this example:
struct direct {
ulong dino;
ushort dreclen;
ushort dnamlen;
char dname[NAMEMAX + 1];
};
The dino is a number which is unique for each file in the file sys-
tem. The field dnamelen is the length of the string in dname. The
field dname is the beginning of the character array giving the name
of the directory entry. This name is null terminated and may have at
most NAMEMAX characters. This results in file system independent
directory entries being variable length entities. The value of
dreclen is the record length of this entry. This length is defined to
be the number of bytes between the current entry and the next one, so
that the next structure will be suitably aligned.
SEE ALSO
readdir(3C).
Page 1 Reliant UNIX 5.44 Printed 11/98