Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/arch/sparc/include/uapi/asm/termios.h
26495 views
1
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2
#ifndef _UAPI_SPARC_TERMIOS_H
3
#define _UAPI_SPARC_TERMIOS_H
4
5
#include <asm/ioctls.h>
6
#include <asm/termbits.h>
7
8
#if defined(__KERNEL__) || defined(__DEFINE_BSD_TERMIOS)
9
struct sgttyb {
10
char sg_ispeed;
11
char sg_ospeed;
12
char sg_erase;
13
char sg_kill;
14
short sg_flags;
15
};
16
17
struct tchars {
18
char t_intrc;
19
char t_quitc;
20
char t_startc;
21
char t_stopc;
22
char t_eofc;
23
char t_brkc;
24
};
25
26
struct ltchars {
27
char t_suspc;
28
char t_dsuspc;
29
char t_rprntc;
30
char t_flushc;
31
char t_werasc;
32
char t_lnextc;
33
};
34
#endif /* __KERNEL__ */
35
36
struct winsize {
37
unsigned short ws_row;
38
unsigned short ws_col;
39
unsigned short ws_xpixel;
40
unsigned short ws_ypixel;
41
};
42
43
#define NCC 8
44
struct termio {
45
unsigned short c_iflag; /* input mode flags */
46
unsigned short c_oflag; /* output mode flags */
47
unsigned short c_cflag; /* control mode flags */
48
unsigned short c_lflag; /* local mode flags */
49
unsigned char c_line; /* line discipline */
50
unsigned char c_cc[NCC]; /* control characters */
51
};
52
53
#endif /* _UAPI_SPARC_TERMIOS_H */
54
55