]> xenbits.xensource.com Git - xen.git/commitdiff
remove non-POSIX error codes
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 22 Jul 2015 14:53:22 +0000 (16:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Jul 2015 14:53:22 +0000 (16:53 +0200)
Xen was using some non-POSIX error codes that are removed in this patch. For
future reference, the list of POSIX error codes has been obtained from:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html

The error codes already present and defined as optional (XSR), have been
left in place.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/include/public/errno.h

index 50adcb96993f7c64634174a44a3cb488b8c5098c..8c88bb1d40ff370c2824bb214bddfda4540528ed 100644 (file)
@@ -21,6 +21,12 @@ enum xen_errno {
 /*
  * Values originating from x86 Linux. Please consider using respective
  * values when adding new definitions here.
+ *
+ * The set of identifiers to be added here shouldn't extend beyond what
+ * POSIX mandates (see e.g.
+ * http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html)
+ * with the exception that we support some optional (XSR) values
+ * specified there (but no new ones should be added).
  */
 
 XEN_ERRNO(EPERM,        1)     /* Operation not permitted */
@@ -54,8 +60,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,7 +68,6 @@ 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(ENOTSOCK,    88)     /* Socket operation on non-socket */
 XEN_ERRNO(EOPNOTSUPP,  95)     /* Operation not supported on transport endpoint */
 XEN_ERRNO(EADDRINUSE,  98)     /* Address already in use */
@@ -72,8 +75,6 @@ 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 */
 
 #undef XEN_ERRNO