line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2011-2020 by [Mark Overmeer]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.02. |
5
|
|
|
|
|
|
|
# This code is part of distribution POSIX-1003. Meta-POD processed with |
6
|
|
|
|
|
|
|
# OODoc into POD and HTML manual-pages. See README.md |
7
|
|
|
|
|
|
|
# Copyright Mark Overmeer. Licensed under the same terms as Perl itself. |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package POSIX::1003::Termios; |
10
|
3
|
|
|
3
|
|
70336
|
use vars '$VERSION'; |
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
178
|
|
11
|
|
|
|
|
|
|
$VERSION = '1.02'; |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
18
|
use base 'POSIX::1003::Module', 'POSIX::Termios'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1199
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
32
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
82
|
|
16
|
3
|
|
|
3
|
|
14
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
555
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my @speed = qw/ |
19
|
|
|
|
|
|
|
B0 B110 B1200 B134 B150 B1800 B19200 B200 B2400 |
20
|
|
|
|
|
|
|
B300 B38400 B4800 B50 B600 B75 B9600 |
21
|
|
|
|
|
|
|
/; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my @flags = qw/ |
24
|
|
|
|
|
|
|
BRKINT CLOCAL ECHONL HUPCL ICANON ICRNL IEXTEN IGNBRK IGNCR IGNPAR |
25
|
|
|
|
|
|
|
INLCR INPCK ISIG ISTRIP IXOFF IXON NCCS NOFLSH OPOST PARENB PARMRK |
26
|
|
|
|
|
|
|
PARODD TOSTOP VEOF VEOL VERASE VINTR VKILL VMIN VQUIT VSTART VSTOP |
27
|
|
|
|
|
|
|
VSUSP VTIME |
28
|
|
|
|
|
|
|
/; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my @actions = qw/ |
31
|
|
|
|
|
|
|
TCSADRAIN TCSANOW TCOON TCION TCSAFLUSH TCIOFF TCOOFF |
32
|
|
|
|
|
|
|
/; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my @flush = qw/TCIOFLUSH TCOFLUSH TCIFLUSH/; |
35
|
|
|
|
|
|
|
my @functions = qw/ |
36
|
|
|
|
|
|
|
tcdrain tcflow tcflush tcsendbreak |
37
|
|
|
|
|
|
|
ttyname |
38
|
|
|
|
|
|
|
/; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our %EXPORT_TAGS = |
41
|
|
|
|
|
|
|
( speed => \@speed |
42
|
|
|
|
|
|
|
, flags => \@flags |
43
|
|
|
|
|
|
|
, actions => \@actions |
44
|
|
|
|
|
|
|
, flush => \@flush |
45
|
|
|
|
|
|
|
, constants => [@speed, @flags, @actions, @flush] |
46
|
|
|
|
|
|
|
, functions => \@functions |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
# Only needed by manual.PL |
51
|
|
|
|
|
|
|
sub _create_constant($) |
52
|
60
|
|
|
60
|
|
83
|
{ my ($class, $name) = @_; |
53
|
3
|
|
|
3
|
|
22
|
no strict 'refs'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
282
|
|
54
|
60
|
|
|
2
|
|
242
|
sub { &{"POSIX::$name"} }; |
|
2
|
|
|
|
|
2452
|
|
|
2
|
|
|
|
|
16
|
|
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |