Static std::sys::unix::args::imp::ARGV_INIT_ARRAY

source ·
#[link_section = ".init_array.00099"]
static ARGV_INIT_ARRAY: extern "C" fn(_: c_int, _: *const *const u8, _: *const *const u8)
Expand description

glibc passes argc, argv, and envp to functions in .init_array, as a non-standard extension. This allows std::env::args to work even in a cdylib, as it does on macOS and Windows.