summaryrefslogtreecommitdiffstats
path: root/share/man/man4/snp.4
diff options
context:
space:
mode:
authorugen <ugen@FreeBSD.org>1995-02-17 18:48:36 +0000
committerugen <ugen@FreeBSD.org>1995-02-17 18:48:36 +0000
commit3627490c74c66d13e7a26ddcb8886f9f3963b8b2 (patch)
treeca6c6866c71e469cb1d7a227e17b7fac5ff43d7c /share/man/man4/snp.4
parent945e0491791312a44a807a1b34c88cddf8038d07 (diff)
downloadFreeBSD-src-3627490c74c66d13e7a26ddcb8886f9f3963b8b2.zip
FreeBSD-src-3627490c74c66d13e7a26ddcb8886f9f3963b8b2.tar.gz
Move ipfirewall.4 & snp.4 facility manpage
to share/man/man4
Diffstat (limited to 'share/man/man4/snp.4')
-rw-r--r--share/man/man4/snp.449
1 files changed, 49 insertions, 0 deletions
diff --git a/share/man/man4/snp.4 b/share/man/man4/snp.4
new file mode 100644
index 0000000..47b97d8
--- /dev/null
+++ b/share/man/man4/snp.4
@@ -0,0 +1,49 @@
+.Dd Februar 17, 1995
+.Dt SNP(4)
+.Os
+.Sh NAME
+
+ snp - tty snoop interface.
+
+.Sh SYNOPSIS
+#include <sys/snoop.h>
+
+.Sh DESCRIPTION
+ /dev/snp? are snoop devices which allow user to attach to any tty
+and watch activities on it. Device can be used by root only.
+ To connect device to tty use special iocontrol SNPSTTY.Argument to
+it is a structure 'snptty'.
+ struct snptty {
+ int st_type;
+ int st_unit;
+ }
+
+st_type - type of tty to attach. Currently supported are :
+ ST_PTY - pseudo-tty devices.
+ ST_VTY - virtual ttys (syscons).
+ ST_SIO - serial ttys.
+
+st_unit - number of tty unit.
+By specifying ever st_type or st_unit -1 user can detach snp
+device from tty.
+
+ SNPGTTY - iocontrol returns current tty attached.
+ FIONREAD - iocontrol returns ever positive value equal to number of
+ characters in read buffer. Also special values defined:
+ SNP_OFLOW - device overflow occured,device automatically
+ detached.
+ SNP_TTYCLOSE - tty still has not been attached.
+ SNP_DETACH - snp device has been detached by user or
+ tty device has been closed and detached
+ automatically.
+
+.Sh SEE ALSO
+
+watch(8), pty(4), sio(4)
+.Sh BUGS
+
+While in line mode,user input can't be seen.
+Has no ability to write to attached tty device.
+
+.Sh HISTORY
+FreeBSD 2.1 by Ugen J.S.Antsilevich <ugen@NetVision.net.il>
OpenPOWER on IntegriCloud