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 <clandmeter@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4459
This commit is contained in:
Carlo Landmeter 2016-03-25 13:21:53 +01:00 committed by Brian Behlendorf
parent 43148eaef2
commit 1ad32f0a18
2 changed files with 5 additions and 4 deletions

View File

@ -58,6 +58,11 @@
#define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
#endif #endif
typedef long long hrtime_t;
typedef struct timespec timestruc_t;
typedef struct timespec timespec_t;
extern hrtime_t gethrtime(void); extern hrtime_t gethrtime(void);
extern void gethrestime(timestruc_t *); extern void gethrestime(timestruc_t *);

View File

@ -55,10 +55,6 @@ typedef longlong_t diskaddr_t;
typedef ulong_t pgcnt_t; /* number of pages */ typedef ulong_t pgcnt_t; /* number of pages */
typedef long spgcnt_t; /* signed 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 short pri_t;
typedef int zoneid_t; typedef int zoneid_t;