Linux的相当于I_PUSH的 [英] Linux equivalent of I_PUSH
本文介绍了Linux的相当于I_PUSH的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此问题是关系到 PTY终端数据包模式TIOCPKT
什么的Linux
启用包模式
的办法吗?我找不到 I_PUSH
在的ioctl
函数传递时工作。
What the linux
way of enabling packet mode
? I could not find I_PUSH
working when passed in ioctl
function.
推荐答案
TIOCPKT
是你想要什么,根据的 tty_ioctl(4)
手册页:参数是指向一个整数,是非零使分组模式,或零将其禁用。
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.
这篇关于Linux的相当于I_PUSH的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文