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

Re: [Xen-devel] [PATCH for-4.6 3/3] xen: remove non-POSIX error codes



>>> On 21.07.15 at 17:56, <roger.pau@xxxxxxxxxx> wrote:
> --- a/xen/include/public/errno.h
> +++ b/xen/include/public/errno.h
> @@ -54,8 +54,6 @@ XEN_ERRNO(EDEADLK,  35)     /* Resource deadlock would 
> occur */
>  XEN_ERRNO(ENAMETOOLONG,      36)     /* File name too long */
>  XEN_ERRNO(ENOLCK,    37)     /* No record locks available */
>  XEN_ERRNO(ENOSYS,    38)     /* Function not implemented */
> -XEN_ERRNO(EBADRQC,   56)     /* Invalid request code */
> -XEN_ERRNO(EBADSLT,   57)     /* Invalid slot */
>  XEN_ERRNO(ENODATA,   61)     /* No data available */
>  XEN_ERRNO(ETIME,     62)     /* Timer expired */
>  XEN_ERRNO(EBADMSG,   74)     /* Not a data message */
> @@ -64,15 +62,12 @@ XEN_ERRNO(EILSEQ, 84)     /* Illegal byte sequence */
>  #ifdef __XEN__ /* Internal only, should never be exposed to the guest. */
>  XEN_ERRNO(ERESTART,  85)     /* Interrupted system call should be restarted 
> */
>  #endif
> -XEN_ERRNO(EUSERS,    87)     /* Too many users */
>  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 */
>  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(ESHUTDOWN, 108)    /* Cannot send after transport endpoint 
> shutdown */
> -XEN_ERRNO(ETOOMANYREFS,      109)    /* Too many references: cannot splice */
>  XEN_ERRNO(ETIMEDOUT, 110)    /* Connection timed out */

Considering that I stripped several values when putting together
the change that introduced this header, shouldn't we perhaps
consider re-adding a few that could be used as replacements?
ENOTSOCK (possibly usable in patch 1) would be one such
candidate.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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