Linux equivalent of I_PUSH

为君一笑 提交于 2019-12-11 08:18:28

问题


This question is related to pty terminal packet mode TIOCPKT

What the linux way of enabling packet mode? I could not find I_PUSH working when passed in ioctl function.


回答1:


TIOCPKT is exactly what you want, according to the tty_ioctl(4) man page: the argument is a pointer to an integer which is non-zero to enable packet mode, or zero to disable it.



来源:https://stackoverflow.com/questions/7614618/linux-equivalent-of-i-push

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!