*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> dir (4)              
Title
Content
Arch
Section
 

dir(4)

Contents


NAME    [Toc]    [Back]

       dir - Format of directories

SYNOPSIS    [Toc]    [Back]

       #include <sys/types.h>

       #include <dirent.h>

DESCRIPTION    [Toc]    [Back]

       A  directory  behaves like an ordinary file except 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
       inode entry. See the fs reference page.

       The POSIX standard way of returning directory  entries  is
       in  directory  entry  structures,  which  are  of variable
       length.  Each directory entry has a struct direct  at  the
       front  of  it,  containing its inode number, the length of
       the entry, and the length of the  name  contained  in  the
       entry.   These are followed by the name padded to a 4-byte
       boundary with null bytes.  All names are  guaranteed  null
       terminated. The maximum length of a name in a directory is
       _D_NAME_MAX.

       By convention, the first two entries in each directory are
       for  .  (dot) and .. (dot-dot).  The first is an entry for
       the directory itself.  The second is for the parent directory.
 The meaning of .. (dot-dot) is modified for the root
       directory (/) of the master file system,  where  ..  (dotdot)
 has the same meaning as . (dot).

SEE ALSO    [Toc]    [Back]

      
      
       Functions: opendir(3)

       Files: fs(4)



                                                           dir(4)
[ Back ]
 Similar pages
Name OS Title
dir IRIX format of EFS directories
dir HP-UX format of directories on short-name HFS file systems
dxfileshare Tru64 Exports local directories and mounts directories from the network
bdftopcf Tru64 convert X font from Bitmap Distribution Format to Portable Compiled Format
DXmCvtCStoOS Tru64 Converts a compound string to an operatingsystem specific format. Currently uses text format.
acl_copy_int Tru64 Copies the ACL from contiguous, persistent format to internal working space format
bdftopcf HP-UX convert X font from Bitmap Distribution Format to Portable Compiled Format
bdftopcf IRIX convert X font from Bitmap Distribution Format to Portable Compiled Format
cddbcvt IRIX convert old (cdplayer) format CD database to new format
rmdir OpenBSD remove directories
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service