summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_tty.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-07-30 21:21:21 +0000
committermidipix <writeonce@midipix.org>2017-07-31 08:43:34 -0400
commit4a2e495c3aae5ba119844ba689c1eb282c1f49a8 (patch)
tree36fffb95ccc91f4360d701fee852c5f1af924e80 /include/ntapi/nt_tty.h
parent7e3ebda55a15849f5cc1e7ab53edfeedd9fae635 (diff)
downloadntapi-4a2e495c3aae5ba119844ba689c1eb282c1f49a8.tar.bz2
ntapi-4a2e495c3aae5ba119844ba689c1eb282c1f49a8.tar.xz
subsystem interfaces: integrated sysv semaphore definitions.
Diffstat (limited to 'include/ntapi/nt_tty.h')
-rw-r--r--include/ntapi/nt_tty.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/ntapi/nt_tty.h b/include/ntapi/nt_tty.h
index dc8c4f3..f0d7c5d 100644
--- a/include/ntapi/nt_tty.h
+++ b/include/ntapi/nt_tty.h
@@ -15,6 +15,7 @@
#include "nt_process.h"
#include "nt_port.h"
#include "nt_termios.h"
+#include "nt_sem.h"
/* tty affiliation */
typedef struct _nt_tty_affiliation {
@@ -59,6 +60,7 @@ typedef enum _nt_tty_opcode {
NT_TTY_QUERY_INFORMATION_THREAD,
NT_TTY_QUERY_INFORMATION_SECTION,
NT_TTY_QUERY_INFORMATION_PTY,
+ NT_TTY_QUERY_INFORMATION_SEMAPHORE,
/* peer daemon calls */
NT_TTY_REQUEST_PEER,
NT_TTY_SIGNAL_PEER,
@@ -73,6 +75,17 @@ typedef enum _nt_tty_opcode {
NT_TTY_PTY_IOCTL,
NT_TTY_PTY_CANCEL,
NT_TTY_PTY_PEEK,
+ /* semaphore */
+ NT_TTY_SEM_ALLOC,
+ NT_TTY_SEM_FREE,
+ NT_TTY_SEM_OPEN,
+ NT_TTY_SEM_CLOSE,
+ NT_TTY_SEM_QUERY,
+ NT_TTY_SEM_SET,
+ NT_TTY_SEM_FCNTL,
+ NT_TTY_SEM_IOCTL,
+ NT_TTY_SEM_CANCEL,
+ NT_TTY_SEM_TRACE,
/* virtual mount system */
NT_TTY_VMS_QUERY,
NT_TTY_VMS_REQUEST,
@@ -100,6 +113,7 @@ typedef enum _nt_tty_server_info_class {
NT_TTY_SERVER_PTS_SLOT_INFORMATION,
NT_TTY_SERVER_DBM_SLOT_INFORMATION,
NT_TTY_SERVER_DBG_SLOT_INFORMATION,
+ NT_TTY_SERVER_SEM_SLOT_INFORMATION,
NT_TTY_SERVER_INFORMATION_CAP
} nt_tty_server_info_class;
@@ -312,6 +326,15 @@ typedef struct __attr_ptr_size_aligned__ _nt_pty_sigctl_msg {
} nt_pty_sigctl_msg;
+typedef struct __attr_ptr_size_aligned__ _nt_sem_info_msg {
+ nt_port_message header;
+ struct {
+ nt_tty_msg_info ttyinfo;
+ nt_sem_info seminfo;
+ } data;
+} nt_sem_info_msg;
+
+
typedef struct __attr_ptr_size_aligned__ _nt_tty_session_msg {
nt_port_message header;
struct {
@@ -333,6 +356,7 @@ typedef struct __attr_ptr_size_aligned__ _nt_tty_port_msg {
nt_pty_io_info ioinfo;
nt_pty_client_info clientinfo;
nt_tty_session_info sessioninfo;
+ nt_sem_info seminfo;
};
} nt_tty_port_msg;