# This file is auto-generated. ***ANY*** changes here will be lost
our (@EXPORT_OK,%EXPORT_TAGS,@ISA,$VERSION,%errno,$AUTOLOAD);
"$Config{'archname'}-$Config{'osvers'}" eq
"sun4-solaris-64-ld-2.9" or
die "Errno architecture (sun4-solaris-64-ld-2.9) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";
$VERSION = eval $VERSION;
@EXPORT_OK = qw(ENOMSG EBADR EADV EROFS ENOTSUP ESHUTDOWN EMULTIHOP
EPROTONOSUPPORT ENFILE ENOLCK ESTRPIPE EL3HLT EADDRINUSE ECONNABORTED
EBADF ECANCELED ENOTBLK ECHRNG EDEADLK ENOLINK ESRMNT ELNRNG ENOTDIR
ETIME EINVAL ENOTTY ENOANO EXDEV EBADE EBADSLT ELOOP ECONNREFUSED
ENOSTR ENONET ENOTACTIVE EOVERFLOW EISCONN EFBIG ENOENT EPFNOSUPPORT
ECONNRESET ELIBMAX EWOULDBLOCK EBADMSG EL2HLT ENOPKG EDOM EBFONT
ELIBSCN EMSGSIZE ENOCSI EL3RST ENOSPC EIO EIDRM ENOTSOCK EDESTADDRREQ
ERANGE ENOBUFS EINPROGRESS ENOSYS EAFNOSUPPORT EADDRNOTAVAIL EINTR
EHOSTDOWN EREMOTE EILSEQ EBADFD ENOSR ENOMEM EPIPE ENETUNREACH
ENOTCONN ENODATA ESTALE EDQUOT EUSERS EOPNOTSUPP EPROTO ESPIPE
EALREADY ENOTRECOVERABLE EMFILE ENAMETOOLONG EACCES ELOCKUNMAPPED
ENOEXEC EISDIR EBUSY EBADRQC E2BIG EPERM EEXIST ELIBEXEC ETOOMANYREFS
ELIBACC ENOTUNIQ ECOMM ELIBBAD EOWNERDEAD ERESTART EUNATCH
ESOCKTNOSUPPORT ETIMEDOUT ENXIO ESRCH EFAULT ENODEV ETXTBSY EDEADLOCK
EXFULL EAGAIN EMLINK ENOPROTOOPT ECHILD ENETDOWN EHOSTUNREACH
EPROTOTYPE EL2NSYNC EREMCHG ENETRESET ENOTEMPTY);
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 EWOULDBLOCK
() { 11 }
sub ENOTRECOVERABLE
() { 59 }
sub ELOCKUNMAPPED
() { 72 }
sub ENAMETOOLONG
() { 78 }
sub EDESTADDRREQ
() { 96 }
sub ENOPROTOOPT
() { 99 }
sub EPROTONOSUPPORT
() { 120 }
sub ESOCKTNOSUPPORT
() { 121 }
sub EOPNOTSUPP
() { 122 }
sub EPFNOSUPPORT
() { 123 }
sub EAFNOSUPPORT
() { 124 }
sub EADDRINUSE
() { 125 }
sub EADDRNOTAVAIL
() { 126 }
sub ENETUNREACH
() { 128 }
sub ECONNABORTED
() { 130 }
sub ECONNRESET
() { 131 }
sub ETOOMANYREFS
() { 144 }
sub ECONNREFUSED
() { 146 }
sub EHOSTUNREACH
() { 148 }
sub EINPROGRESS
() { 150 }
my ($self, $errname) = @_;
my $proto = prototype("Errno::$errname");
if (defined($proto) && $proto eq "") {
$errno = 0 unless $! == $errno;
Carp
::confess
("ERRNO hash is read only!");
while(($k,$v) = each %Errno::) {
my $proto = prototype("Errno::$k");
last if (defined($proto) && $proto eq "");
my $s = scalar keys %Errno::; # initialize iterator
my ($self, $errname) = @_;
my $proto = !$r || $r eq 'CODE' ?
prototype($errname) : undef;
defined($proto) && $proto eq "";
Errno - System errno constants
use Errno qw(EINTR EIO :POSIX);
C<Errno> defines and conditionally exports all the error constants
defined in your system C<errno.h> include file. It has a single export
tag, C<:POSIX>, which will export all POSIX defined error numbers.
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:
unless (open(FH, "/fangorn/spouse")) {
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.
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) {
Graham Barr <gbarr@pobox.com>
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.