Package libcore.io

Class StructStat

java.lang.Object
libcore.io.StructStat

public final class StructStat
extends Object
File information returned by fstat(2), lstat(2), and stat(2). Corresponds to C's struct stat from <stat.h>
  • Field Details

    • st_dev

      public final long st_dev
      Device ID of device containing file.
    • st_ino

      public final long st_ino
      File serial number (inode).
    • st_mode

      public final int st_mode
      Mode (permissions) of file.
    • st_uid

      public final int st_uid
      User ID of file.
    • st_gid

      public final int st_gid
      Group ID of file.
    • st_rdev

      public final long st_rdev
      Device ID (if file is character or block special).
    • st_size

      public final long st_size
      For regular files, the file size in bytes. For symbolic links, the length in bytes of the pathname contained in the symbolic link. For a shared memory object, the length in bytes. For a typed memory object, the length in bytes. For other file types, the use of this field is unspecified.
    • st_atime

      public final long st_atime
      Time of last access.
    • st_mtime

      public final long st_mtime
      Time of last data modification.
    • st_ctime

      public final long st_ctime
      Time of last status change.
    • st_blksize

      public final long st_blksize
      A file system-specific preferred I/O block size for this object. For some file system types, this may vary from file to file.
    • st_blocks

      public final long st_blocks
      Number of blocks allocated for this object.