Search code examples
clinuxmanpagepty

TIOGCPKT not implemented?


I came across the TIOGCPKT ioctl command in the tty_ioctl man page. It sounds like it would be the perfect fit for an application I'm working on that wants to detect whether a pty fd is configured in packet mode. I do have a roundabout way of figuring this out but the ioctl command seems like a much cleaner approach. Although the man page mentions that it's been available since Linux 3.8, I can't seem to find the macro declared/defined in any header file (in /usr/include) or in the kernel source. I'm running Linux 4.9.10.

Does anyone know the history behind this? Or am I missing something?

Thanks.


Solution

  • You've just got a typo, that's all. It's TIOCGPKT, not TIOGCPKT.