summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/termios.h
blob: 3a2382c7b9da27ad204e5d4c047519f35b2dea20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <Kernel/API/POSIX/termios.h>

__BEGIN_DECLS

int tcdrain(int fd);
int tcgetattr(int fd, struct termios*);
int tcsetattr(int fd, int optional_actions, const struct termios*);
int tcsendbreak(int fd, int duration);
int tcflow(int fd, int action);
int tcflush(int fd, int queue_selector);

speed_t cfgetispeed(const struct termios*);
speed_t cfgetospeed(const struct termios*);
int cfsetispeed(struct termios*, speed_t);
int cfsetospeed(struct termios*, speed_t);
void cfmakeraw(struct termios*);

__END_DECLS