[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'BaseUnix' (#rtl)

Stat

Record describing an inode (file) in the FPFstat call.

Declaration

Source position: stat.inc line 17

type Stat = packed record

  case Byte of

    0: (

        dev: qword;

  

Device number

        __pad0: array [0..3] of Byte;

  

Pad bytes, do not use

        __ino: Cardinal;

  

Inode number

        mode: Cardinal;

  

File mode

        nlink: Cardinal;

  

Number of links to file.

        uid: Cardinal;

  

File owner UID

        gid: Cardinal;

  

File owner GID

        rdev: qword;

  

        __pad3: array [0..3] of Byte;

  

Pad bytes, do not use

        size: qword;

  

File size

        blksize: Cardinal;

  

Block size

        blocks: qword;

  

Number of blocks used

        atime: Cardinal;

  

Last access time

        atime_nsec: Cardinal;

  

Last access time, nano seconds part

        mtime: Cardinal;

  

Last modification time.

        mtime_nsec: Cardinal;

  

Last modification time, nano seconds part

        ctime: Cardinal;

  

Creation time

        ctime_nsec: Cardinal;

  

Creation time, nano seconds part

        ino: qword;

  

Inode number of file

      );

    1: (

        st_dev: qword;

  

Device number

        __pad0_: array [0..3] of Byte;

  

Alignment padding.

        __st_ino_: Cardinal;

  

Inode number

        st_mode: Cardinal;

  

File mode

        st_nlink: Cardinal;

  

Number of hard links

        st_uid: Cardinal;

  

File owner User ID

        st_gid: Cardinal;

  

File owner group ID

        st_rdev: qword;

  

??

        __pad3_: array [0..3] of Byte;

  

Alignment padding.

        st_size: qword;

  

File size in bytes

        st_blksize: Cardinal;

  

Block size

        st_blocks: qword;

  

Number of blocks

        st_atime: Cardinal;

  

Last file access time

        st_atime_nsec: Cardinal;

  

Access time with nanosecond precision

        st_mtime: Cardinal;

  

Last file modification time

        st_mtime_nsec: Cardinal;

  

Modification time with nanosecond precision

        st_ctime: Cardinal;

  

File creation time

        st_ctime_nsec: Cardinal;

  

Create time with nanosecond precision

        st_ino: qword;

  

Inode number

      );

end;

The latest version of this document can be found at lazarus-ccr.sourceforge.net.