lib/Lchown.xs

filter: Statementstmt 80.0% 4 / 5 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 77.7% 7 / 9 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Lchown.pm ↑ Summary
1 #include "EXTERN.h"
2 #include "perl.h"
3 #include "XSUB.h"
4  
5  
6 MODULE = Lchown PACKAGE = Lchown
7  
8 PROTOTYPES: ENABLE
9  
10 SV *
11 lchown(owner, group, ...)
12 unsigned owner
13 unsigned group
14 PROTOTYPE: @
15 PREINIT:
16 int i;
17 int ok;
18 STRLEN len;
19 CODE:
20 #ifdef HAS_LCHOWN
21 7 ok = 0;
22 10 ▶ for ( i=2 ; i<items ; i++ )
Branch: 1 branch
BranchTrueFalseTotal
for ( i=2 ; i<items ; i++ ) 3 7 10
23 6 ▶ if ( lchown((char *)SvPV(ST(i),len), owner, group) == 0 )
Branch: 1 branch
BranchTrueFalseTotal
if ( lchown((char *)SvPV(ST(i),len), owner, group) == 0 ) 0 3 3
24 0 ok++;
25 7 ST(0) = sv_2mortal(newSViv(ok));
26 #else
27 errno = ENOSYS;
28 ST(0) = &PL_sv_undef;
29 #endif
30  
« blib/lib/Lchown.pm ↑ Summary