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

Function setgid_thread

src/backend/libc/thread/syscalls.rs:425–431  ·  view source on GitHub ↗
(gid: crate::ugid::Gid)

Source from the content-addressed store, hash-verified

423#[cfg(linux_kernel)]
424#[inline]
425pub(crate) fn setgid_thread(gid: crate::ugid::Gid) -> io::Result<()> {
426 syscall! {
427 fn setgid(gid: c::gid_t) via SYS_setgid -> c::c_int
428 }
429
430 unsafe { ret(setgid(gid.as_raw())) }
431}
432
433#[cfg(linux_kernel)]
434#[inline]

Callers 1

set_thread_gidFunction · 0.50

Calls 2

retFunction · 0.50
as_rawMethod · 0.45

Tested by

no test coverage detected