• Wayne Davison's avatar
    - Changed the map_size parameter to map_file() to be an int32 named · 54281fe7
    Wayne Davison authored
      "read_size".
    - Changed some int vars in map_ptr() needed to be int32 vars.
    - All callers expect map_ptr() to return back the full "len" bytes,
      so we never shorten this value, even near EOF--the read will
      just get zero-padded, as needed.
    - Die with an error if someone calls map_ptr() with a len < 0, or
      if read_size is computed as a value < 0.
    54281fe7
fileio.c 5.96 KB