summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-01-12 11:29:17 -0800
committerBrian Behlendorf <[email protected]>2011-01-27 16:06:09 -0800
commite2b25f698cecc7ab3a3073861ab81a8258644f89 (patch)
treeace17fb2e325c604892df142529504d208bb415f /include
parent5f46a517f17affc89591f0130870bca48a5b093e (diff)
Add MAXUID define
For Linux the maximum uid can vary depending on how your kernel is built. The Linux kernel still can be compiled with 16 but uids and gids, although I'm not aware of a major distribution which does this (maybe an embedded one?). Given that caviot it is reasonably safe to define the MAXUID as 2147483647.
Diffstat (limited to 'include')
-rw-r--r--include/sys/param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
index be3dd4bf3..60f3ae2a9 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -31,4 +31,6 @@
#define ptob(pages) (pages << PAGE_SHIFT)
#define btop(bytes) (bytes >> PAGE_SHIFT)
+#define MAXUID 2147483647
+
#endif /* SPL_PARAM_H */