Blob Blame History Raw
#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