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 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef __PTY_H |
---|
15 | #define __PTY_H |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems.h> |
---|
22 | |
---|
23 | #ifndef MAX_PTYS |
---|
24 | #define MAX_PTYS 16 |
---|
25 | #endif |
---|
26 | |
---|
27 | char * get_pty(int socket); |
---|
28 | |
---|
29 | rtems_device_driver pty_initialize( |
---|
30 | rtems_device_major_number major, |
---|
31 | rtems_device_minor_number minor, |
---|
32 | void *arg); |
---|
33 | rtems_device_driver pty_open( |
---|
34 | rtems_device_major_number major, |
---|
35 | rtems_device_minor_number minor, |
---|
36 | void * arg); |
---|
37 | rtems_device_driver pty_close( |
---|
38 | rtems_device_major_number major, |
---|
39 | rtems_device_minor_number minor, |
---|
40 | void * arg); |
---|
41 | rtems_device_driver pty_read( |
---|
42 | rtems_device_major_number major, |
---|
43 | rtems_device_minor_number minor, |
---|
44 | void * arg); |
---|
45 | rtems_device_driver pty_write( |
---|
46 | rtems_device_major_number major, |
---|
47 | rtems_device_minor_number minor, |
---|
48 | void * arg); |
---|
49 | rtems_device_driver pty_control( |
---|
50 | rtems_device_major_number major, |
---|
51 | rtems_device_minor_number minor, |
---|
52 | void * arg); |
---|
53 | |
---|
54 | |
---|
55 | #define PTY_DRIVER_TABLE_ENTRY \ |
---|
56 | { pty_initialize , pty_open , pty_close , \ |
---|
57 | pty_read , pty_write , pty_control } |
---|
58 | |
---|
59 | #ifdef __cplusplus |
---|
60 | } |
---|
61 | #endif |
---|
62 | |
---|
63 | #endif |
---|