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#include <sys/tty.h> |
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)); |
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 |
322static int |
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 --- |