ioctl_compat.h (169068) | ioctl_compat.h (179784) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ioctl_compat.h 8.4 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ioctl_compat.h 8.4 (Berkeley) 1/21/94 |
35 * $FreeBSD: head/sys/sys/ioctl_compat.h 169068 2007-04-27 11:19:05Z benjsc $ | 35 * $FreeBSD: head/sys/sys/ioctl_compat.h 179784 2008-06-14 10:42:18Z ed $ |
36 */ 37 38#ifndef _SYS_IOCTL_COMPAT_H_ 39#define _SYS_IOCTL_COMPAT_H_ 40 | 36 */ 37 38#ifndef _SYS_IOCTL_COMPAT_H_ 39#define _SYS_IOCTL_COMPAT_H_ 40 |
41#include <sys/ttychars.h> 42#include <sys/ttydev.h> | 41#ifdef _KERNEL |
43 | 42 |
44#ifdef USE_OLD_TTY 45#warning "Old BSD tty API used and depends on COMPAT_43TTY. Use termios.h instead" 46#endif 47 | |
48struct tchars { 49 char t_intrc; /* interrupt */ 50 char t_quitc; /* quit */ 51 char t_startc; /* start output */ 52 char t_stopc; /* stop output */ 53 char t_eofc; /* end-of-file */ 54 char t_brkc; /* input delimiter (like nl) */ 55}; --- 16 unchanged lines hidden (view full) --- 72 char sg_ispeed; /* input speed */ 73 char sg_ospeed; /* output speed */ 74 char sg_erase; /* erase character */ 75 char sg_kill; /* kill character */ 76 short sg_flags; /* mode flags */ 77}; 78#endif 79 | 43struct tchars { 44 char t_intrc; /* interrupt */ 45 char t_quitc; /* quit */ 46 char t_startc; /* start output */ 47 char t_stopc; /* stop output */ 48 char t_eofc; /* end-of-file */ 49 char t_brkc; /* input delimiter (like nl) */ 50}; --- 16 unchanged lines hidden (view full) --- 67 char sg_ispeed; /* input speed */ 68 char sg_ospeed; /* output speed */ 69 char sg_erase; /* erase character */ 70 char sg_kill; /* kill character */ 71 short sg_flags; /* mode flags */ 72}; 73#endif 74 |
80#ifdef USE_OLD_TTY 81# undef TIOCGETD 82# define TIOCGETD _IOR('t', 0, int) /* get line discipline */ 83# undef TIOCSETD 84# define TIOCSETD _IOW('t', 1, int) /* set line discipline */ 85#else 86# define OTIOCGETD _IOR('t', 0, int) /* get line discipline */ 87# define OTIOCSETD _IOW('t', 1, int) /* set line discipline */ 88#endif | 75#define OTIOCGETD _IOR('t', 0, int) /* get line discipline */ 76#define OTIOCSETD _IOW('t', 1, int) /* set line discipline */ |
89#define TIOCHPCL _IO('t', 2) /* hang up on last close */ 90#define TIOCGETP _IOR('t', 8,struct sgttyb)/* get parameters -- gtty */ 91#define TIOCSETP _IOW('t', 9,struct sgttyb)/* set parameters -- stty */ 92#define TIOCSETN _IOW('t',10,struct sgttyb)/* as above, but no flushtty*/ 93#define TIOCSETC _IOW('t',17,struct tchars)/* set special characters */ 94#define TIOCGETC _IOR('t',18,struct tchars)/* get special characters */ 95#define TANDEM 0x00000001 /* send stopc on out q full */ 96#define CBREAK 0x00000002 /* half-cooked mode */ --- 59 unchanged lines hidden (view full) --- 156#define LPASS8 (PASS8>>16) 157#define LCTLECH (CTLECH>>16) 158#define LPENDIN (PENDIN>>16) 159#define LDECCTQ (DECCTQ>>16) 160#define LNOFLSH (NOFLSH>>16) 161#define TIOCSLTC _IOW('t',117,struct ltchars)/* set local special chars*/ 162#define TIOCGLTC _IOR('t',116,struct ltchars)/* get local special chars*/ 163#define OTIOCCONS _IO('t', 98) /* for hp300 -- sans int arg */ | 77#define TIOCHPCL _IO('t', 2) /* hang up on last close */ 78#define TIOCGETP _IOR('t', 8,struct sgttyb)/* get parameters -- gtty */ 79#define TIOCSETP _IOW('t', 9,struct sgttyb)/* set parameters -- stty */ 80#define TIOCSETN _IOW('t',10,struct sgttyb)/* as above, but no flushtty*/ 81#define TIOCSETC _IOW('t',17,struct tchars)/* set special characters */ 82#define TIOCGETC _IOR('t',18,struct tchars)/* get special characters */ 83#define TANDEM 0x00000001 /* send stopc on out q full */ 84#define CBREAK 0x00000002 /* half-cooked mode */ --- 59 unchanged lines hidden (view full) --- 144#define LPASS8 (PASS8>>16) 145#define LCTLECH (CTLECH>>16) 146#define LPENDIN (PENDIN>>16) 147#define LDECCTQ (DECCTQ>>16) 148#define LNOFLSH (NOFLSH>>16) 149#define TIOCSLTC _IOW('t',117,struct ltchars)/* set local special chars*/ 150#define TIOCGLTC _IOR('t',116,struct ltchars)/* get local special chars*/ 151#define OTIOCCONS _IO('t', 98) /* for hp300 -- sans int arg */ |
152 153#endif /* _KERNEL */ 154 155/* XXX publish these so stty(1) can still report them */ |
|
164#define OTTYDISC 0 165#define NETLDISC 1 166#define NTTYDISC 2 167 168#endif /* !_SYS_IOCTL_COMPAT_H_ */ | 156#define OTTYDISC 0 157#define NETLDISC 1 158#define NTTYDISC 2 159 160#endif /* !_SYS_IOCTL_COMPAT_H_ */ |