diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-01-02 22:48:16 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-01-16 18:27:21 +0000 |
commit | e8ce32bea30d599b481735a1d1b0a87ac06c5a66 (patch) | |
tree | 2ce3384e801fb958ffd685ae9cd1fa2fd442647e | |
parent | cf8f392260bf8e9b4e088f26f81ddb96bd97e91c (diff) | |
download | src-e8ce32bea30d599b481735a1d1b0a87ac06c5a66.tar.gz src-e8ce32bea30d599b481735a1d1b0a87ac06c5a66.zip |
linuxkpi: Define EBADSLT to 57
This is the same error code as Linux.
As emaste@ noted in the review, FreeBSD defines the following errno
values in `sys/errno.h`:
* 56 is `EISCONN`
* 57 is `ENOTCONN`
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D37935
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/errno.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/errno.h b/sys/compat/linuxkpi/common/include/linux/errno.h index 72d8af6779a5..796203422d23 100644 --- a/sys/compat/linuxkpi/common/include/linux/errno.h +++ b/sys/compat/linuxkpi/common/include/linux/errno.h @@ -34,6 +34,7 @@ #include <sys/errno.h> #define EBADRQC 56 /* Bad request code */ +#define EBADSLT 57 /* Invalid slot */ #define ECHRNG EDOM #define ETIME ETIMEDOUT |