aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2004-11-08 18:05:43 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2004-11-08 18:05:43 +0000
commitde84c3d14f079d8deac042dddfc687e0072eb5dd (patch)
tree0a0138d341344c8d0102b346bd5b736ad9604066 /sys/sys/_types.h
parentbe9a7a22495318bb03fed4e61171f0ffe6698ff2 (diff)
downloadsrc-de84c3d14f079d8deac042dddfc687e0072eb5dd.tar.gz
src-de84c3d14f079d8deac042dddfc687e0072eb5dd.zip
Document why rlim_t needs to be a signed type.
Define RLIM_INFINITY as INT64_MAX instead of hand-rolling it. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=137390
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r--sys/sys/_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index c77f683fc53e..3047e985337b 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -49,7 +49,9 @@ typedef int __nl_item;
typedef __uint16_t __nlink_t; /* link count */
typedef __int64_t __off_t; /* file offset */
typedef __int32_t __pid_t; /* process [group] */
-typedef __int64_t __rlim_t; /* resource limit (XXX not unsigned) */
+typedef __int64_t __rlim_t; /* resource limit - intentionally */
+ /* signed, because of legacy code */
+ /* that uses -1 for RLIM_INFINITY */
typedef __uint8_t __sa_family_t;
typedef __uint32_t __socklen_t;
typedef long __suseconds_t; /* microseconds (signed) */