| Main index | Section 4 | 日本語 | Options |
#include <sys/snoop.h>
To associate a given snp device with a tty to be observed, open the snp device and a tty device, and then issue the SNPSTTY ioctl on snp device. The argument passed to the ioctl(2) is the address of a variable of type int, holding the file descriptor of a tty device. To detach the snp device from a tty use a pointer to a value of -1.
The SNPGTTY ioctl returns information about the current tty attached to the open snp device.
The FIONREAD ioctl returns a positive value equal to the number of characters in a read buffer. Special values defined are:
| SNP_TTYCLOSE | |
| tty not attached. | |
| SNP_DETACH | snp device has been detached by user or tty device has been closed and detached. |
| SNP (4) | September 24, 2022 |
| Main index | Section 4 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
