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

Function set_thread_uid

src/thread/id.rs:84–86  ·  view source on GitHub ↗
(uid: Uid)

Source from the content-addressed store, hash-verified

82/// [linux_notes]: https://man7.org/linux/man-pages/man2/setuid.2.html#NOTES
83#[inline]
84pub fn set_thread_uid(uid: Uid) -> io::Result<()> {
85 backend::thread::syscalls::setuid_thread(uid)
86}
87
88/// `setresuid(ruid, euid, suid)`—Sets the real, effective, and saved user ID
89/// of the calling thread.

Callers 1

test_setuidFunction · 0.85

Calls 1

setuid_threadFunction · 0.50

Tested by 1

test_setuidFunction · 0.68