Function gkfs::syscall::gkfs_truncate(const std::string&, off_t)

Function Documentation

int gkfs::syscall::gkfs_truncate(const std::string &path, off_t offset)

gkfs wrapper for truncate() system calls errno may be set

Parameters
  • path

  • length

Returns

0 on success, -1 on failure