summaryrefslogtreecommitdiff
path: root/include/termios.h
blob: 014e5c95795ec5f49b61f51e8c40699f63da66f7 (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
27
28
29
30
31
32
33
#ifndef __TERMIOS_H
#define __TERMIOS_H

#include <features.h>
#include <sys/types.h>
#include <sys/termios.h>
#include <asm/termbits.h>

extern speed_t cfgetispeed __P ((struct termios *__termios_p));
extern speed_t cfgetospeed __P ((struct termios *__termios_p));
extern int cfsetispeed __P ((struct termios *__termios_p, speed_t __speed));
extern int cfsetospeed __P ((struct termios *__termios_p, speed_t __speed));

extern int tcspeed_to_number __P ((speed_t __speed));
extern speed_t tcspeed_from_number __P ((int number));

extern int cfgetispeedn __P ((struct termios *__termios_p));
extern int cfgetospeedn __P ((struct termios *__termios_p));
extern int cfsetispeedn __P ((struct termios *__termios_p, int __speed));
extern int cfsetospeedn __P ((struct termios *__termios_p, int __speed));

extern void cfmakeraw  __P ((struct termios *__t));

extern int tcsetattr __P ((int __fd, int __opt, struct termios *__termios_p));
extern int tcgetattr __P ((int __fildes, struct termios *__termios_p));
extern int tcdrain __P ((int __fildes));
extern int tcflow __P ((int __fildes, int __action));
extern int tcflush __P ((int __fildes, int __queue_selector));
extern int tcsendbreak __P ((int __fildes, int __duration));
extern pid_t tcgetpgrp __P ((int __fildes));
extern int tcsetpgrp __P ((int __fildes, pid_t __pgrp_id));

#endif