MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / prctl

Function prctl

src/backend/linux_raw/prctl/syscalls.rs:13–21  ·  view source on GitHub ↗
(
    option: c::c_int,
    arg2: *mut c::c_void,
    arg3: *mut c::c_void,
    arg4: *mut c::c_void,
    arg5: *mut c::c_void,
)

Source from the content-addressed store, hash-verified

11
12#[inline]
13pub(crate) unsafe fn prctl(
14 option: c::c_int,
15 arg2: *mut c::c_void,
16 arg3: *mut c::c_void,
17 arg4: *mut c::c_void,
18 arg5: *mut c::c_void,
19) -> io::Result<c::c_int> {
20 ret_c_int(syscall!(__NR_prctl, c_int(option), arg2, arg3, arg4, arg5))
21}

Callers

nothing calls this directly

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected