Skip to content

Commit abf7693

Browse files
dozylynxEric Chanudet
authored andcommitted
errno: add POSIX error codes EMSGSIZE, ECONNREFUSED to the ABI
EMSGSIZE: Argo's sendv operation will return EMSGSIZE when an excess amount of data, across all iovs, has been supplied, exceeding either the statically configured maximum size of a transmittable message, or the (variable) size of the ring registered by the destination domain. ECONNREFUSED: Argo's register operation will return ECONNREFUSED if a ring is being registered to communicate with a specific remote domain that does exist but is not argo-enabled. These codes are described by POSIX here: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html EMSGSIZE : "Message too large" ECONNREFUSED : "Connection refused". The numeric values assigned to each are taken from Linux, as is the case for the existing error codes. EMSGSIZE : 90 ECONNREFUSED : 111 Signed-off-by: Christopher Clark <[email protected]> Acked-by: Jan Beulich <[email protected]>
1 parent 650c89a commit abf7693

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xen/include/public/errno.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,15 @@ XEN_ERRNO(EILSEQ, 84) /* Illegal byte sequence */
102102
XEN_ERRNO(ERESTART, 85) /* Interrupted system call should be restarted */
103103
#endif
104104
XEN_ERRNO(ENOTSOCK, 88) /* Socket operation on non-socket */
105+
XEN_ERRNO(EMSGSIZE, 90) /* Message too large. */
105106
XEN_ERRNO(EOPNOTSUPP, 95) /* Operation not supported on transport endpoint */
106107
XEN_ERRNO(EADDRINUSE, 98) /* Address already in use */
107108
XEN_ERRNO(EADDRNOTAVAIL, 99) /* Cannot assign requested address */
108109
XEN_ERRNO(ENOBUFS, 105) /* No buffer space available */
109110
XEN_ERRNO(EISCONN, 106) /* Transport endpoint is already connected */
110111
XEN_ERRNO(ENOTCONN, 107) /* Transport endpoint is not connected */
111112
XEN_ERRNO(ETIMEDOUT, 110) /* Connection timed out */
113+
XEN_ERRNO(ECONNREFUSED, 111) /* Connection refused */
112114

113115
#undef XEN_ERRNO
114116
#endif /* XEN_ERRNO */

0 commit comments

Comments
 (0)