Function gkfs::syscall::gkfs_pwrite

Function Documentation

ssize_t gkfs::syscall::gkfs_pwrite(std::shared_ptr<gkfs::filemap::OpenFile> file, const char *buf, size_t count, off64_t offset, bool update_pos = false)

Wrapper function for all gkfs write operations errno may be set

Parameters
  • file

  • buf

  • count

  • offset

  • update_pos – pos should only be updated for some write operations (see man 2 pwrite)

Returns

written size or -1 on error