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::User; |
10
|
3
|
|
|
3
|
|
71409
|
use vars '$VERSION'; |
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
170
|
|
11
|
|
|
|
|
|
|
$VERSION = '1.02'; |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
18
|
use base 'POSIX::1003::Module'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
581
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
19
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
76
|
|
16
|
3
|
|
|
3
|
|
30
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
534
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our @IN_CORE = qw/ |
19
|
|
|
|
|
|
|
getpwnam getpwuid getpwent |
20
|
|
|
|
|
|
|
getgrnam getgrgid getgrent |
21
|
|
|
|
|
|
|
getlogin |
22
|
|
|
|
|
|
|
/; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my @functions = qw/ |
25
|
|
|
|
|
|
|
getuid setuid |
26
|
|
|
|
|
|
|
geteuid seteuid |
27
|
|
|
|
|
|
|
setreuid |
28
|
|
|
|
|
|
|
getresuid setresuid |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
getgid setgid |
31
|
|
|
|
|
|
|
getegid setegid |
32
|
|
|
|
|
|
|
setregid |
33
|
|
|
|
|
|
|
getresgid setresgid |
34
|
|
|
|
|
|
|
getgroups setgroups |
35
|
|
|
|
|
|
|
/; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
push @functions, @IN_CORE; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my @constants; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our %EXPORT_TAGS = |
42
|
|
|
|
|
|
|
( constants => \@constants |
43
|
|
|
|
|
|
|
, functions => \@functions |
44
|
|
|
|
|
|
|
, tables => [ '%user' ] |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
my $user; |
48
|
|
|
|
|
|
|
our %user; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
BEGIN { |
51
|
3
|
|
|
3
|
|
45
|
$user = user_table; |
52
|
3
|
|
|
|
|
12
|
push @constants, keys %$user; |
53
|
3
|
|
|
|
|
27
|
tie %user, 'POSIX::1003::ReadOnlyTable', $user; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
#------------------ |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
#------------------ |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
#------------------ |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
1; |