OSDN Git Service

Initial revision
[uclinux-h8/uClibc.git] / include / termios.h
1 #ifndef __TERMIOS_H
2 #define __TERMIOS_H
3
4 #include <features.h>
5 #include <sys/types.h>
6 #include <linux/termios.h>
7
8 extern speed_t cfgetispeed __P ((struct termios *__termios_p));
9 extern speed_t cfgetospeed __P ((struct termios *__termios_p));
10 extern int cfsetispeed __P ((struct termios *__termios_p, speed_t __speed));
11 extern int cfsetospeed __P ((struct termios *__termios_p, speed_t __speed));
12
13 extern int tcspeed_to_number __P ((speed_t __speed));
14 extern speed_t tcspeed_from_number __P ((int number));
15
16 extern int cfgetispeedn __P ((struct termios *__termios_p));
17 extern int cfgetospeedn __P ((struct termios *__termios_p));
18 extern int cfsetispeedn __P ((struct termios *__termios_p, int __speed));
19 extern int cfsetospeedn __P ((struct termios *__termios_p, int __speed));
20
21 extern void cfmakeraw  __P ((struct termios *__t));
22
23 extern int tcsetattr __P ((int __fd, int __opt, struct termios *__termios_p));
24 extern int tcgetattr __P ((int __fildes, struct termios *__termios_p));
25 extern int tcdrain __P ((int __fildes));
26 extern int tcflow __P ((int __fildes, int __action));
27 extern int tcflush __P ((int __fildes, int __queue_selector));
28 extern int tcsendbreak __P ((int __fildes, int __duration));
29 extern pid_t tcgetpgrp __P ((int __fildes));
30 extern int tcsetpgrp __P ((int __fildes, pid_t __pgrp_id));
31
32 #endif