NAME ^

src/io/io_mmap.c - IO Layer for mmaped files

DESCRIPTION ^

Open mmaps the file.

mmap layer functions ^

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

The buffer layer's Open function.

static size_t PIO_mmap_read(PARROT_INTERP, 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(PARROT_INTERP, ParrotIOLayer *layer, ParrotIO *io)

Closes *io's file descriptor.

SEE ALSO ^

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

HISTORY ^

Initially written by Leo.


parrot