parrotcode: IO Layer for mmaped files | |
Contents | C |
src/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)
Open
function.static size_t PIO_mmap_read(theINTERP, ParrotIOLayer *layer, ParrotIO *io, STRING ** buf)
read()
to return up to len
bytes in the memory starting at buffer
.static INTVAL PIO_mmap_close(theINTERP, ParrotIOLayer *layer, ParrotIO *io)
*io
's file descriptor.src/io/io_passdown.c, src/io/io.c, src/io/io_layers.c, src/io/io_private.h.
Initially written by Leo.
|