pub unsafe extern "C" fn PL_open_resource(
    m: module_t,
    name: *const c_char,
    rc_class: *const c_char,
    mode: *const c_char
) -> *mut IOSTREAM