Added some doxygen documentation for parts of the kernel functions.
[planlOS.git] / programs / include / termios.h
blobfe336f663856da2b971cf05b2a54990bb33e4d73
1 /*
2 Copyright (C) 2008 Mathias Gottschlag
4 Permission is hereby granted, free of charge, to any person obtaining a copy of
5 this software and associated documentation files (the "Software"), to deal in the
6 Software without restriction, including without limitation the rights to use,
7 copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8 Software, and to permit persons to whom the Software is furnished to do so,
9 subject to the following conditions:
11 The above copyright notice and this permission notice shall be included in all
12 copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16 PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 #ifndef TERMIOS_H_INCLUDED
23 #define TERMIOS_H_INCLUDED
25 typedef int cc_t;
26 typedef int speed_t;
27 typedef int tcflag_t;
29 #define NCCS 16
31 struct termios
33 tcflag_t c_iflag;
34 tcflag_t c_oflag;
35 tcflag_t c_cflag;
36 tcflag_t c_lflag;
37 cc_t c_cc[NCCS];
40 speed_t cfgetispeed(const struct termios *t);
41 speed_t cfgetospeed(const struct termios *t);
42 int cfsetispeed(struct termios *t, speed_t speed);
43 int cfsetospeed(struct termios *t, speed_t speed);
44 int tcdrain(int fd);
45 int tcflow(int fd, int action);
46 int tcflush(int fd, int queue_selector);
47 int tcgetattr(int fd, struct termios *t);
48 pid_t tcgetsid(int fd);
49 int tcsendbreak(int fd, int dur);
50 int tcsetattr(int fd, int optional_actions, const struct termios *t);
52 #endif