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 16#ifndef _SYS_SNOOP_H_ 17#define _SYS_SNOOP_H_ 18 19#ifndef _KERNEL 20#include <sys/types.h> 21#endif 22#include <sys/ioccom.h> 23 24/* 25 * These are snoop io controls 26 * SNPSTTY accepts a file descriptor as input. 27 */ 28 29#define SNPSTTY _IOW('T', 90, int) 30#define SNPGTTY _IOR('T', 89, dev_t) 31 32/* 33 * These values would be returned by FIONREAD ioctl 34 * instead of number of characters in buffer in case 35 * of specific errors. 36 */ 37#define SNP_OFLOW -1 38#define SNP_TTYCLOSE -2 39#define SNP_DETACH -3 40 41#endif /* !_SYS_SNOOP_H_ */ 42