*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> snp (4)              



NAME    [Toc]    [Back]

     snp -- tty snoop interface

SYNOPSIS    [Toc]    [Back]

     #include <sys/snoop.h>

     ioctl(fd, SNPSTTY, &dev);

     ioctl(fd, SNPGTTY, &dev);

     ioctl(fd, FIONREAD, &result);

DESCRIPTION    [Toc]    [Back]

     /dev/snp? are snoop devices which allow users to attach to any tty and
     watch activities on it.  The kernel must be compiled with device snp, or
     the snp module must be loaded, for these devices to be available.

     To associate a given snp device with a tty to be observed, open the snp
     device and then use the SNPSTTY ioctl.  The argument passed to the
     ioctl(2) is the address of a variable of type udev_t.  To detach the snp
     device from a tty use a pointer to a value of NODEV.

     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_OFLOW	   device overflow occurred, device detached.

     SNP_TTYCLOSE  tty not attached.

     SNP_DETACH    snp device has been detached by user or tty device has been
		   closed and detached.

SEE ALSO    [Toc]    [Back]

     pty(4), sio(4), kldload(8), watch(8)

BUGS    [Toc]    [Back]

     Caveat emptor!  This manual page is horribly stale and wildly inaccurate
     in some places.

     While in line mode, user input cannot be seen.  No signals may be sent to
     the observed tty.

AUTHORS    [Toc]    [Back]

     Ugen J.S. Antsilevich <ugen@NetVision.net.il>

HISTORY    [Toc]    [Back]

     The snp device first appeared in FreeBSD 2.1.

FreeBSD 5.2.1		       February 24, 1995		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
watch FreeBSD snoop on another tty line
tirdwr IRIX Transport Interface read/write interface STREAMS module
diag2 HP-UX interface for diagnostic logging and interface to processors
if_indextoname Tru64 Map an interface index to an interface name
if_nametoindex Tru64 Map an interface name to an interface index
ifup Linux bring a network interface up ifdown - take a network interface down
pci_enable_io FreeBSD PCI bus interface
pci FreeBSD PCI bus interface
pci_get_powerstate FreeBSD PCI bus interface
pci_set_powerstate FreeBSD PCI bus interface
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service