2.3.3-74
[glibc.git] / sysdeps / unix / sysv / aix / bits / ioctl-types.h
blobd8fe8c8d5b4405c5524e0f73b351773d22d126a7
1 /* Structure types for pre-termios terminal ioctls. AIX version.
2 Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #ifndef _SYS_IOCTL_H
21 # error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
22 #endif
24 /* Constants for use with `ioctl'. */
25 #define TIOC ('T' << 8)
26 #define TCGETS (TIOC | 1)
27 #define TCSETS (TIOC | 2)
28 #define TCSETSW (TIOC | 3)
29 #define TCSETSF (TIOC | 4)
30 #define TCGETA (TIOC | 5)
31 #define TCSETA (TIOC | 6)
32 #define TCSETAW (TIOC | 7)
33 #define TCSETAF (TIOC | 8)
34 #define TCSBRK (TIOC | 9)
35 #define TCSBREAK (TIOC | 10)
36 #define TCXONC (TIOC | 11)
37 #define TCFLSH (TIOC | 12)
38 #define TCGLEN (TIOC | 13)
39 #define TCSLEN (TIOC | 14)
40 #define TCSAK (TIOC | 15)
41 #define TCQSAK (TIOC | 16)
42 #define TCTRUST (TIOC | 17)
43 #define TCQTRUST (TIOC | 18)
44 #define TCSMAP (TIOC | 19)
45 #define TCGMAP (TIOC | 20)
46 #define TCKEP (TIOC | 21)
47 #define TCGSAK (TIOC | 22)
48 #define TCLOOP (TIOC | 23)
49 #define TCVPD (TIOC | 24)
50 #define TCREG (TIOC | 25)
51 #define TCGSTATUS (TIOC | 26)
52 #define TCSCONTROL (TIOC | 27)
53 #define TCSCSMAP (TIOC | 28)
54 #define TCGCSMAP (TIOC | 29)
55 #define TCMGR TCSAK
56 #define TCQMGR TCQSAK
57 #define TIONREAD FIONREAD
61 struct winsize
63 unsigned short int ws_row;
64 unsigned short int ws_col;
65 unsigned short int ws_xpixel;
66 unsigned short int ws_ypixel;
69 #define NCC 8
70 struct termio
72 unsigned short int c_iflag; /* input mode flags */
73 unsigned short int c_oflag; /* output mode flags */
74 unsigned short int c_cflag; /* control mode flags */
75 unsigned short int c_lflag; /* local mode flags */
76 char c_line; /* line discipline */
77 unsigned char c_cc[NCC]; /* control characters */
80 /* modem lines */
81 #define TIOCM_LE 0x001
82 #define TIOCM_DTR 0x002
83 #define TIOCM_RTS 0x004
84 #define TIOCM_ST 0x008
85 #define TIOCM_SR 0x010
86 #define TIOCM_CTS 0x020
87 #define TIOCM_CAR 0x040
88 #define TIOCM_RNG 0x080
89 #define TIOCM_DSR 0x100
90 #define TIOCM_CD TIOCM_CAR
91 #define TIOCM_RI TIOCM_RNG