snp.c (50477) | snp.c (51654) |
---|---|
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 9 * but requiring it would be too onerous. 10 * 11 * This software is provided ``AS IS'' without any warranties of any kind. 12 * 13 * Snoop stuff. 14 * | 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 9 * but requiring it would be too onerous. 10 * 11 * This software is provided ``AS IS'' without any warranties of any kind. 12 * 13 * Snoop stuff. 14 * |
15 * $FreeBSD: head/sys/dev/snp/snp.c 50477 1999-08-28 01:08:13Z peter $ | 15 * $FreeBSD: head/sys/dev/snp/snp.c 51654 1999-09-25 16:21:39Z phk $ |
16 */ 17 18#include "snp.h" 19 20#if NSNP > 0 21 22#include "opt_compat.h" 23#include <sys/param.h> --- 53 unchanged lines hidden (view full) --- 77 78static struct tty * 79snpdevtotty (dev) 80 dev_t dev; 81{ 82 struct cdevsw *cdp; 83 84 cdp = devsw(dev); | 16 */ 17 18#include "snp.h" 19 20#if NSNP > 0 21 22#include "opt_compat.h" 23#include <sys/param.h> --- 53 unchanged lines hidden (view full) --- 77 78static struct tty * 79snpdevtotty (dev) 80 dev_t dev; 81{ 82 struct cdevsw *cdp; 83 84 cdp = devsw(dev); |
85 if (cdp == NULL) 86 return (NULL); 87 return ((*cdp->d_devtotty)(dev)); | 85 if (cdp && cdp->d_flags & D_TTY) 86 return (dev->si_tty); 87 return (NULL); |
88} 89 90#define SNP_INPUT_BUF 5 /* This is even too much,the maximal 91 * interactive mode write is 3 bytes 92 * length for function keys... 93 */ 94 95static int --- 440 unchanged lines hidden --- | 88} 89 90#define SNP_INPUT_BUF 5 /* This is even too much,the maximal 91 * interactive mode write is 3 bytes 92 * length for function keys... 93 */ 94 95static int --- 440 unchanged lines hidden --- |