summaryrefslogtreecommitdiffhomepage
path: root/src/internal/ptycon_ioctl_impl.h
blob: dacd689271eb1c7a5630e7ec512ce4187b87e774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PTYCON_IOCTL_IMPL_H
#define PTYCON_IOCTL_IMPL_H

#include <ntapi/ntapi.h>

static int32_t ptyc_grant(nt_pty * hptm)
{
	nt_tty_sigctl_info	ctlinfo;
	nt_iosb			iosb;

	ntapi->tt_aligned_block_memset(
		&ctlinfo,0,sizeof(ctlinfo));

	return ntapi->pty_ioctl(
		hptm,
		0,0,0,
		&iosb,TTY_TIOCSPTLCK,
		&ctlinfo,sizeof(ctlinfo),
		&ctlinfo,sizeof(ctlinfo));
}

#endif