| 1 | package IO::Die; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | #NOTE: See about read/sysread; the same duplicated code problem | ||||||||||
| 6 | #applies to seek/sysseek. | ||||||||||
| 7 | |||||||||||
| 8 | 5 | ▶ | sub sysseek { | ||||||||
|
Subroutine
sysseek: called CC=2 SCAR=6.9
| |||||||||||
| 9 | 5 | my ( $NS, $fh, $pos, $whence ) = @_; | |||||||||
| 10 | |||||||||||
| 11 | 5 | local ( $!, $^E ); | |||||||||
| 12 | 5 | ▶ | my $ok = CORE::sysseek( $fh, $pos, $whence ) or do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 1 | $NS->__THROW( 'FileSeek', whence => $whence, position => $pos ); | |||||||||
| 14 | }; | ||||||||||
| 15 | |||||||||||
| 16 | 4 | return $ok; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||