ruby_sysinit

Function ruby_sysinit 

Source
pub unsafe extern "C" fn ruby_sysinit(
    argc: *mut c_int,
    argv: *mut *mut *mut c_char,
)
Expand description

Initializes the process for libruby.

This function assumes this process is ruby(1) and it has just started. Usually programs that embed CRuby interpreter may not call this function, and may do their own initialization.

@param[in] argc Pointer to process main’s argc. @param[in] argv Pointer to process main’s argv. @warning argc and argv cannot be NULL.

@internal

§AFAIK Ruby does write to argv, especially argv[0][0], via setproctitle(3). It is intentional that the argument is not const-qualified.

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