• Home
  • Raw
  • Download

Lines Matching full:master

1 //! Create master and slave virtual pseudo-terminals (PTYs)
21 /// Representation of a master/slave pty pair
26 /// The master port in a virtual pty pair
27 pub master: OwnedFd, field
34 /// Representation of a master with a forked pty
39 /// The master port in a virtual pty pair
40 pub master: OwnedFd,
46 /// Representation of the Master device in a master/slave pty pair
100 /// master pseudoterminal referred to by `fd`. This is a necessary step towards opening the slave.
113 /// `posix_openpt()` returns a file descriptor to an existing unused pseudoterminal master device.
117 /// A common use case with this function is to open both a master and slave PTY pair. This can be
128 /// // Open a new PTY master
157 /// `ptsname()` returns the name of the slave pseudoterminal device corresponding to the master
160 /// This value is useful for opening the slave pty once the master has already been opened with
184 /// `ptsname_r()` returns the name of the slave pseudoterminal device corresponding to the master
188 /// This value is useful for opening the slave ptty once the master has already been opened with
207 /// Unlock a pseudoterminal master/slave pseudoterminal pair (see
210 /// `unlockpt()` unlocks the slave pseudoterminal device corresponding to the master pseudoterminal
222 /// Create a new pseudoterminal, returning the slave and master file descriptors
243 let mut master = mem::MaybeUninit::<libc::c_int>::uninit(); in openpty() localVariable
250 master.as_mut_ptr(), in openpty()
260 master.as_mut_ptr(), in openpty()
271 master.as_mut_ptr(), in openpty()
281 master.as_mut_ptr(), in openpty()
295 master: OwnedFd::from_raw_fd(master.assume_init()), in openpty()
303 /// Create a new pseudoterminal, returning the master file descriptor and forked pid.
329 let mut master = mem::MaybeUninit::<libc::c_int>::uninit(); localVariable
344 let res = unsafe { libc::forkpty(master.as_mut_ptr(), ptr::null_mut(), term, win) };
352 master: unsafe { OwnedFd::from_raw_fd( master.assume_init() ) },