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

Function set_thread_res_uid

src/thread/id.rs:108–115  ·  view source on GitHub ↗
(ruid: R, euid: E, suid: S)

Source from the content-addressed store, hash-verified

106/// [linux_notes]: https://man7.org/linux/man-pages/man2/setresuid.2.html#NOTES
107#[inline]
108pub fn set_thread_res_uid<R, E, S>(ruid: R, euid: E, suid: S) -> io::Result<()>
109where
110 R: Into<Option<Uid>>,
111 E: Into<Option<Uid>>,
112 S: Into<Option<Uid>>,
113{
114 backend::thread::syscalls::setresuid_thread(ruid.into(), euid.into(), suid.into())
115}
116
117/// `setgid(gid)`—Sets the effective group ID of the current thread.
118///

Callers 1

test_setresuidFunction · 0.85

Calls 1

setresuid_threadFunction · 0.50

Tested by 1

test_setresuidFunction · 0.68