termios-c_iflag.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* termios input mode definitions. Linux/generic version.
  2. Copyright (C) 2019-2021 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library. If not, see
  14. <https://www.gnu.org/licenses/>. */
  15. #ifndef _TERMIOS_H
  16. # error "Never include <bits/termios-ciflags.h> directly; use <termios.h> instead."
  17. #endif
  18. /* c_iflag bits */
  19. #define IGNBRK 0000001 /* Ignore break condition. */
  20. #define BRKINT 0000002 /* Signal interrupt on break. */
  21. #define IGNPAR 0000004 /* Ignore characters with parity errors. */
  22. #define PARMRK 0000010 /* Mark parity and framing errors. */
  23. #define INPCK 0000020 /* Enable input parity check. */
  24. #define ISTRIP 0000040 /* Strip 8th bit off characters. */
  25. #define INLCR 0000100 /* Map NL to CR on input. */
  26. #define IGNCR 0000200 /* Ignore CR. */
  27. #define ICRNL 0000400 /* Map CR to NL on input. */
  28. #define IUCLC 0001000 /* Map uppercase characters to lowercase on input
  29. (not in POSIX). */
  30. #define IXON 0002000 /* Enable start/stop output control. */
  31. #define IXANY 0004000 /* Enable any character to restart output. */
  32. #define IXOFF 0010000 /* Enable start/stop input control. */
  33. #define IMAXBEL 0020000 /* Ring bell when input queue is full
  34. (not in POSIX). */
  35. #define IUTF8 0040000 /* Input is UTF8 (not in POSIX). */