Blame src/internal/ptycon_ioctl_impl.h

538c8a
#ifndef PTYCON_IOCTL_IMPL_H
538c8a
#define PTYCON_IOCTL_IMPL_H
538c8a
538c8a
#include <ntapi/ntapi.h>
538c8a
538c8a
static int32_t ptyc_grant(nt_pty * hptm)
538c8a
{
538c8a
	nt_tty_sigctl_info	ctlinfo;
538c8a
	nt_iosb			iosb;
538c8a
538c8a
	ntapi->tt_aligned_block_memset(
538c8a
		&ctlinfo,0,sizeof(ctlinfo));
538c8a
538c8a
	return ntapi->pty_ioctl(
538c8a
		hptm,
538c8a
		0,0,0,
538c8a
		&iosb,TTY_TIOCSPTLCK,
538c8a
		&ctlinfo,sizeof(ctlinfo),
538c8a
		&ctlinfo,sizeof(ctlinfo));
538c8a
}
538c8a
538c8a
#endif