NAME ^

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

DESCRIPTION ^

Open mmaps the file.

mmap layer functions ^

PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL ParrotIOLayer *PIO_mmap_register_layer(void)

RT#48260: Not yet documented!!!

PARROT_WARN_UNUSED_RESULT PARROT_CAN_RETURN_NULL static ParrotIO *PIO_mmap_open(PARROT_INTERP, NOTNULL(ParrotIOLayer *layer), ARGIN(const char *path), INTVAL flags)

The buffer layer's Open function.

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

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

static INTVAL PIO_mmap_close(PARROT_INTERP, NOTNULL(ParrotIOLayer *layer), NOTNULL(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