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

Function set_name

src/thread/prctl.rs:99–101  ·  view source on GitHub ↗
(name: &CStr)

Source from the content-addressed store, hash-verified

97/// [`prctl(PR_SET_NAME,…)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
98#[inline]
99pub fn set_name(name: &CStr) -> io::Result<()> {
100 unsafe { prctl_2args(PR_SET_NAME, name.as_ptr() as *mut _) }.map(|_r| ())
101}
102
103//
104// PR_GET_SECCOMP/PR_SET_SECCOMP

Callers

nothing calls this directly

Calls 2

prctl_2argsFunction · 0.85
as_ptrMethod · 0.45

Tested by

no test coverage detected