(fd: BorrowedFd<'_>, pid: Pid)
| 270 | |
| 271 | #[inline] |
| 272 | pub(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. |
nothing calls this directly
no test coverage detected