IP : 52.15.61.81Hostname : server86.web-hosting.comKernel : Linux server86.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
./
../
usr/
lib64/
./
sssd/
../
perl5/
Errno.pm/
/
# -*- buffer-read-only: t -*- # # This file is auto-generated by ext/Errno/Errno_pm.PL. # ***ANY*** changes here will be lost. #
package Errno; require Exporter; use strict;
use Config; "$Config{'archname'}-$Config{'osvers'}" eq "x86_64-linux-thread-multi-4.18.0-425.3.1.el8.x86_64" or die "Errno architecture (x86_64-linux-thread-multi-4.18.0-425.3.1.el8.x86_64) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";
sub FETCH { my (undef, $errname) = @_; return "" unless exists $err{$errname}; my $errno = $err{$errname}; return $errno == $! ? $errno : 0; }
sub STORE { require Carp; Carp::confess("ERRNO hash is read only!"); }
# This is the true return value *CLEAR = *DELETE = \*STORE; # Typeglob aliasing uses less space
sub NEXTKEY { each %err; }
sub FIRSTKEY { my $s = scalar keys %err; # initialize iterator each %err; }
sub EXISTS { my (undef, $errname) = @_; exists $err{$errname}; }
sub _tie_it { tie %{$_[0]}, __PACKAGE__; }
__END__
=head1 NAME
Errno - System errno constants
=head1 SYNOPSIS
use Errno qw(EINTR EIO :POSIX);
=head1 DESCRIPTION
C<Errno> defines and conditionally exports all the error constants defined in your system F<errno.h> include file. It has a single export tag, C<:POSIX>, which will export all POSIX defined error numbers.
On Windows, C<Errno> also defines and conditionally exports all the Winsock error constants defined in your system F<WinError.h> include file. These are included in a second export tag, C<:WINSOCK>.
C<Errno> also makes C<%!> magic such that each element of C<%!> has a non-zero value only if C<$!> is set to that value. For example:
my $fh; unless (open($fh, "<", "/fangorn/spouse")) { if ($!{ENOENT}) { warn "Get a wife!\n"; } else { warn "This path is barred: $!"; } }
If a specified constant C<EFOO> does not exist on the system, C<$!{EFOO}> returns C<"">. You may use C<exists $!{EFOO}> to check whether the constant is available on the system.
Perl automatically loads C<Errno> the first time you use C<%!>, so you don't need an explicit C<use>.
=head1 CAVEATS
Importing a particular constant may not be very portable, because the import will fail on platforms that do not have that constant. A more portable way to set C<$!> to a valid value is to use:
if (exists &Errno::EFOO) { $! = &Errno::EFOO; }
=head1 AUTHOR
Graham Barr <gbarr@pobox.com>
=head1 COPYRIGHT
Copyright (c) 1997-8 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.