TIOCPKT

Set or clear packet mode

Synopsis:

#include <sys/ioctl.h>

#define TIOCPKT         _IOW('t', 112, int)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TIOCPKT
Additional argument A pointer to an int

Description:

This command sets or clears packet mode.

Input:

A combination of the following bits:

#define         TIOCPKT_DATA            0x00            /* data packet */
#define         TIOCPKT_FLUSHREAD       0x01            /* flush packet */
#define         TIOCPKT_FLUSHWRITE      0x02            /* flush packet */
#define         TIOCPKT_STOP            0x04            /* stop output */
#define         TIOCPKT_START           0x08            /* start output */
#define         TIOCPKT_NOSTOP          0x10            /* no more ^S, ^Q */
#define         TIOCPKT_DOSTOP          0x20            /* now do ^S ^Q */
#define         TIOCPKT_IOCTL           0x40            /* state change of pty driver */

Output:

None.

See also:

ioctl() in the QNX Neutrino C Library Reference