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