|parrotcode: IO Layer for mmaped files|
|Contents | C|
io/io_mmap.c - IO Layer for mmaped files
Open mmaps the file.
static ParrotIO *PIO_mmap_open(theINTERP, ParrotIOLayer *layer, const char *path, INTVAL flags)
static size_t PIO_mmap_read(theINTERP, ParrotIOLayer *layer, ParrotIO *io, STRING ** buf)
read()to return up to
lenbytes in the memory starting at
static INTVAL PIO_mmap_close(theINTERP, ParrotIOLayer *layer, ParrotIO *io)
*io's file descriptor.
Initially written by Leo.