Back to index

glibc  2.9
ioctl-types.h
Go to the documentation of this file.
00001 /* Structure types for pre-termios terminal ioctls.  AIX version.
00002    Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifndef _SYS_IOCTL_H
00021 # error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
00022 #endif
00023 
00024 /* Constants for use with `ioctl'.  */
00025 #define TIOC         ('T' << 8)
00026 #define TCGETS              (TIOC | 1)
00027 #define TCSETS              (TIOC | 2)
00028 #define TCSETSW             (TIOC | 3)
00029 #define TCSETSF             (TIOC | 4)
00030 #define TCGETA              (TIOC | 5)
00031 #define TCSETA              (TIOC | 6)
00032 #define TCSETAW             (TIOC | 7)
00033 #define TCSETAF             (TIOC | 8)
00034 #define TCSBRK              (TIOC | 9)
00035 #define TCSBREAK     (TIOC | 10)
00036 #define TCXONC              (TIOC | 11)
00037 #define TCFLSH              (TIOC | 12)
00038 #define TCGLEN              (TIOC | 13)
00039 #define TCSLEN              (TIOC | 14)
00040 #define TCSAK        (TIOC | 15)
00041 #define TCQSAK              (TIOC | 16)
00042 #define TCTRUST             (TIOC | 17)
00043 #define TCQTRUST     (TIOC | 18)
00044 #define TCSMAP              (TIOC | 19)
00045 #define TCGMAP              (TIOC | 20)
00046 #define TCKEP        (TIOC | 21)
00047 #define TCGSAK              (TIOC | 22)
00048 #define TCLOOP              (TIOC | 23)
00049 #define TCVPD        (TIOC | 24)
00050 #define TCREG        (TIOC | 25)
00051 #define TCGSTATUS    (TIOC | 26)
00052 #define TCSCONTROL   (TIOC | 27)
00053 #define TCSCSMAP     (TIOC | 28)
00054 #define TCGCSMAP     (TIOC | 29)
00055 #define TCMGR        TCSAK
00056 #define TCQMGR              TCQSAK
00057 #define TIONREAD     FIONREAD
00058 
00059 
00060 
00061 struct winsize
00062 {
00063   unsigned short int ws_row;
00064   unsigned short int ws_col;
00065   unsigned short int ws_xpixel;
00066   unsigned short int ws_ypixel;
00067 };
00068 
00069 #define NCC 8
00070 struct termio
00071 {
00072   unsigned short int c_iflag;             /* input mode flags */
00073   unsigned short int c_oflag;             /* output mode flags */
00074   unsigned short int c_cflag;             /* control mode flags */
00075   unsigned short int c_lflag;             /* local mode flags */
00076   char c_line;                            /* line discipline */
00077   unsigned char c_cc[NCC];         /* control characters */
00078 };
00079 
00080 /* modem lines */
00081 #define TIOCM_LE     0x001
00082 #define TIOCM_DTR    0x002
00083 #define TIOCM_RTS    0x004
00084 #define TIOCM_ST     0x008
00085 #define TIOCM_SR     0x010
00086 #define TIOCM_CTS    0x020
00087 #define TIOCM_CAR    0x040
00088 #define TIOCM_RNG    0x080
00089 #define TIOCM_DSR    0x100
00090 #define TIOCM_CD     TIOCM_CAR
00091 #define TIOCM_RI     TIOCM_RNG