summaryrefslogtreecommitdiffstats
path: root/lib/libspl/include
diff options
context:
space:
mode:
authorCarlo Landmeter <[email protected]>2016-03-25 13:21:53 +0100
committerBrian Behlendorf <[email protected]>2016-03-29 18:33:17 -0700
commit1ad32f0a18657b3905bb127463e1a0653e0ef4ad (patch)
tree6162bd2e2f1f35743d78be61e0a23bc274f908ca /lib/libspl/include
parent43148eaef2819eeda68e6846c03f0bd4672245a7 (diff)
Move hrtime_t timestruc_t and timespec_t
hrtime_t timestruc_t and timespec_t should have originally been included in sys/time.h so lets move them. longlong_t is not defined by any standard so change it to long long Signed-off-by: Carlo Landmeter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4459
Diffstat (limited to 'lib/libspl/include')
-rw-r--r--lib/libspl/include/sys/time.h5
-rw-r--r--lib/libspl/include/sys/types.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/libspl/include/sys/time.h b/lib/libspl/include/sys/time.h
index f0da440a2..03da3f7e3 100644
--- a/lib/libspl/include/sys/time.h
+++ b/lib/libspl/include/sys/time.h
@@ -58,6 +58,11 @@
#define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
#endif
+typedef long long hrtime_t;
+typedef struct timespec timestruc_t;
+typedef struct timespec timespec_t;
+
+
extern hrtime_t gethrtime(void);
extern void gethrestime(timestruc_t *);
diff --git a/lib/libspl/include/sys/types.h b/lib/libspl/include/sys/types.h
index 25d56bed5..8996af96a 100644
--- a/lib/libspl/include/sys/types.h
+++ b/lib/libspl/include/sys/types.h
@@ -55,10 +55,6 @@ typedef longlong_t diskaddr_t;
typedef ulong_t pgcnt_t; /* number of pages */
typedef long spgcnt_t; /* signed number of pages */
-typedef longlong_t hrtime_t;
-typedef struct timespec timestruc_t;
-typedef struct timespec timespec_t;
-
typedef short pri_t;
typedef int zoneid_t;