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::OS; |
10
|
3
|
|
|
3
|
|
70609
|
use vars '$VERSION'; |
|
3
|
|
|
|
|
17
|
|
|
3
|
|
|
|
|
200
|
|
11
|
|
|
|
|
|
|
$VERSION = '1.02'; |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
17
|
use base 'POSIX::1003::Module'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
594
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
21
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
76
|
|
16
|
3
|
|
|
3
|
|
14
|
use strict; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
372
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my @constants; |
19
|
|
|
|
|
|
|
my @functions = qw/uname/; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
our %EXPORT_TAGS = |
22
|
|
|
|
|
|
|
( constants => \@constants |
23
|
|
|
|
|
|
|
, functions => \@functions |
24
|
|
|
|
|
|
|
, tables => [ '%osconsts' ] |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $osconsts; |
28
|
|
|
|
|
|
|
our %osconsts; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
BEGIN { |
31
|
3
|
|
|
3
|
|
72
|
$osconsts = osconsts_table; |
32
|
3
|
|
|
|
|
13
|
push @constants, keys %$osconsts; |
33
|
3
|
|
|
|
|
20
|
tie %osconsts, 'POSIX::1003::ReadOnlyTable', $osconsts; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub _create_constant($) |
38
|
1
|
|
|
1
|
|
3
|
{ my ($class, $name) = @_; |
39
|
1
|
|
|
|
|
6
|
my $val = $osconsts->{$name}; |
40
|
1
|
|
|
0
|
|
8
|
sub () {$val}; |
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |