Deleted Added
full compact
snp.c (12813) snp.c (12819)
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due

--- 8 unchanged lines hidden (view full) ---

17
18#if NSNP > 0
19
20#include <sys/param.h>
21#include <sys/systm.h>
22#include <sys/ioctl.h>
23#include <sys/ioctl_compat.h> /* Oooh..We need O/NTTYDISC */
24#include <sys/proc.h>
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due

--- 8 unchanged lines hidden (view full) ---

17
18#if NSNP > 0
19
20#include <sys/param.h>
21#include <sys/systm.h>
22#include <sys/ioctl.h>
23#include <sys/ioctl_compat.h> /* Oooh..We need O/NTTYDISC */
24#include <sys/proc.h>
25#define TTYDEFCHARS
26#include <sys/tty.h>
25#include <sys/tty.h>
27#undef TTYDEFCHARS
28#include <sys/file.h>
29#include <sys/conf.h>
30#include <sys/uio.h>
31#include <sys/kernel.h>
32#include <sys/malloc.h>
33#ifdef DEVFS
34#include <sys/devfsext.h>
35#endif /*DEVFS*/

--- 16 unchanged lines hidden (view full) ---

52
53#ifndef MIN
54#define MIN(a,b) (((a)<(b))?(a):(b))
55#endif
56
57static struct snoop snoopsw[NSNP];
58
59static struct tty *devtotty __P((dev_t dev));
26#include <sys/file.h>
27#include <sys/conf.h>
28#include <sys/uio.h>
29#include <sys/kernel.h>
30#include <sys/malloc.h>
31#ifdef DEVFS
32#include <sys/devfsext.h>
33#endif /*DEVFS*/

--- 16 unchanged lines hidden (view full) ---

50
51#ifndef MIN
52#define MIN(a,b) (((a)<(b))?(a):(b))
53#endif
54
55static struct snoop snoopsw[NSNP];
56
57static struct tty *devtotty __P((dev_t dev));
58static int snp_detach __P((struct snoop *snp));
60
61static struct tty *
62devtotty (dev)
63 dev_t dev;
64{
65 if (major(dev) > nchrdev)
66 return (NULL); /* no such device available */
67

--- 247 unchanged lines hidden (view full) ---

315 * snp_tty == NULL is for inactive snoop devices.
316 */
317 snp->snp_tty = NULL;
318 snp->snp_target = -1;
319 return (0);
320}
321
322
59
60static struct tty *
61devtotty (dev)
62 dev_t dev;
63{
64 if (major(dev) > nchrdev)
65 return (NULL); /* no such device available */
66

--- 247 unchanged lines hidden (view full) ---

314 * snp_tty == NULL is for inactive snoop devices.
315 */
316 snp->snp_tty = NULL;
317 snp->snp_target = -1;
318 return (0);
319}
320
321
323int
322static int
324snp_detach(snp)
325 struct snoop *snp;
326{
327 struct tty *tp;
328
329 snp->snp_base = 0;
330 snp->snp_len = 0;
331

--- 210 unchanged lines hidden ---
323snp_detach(snp)
324 struct snoop *snp;
325{
326 struct tty *tp;
327
328 snp->snp_base = 0;
329 snp->snp_len = 0;
330

--- 210 unchanged lines hidden ---