From 4a2e495c3aae5ba119844ba689c1eb282c1f49a8 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 30 Jul 2017 21:21:21 +0000 Subject: subsystem interfaces: integrated sysv semaphore definitions. --- include/ntapi/nt_tty.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'include/ntapi/nt_tty.h') 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; -- cgit v1.2.3