Lines Matching refs:slave

1 //! Create master and slave virtual pseudo-terminals (PTYs)
17 /// Representation of a master/slave pty pair
25 /// The slave port in a virtual pty pair
26 pub slave: RawFd,
44 /// Representation of the Master device in a master/slave pty pair
112 /// Grant access to a slave pseudoterminal (see
115 /// `grantpt()` changes the mode and owner of the slave pseudoterminal device corresponding to the
116 /// master pseudoterminal referred to by `fd`. This is a necessary step towards opening the slave.
133 /// A common use case with this function is to open both a master and slave PTY pair. This can be
147 /// // Allow a slave to be generated for it
151 /// // Get the name of the slave
154 /// // Try to open the slave
170 /// Get the name of the slave pseudoterminal (see
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
197 /// Get the name of the slave pseudoterminal (see
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
228 /// referred to by `fd`. This must be called before trying to open the slave side of a
239 /// Create a new pseudoterminal, returning the slave and master file descriptors
243 /// If `winsize` is not `None`, the window size of the slave will be set to
245 /// terminal settings of the slave will be set to the values in `termios`.
258 let mut slave = mem::MaybeUninit::<libc::c_int>::uninit();
267 slave.as_mut_ptr(),
277 slave.as_mut_ptr(),
288 slave.as_mut_ptr(),
298 slave.as_mut_ptr(),
312 slave: slave.assume_init(),
323 /// If `winsize` is not `None`, the window size of the slave will be set to
325 /// terminal settings of the slave will be set to the values in `termios`.