PATH_FILESTAT_SET_SIZE
The right to change a file's size. If path_open
is set, includes the right to invoke path_open
with oflags::trunc
. Note: there is no function named path_filestat_set_size
. This follows POSIX design, which only has ftruncate
and does not provide ftruncateat
. While such function would be desirable from the API design perspective, there are virtually no use cases for it since no code written for POSIX systems would use it. Moreover, implementing it would require multiple syscalls, leading to inferior performance.