| 1 | package IO::SigGuard; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 675012 | ▶ | sub syswrite { | ||||||||||||||||||||||||||
|
Subroutine
syswrite: called CC=6 SCAR=23.5
Pod
undocumented
| |||||||||||||||||||||||||||||
| 4 | 675012 | ▶ | $result = ( (@_ == 2) ? CORE::syswrite( $_[0], $_[1] ) : (@_ == 3) ? CORE::syswrite( $_[0], $_[1], $_[2] ) : (@_ == 4) ? CORE::syswrite( $_[0], $_[1], $_[2], $_[3] ) : die "Wrong args count! syswrite(@_)" ); | ||||||||||||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | #EINTR means the file pointer is unchanged. | ||||||||||||||||||||||||||||
| 7 | 675012 | ▶ | goto &syswrite if !defined $result && $! == Errno::EINTR(); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
not defined $result and $! == 4
MC/DC0%0/2
not defined $result and $! == 4
not defined $result
$! == 4
Truth table66%2/3
not(A) and B
A= not defined $resultB= $! == 4
| |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 675012 | return $result; | |||||||||||||||||||||||||||
| 10 | } | ||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 2 | 1; | |||||||||||||||||||||||||||