Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/time.h
Show All 32 Lines | |||||
#define NSEC_PER_SEC 1000000000L | #define NSEC_PER_SEC 1000000000L | ||||
#define USEC_PER_MSEC 1000L | #define USEC_PER_MSEC 1000L | ||||
#define USEC_PER_SEC 1000000L | #define USEC_PER_SEC 1000000L | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <sys/stdint.h> | #include <sys/stdint.h> | ||||
#define timespec64 timespec | |||||
static inline struct timeval | static inline struct timeval | ||||
ns_to_timeval(const int64_t nsec) | ns_to_timeval(const int64_t nsec) | ||||
{ | { | ||||
struct timeval tv; | struct timeval tv; | ||||
long rem; | long rem; | ||||
if (nsec == 0) { | if (nsec == 0) { | ||||
tv.tv_sec = 0; | tv.tv_sec = 0; | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |