KallistiOS
git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
termios.h
Go to the documentation of this file.
1
/* KallistiOS ##version##
2
3
sys/termios.h
4
Copyright (C) 2024 Andress Barajas
5
6
*/
7
8
/** \file sys/termios.h
9
\brief Header for terminal I/O control.
10
\ingroup vfs_posix
11
12
This file contains definitions for terminal I/O control operations, as specified by
13
the POSIX standard. The termios structure and associated constants and functions
14
are used to configure and control asynchronous communications ports.
15
16
\author Andress Barajas
17
*/
18
19
#ifndef __SYS_TERMIOS_H
20
#define __SYS_TERMIOS_H
21
22
#include <sys/cdefs.h>
23
24
__BEGIN_DECLS
25
26
#include <stdint.h>
27
28
#define NCCS 32
29
30
typedef
uint32_t
tcflag_t
;
31
typedef
uint8_t
cc_t
;
32
typedef
uint32_t
speed_t
;
33
34
struct
termios
{
35
tcflag_t
c_iflag
;
/* input modes */
36
tcflag_t
c_oflag
;
/* output modes */
37
tcflag_t
c_cflag
;
/* control modes */
38
tcflag_t
c_lflag
;
/* local modes */
39
cc_t
c_cc
[
NCCS
];
/* control chars */
40
speed_t
c_ispeed
;
/* input speed */
41
speed_t
c_ospeed
;
/* output speed */
42
};
43
44
int
tcgetattr
(
int
fd,
struct
termios
*termios_p);
45
46
__END_DECLS
47
48
#endif
/* __SYS_TERMIOS_H */
termios
Definition
termios.h:34
termios::c_ispeed
speed_t c_ispeed
Definition
termios.h:40
termios::c_ospeed
speed_t c_ospeed
Definition
termios.h:41
termios::c_cflag
tcflag_t c_cflag
Definition
termios.h:37
termios::c_cc
cc_t c_cc[NCCS]
Definition
termios.h:39
termios::c_iflag
tcflag_t c_iflag
Definition
termios.h:35
termios::c_lflag
tcflag_t c_lflag
Definition
termios.h:38
termios::c_oflag
tcflag_t c_oflag
Definition
termios.h:36
tcgetattr
int tcgetattr(int fd, struct termios *termios_p)
NCCS
#define NCCS
Definition
termios.h:28
speed_t
uint32_t speed_t
Definition
termios.h:32
tcflag_t
uint32_t tcflag_t
Definition
termios.h:30
cc_t
uint8_t cc_t
Definition
termios.h:31
include
sys
termios.h
Generated by
1.12.0