summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-21 07:53:10 -0400
committermidipix <writeonce@midipix.org>2016-08-22 08:59:52 -0400
commit5ea20e26018754a34c7f535ec6d6d8ba5d190583 (patch)
treefaafd14817b63b442e581dbd52395236756028c4 /include
parent5d0788a673cce9069a216768c03aa606d417389d (diff)
downloadntapi-5ea20e26018754a34c7f535ec6d6d8ba5d190583.tar.bz2
ntapi-5ea20e26018754a34c7f535ec6d6d8ba5d190583.tar.xz
pty layer: __ntapi_pty_inherit_runtime_ctty(): implementation and integration.
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_process.h7
-rw-r--r--include/ntapi/nt_tty.h6
-rw-r--r--include/ntapi/ntapi.h1
3 files changed, 12 insertions, 2 deletions
diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h
index a1ef3a2..e03dec0 100644
--- a/include/ntapi/nt_process.h
+++ b/include/ntapi/nt_process.h
@@ -451,9 +451,9 @@ typedef struct _nt_runtime_data {
void * hstdin;
void * hstdout;
void * hstderr;
+ void * hctty;
void * hjob;
void * hsession;
- void * hpty;
void * hdebug;
void * hlog;
void * hready;
@@ -498,7 +498,10 @@ typedef struct _nt_runtime_data {
int32_t peb_argc;
wchar16_t ** peb_wargv;
wchar16_t ** peb_wenvp;
- uintptr_t ptyany[4];
+ uintptr_t ptyin [4];
+ uintptr_t ptyout[4];
+ uintptr_t ptyerr[4];
+ uintptr_t ptyctl[4];
uint32_t sa_queue [2];
uint32_t sa_block [2];
void * sa_handler[64];
diff --git a/include/ntapi/nt_tty.h b/include/ntapi/nt_tty.h
index 16fd43b..7dd3baf 100644
--- a/include/ntapi/nt_tty.h
+++ b/include/ntapi/nt_tty.h
@@ -11,6 +11,7 @@
#include <psxtypes/psxtypes.h>
#include "nt_object.h"
+#include "nt_process.h"
#include "nt_port.h"
#include "nt_termios.h"
@@ -394,6 +395,11 @@ typedef int32_t __stdcall ntapi_pty_inherit(
__in nt_pty_client_info * client_info);
+typedef int32_t __stdcall ntapi_pty_inherit_runtime_ctty(
+ __in void * hport,
+ __in_out nt_runtime_data * rtdata);
+
+
typedef int32_t __stdcall ntapi_pty_close(
__in nt_pty * pty);
diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h
index 0af598a..22db615 100644
--- a/include/ntapi/ntapi.h
+++ b/include/ntapi/ntapi.h
@@ -535,6 +535,7 @@ typedef struct _ntapi_vtbl {
ntapi_pty_open * pty_open;
ntapi_pty_reopen * pty_reopen;
ntapi_pty_inherit * pty_inherit;
+ ntapi_pty_inherit_runtime_ctty * pty_inherit_runtime_ctty;
ntapi_pty_close * pty_close;
ntapi_pty_read * pty_read;
ntapi_pty_write * pty_write;