2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2018-11-05 18:16:00 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2021-08-14 16:14:32 +02:00
|
|
|
#include <Kernel/API/POSIX/termios.h>
|
2022-08-16 01:57:43 +10:00
|
|
|
#include <sys/cdefs.h>
|
2018-11-05 18:16:00 +01:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2021-12-16 04:24:25 -08:00
|
|
|
int tcdrain(int fd);
|
2018-11-11 10:38:33 +01:00
|
|
|
int tcgetattr(int fd, struct termios*);
|
|
|
|
|
int tcsetattr(int fd, int optional_actions, const struct termios*);
|
2021-12-16 04:24:25 -08:00
|
|
|
int tcsendbreak(int fd, int duration);
|
2018-11-11 15:36:40 +01:00
|
|
|
int tcflow(int fd, int action);
|
2019-02-26 12:57:02 +01:00
|
|
|
int tcflush(int fd, int queue_selector);
|
2018-11-11 10:38:33 +01:00
|
|
|
|
2020-07-04 04:20:51 +04:30
|
|
|
speed_t cfgetispeed(const struct termios*);
|
|
|
|
|
speed_t cfgetospeed(const struct termios*);
|
|
|
|
|
int cfsetispeed(struct termios*, speed_t);
|
|
|
|
|
int cfsetospeed(struct termios*, speed_t);
|
2021-02-13 10:46:09 +03:30
|
|
|
void cfmakeraw(struct termios*);
|
2020-07-04 04:20:51 +04:30
|
|
|
|
2018-11-05 18:16:00 +01:00
|
|
|
__END_DECLS
|