# NOTE: Derived from ../../lib/Storable.pm.
# Changes made here will be lost when autosplit is run again.
#line 315 "../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al)"
# Internal retrieve routine
my ($file, $use_locking) = @_;
open(FILE, $file) || logcroak "can't open $file: $!";
binmode FILE; # Archaic systems...
my $da = $@; # Could be from exception handler
logcarp "Storable::lock_store: fcntl/flock emulation broken on $^O";
flock(FILE, LOCK_SH) || logcroak "can't get shared lock on $file: $!";
# Unlocking will happen when FILE is closed
eval { $self = pretrieve(*FILE) }; # Call C routine
logcroak $@ if $@ =~ s/\.?\n$/,/;
# end of Storable::_retrieve