Get the local modes
#include <sys/ioctl.h> #define TIOCLGET _IOR('t', 124, int)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | TIOCLGET |
Additional argument | A pointer to an int |
This command gets the current local modes. It's implemented as a call to tcgetattr() to get the current settings.
None.
The current bit settings; a combination of zero or more of the following:
These are the same bits that appear in the c_lflag member of the termios structure.