DCMD_CHR_TCDRAIN

QNX SDP8.0Devctl and Ioctl CommandsDeveloper

Wait until all output has been transmitted to a device

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_TCDRAIN   __DION(_CMD_IOCTL_TTY, 94)   /* TIOCDRAIN */ 

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_TCDRAIN
dev_data_ptr NULL
n_bytes 0
dev_info_ptr NULL

Description:

This command waits until all output has been transmitted to a device. It's also implemented as the TIOCDRAIN ioctl() command.

Note:
This command is for internal use, and you shouldn't use it directly. Instead use the tcdrain() cover function.

Input:

None.

Output:

None.

See also:

devctl(), tcdrain() in the QNX OS C Library Reference

Page updated: