RTEMS 6.1-rc2
Loading...
Searching...
No Matches
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
19extern "C" {
20#endif
21
22#include <rtems/termiostypes.h>
23
24#define RTEMS_PTY_SB_MAX 16
25
26typedef struct {
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")];
39
40const char *rtems_pty_initialize(rtems_pty_context *pty, uintptr_t unique);
41
42static inline const char *rtems_pty_get_path(const rtems_pty_context *pty)
43{
44 return pty->name;
45}
46
47void rtems_pty_close_socket(rtems_pty_context *pty);
48
49void rtems_pty_set_socket(rtems_pty_context *pty, int socket);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif
Definition: pty.h:26
Termios device context.
Definition: termiosdevice.h:68
Definition: termiostypes.h:94
Definition: mongoose.c:462