<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># -*- buffer-read-only: t -*-
#
# This file is auto-generated. ***ANY*** changes here will be lost
#

package Errno;
require Exporter;
use strict;

our $VERSION = "1.18";
$VERSION = eval $VERSION;
our @ISA = 'Exporter';

my %err;

BEGIN {
    %err = (
	EPERM =&gt; 1,
	ENOENT =&gt; 2,
	ESRCH =&gt; 3,
	EINTR =&gt; 4,
	EIO =&gt; 5,
	ENXIO =&gt; 6,
	E2BIG =&gt; 7,
	ENOEXEC =&gt; 8,
	EBADF =&gt; 9,
	ECHILD =&gt; 10,
	EWOULDBLOCK =&gt; 11,
	EAGAIN =&gt; 11,
	ENOMEM =&gt; 12,
	EACCES =&gt; 13,
	EFAULT =&gt; 14,
	ENOTBLK =&gt; 15,
	EBUSY =&gt; 16,
	EEXIST =&gt; 17,
	EXDEV =&gt; 18,
	ENODEV =&gt; 19,
	ENOTDIR =&gt; 20,
	EISDIR =&gt; 21,
	EINVAL =&gt; 22,
	ENFILE =&gt; 23,
	EMFILE =&gt; 24,
	ENOTTY =&gt; 25,
	ETXTBSY =&gt; 26,
	EFBIG =&gt; 27,
	ENOSPC =&gt; 28,
	ESPIPE =&gt; 29,
	EROFS =&gt; 30,
	EMLINK =&gt; 31,
	EPIPE =&gt; 32,
	EDOM =&gt; 33,
	ERANGE =&gt; 34,
	EDEADLK =&gt; 35,
	EDEADLOCK =&gt; 35,
	ENAMETOOLONG =&gt; 36,
	ENOLCK =&gt; 37,
	ENOSYS =&gt; 38,
	ENOTEMPTY =&gt; 39,
	ELOOP =&gt; 40,
	ENOMSG =&gt; 42,
	EIDRM =&gt; 43,
	ECHRNG =&gt; 44,
	EL2NSYNC =&gt; 45,
	EL3HLT =&gt; 46,
	EL3RST =&gt; 47,
	ELNRNG =&gt; 48,
	EUNATCH =&gt; 49,
	ENOCSI =&gt; 50,
	EL2HLT =&gt; 51,
	EBADE =&gt; 52,
	EBADR =&gt; 53,
	EXFULL =&gt; 54,
	ENOANO =&gt; 55,
	EBADRQC =&gt; 56,
	EBADSLT =&gt; 57,
	EBFONT =&gt; 59,
	ENOSTR =&gt; 60,
	ENODATA =&gt; 61,
	ETIME =&gt; 62,
	ENOSR =&gt; 63,
	ENONET =&gt; 64,
	ENOPKG =&gt; 65,
	EREMOTE =&gt; 66,
	ENOLINK =&gt; 67,
	EADV =&gt; 68,
	ESRMNT =&gt; 69,
	ECOMM =&gt; 70,
	EPROTO =&gt; 71,
	EMULTIHOP =&gt; 72,
	EDOTDOT =&gt; 73,
	EBADMSG =&gt; 74,
	EOVERFLOW =&gt; 75,
	ENOTUNIQ =&gt; 76,
	EBADFD =&gt; 77,
	EREMCHG =&gt; 78,
	ELIBACC =&gt; 79,
	ELIBBAD =&gt; 80,
	ELIBSCN =&gt; 81,
	ELIBMAX =&gt; 82,
	ELIBEXEC =&gt; 83,
	EILSEQ =&gt; 84,
	ERESTART =&gt; 85,
	ESTRPIPE =&gt; 86,
	EUSERS =&gt; 87,
	ENOTSOCK =&gt; 88,
	EDESTADDRREQ =&gt; 89,
	EMSGSIZE =&gt; 90,
	EPROTOTYPE =&gt; 91,
	ENOPROTOOPT =&gt; 92,
	EPROTONOSUPPORT =&gt; 93,
	ESOCKTNOSUPPORT =&gt; 94,
	EOPNOTSUPP =&gt; 95,
	ENOTSUP =&gt; 95,
	EPFNOSUPPORT =&gt; 96,
	EAFNOSUPPORT =&gt; 97,
	EADDRINUSE =&gt; 98,
	EADDRNOTAVAIL =&gt; 99,
	ENETDOWN =&gt; 100,
	ENETUNREACH =&gt; 101,
	ENETRESET =&gt; 102,
	ECONNABORTED =&gt; 103,
	ECONNRESET =&gt; 104,
	ENOBUFS =&gt; 105,
	EISCONN =&gt; 106,
	ENOTCONN =&gt; 107,
	ESHUTDOWN =&gt; 108,
	ETOOMANYREFS =&gt; 109,
	ETIMEDOUT =&gt; 110,
	ECONNREFUSED =&gt; 111,
	EHOSTDOWN =&gt; 112,
	EHOSTUNREACH =&gt; 113,
	EALREADY =&gt; 114,
	EINPROGRESS =&gt; 115,
	ESTALE =&gt; 116,
	EUCLEAN =&gt; 117,
	ENOTNAM =&gt; 118,
	ENAVAIL =&gt; 119,
	EISNAM =&gt; 120,
	EREMOTEIO =&gt; 121,
	EDQUOT =&gt; 122,
	ENOMEDIUM =&gt; 123,
	EMEDIUMTYPE =&gt; 124,
	ECANCELED =&gt; 125,
	ENOKEY =&gt; 126,
	EKEYEXPIRED =&gt; 127,
	EKEYREVOKED =&gt; 128,
	EKEYREJECTED =&gt; 129,
	EOWNERDEAD =&gt; 130,
	ENOTRECOVERABLE =&gt; 131,
	ERFKILL =&gt; 132,
	EHWPOISON =&gt; 133,
    );
    # Generate proxy constant subroutines for all the values.
    # Well, almost all the values. Unfortunately we can't assume that at this
    # point that our symbol table is empty, as code such as if the parser has
    # seen code such as C&lt;exists &amp;Errno::EINVAL&gt;, it will have created the
    # typeglob.
    # Doing this before defining @EXPORT_OK etc means that even if a platform is
    # crazy enough to define EXPORT_OK as an error constant, everything will
    # still work, because the parser will upgrade the PCS to a real typeglob.
    # We rely on the subroutine definitions below to update the internal caches.
    # Don't use %each, as we don't want a copy of the value.
    foreach my $name (keys %err) {
        if ($Errno::{$name}) {
            # We expect this to be reached fairly rarely, so take an approach
            # which uses the least compile time effort in the common case:
            eval "sub $name() { $err{$name} }; 1" or die $@;
        } else {
            $Errno::{$name} = \$err{$name};
        }
    }
}

