[0m


DIR(5)		    UNIX Programmer's Manual		   DIR(5)



[1mNAME
     [0mdir - format of directories

[1mSYNOPSIS
     #include <sys/types.h>
     #include <sys/dirent.h>

DESCRIPTION
     [0mA directory behaves exactly like an ordinary file, save that
     no user may write into a directory.  The fact that a file is
     a directory is indicated by a bit in the flag word of its
     i-node entry; see _f_s(5).  The structure of a directory entry
     is given in the subsidiary include file _s_y_s/_d_i_r_e_n_t._h.  The
     structures presented there contain file system independent
     information.

     By convention, the first two entries in each directory are
     for `.' and `..'.	The first 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 ("/"), where `..' has the same meaning as `.'.

[1mSEE ALSO
     [0mfs(5)































Printed 5/7/99	    Revision 1.3 of 01/07/90			1



[0m