Lines Matching refs:master
1 //! Create master and slave virtual pseudo-terminals (PTYs)
17 /// Representation of a master/slave pty pair
23 /// The master port in a virtual pty pair
24 pub master: RawFd,
31 /// Representation of a master with a forked pty
37 /// The master port in a virtual pty pair
38 pub master: RawFd,
44 /// Representation of the Master device in a master/slave pty pair
116 /// master pseudoterminal referred to by `fd`. This is a necessary step towards opening the slave.
129 /// `posix_openpt()` returns a file descriptor to an existing unused pseudoterminal master device.
133 /// A common use case with this function is to open both a master and slave PTY pair. This can be
144 /// // Open a new PTY master
173 /// `ptsname()` returns the name of the slave pseudoterminal device corresponding to the master
176 /// This value is useful for opening the slave pty once the master has already been opened with
200 /// `ptsname_r()` returns the name of the slave pseudoterminal device corresponding to the master
204 /// This value is useful for opening the slave ptty once the master has already been opened with
224 /// Unlock a pseudoterminal master/slave pseudoterminal pair (see
227 /// `unlockpt()` unlocks the slave pseudoterminal device corresponding to the master pseudoterminal
239 /// Create a new pseudoterminal, returning the slave and master file descriptors
259 let mut master = mem::MaybeUninit::<libc::c_int>::uninit();
266 master.as_mut_ptr(),
276 master.as_mut_ptr(),
287 master.as_mut_ptr(),
297 master.as_mut_ptr(),
311 master: master.assume_init(),
319 /// Create a new pseudoterminal, returning the master file descriptor and forked pid.
344 let mut master = mem::MaybeUninit::<libc::c_int>::uninit();
359 let res = libc::forkpty(master.as_mut_ptr(), ptr::null_mut(), term, win);
367 master: master.assume_init(),