Test to see if a file descriptor is associated with a terminal
#include <sys/dcmd_chr.h> #define DCMD_CHR_ISATTY __DION(_DCMD_CHR, 24)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_CHR_ISATTY |
dev_data_ptr | NULL |
n_bytes | 0 |
dev_info_ptr | NULL |
This command tests to see if a file descriptor is associated with a terminal, returning EOK if it is, or ENOTTY if it isn't.
None.
None.
The devctl() function can return the following, in addition to the error codes listed in its entry in the C Library Reference: