RTEMS
5.1
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
h
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
cpukit
include
rtems
pty.h
1
/*
2
* /dev/ptyXX (A first version for pseudo-terminals)
3
*
4
* Author: Fernando RUIZ CASAS (fernando.ruiz@ctv.es)
5
* May 2001
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
#ifndef _RTEMS_PTY_H
13
#define _RTEMS_PTY_H
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
#include <
rtems/termiostypes.h
>
20
21
#define RTEMS_PTY_SB_MAX 16
22
23
typedef
struct
{
24
rtems_termios_device_context
base;
25
rtems_termios_tty
*ttyp;
26
tcflag_t c_cflag;
27
int
socket
;
28
int
last_cr;
29
unsigned
iac_mode;
30
unsigned
char
sb_buf[RTEMS_PTY_SB_MAX];
31
int
sb_ind;
32
int
width;
33
int
height;
34
char
name[
sizeof
(
"/dev/pty18446744073709551615"
)];
35
}
rtems_pty_context
;
36
37
const
char
*rtems_pty_initialize(
rtems_pty_context
*pty, uintptr_t unique);
38
39
RTEMS_INLINE_ROUTINE
const
char
*rtems_pty_get_path(
const
rtems_pty_context
*pty)
40
{
41
return
pty->name;
42
}
43
44
void
rtems_pty_close_socket(
rtems_pty_context
*pty);
45
46
void
rtems_pty_set_socket(
rtems_pty_context
*pty,
int
socket
);
47
48
#ifdef __cplusplus
49
}
50
#endif
51
52
#endif
rtems_pty_context
Definition:
pty.h:23
rtems_termios_device_context
Termios device context.
Definition:
termiostypes.h:75
socket
Definition:
mongoose.c:456
termiostypes.h
rtems_termios_tty
Definition:
termiostypes.h:283
RTEMS_INLINE_ROUTINE
#define RTEMS_INLINE_ROUTINE
Definition:
basedefs.h:66
Generated by
1.8.15