summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-04-29 13:58:45 -0700
committerBrian Behlendorf <[email protected]>2011-04-29 13:58:45 -0700
commitc1f95c2b94c0ee71b1fe1f71fd5e471802ffd73d (patch)
tree756d3e5debf80232b156a0506a75bda3295b6b0b /include/sys
parent9d4b7c17a0820a1bf48a7a3fd9dfb6e87b0306dd (diff)
Correct MAXUID
The uid_t on most systems is in fact and unsigned 32-bit value. This is almost always correct, however you could compile your kernel to use an unsigned 16-bit value for uid_t. In practice I've never encountered a distribution which does this so I'm willing to overlook this corner case for now.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
index 60f3ae2a9..5a1994960 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -31,6 +31,6 @@
#define ptob(pages) (pages << PAGE_SHIFT)
#define btop(bytes) (bytes >> PAGE_SHIFT)
-#define MAXUID 2147483647
+#define MAXUID UINT32_MAX
#endif /* SPL_PARAM_H */