termios.h 647 B

1234567891011121314151617181920212223242526
  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. __BEGIN_DECLS
  9. int tcdrain(int fd);
  10. int tcgetattr(int fd, struct termios*);
  11. int tcsetattr(int fd, int optional_actions, const struct termios*);
  12. int tcsendbreak(int fd, int duration);
  13. int tcflow(int fd, int action);
  14. int tcflush(int fd, int queue_selector);
  15. speed_t cfgetispeed(const struct termios*);
  16. speed_t cfgetospeed(const struct termios*);
  17. int cfsetispeed(struct termios*, speed_t);
  18. int cfsetospeed(struct termios*, speed_t);
  19. void cfmakeraw(struct termios*);
  20. __END_DECLS