fdFileStatSetSize

fnErrno fdFileStatSetSize(Fd fd, FileSize size) @importName("fd_filestat_set_size")

Adjust the size of an open file. If this increases the file's size, the extra bytes are filled with zeros.

Note

This is similar to ftruncate in POSIX.