Abstraction of C struct stat(2) that stores parts of a file
status. The file mode is usually an unsigned type (uint32_t
on
Linux, uint16_t
on FreeBSD), and is therefore converted to signed
integer after the syscall.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | type | = | FILE_TYPE_NONE |
File type. |
|
integer(kind=i8), | public | :: | mode | = | 0 |
File mode as signed integer. |
|
integer(kind=i8), | public | :: | size | = | 0_i8 |
File size in bytes. |
|
integer(kind=i8), | public | :: | a_time | = | 0_i8 |
Time of last access (Unix epoch). |
|
integer(kind=i8), | public | :: | m_time | = | 0_i8 |
Time of last modification (Unix epoch). |
|
integer(kind=i8), | public | :: | c_time | = | 0_i8 |
Time of last status change (Unix epoch). |