| 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 | 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'; |
|
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 @constants; | |
| 19 | 5 | my @functions = qw/uname/; | |
| 20 | |||
| 21 | 5 | our %EXPORT_TAGS = | |
| 22 | ( constants => \@constants | ||
| 23 | , functions => \@functions | ||
| 24 | , tables => [ '%osconsts' ] | ||
| 25 | ); | ||
| 26 | |||
| 27 | 5 | my $osconsts; | |
| 28 | 5 | our %osconsts; | |
| 29 | |||
| 30 | 5 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 5 | $osconsts = osconsts_table; | |
| 32 | 5 | push @constants, keys %$osconsts; | |
| 33 | 5 | tie %osconsts, 'POSIX::1003::ReadOnlyTable', $osconsts; | |
| 34 | } | ||
| 35 | |||
| 36 | |||
| 37 | sub _create_constant($) | ||
| 38 | 1 | ▶ | { my ($class, $name) = @_; |
|
Subroutine
_create_constant: called CC=1 SCAR=0.2
| |||
| 39 | 1 | my $val = $osconsts->{$name}; | |
| 40 | 0 | ▶ | sub () {$val}; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 41 | } | ||
| 42 | |||
| 43 | 5 | 1; | |