aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-10-21 20:35:29 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-10-21 20:35:29 +0000
commit06f0dd00a0572df0f2ecfeb7800865672f9eb979 (patch)
treea5abd0d6e26fc5a70b7417c02a3adc4aef0c7776 /sys/sys/types.h
parent90162a4e87f0e2dcd2f55779ce4b73d1a451fc37 (diff)
downloadsrc-06f0dd00a0572df0f2ecfeb7800865672f9eb979.tar.gz
src-06f0dd00a0572df0f2ecfeb7800865672f9eb979.zip
Add id_t, a new type capable of representing a pid_t or a uid_t. Move
the definition of rlim_t to <sys/_types.h> so that it can be shared.
Notes
Notes: svn path=/head/; revision=105650
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index bd8ec13619cb..0a5606272fe7 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -127,6 +127,11 @@ typedef __gid_t gid_t; /* group id */
#define _GID_T_DECLARED
#endif
+#ifndef _ID_T_DECLARED
+typedef __id_t id_t; /* can hold a uid_t or pid_t */
+#define _ID_T_DECLARED
+#endif
+
typedef __uint32_t ino_t; /* inode number */
#ifndef _KEY_T_DECLARED
@@ -152,7 +157,12 @@ typedef __pid_t pid_t; /* process id */
#endif
typedef __register_t register_t;
-typedef __int64_t rlim_t; /* resource limit (XXX not unsigned) */
+
+#ifndef _RLIM_T_DECLARED
+typedef __rlim_t rlim_t; /* resource limit */
+#define _RLIM_T_DECLARED
+#endif
+
typedef __segsz_t segsz_t; /* segment size (in pages) */
typedef __u_register_t u_register_t;