| parrotcode: IO layer handling | |
| Contents | C |

src/io/io_passdown.c - IO layer handling

This is a set of helper functions which search for the first implementation of a function in the layer-stack, call it with the appropriate arguments and return the value returned.

ParrotIO *PIO_open_downOpen and calls it if found,
returning its return value.NULL if no implementation is found.ParrotIO *PIO_open_async_downOpen_ASync and calls it if found,
returning its return value.NULL if no implementation is found.ParrotIO *PIO_fdopen_downFDOpen and calls it if found,
returning its return value.NULL if no implementation is found.size_t PIO_peek_downINTVAL PIO_close_downClose and calls it if found,
returning its return value.-1 if no implementation is found.size_t PIO_write_downWrite and calls it if found,
returning its return value.0 if no implementation is found.size_t PIO_write_async_downWriteASync and calls it if found,
returning its return value.0 if no implementation is found.size_t PIO_read_downRead and calls it if found,
returning its return value.0 if no implementation is found.size_t PIO_read_async_downRead_ASync and calls it if found,
returning its return value.0 if no implementation is found.INTVAL PIO_flush_downFlush and calls it if found,
returning its return value.0 if no implementation is found.PIOOFF_T PIO_seek_downSeek and calls it if found,
returning its return value.-1 if no implementation is found.PIOOFF_T PIO_tell_downTell and calls it if found,
returning its return value.0 if no implementation is found.INTVAL PIO_setbuf_downSetBuf and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_setlinebuf_downSetLineBuf and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_eof_downEof and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_poll_downPoll and calls it if found,
returning its return value.-1 if no implementation is found.ParrotIO *PIO_socket_downSocket and calls it if found,
returning its return value.NULL if no implementation is found.INTVAL PIO_recv_downRecv and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_send_downSend and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_connect_downConnect and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_bind_downBind and calls it if found,
returning its return value.-1 if no implementation is found.INTVAL PIO_listen_downlisten and calls it if found,
returning its return value.-1 if no implementation is found.ParrotIO *PIO_accept_downAccept and calls it if found,
returning its return value.-1 if no implementation is found.
src/io/io_buf.c, src/io/io_passdown.c, src/io/io_stdio.c, src/io/io_unix.c, src/io/io_win32.c, src/io/io.c, src/io/io_private.h.

Initially written by Juergen Boemmels
Some ideas and goals from Perl5.7 and Nick Ing-Simmons' work.
|
|
|