stat

Holds information about the status of a file or directory

Service:File System
Defined In:sys\stat.h

Structure

   struct stat { 
      dev_t            st_dev ; 
      ino_t            st_ino ;  
      unsigned short   st_mode ;  
      short            st_nlink ; 
      unsigned long    st_uid ;  
      short            st_gid ;  
      dev_t            st_rdev ;  
      off_t            st_size ; 
      time_t           st_atime ;   
      time_t           st_mtime ;  
      time_t           st_ctime ;   
      time_t           st_btime ;  
      unsigned long    st_attr ; 
      unsigned long    st_archivedID ;  
      unsigned long    st_updatedID ; 
      unsigned short   st_inheritedRightsMask ; 
      unsigned char    st_originatingNameSpace ; 
      unsigned char    st_name [255+1]; 
      size_t           st_blksize ; 
      size_t           st_blocks ; 
      unsigned int     st_flags ; 
      unsigned long    st_spare [4]; 
   }; 
   

Fields

st_dev

Specifies the volume number.

st_ino

Specifies the directory entry of the st_name.

st_mode

Specifies the emulated file mode.

st_nlink

Specifies the count of hard links (always 1).

st_uid

Specifies the object ID of the owner.

st_gid

Specifies the group ID (always 0).

st_rdev

Specifies the device type (always 0).

st_size

Specifies the total file size (files only).

st_atime

Specifies the last access date/time (files only) in calendar time (seconds since the Jan.1, 1970 (UTC)).

st_mtime

Specifies the last modify date/time and time in calendar time.

st_ctime

Specifies the date/time in calendar time that the file or directory was created.

st_btime

Specifies the time in calendar time since the entry was last archived.

st_attr

Specifies the file attribute as defined in NWFATTR.H.

st_archivedID

Specifies the ID of the user/object that last archived the entry.

st_updatedID

Specifies the ID of the user/object that last updated the entry.

st_inheritedRightsMask

Specifies the NDS inherited rights mask.

st_originatingNameSpace

Specifies the name space in which the file or directory was created (see Section 20.5, Name Space Flag Values).

st_name

Specifies the name of the file or directory according to the set target name space (see Section 20.5, Name Space Flag Values).

st_blksize

Specifies the block size for allocation (files only).

st_blocks

Specifies the count of blocks allocated to the file.

st_flags

Specifies user-defined flags.

st_spare

Reserved for future use.