RTEMS
6.1-rc1
cpukit
include
rtems
pty.h
Go to the documentation of this file.
1
7
/*
8
* Copyright (c) 2001 Fernando Ruiz Casas <fruizcasas@gmail.com>
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
15
#ifndef _RTEMS_PTY_H
16
#define _RTEMS_PTY_H
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
#include <
rtems/termiostypes.h
>
23
24
#define RTEMS_PTY_SB_MAX 16
25
26
typedef
struct
{
27
rtems_termios_device_context
base;
28
rtems_termios_tty
*ttyp;
29
tcflag_t c_cflag;
30
int
socket
;
31
int
last_cr;
32
unsigned
iac_mode;
33
unsigned
char
sb_buf[RTEMS_PTY_SB_MAX];
34
int
sb_ind;
35
int
width;
36
int
height;
37
char
name[
sizeof
(
"/dev/pty18446744073709551615"
)];
38
}
rtems_pty_context
;
39
40
const
char
*rtems_pty_initialize(
rtems_pty_context
*pty, uintptr_t unique);
41
42
static
inline
const
char
*rtems_pty_get_path(
const
rtems_pty_context
*pty)
43
{
44
return
pty->name;
45
}
46
47
void
rtems_pty_close_socket(
rtems_pty_context
*pty);
48
49
void
rtems_pty_set_socket(
rtems_pty_context
*pty,
int
socket
);
50
51
#ifdef __cplusplus
52
}
53
#endif
54
55
#endif
rtems_pty_context
Definition:
pty.h:26
rtems_termios_device_context
Termios device context.
Definition:
termiosdevice.h:68
rtems_termios_tty
Definition:
termiostypes.h:94
socket
Definition:
mongoose.c:462
termiostypes.h
Generated by
1.9.4