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

Function unlockpt

src/pty.rs:150–152  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

148/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Allocation.html#index-unlockpt
149#[inline]
150pub fn unlockpt<Fd: AsFd>(fd: Fd) -> io::Result<()> {
151 backend::pty::syscalls::unlockpt(fd.as_fd())
152}
153
154/// `grantpt(fd)`—Grant access to the user side of a pseudoterminal.
155///

Callers 2

openpty_basicFunction · 0.50
openpty_get_peerFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 2

openpty_basicFunction · 0.40
openpty_get_peerFunction · 0.40