Perl/uname.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.9% 32 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Perl/ArchLoader.pm ↑ Summary Perl/Constants/Fcntl.pm »
1 package Linux::Perl::uname;
2  
3 =encoding utf-8
4  
5 =head1 NAME
6  
7 Linux::Perl::uname
8  
9 =head1 SYNOPSIS
10  
11 my @parts = Linux::Perl::uname->uname();
12  
13 my @parts = Linux::Perl::uname::x86_64->uname();
14  
15 =head1 DESCRIPTION
16  
17 This module returns the list of strings from the C<uname> system call.
18 See C<man 2 uname> for the specifics of what that means.
19  
20 =cut
21  
22 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 3 ▶use Call::Context;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 3 ▶use Linux::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 3 ▶use parent 'Linux::Perl::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 3 ▶use constant _BUFFER_SIZE => 257 * 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 2 ▶sub uname {
Subroutine uname: called CC=1 SCAR=0.0
Pod undocumented
33 2 my ($class) = @_;
34  
35 2 Call::Context::must_be_list();
36  
37 2 $class = $class->_get_arch_module();
38  
39 2 my $buf = ("\0" x _BUFFER_SIZE);
40 2 Linux::Perl::call( $class->NR_uname(), $buf );
41  
42 2 return split m<\0+>, $buf;
43 }
44  
45 3 1;
« Perl/ArchLoader.pm ↑ Summary Perl/Constants/Fcntl.pm »