let all_pwrite fd off buf =
      if off < 0
      then invalid_arg "ExtUnix.all_pwrite"
      else unsafe_all_pwrite fd off buf