Usermode/Syscalls - Add WriteAt/ReadAt syscalls
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / pty.h
index c929e9b..6a18942 100644 (file)
@@ -8,11 +8,16 @@
 #ifndef _ACESS_DEVICES_PTY_H_
 #define _ACESS_DEVICES_PTY_H_
 
+
 #include "../devices.h"
 
-#define PTYIMODE_CANON 0x001
-#define PTYIMODE_ECHO  0x002
-#define PTYIMODE_RAW   0x004
+#define PTYSFLAG_ILOCAL        0x001   //!< Input modes are handled in the server process
+#define PTYSFLAG_SMODE 0x002   //!< Inform server of mode changes by the user
+
+#define PTYIMODE_CANON 0x001   //!< Line-buffered input
+#define PTYIMODE_ECHO  0x002   //!< Echo input characters
+#define PTYIMODE_RAW   0x004   //!< Disable all input processing
+#define PTYIMODE_NLCR  0x008   //!< Translate '\n' to '\r' (for old apps)
 
 #define PTYOMODE_BUFFMT        0x003
 #define PTYBUFFMT_TEXT  0x000
@@ -30,12 +35,12 @@ struct ptydims
        short   H;
        short   PW;
        short   PH;
-};
+} PACKED;
 struct ptymode
 {
        unsigned int    OutputMode;
        unsigned int    InputMode;
-};
+} PACKED;
 
 enum
 {
@@ -44,6 +49,8 @@ enum
        PTY_IOCTL_GETDIMS,
        PTY_IOCTL_SETDIMS,
        PTY_IOCTL_GETID,
+       PTY_IOCTL_SETID,
+       PTY_IOCTL_SETPGRP
 };
 
 #endif

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