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

Function set_thread_gid

src/thread/id.rs:138–140  ·  view source on GitHub ↗
(gid: Gid)

Source from the content-addressed store, hash-verified

136/// [linux_notes]: https://man7.org/linux/man-pages/man2/setgid.2.html#NOTES
137#[inline]
138pub fn set_thread_gid(gid: Gid) -> io::Result<()> {
139 backend::thread::syscalls::setgid_thread(gid)
140}
141
142/// `setresgid(rgid, egid, sgid)`—Sets the real, effective, and saved group
143/// ID of the current thread.

Callers 1

test_setgidFunction · 0.85

Calls 1

setgid_threadFunction · 0.50

Tested by 1

test_setgidFunction · 0.68