1#ifndef _UAPI_ALPHA_TERMIOS_H 2#define _UAPI_ALPHA_TERMIOS_H 3 4#include <asm/ioctls.h> 5#include <asm/termbits.h> 6 7struct sgttyb { 8 char sg_ispeed; 9 char sg_ospeed; 10 char sg_erase; 11 char sg_kill; 12 short sg_flags; 13}; 14 15struct tchars { 16 char t_intrc; 17 char t_quitc; 18 char t_startc; 19 char t_stopc; 20 char t_eofc; 21 char t_brkc; 22}; 23 24struct ltchars { 25 char t_suspc; 26 char t_dsuspc; 27 char t_rprntc; 28 char t_flushc; 29 char t_werasc; 30 char t_lnextc; 31}; 32 33struct winsize { 34 unsigned short ws_row; 35 unsigned short ws_col; 36 unsigned short ws_xpixel; 37 unsigned short ws_ypixel; 38}; 39 40#define NCC 8 41struct termio { 42 unsigned short c_iflag; /* input mode flags */ 43 unsigned short c_oflag; /* output mode flags */ 44 unsigned short c_cflag; /* control mode flags */ 45 unsigned short c_lflag; /* local mode flags */ 46 unsigned char c_line; /* line discipline */ 47 unsigned char c_cc[NCC]; /* control characters */ 48}; 49 50/* 51 * c_cc characters in the termio structure. Oh, how I love being 52 * backwardly compatible. Notice that character 4 and 5 are 53 * interpreted differently depending on whether ICANON is set in 54 * c_lflag. If it's set, they are used as _VEOF and _VEOL, otherwise 55 * as _VMIN and V_TIME. This is for compatibility with OSF/1 (which 56 * is compatible with sysV)... 57 */ 58#define _VINTR 0 59#define _VQUIT 1 60#define _VERASE 2 61#define _VKILL 3 62#define _VEOF 4 63#define _VMIN 4 64#define _VEOL 5 65#define _VTIME 5 66#define _VEOL2 6 67#define _VSWTC 7 68 69 70#endif /* _UAPI_ALPHA_TERMIOS_H */ 71