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_down
Open
and calls it if found,
returning its return value.NULL
if no implementation is found.ParrotIO *PIO_open_async_down
Open_ASync
and calls it if found,
returning its return value.NULL
if no implementation is found.ParrotIO *PIO_fdopen_down
FDOpen
and calls it if found,
returning its return value.NULL
if no implementation is found.size_t PIO_peek_down
INTVAL PIO_close_down
Close
and calls it if found,
returning its return value.-1
if no implementation is found.size_t PIO_write_down
Write
and calls it if found,
returning its return value.0
if no implementation is found.size_t PIO_write_async_down
WriteASync
and calls it if found,
returning its return value.0
if no implementation is found.size_t PIO_read_down
Read
and calls it if found,
returning its return value.0
if no implementation is found.size_t PIO_read_async_down
Read_ASync
and calls it if found,
returning its return value.0
if no implementation is found.INTVAL PIO_flush_down
Flush
and calls it if found,
returning its return value.0
if no implementation is found.PIOOFF_T PIO_seek_down
Seek
and calls it if found,
returning its return value.-1
if no implementation is found.PIOOFF_T PIO_tell_down
Tell
and calls it if found,
returning its return value.0
if no implementation is found.INTVAL PIO_setbuf_down
SetBuf
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_setlinebuf_down
SetLineBuf
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_eof_down
Eof
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_poll_down
Poll
and calls it if found,
returning its return value.-1
if no implementation is found.ParrotIO *PIO_socket_down
Socket
and calls it if found,
returning its return value.NULL
if no implementation is found.INTVAL PIO_recv_down
Recv
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_send_down
Send
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_connect_down
Connect
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_bind_down
Bind
and calls it if found,
returning its return value.-1
if no implementation is found.INTVAL PIO_listen_down
listen
and calls it if found,
returning its return value.-1
if no implementation is found.ParrotIO *PIO_accept_down
Accept
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.
|