DIR(4) FILE FORMATS DIR(4)
NAME
dir -- format of directories
SYNOPSIS
#include <sys/dir.h>
DESCRIPTION
A directory behaves exactly like an ordinary file, exept
that only superuser can write into a directory. The fact
that a file is a directory is indicated by a bit in the flag
word of its inode entry (see fs(4)). The structure of a
directory entry as given in the #include file is:
#ifndef DIRSIZ
#define DIRSIZ 60
#endif
struct direct {
ulong d_ino;
char d_name[DIRSIZ];
};
By convention, the first two entries in each directory are
(.) and (..). The first entry is an entry for the directory
itself. The second is for the parent directory. The mean-
ing of (..) is modified for the root directory of the master
file system; because there is no parent, (..) has the same
meaning as (.).
SEE ALSO
fs(4)
SUPER-UX Last change: Nov 12, 1996 1
G1AB02E Programmer's Reference Manual