History log of /freebsd-9.3-release/sys/sys/snoop.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 150298 18-Sep-2005 cognet

Slightly change the API for the SNPSTTY ioctl so that the userland now
provides a file descriptor instead of a dev_t.

Discussed with: phk
MFC after: 3 days


# 139825 07-Jan-2005 imp

/* -> /*- for license, minor formatting changes


# 130640 17-Jun-2004 phk

Second half of the dev_t cleanup.

The big lines are:
NODEV -> NULL
NOUDEV -> NODEV
udev_t -> dev_t
udev2dev() -> findcdev()

Various minor adjustments including handling of userland access to kernel
space struct cdev etc.


# 106767 11-Nov-2002 tmm

Declare the snp ioctl()s to work on udev_t, since that is what they
really do and dev_t is defined differently in kernel and userland.
Return a correctly formed udev from SNPGTTY.

Reviewed by: dd


# 103167 10-Sep-2002 arr

- Spell "these" properly.


# 98746 24-Jun-2002 bde

Include <sys/types.h> in the !_KERNEL case so that this file is
self-sufficient in that case (it needs dev_t). This is normal pollution
for most headers that define ioctl numbers.


# 80326 25-Jul-2001 dd

Move the kernel stuff out of snoop.h. It was only there because some
of the snp* functions needed to be called from tty.c, which is no
longer the case.


# 79864 18-Jul-2001 dd

Keep track of all "struct snoop"'s so that snp_modevent can fail with
EBUSY if there's a device still open.


# 77748 05-Jun-2001 dd

Style and cosmetic cleanups. This driver is now reasonably stlye(9)
compliant. All the variable definitions and function names are
reasonably consistent, and the functions which should be static (i.e.,
all of them) are. Other assorted fixes were made. The majority of
the delta is indentation fixes.

Partially reviewed by: bde


# 77648 03-Jun-2001 dd

Remove unused includes, use *min() inline functions rather than a
home-grown macro, rewrite a confusing conditional in snpdevtotty(),
and change ibuf to 512 bytes instead of 1024 bytes in dsnwrite().

Reviewed by: bde


# 77106 23-May-2001 dd

Add snp_olddisc member to struct snoop; the linedisc'ized snp(4) uses this.

Pointy hat to: dd


# 55205 29-Dec-1999 peter

Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.


# 35256 17-Apr-1998 des

Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.


# 31281 18-Nov-1997 bde

Fixed nonblocking mode. It was per-device instead of per-file.


# 24034 19-Mar-1997 bde

Only export ioctl-related stuff to applications. Include prerequisite
headers (like most other ioctl-related headers).

Didn't fix spelling errors and other warts.


# 12819 14-Dec-1995 phk

A Major staticize sweep. Generates a couple of warnings that I'll deal
with later.
A number of unused vars removed.
A number of unused procs removed or #ifdefed.


# 12071 04-Nov-1995 bde

Moved prototypes for devswitch functions from conf.c and driver sources
to <machine/conf.h>. conf.h was mechanically generated by
`grep ^d_ conf.c >conf.h'. This accounts for part of its ugliness. The
prototypes should be moved back to the driver sources when the functions
are staticalized.


# 10624 08-Sep-1995 bde

Fix benign type mismatches in devsw functions. 82 out of 299 devsw
functions were wrong.


# 8876 30-May-1995 rgrimes

Remove trailing whitespace.


# 7430 28-Mar-1995 bde

Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) that I didn't notice when I fixed
"all" such warnings before.


# 6774 27-Feb-1995 ugen

same


# 6712 25-Feb-1995 pst

(a) remove the pointer to each driver's tty structure array from cdevsw
(b) add a function callback vector to tty drivers that will return a pointer
to a valid tty structure based upon a dev_t
(c) make syscons structures the same size whether or not APM is enabled so
utilities don't crash if NAPM changes (and make the damn kernel compile!)
(d) rewrite /dev/snp ioctl interface so that it is device driver and i386
independant


# 6453 15-Feb-1995 ugen

More changes to support user calls.


# 6446 15-Feb-1995 ugen

Add more flags to snoop device


# 6391 14-Feb-1995 ugen

TS_SNOOP flag added to identify tty is begin snoopped
snoop.h have all structures related to the snp device and stuff