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

Function tcsetpgrp

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

Source from the content-addressed store, hash-verified

270
271#[inline]
272pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> {
273 let raw_pid: c::c_int = pid.as_raw_nonzero().get();
274 unsafe {
275 ret(syscall_readonly!(
276 __NR_ioctl,
277 fd,
278 c_uint(c::TIOCSPGRP),
279 by_ref(&raw_pid)
280 ))
281 }
282}
283
284/// A wrapper around a conceptual `cfsetspeed` which handles an arbitrary
285/// integer speed value.

Callers

nothing calls this directly

Calls 3

retFunction · 0.50
getMethod · 0.45
as_raw_nonzeroMethod · 0.45

Tested by

no test coverage detected