Kernel - Changed PTY code to not expose userland server node as a file
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / pty.h
1 /*
2  * Acess2 User Core
3  * - By John Hodge (thePowersGang)
4  * 
5  * acess/devices/pty.h
6  * - PTY Device type IOCtls
7  */
8 #ifndef _ACESS_DEVICES_PTY_H_
9 #define _ACESS_DEVICES_PTY_H_
10
11
12 #include "../devices.h"
13
14 #define PTYIMODE_CANON  0x001
15 #define PTYIMODE_ECHO   0x002
16 #define PTYIMODE_RAW    0x004
17
18 #define PTYOMODE_BUFFMT 0x003
19 #define PTYBUFFMT_TEXT   0x000
20 #define PTYBUFFMT_FB     0x001
21 #define PTYBUFFMT_2DCMD  0x002
22 #define PTYBUFFMT_3DCMD  0x003
23
24 /*
25  * Note: When setting dimensions from a client, it is up to the server what fields are used.
26  * This is usually dependent on the current output mode.
27  */
28 struct ptydims
29 {
30         short   W;
31         short   H;
32         short   PW;
33         short   PH;
34 } PACKED;
35 struct ptymode
36 {
37         unsigned int    OutputMode;
38         unsigned int    InputMode;
39 } PACKED;
40
41 enum
42 {
43         PTY_IOCTL_GETMODE = 4,
44         PTY_IOCTL_SETMODE,
45         PTY_IOCTL_GETDIMS,
46         PTY_IOCTL_SETDIMS,
47         PTY_IOCTL_GETID,
48         PTY_IOCTL_SETID,
49 };
50
51 #endif
52

UCC git Repository :: git.ucc.asn.au