• Show log

    Commit

  • Hash : 20e7f426
    Author : Shawn O. Pearce
    Date : 2009-01-03T00:36:10

    Add a simple mmap wrapper for cross-platform mmap usage
    
    Win32 has a variant of mmap that is harder to use than POSIX, but
    to run natively and efficiently on Win32 we need some form of it.
    
    gitfo_map_ro() provides a basic mmap function for use in locations
    where we need read-only random data access to large ranges of a file,
    such as a pack-*.idx.
    
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>