termios.h 670 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <Kernel/API/POSIX/termios.h>
  8. #include <sys/cdefs.h>
  9. __BEGIN_DECLS
  10. int tcdrain(int fd);
  11. int tcgetattr(int fd, struct termios*);
  12. int tcsetattr(int fd, int optional_actions, const struct termios*);
  13. int tcsendbreak(int fd, int duration);
  14. int tcflow(int fd, int action);
  15. int tcflush(int fd, int queue_selector);
  16. speed_t cfgetispeed(const struct termios*);
  17. speed_t cfgetospeed(const struct termios*);
  18. int cfsetispeed(struct termios*, speed_t);
  19. int cfsetospeed(struct termios*, speed_t);
  20. void cfmakeraw(struct termios*);
  21. __END_DECLS