our @EXPORT_OK = keys %err;

our %EXPORT_TAGS = (
    POSIX =&gt; [qw(
	E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT EAGAIN EALREADY
	EBADF EBUSY ECHILD ECONNABORTED ECONNREFUSED ECONNRESET EDEADLK
	EDESTADDRREQ EDOM EDQUOT EEXIST EFAULT EFBIG EHOSTDOWN EHOSTUNREACH
	EINPROGRESS EINTR EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK
	EMSGSIZE ENAMETOOLONG ENETDOWN ENETRESET ENETUNREACH ENFILE ENOBUFS
	ENODEV ENOENT ENOEXEC ENOLCK ENOMEM ENOPROTOOPT ENOSPC ENOSYS ENOTBLK
	ENOTCONN ENOTDIR ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM
	EPFNOSUPPORT EPIPE EPROTONOSUPPORT EPROTOTYPE ERANGE EREMOTE ERESTART
	EROFS ESHUTDOWN ESOCKTNOSUPPORT ESPIPE ESRCH ESTALE ETIMEDOUT
	ETOOMANYREFS ETXTBSY EUSERS EWOULDBLOCK EXDEV
    )]
);

sub TIEHASH { bless \%err }

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!");
}

*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};
}

tie %!, __PACKAGE__; # Returns an object, objects are true.

__END__

# ex: set ro:
</pre></body></html>