| parrotcode: IO Layer for mmaped files | |
| Contents | C |

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

Open mmaps the file.

PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL ParrotIOLayer *PIO_mmap_register_layer(void)PARROT_WARN_UNUSED_RESULT PARROT_CAN_RETURN_NULL static ParrotIO *PIO_mmap_open(PARROT_INTERP, NOTNULL(ParrotIOLayer *layer), ARGIN(const char *path), INTVAL flags)Open function.static size_t PIO_mmap_read(PARROT_INTERP, NOTNULL(ParrotIOLayer *layer), NOTNULL(ParrotIO *io), NOTNULL(STRING **buf))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))*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.
|
|
|