let pwrite fd off buf =
      if off < 0
      then invalid_arg "ExtUnix.pwrite"
      else unsafe_pwrite fd off buf