DCMD_CHR_OSCHARS

QNX SDP8.0Devctl and Ioctl CommandsDeveloper

Determine the number of characters waiting to be sent

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_OSCHARS    __DIOF(_CMD_IOCTL_TTY, 115, unsigned) /* TIOCOUTQ */

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_OSCHARS
dev_data_ptr A pointer to an unsigned
n_bytes sizeof(unsigned)
dev_info_ptr NULL

Description:

This command determines the number of characters waiting to be sent. It's also implemented as the TIOCOUTQ ioctl() command.

Input:

None.

Output:

The number of characters.

See also:

DCMD_CHR_ISCHARS, TIOCOUTQ

devctl() in the QNX OS C Library Reference

Page updated: