blib/lib/User/getgrouplist.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« getgrouplist.xs ↑ Summary
1 # Copyright (c) 2007-2014 Collax GmbH
2 package User::getgrouplist;
3  
4 3 ▶use 5.006001;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 require Exporter;
8 3 require DynaLoader;
9  
10 3 our @ISA = qw(Exporter DynaLoader);
11 3 our @EXPORT = qw(getgrouplist);
12  
13 =head1 NAME
14  
15 User::getgrouplist - Interface to glibc "getgrouplist" function
16  
17 =head1 VERSION
18  
19 Version 1.1.1
20  
21 =cut
22  
23 3 our $VERSION = '1.1.1';
24  
25 =head1 SYNOPSIS
26  
27 use User::getgrouplist;
28  
29 my $username = 'johndoe';
30 my @list = getgrouplist($username);
31 print('Groups for user $username: ' . join(' ', @list) . "\n");
32  
33 =head1 Description
34  
35 C<User::getgrouplist> is an interface for the C<getgrouplist> function
36 available on many BSD-like Unix systems, and Linux. It returns the list of all
37 groups a user is in.
38  
39 =head1 Exports
40  
41 Function C<getgrouplist($username)>
42  
43 =cut
44  
45 3 bootstrap User::getgrouplist;
46  
47 3 1;
« getgrouplist.xs ↑ Summary