• Timo Teräs's avatar
    io: fix mmap writing to actually work · 8e4075e6
    Timo Teräs authored
    apparently it needs to have both PROT_READ and PROT_WRITE. and
    it needs to be MAP_SHARED for the writing to be effective. oh,
    and the data needs to be preallocated with ftruncate; otherwise,
    one gets SIGBUS.
    8e4075e6
archive.c 8.91 KB