tmm
1d05c95940
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
2002-11-11 10:45:31 +00:00
arr
d229380ad8
- Spell "these" properly.
2002-09-10 03:58:44 +00:00
bde
c7ec6be4fb
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.
2002-06-24 11:45:45 +00:00
dd
1caa1807e0
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.
2001-07-25 14:47:56 +00:00
dd
f582e5317a
Keep track of all "struct snoop"'s so that snp_modevent can fail with
...
EBUSY if there's a device still open.
2001-07-18 13:39:43 +00:00
dd
c35e39a5cb
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
2001-06-05 05:00:17 +00:00
dd
eaa7d6fe18
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
2001-06-03 05:17:39 +00:00
dd
7c73050498
Add snp_olddisc member to struct snoop; the linedisc'ized snp(4) uses this.
...
Pointy hat to: dd
2001-05-24 00:43:44 +00:00
peter
15b9bcb121
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.
1999-12-29 04:46:21 +00:00
des
396b114475
Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.
1998-04-17 22:37:19 +00:00
bde
f4aec38b05
Fixed nonblocking mode. It was per-device instead of per-file.
1997-11-18 16:13:06 +00:00
bde
9af964caef
Only export ioctl-related stuff to applications. Include prerequisite
...
headers (like most other ioctl-related headers).
Didn't fix spelling errors and other warts.
1997-03-19 04:37:26 +00:00
phk
63ec2c0ae9
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.
1995-12-14 08:32:45 +00:00
bde
336a6f070b
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.
1995-11-04 13:25:33 +00:00
bde
b25431cbea
Fix benign type mismatches in devsw functions. 82 out of 299 devsw
...
functions were wrong.
1995-09-08 11:09:15 +00:00
rgrimes
c86f0c7a71
Remove trailing whitespace.
1995-05-30 08:16:23 +00:00
bde
4f64fe43e7
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.
1995-03-28 07:58:53 +00:00
ugen
455c4accc3
same
1995-02-27 19:47:53 +00:00
pst
1dcb420b64
(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
1995-02-25 20:09:44 +00:00
ugen
84d9700dbc
More changes to support user calls.
1995-02-15 18:41:21 +00:00
ugen
02173ec0ed
Add more flags to snoop device
1995-02-15 16:33:16 +00:00
ugen
81bdfb00d3
TS_SNOOP flag added to identify tty is begin snoopped
...
snoop.h have all structures related to the snp device and stuff
1995-02-14 21:23:48 +00:00