summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-12-22 22:02:41 +0000
committermike <mike@FreeBSD.org>2002-12-22 22:02:41 +0000
commitf2916da2791f333ec0f2f358bf35929a351bd2e0 (patch)
tree1c853bc300c7c43c7d99906aa00435b4cfaea225 /sys
parent21a52f8f3fc0f300084a6d330de3308fca9fdbac (diff)
downloadFreeBSD-src-f2916da2791f333ec0f2f358bf35929a351bd2e0.zip
FreeBSD-src-f2916da2791f333ec0f2f358bf35929a351bd2e0.tar.gz
Add suseconds_t and useconds_t for storing microseconds.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/_types.h2
-rw-r--r--sys/sys/types.h11
2 files changed, 13 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 3ea24c4..f8884c6 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -49,8 +49,10 @@ typedef __int32_t __pid_t; /* process [group] */
typedef __int64_t __rlim_t; /* resource limit (XXX not unsigned) */
typedef __uint8_t __sa_family_t;
typedef __uint32_t __socklen_t;
+typedef long __suseconds_t; /* microseconds (signed) */
typedef __int32_t __timer_t; /* timer_gettime()... */
typedef __uint32_t __uid_t;
+typedef unsigned int __useconds_t; /* microseconds (unsigned) */
/*
* Unusual type definitions.
diff --git a/sys/sys/types.h b/sys/sys/types.h
index c952a78..14daf6a 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -174,6 +174,12 @@ typedef __rlim_t rlim_t; /* resource limit */
#endif
typedef __segsz_t segsz_t; /* segment size (in pages) */
+
+#ifndef _SUSECONDS_T_DECLARED
+typedef __suseconds_t suseconds_t; /* microseconds (signed) */
+#define _SUSECONDS_T_DECLARED
+#endif
+
typedef __u_register_t u_register_t;
#ifndef _UID_T_DECLARED
@@ -181,6 +187,11 @@ typedef __uid_t uid_t; /* user id */
#define _UID_T_DECLARED
#endif
+#ifndef _USECONDS_T_DECLARED
+typedef __useconds_t useconds_t; /* microseconds (unsigned) */
+#define _USECONDS_T_DECLARED
+#endif
+
typedef __vm_offset_t vm_offset_t;
typedef __vm_ooffset_t vm_ooffset_t;
typedef __vm_pindex_t vm_pindex_t;
OpenPOWER on IntegriCloud