// +build darwin dragonfly freebsd netbsd openbsdpackagepty// from <sys/ioccom.h>const(_IOC_VOIDuintptr=0x20000000_IOC_OUTuintptr=0x40000000_IOC_INuintptr=0x80000000_IOC_IN_OUTuintptr=_IOC_OUT|_IOC_IN_IOC_DIRMASK=_IOC_VOID|_IOC_OUT|_IOC_IN_IOC_PARAM_SHIFT=13_IOC_PARAM_MASK=(1<<_IOC_PARAM_SHIFT)-1)func_IOC_PARM_LEN(ioctluintptr)uintptr{return(ioctl>>16)&_IOC_PARAM_MASK}func_IOC(inoutuintptr,groupbyte,ioctl_numuintptr,param_lenuintptr)uintptr{returninout|(param_len&_IOC_PARAM_MASK)<<16|uintptr(group)<<8|ioctl_num}func_IO(groupbyte,ioctl_numuintptr)uintptr{return_IOC(_IOC_VOID,group,ioctl_num,0)}func_IOR(groupbyte,ioctl_numuintptr,param_lenuintptr)uintptr{return_IOC(_IOC_OUT,group,ioctl_num,param_len)}func_IOW(groupbyte,ioctl_numuintptr,param_lenuintptr)uintptr{return_IOC(_IOC_IN,group,ioctl_num,param_len)}func_IOWR(groupbyte,ioctl_numuintptr,param_lenuintptr)uintptr{return_IOC(_IOC_IN_OUT,group,ioctl_num,param_len)}