


      DIR(4)                      (UNIX 5.0)                     DIR(4)



      NAME
           dir - format of directories

      SYNTAX
           #include <sys/dir.h>

      DESCRIPTION
           A directory is like an ordinary file, except that no user
           may write into a one.  A directory is distinguished from a
           file by a bit in the flag word of its file table entry (see
           fs(4)).  The structure of a directory entry (as given in
           /usr/include/sys/dir.h) is:

                #ifndef DIRSIZ
                #define DIRSIZ 16
                #endif
                struct direct
                {
                       vers_t d_vers;
                       ino_t d_ino;
                       char d_name[DIRSIZ];
                };

           By convention, the first two entries in each directory are
           ``.'' for the directory itself, and ``..'' for the parent
           directory.  Because the root directory (``/'') has no
           parent, ``..'' has the same meaning as ``.'' in that case.

           The ls(1) command with the -al option lists the ``.'' file.


      FILES
           /usr/include/sys/dir.h

      SEE ALSO
           fs(4).



















      Page 1                                         (73 A2 02MTA REV1)



