line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2011-2015 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.01. |
5
|
3
|
|
|
3
|
|
13051
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
72
|
|
6
|
3
|
|
|
3
|
|
9
|
use strict; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
74
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package POSIX::1003::OS; |
9
|
3
|
|
|
3
|
|
9
|
use vars '$VERSION'; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
115
|
|
10
|
|
|
|
|
|
|
$VERSION = '0.99_07'; |
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
3
|
|
9
|
use base 'POSIX::1003::Module'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
450
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my @constants; |
15
|
|
|
|
|
|
|
my @functions = qw/uname/; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our %EXPORT_TAGS = |
18
|
|
|
|
|
|
|
( constants => \@constants |
19
|
|
|
|
|
|
|
, functions => \@functions |
20
|
|
|
|
|
|
|
, tables => [ '%osconsts' ] |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my $osconsts; |
24
|
|
|
|
|
|
|
our %osconsts; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
BEGIN { |
27
|
3
|
|
|
3
|
|
21
|
$osconsts = osconsts_table; |
28
|
3
|
|
|
|
|
7
|
push @constants, keys %$osconsts; |
29
|
3
|
|
|
|
|
13
|
tie %osconsts, 'POSIX::1003::ReadOnlyTable', $osconsts; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub _create_constant($) |
34
|
1
|
|
|
1
|
|
1
|
{ my ($class, $name) = @_; |
35
|
1
|
|
|
|
|
3
|
my $val = $osconsts->{$name}; |
36
|
1
|
|
|
0
|
|
14
|
sub () {$val}; |
|
0
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |