[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] errno: add POSIX error codes EMSGSIZE, ECONNREFUSED to the ABI



commit ad208bd70b14be0dd9891d1a96923499f61650fa
Author:     Christopher Clark <christopher.w.clark@xxxxxxxxx>
AuthorDate: Wed Feb 6 09:55:00 2019 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Feb 7 14:22:32 2019 +0100

    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 <christopher.clark6@xxxxxxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
    Release-acked-by: Juergen Gross <jgross@xxxxxxxx>
---
 xen/include/public/errno.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/include/public/errno.h b/xen/include/public/errno.h
index 305c112bed..e1d02fcddf 100644
--- a/xen/include/public/errno.h
+++ b/xen/include/public/errno.h
@@ -102,6 +102,7 @@ XEN_ERRNO(EILSEQ,   84)     /* Illegal byte sequence */
 XEN_ERRNO(ERESTART,    85)     /* Interrupted system call should be restarted 
*/
 #endif
 XEN_ERRNO(ENOTSOCK,    88)     /* Socket operation on non-socket */
+XEN_ERRNO(EMSGSIZE,    90)     /* Message too large. */
 XEN_ERRNO(EOPNOTSUPP,  95)     /* Operation not supported on transport 
endpoint */
 XEN_ERRNO(EADDRINUSE,  98)     /* Address already in use */
 XEN_ERRNO(EADDRNOTAVAIL, 99)   /* Cannot assign requested address */
@@ -109,6 +110,7 @@ XEN_ERRNO(ENOBUFS,  105)    /* No buffer space available */
 XEN_ERRNO(EISCONN,     106)    /* Transport endpoint is already connected */
 XEN_ERRNO(ENOTCONN,    107)    /* Transport endpoint is not connected */
 XEN_ERRNO(ETIMEDOUT,   110)    /* Connection timed out */
+XEN_ERRNO(ECONNREFUSED,        111)    /* Connection refused */
 
 #undef XEN_ERRNO
 #endif /* XEN_ERRNO */
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.