ReadonlydescriptorHandle for subsequent descriptor-based operations.
ReadonlysizeSize reported at open time, used to refuse implausibly large files.
ReadonlyisFalse for directories, devices and pipes, which must never be parsed.
ReadonlylinkNames pointing at this inode; above one, re-permissioning is unsafe.
ReadonlymodifiedLast modification time in milliseconds since the epoch.
Read from the descriptor rather than the path, so the age belongs to the file that was actually opened.
An open descriptor together with the facts
fstatreported for it.The facts travel with the descriptor deliberately. Asking the filesystem about a path and then opening that path are two lookups, and anything able to replace the final component in between makes the answer describe a file the caller never opened. Bundling them forces the implementation to resolve both in one step, so no consumer can reintroduce that window.