ctrlchar.h 407 B

12345678910111213141516171819
  1. /*
  2. * Unified handling of special chars.
  3. *
  4. * Copyright IBM Corp. 2001
  5. * Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
  6. *
  7. */
  8. #include <linux/tty.h>
  9. extern unsigned int
  10. ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
  11. #define CTRLCHAR_NONE (1 << 8)
  12. #define CTRLCHAR_CTRL (2 << 8)
  13. #define CTRLCHAR_SYSRQ (3 << 8)
  14. #define CTRLCHAR_MASK (~0xffu)