Function rb_readwrite_sys_fail

Source
pub unsafe extern "C" fn rb_readwrite_sys_fail(
    waiting: rb_io_wait_readwrite,
    msg: *const c_char,
) -> !
Expand description

Raises appropriate exception using the parameters.

In Ruby level there are [rb_eEAGAINWaitReadable] etc. This function maps the given parameter to an appropriate exception class, then raises it.

ยง@param[in] waiting Reason for the IO to wait. @param[in] msg Additional message to raise. @exception [rb_eEAGAINWaitWritable] @exception [rb_eEWOULDBLOCKWaitWritable] @exception [rb_eEINPROGRESSWaitWritable] @exception [rb_eEAGAINWaitReadable] @exception [rb_eEWOULDBLOCKWaitReadable] @exception [rb_eEINPROGRESSWaitReadable] @exception rb_eSystemCallError @note It never returns.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3