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

Function tcsetpgrp

src/backend/libc/termios/syscalls.rs:183–185  ·  view source on GitHub ↗
(fd: BorrowedFd<'_>, pid: Pid)

Source from the content-addressed store, hash-verified

181
182#[cfg(not(target_os = "wasi"))]
183pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> {
184 unsafe { ret(c::tcsetpgrp(borrowed_fd(fd), pid.as_raw_nonzero().get())) }
185}
186
187#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
188pub(crate) fn tcsetattr(

Callers

nothing calls this directly

Calls 4

borrowed_fdFunction · 0.85
retFunction · 0.50
getMethod · 0.45
as_raw_nonzeroMethod · 0.45

Tested by

no test coverage detected