diff options
| author | njoly <njoly@NetBSD.org> | 2009-01-19 13:31:40 +0000 |
|---|---|---|
| committer | njoly <njoly@NetBSD.org> | 2009-01-19 13:31:40 +0000 |
| commit | 0ebed1143fea9730d30f5fabe3e2334564321c9d (patch) | |
| tree | b2c0921f82b0df10ac9f30d568fe4bd6497a62eb /sys/compat/linux/common/linux_misc.h | |
| parent | 3ba8641fb104d9433a057d982898abf904b3e7a2 (diff) | |
Small personality(2) update.
- Allow querying current personality.
- Use symbolic names instead of magic values.
Diffstat (limited to 'sys/compat/linux/common/linux_misc.h')
| -rw-r--r-- | sys/compat/linux/common/linux_misc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_misc.h b/sys/compat/linux/common/linux_misc.h index 60aaed6382c..03f142f87b7 100644 --- a/sys/compat/linux/common/linux_misc.h +++ b/sys/compat/linux/common/linux_misc.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.h,v 1.18 2009/01/11 02:45:48 christos Exp $ */ +/* $NetBSD: linux_misc.h,v 1.19 2009/01/19 13:31:40 njoly Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -122,6 +122,11 @@ struct linux_mnttypes { extern const struct linux_mnttypes linux_fstypes[]; extern const int linux_fstypes_cnt; +/* Personality types. */ +#define LINUX_PER_LINUX 0x00000000 +#define LINUX_PER_LINUX32 0x00000008 +#define LINUX_PER_QUERY 0xffffffff + #ifdef _KERNEL __BEGIN_DECLS int bsd_to_linux_wstat(int); |
