summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/Errno.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Errno.pm')
-rw-r--r--Master/tlpkg/tlperl/lib/Errno.pm87
1 files changed, 82 insertions, 5 deletions
diff --git a/Master/tlpkg/tlperl/lib/Errno.pm b/Master/tlpkg/tlperl/lib/Errno.pm
index 7868f89f560..bd5fb6d0f72 100644
--- a/Master/tlpkg/tlperl/lib/Errno.pm
+++ b/Master/tlpkg/tlperl/lib/Errno.pm
@@ -5,14 +5,14 @@
package Errno;
require Exporter;
-use Config;
use strict;
+use Config;
"$Config{'archname'}-$Config{'osvers'}" eq
"MSWin32-x86-multi-thread-6.1" or
die "Errno architecture (MSWin32-x86-multi-thread-6.1) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";
-our $VERSION = "1.23";
+our $VERSION = "1.25";
$VERSION = eval $VERSION;
our @ISA = 'Exporter';
@@ -450,6 +450,7 @@ BEGIN {
EALREADY => 103,
EMR_GLSBOUNDEDRECORD => 103,
ERROR_TOO_MANY_SEM_REQUESTS => 103,
+ EBADMSG => 104,
EMR_PIXELFORMAT => 104,
ERROR_INVALID_AT_INTERRUPT_TIME => 104,
ECANCELED => 105,
@@ -470,6 +471,7 @@ BEGIN {
EHOSTUNREACH => 110,
EMR_RESERVED_110 => 110,
ERROR_OPEN_FAILED => 110,
+ EIDRM => 111,
EMR_COLORCORRECTPALETTE => 111,
ERROR_BUFFER_OVERFLOW => 111,
EINPROGRESS => 112,
@@ -495,18 +497,24 @@ BEGIN {
ENOBUFS => 119,
ERROR_BAD_DRIVER_LEVEL => 119,
EMR_RESERVED_120 => 120,
+ ENODATA => 120,
ERROR_CALL_NOT_IMPLEMENTED => 120,
EMR_COLORMATCHTOTARGETW => 121,
+ ENOLINK => 121,
ERROR_SEM_TIMEOUT => 121,
EMR_CREATECOLORSPACEW => 122,
EMR_MAX => 122,
+ ENOMSG => 122,
ERROR_INSUFFICIENT_BUFFER => 122,
ENOPROTOOPT => 123,
ERROR_INVALID_NAME => 123,
+ ENOSR => 124,
ERROR_INVALID_LEVEL => 124,
+ ENOSTR => 125,
ERROR_NO_VOLUME_LABEL => 125,
ENOTCONN => 126,
ERROR_MOD_NOT_FOUND => 126,
+ ENOTRECOVERABLE => 127,
ERROR_PROC_NOT_FOUND => 127,
EC_ENABLEONE => 128,
ENABLE_EXTENDED_FLAGS => 128,
@@ -531,9 +539,11 @@ BEGIN {
EPROTOTYPE => 136,
ERROR_NOT_JOINED => 136,
ERROR_NOT_SUBSTED => 137,
+ ETIME => 137,
ERROR_JOIN_TO_JOIN => 138,
ETIMEDOUT => 138,
ERROR_SUBST_TO_SUBST => 139,
+ ETXTBSY => 139,
ERROR_JOIN_TO_SUBST => 140,
EWOULDBLOCK => 140,
ERROR_SUBST_TO_JOIN => 141,
@@ -1850,15 +1860,65 @@ BEGIN {
ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER => 8615,
ERROR_DS_LDAP_SEND_QUEUE_FULL => 8616,
ERROR_DS_DRA_OUT_SCHEDULE_WINDOW => 8617,
+ WSAEINTR => 10004,
+ WSAEBADF => 10009,
+ WSAEACCES => 10013,
+ WSAEFAULT => 10014,
+ WSAEINVAL => 10022,
+ WSAEMFILE => 10024,
+ WSAEWOULDBLOCK => 10035,
+ WSAEINPROGRESS => 10036,
+ WSAEALREADY => 10037,
+ WSAENOTSOCK => 10038,
+ WSAEDESTADDRREQ => 10039,
+ WSAEMSGSIZE => 10040,
+ WSAEPROTOTYPE => 10041,
+ WSAENOPROTOOPT => 10042,
+ WSAEPROTONOSUPPORT => 10043,
ESOCKTNOSUPPORT => 10044,
+ WSAESOCKTNOSUPPORT => 10044,
+ WSAEOPNOTSUPP => 10045,
EPFNOSUPPORT => 10046,
+ WSAEPFNOSUPPORT => 10046,
+ WSAEAFNOSUPPORT => 10047,
+ WSAEADDRINUSE => 10048,
+ WSAEADDRNOTAVAIL => 10049,
+ WSAENETDOWN => 10050,
+ WSAENETUNREACH => 10051,
+ WSAENETRESET => 10052,
+ WSAECONNABORTED => 10053,
+ WSAECONNRESET => 10054,
+ WSAENOBUFS => 10055,
+ WSAEISCONN => 10056,
+ WSAENOTCONN => 10057,
ESHUTDOWN => 10058,
+ WSAESHUTDOWN => 10058,
ETOOMANYREFS => 10059,
+ WSAETOOMANYREFS => 10059,
+ WSAETIMEDOUT => 10060,
+ WSAECONNREFUSED => 10061,
+ WSAELOOP => 10062,
+ WSAENAMETOOLONG => 10063,
+ WSAEHOSTDOWN => 10064,
+ WSAEHOSTUNREACH => 10065,
+ WSAENOTEMPTY => 10066,
EPROCLIM => 10067,
+ WSAEPROCLIM => 10067,
EUSERS => 10068,
+ WSAEUSERS => 10068,
EDQUOT => 10069,
+ WSAEDQUOT => 10069,
ESTALE => 10070,
+ WSAESTALE => 10070,
EREMOTE => 10071,
+ WSAEREMOTE => 10071,
+ WSAEDISCON => 10101,
+ WSAENOMORE => 10102,
+ WSAECANCELLED => 10103,
+ WSAEINVALIDPROCTABLE => 10104,
+ WSAEINVALIDPROVIDER => 10105,
+ WSAEPROVIDERFAILEDINIT => 10106,
+ WSAEREFUSED => 10112,
ERROR_BIDI_ERROR_BASE => 13000,
ERROR_IPSEC_QM_POLICY_EXISTS => 13000,
ERROR_BIDI_STATUS_WARNING => 13001,
@@ -2451,8 +2511,21 @@ our %EXPORT_TAGS = (
ENOTDIR ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM EPFNOSUPPORT
EPIPE EPROCLIM EPROTONOSUPPORT EPROTOTYPE ERANGE EREMOTE EROFS
ESHUTDOWN ESOCKTNOSUPPORT ESPIPE ESRCH ESTALE ETIMEDOUT ETOOMANYREFS
- EUSERS EWOULDBLOCK EXDEV
- )]
+ ETXTBSY EUSERS EWOULDBLOCK EXDEV
+ )],
+ WINSOCK => [qw(
+ WSAEAFNOSUPPORT WSAEPFNOSUPPORT WSAEPROCLIM WSAEINPROGRESS
+ WSAENAMETOOLONG WSAENETDOWN WSAETIMEDOUT WSAESHUTDOWN
+ WSAEINVALIDPROVIDER WSAENETRESET WSAETOOMANYREFS WSAEINVAL
+ WSAEADDRNOTAVAIL WSAEREMOTE WSAENOMORE WSAENETUNREACH WSAEWOULDBLOCK
+ WSAEUSERS WSAECONNREFUSED WSAENOBUFS WSAEBADF WSAEHOSTUNREACH
+ WSAEMSGSIZE WSAEPROVIDERFAILEDINIT WSAEINTR WSAEPROTONOSUPPORT
+ WSAENOTCONN WSAEFAULT WSAEINVALIDPROCTABLE WSAECONNRESET WSAESTALE
+ WSAEOPNOTSUPP WSAEADDRINUSE WSAENOPROTOOPT WSAELOOP WSAEDESTADDRREQ
+ WSAEDQUOT WSAENOTSOCK WSAESOCKTNOSUPPORT WSAEALREADY WSAEPROTOTYPE
+ WSAECANCELLED WSAECONNABORTED WSAEREFUSED WSAEISCONN WSAEDISCON
+ WSAEHOSTDOWN WSAENOTEMPTY WSAEACCES WSAEMFILE
+ )],
);
sub TIEHASH { bless \%err }
@@ -2500,9 +2573,13 @@ Errno - System errno constants
=head1 DESCRIPTION
C<Errno> defines and conditionally exports all the error constants
-defined in your system C<errno.h> include file. It has a single export
+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: