NAME ^

io/io_mmap.c - IO Layer for mmaped files

DESCRIPTION ^

Open mmaps the file.

*/

/*

mmap layer functions ^

static ParrotIO *PIO_mmap_open(theINTERP, ParrotIOLayer *layer, const char *path, INTVAL flags)

The buffer layer's Open function.

static size_t PIO_mmap_read(theINTERP, ParrotIOLayer *layer, ParrotIO *io, STRING ** buf)

Calls read() to return up to len bytes in the memory starting at buffer.

static INTVAL PIO_mmap_close(theINTERP, ParrotIOLayer *layer, ParrotIO *io)

Closes *io's file descriptor.

SEE ALSO ^

io/io_passdown.c, io/io.c, io/io_layers.c, io/io_private.h.

HISTORY ^

Initially written by Leo.


parrot