Hi! I've figured out how to mmap a file using CMUCL. What I now have is a SAP and I can create a string the same size as the file and use memcpy and SYSTEM:VECTOR-SAP to copy the contents of the file into a Lisp string. However, for large files this is obviously quite inefficient and destroys the advantage of using mmap.
Is it possible to somehow pretend to the rest of CMUCL that the mmap'ed area already is a Lisp string, perhaps by some internal displacement function that I'm not aware of? FWIW, I'm happy with read-only access to this "string." Thanks, Edi.
