diff options
| author | njoly <njoly@NetBSD.org> | 2013-12-17 22:14:24 +0000 |
|---|---|---|
| committer | njoly <njoly@NetBSD.org> | 2013-12-17 22:14:24 +0000 |
| commit | 2eb7ffbb7a1905a6a84d77f7c914cfb4d93ea84c (patch) | |
| tree | c590c6302d4fcaf3ccba65486c52f9cbf305fffe /sys/compat/linux/common/linux_errno.h | |
| parent | 4afb5b587b2932679078ff39ef775a9310f94361 (diff) | |
Cleanup compat linux errnos by adding generic errnos in a single file.
Use it for all arches except alpha and mips.
Add a few missing native to linux errno conversions.
Diffstat (limited to 'sys/compat/linux/common/linux_errno.h')
| -rw-r--r-- | sys/compat/linux/common/linux_errno.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_errno.h b/sys/compat/linux/common/linux_errno.h index 512b3628dc9..9ea2ed43b72 100644 --- a/sys/compat/linux/common/linux_errno.h +++ b/sys/compat/linux/common/linux_errno.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_errno.h,v 1.13 2008/04/28 20:23:43 martin Exp $ */ +/* $NetBSD: linux_errno.h,v 1.14 2013/12/17 22:14:24 njoly Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -86,9 +86,13 @@ #elif defined(__amd64__) #include <compat/linux/arch/amd64/linux_errno.h> #else -#include <compat/linux/arch/i386/linux_errno.h> /* XXX:Allow kdump to compile */ +#define LINUX_SCERR_SIGN - +#include <compat/linux/common/linux_errno_generic.h> #endif +/* Linux has no ENOTSUP error code. */ +#define LINUX_ENOTSUP LINUX_EOPNOTSUPP + extern const int native_to_linux_errno[]; #endif /* !_LINUX_ERRNO_H */ |
