FD_FILESTAT_SET_SIZE

WASI Preview1 function fd_filestat_set_size

Definition:

;;; 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.
(@interface func (export "fd_filestat_set_size")
(param $fd $fd)
;;; The desired file size.
(param $size $filesize)
(result $error (expected (error $errno)))
)