snoop.h revision 330897
1/*-
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (c) 1995 Ugen J.S.Antsilevich
5 *
6 * Redistribution and use in source forms, with and without modification,
7 * are permitted provided that this entire comment appears intact.
8 *
9 * Redistribution in binary form may occur without any restrictions.
10 * Obviously, it would be nice if you gave credit where credit is due
11 * but requiring it would be too onerous.
12 *
13 * This software is provided ``AS IS'' without any warranties of any kind.
14 *
15 * Snoop stuff.
16 *
17 * $FreeBSD: stable/11/sys/sys/snoop.h 330897 2018-03-14 03:19:51Z eadler $
18 */
19
20#ifndef _SYS_SNOOP_H_
21#define	_SYS_SNOOP_H_
22
23#ifndef _KERNEL
24#include <sys/types.h>
25#endif
26#include <sys/ioccom.h>
27
28/*
29 * These are snoop io controls
30 * SNPSTTY accepts a file descriptor as input.
31 */
32
33#define SNPSTTY       _IOW('T', 90, int)
34#define SNPGTTY       _IOR('T', 89, dev_t)
35
36/*
37 * These values would be returned by FIONREAD ioctl
38 * instead of number of characters in buffer in case
39 * of specific errors.
40 */
41#define SNP_OFLOW		-1
42#define SNP_TTYCLOSE		-2
43#define SNP_DETACH		-3
44
45#endif /* !_SYS_SNOOP_H_ */
46