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

Function Documentation

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

wrapper function for gkfs_truncate errno may be set

Parameters
  • path

  • old_size

  • new_size

Returns

0 on success, -1 on failure