blib/lib/POSIX/1003/Termios.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/POSIX/1003/Symbols.pm ↑ Summary blib/lib/POSIX/1003/User.pm »
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 5 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 $VERSION = '1.02';
12  
13 5 ▶use base 'POSIX::1003::Module', 'POSIX::Termios';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 5 my @speed = qw/
19 B0 B110 B1200 B134 B150 B1800 B19200 B200 B2400
20 B300 B38400 B4800 B50 B600 B75 B9600
21 /;
22  
23 5 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 5 my @actions = qw/
31 TCSADRAIN TCSANOW TCOON TCION TCSAFLUSH TCIOFF TCOOFF
32 /;
33  
34 5 my @flush = qw/TCIOFLUSH TCOFLUSH TCIFLUSH/;
35 5 my @functions = qw/
36 tcdrain tcflow tcflush tcsendbreak
37 ttyname
38 /;
39  
40 5 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 ▶{ my ($class, $name) = @_;
Subroutine _create_constant: called CC=1 SCAR=0.0
53 5 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
54 60 ▶ sub { &{"POSIX::$name"} };
Subroutine __ANON__: called CC=1 SCAR=0.0
55 }
56  
57 5 1;
« blib/lib/POSIX/1003/Symbols.pm ↑ Summary blib/lib/POSIX/1003/User.pm »