aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_errno.h
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2020-11-04 19:54:18 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2020-11-04 19:54:18 +0000
commit2f927d87f9ae6d38e3afed15265189de97e0538e (patch)
treee44d6ccc0406827accf86fd00e3c34f77e0b985e /sys/compat/linux/linux_errno.h
parent03d0d84bf6fa89059f64d64eefe1fc2935ddd0fc (diff)
downloadsrc-2f927d87f9ae6d38e3afed15265189de97e0538e.tar.gz
src-2f927d87f9ae6d38e3afed15265189de97e0538e.zip
Add linux_to_bsd_errtbl[], mapping Linux errnos to their BSD counterparts.
This will be used by fuse(4). Reviewed by: asomers MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26974
Notes
Notes: svn path=/head/; revision=367339
Diffstat (limited to 'sys/compat/linux/linux_errno.h')
-rw-r--r--sys/compat/linux/linux_errno.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_errno.h b/sys/compat/linux/linux_errno.h
index 3a62e76c8f63..aa6909381134 100644
--- a/sys/compat/linux/linux_errno.h
+++ b/sys/compat/linux/linux_errno.h
@@ -180,4 +180,8 @@
#define LINUX_ERFKILL 132
#define LINUX_EHWPOISON 133
+#ifdef _KERNEL
+#define LINUX_ELAST LINUX_EHWPOISON
+#endif
+
#endif /* _LINUX_ERRNO_H_ */