Wait until all output has been transmitted to a device
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCDRAIN __DION(_CMD_IOCTL_TTY, 94) /* TIOCDRAIN */
| 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 |
This command waits until all output has been transmitted to a device. It's also implemented as the TIOCDRAIN ioctl() command.
None.
None.