summaryrefslogtreecommitdiff
path: root/libhw_cr/host_util.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-06 23:57:00 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-06 23:57:00 -0600
commit53d0b11262177cd212803fc9330e055871c348b3 (patch)
treead09857ab8b7a1e0f8c5bddd2b7af0bf093275cc /libhw_cr/host_util.h
parentb5a29a4c57f09ed11b4591f99493fd57fdcee593 (diff)
parentb85e2a4c1bc272cb6ede732751beb55906f7e298 (diff)
Merge branch 'lukeshu/error'
Diffstat (limited to 'libhw_cr/host_util.h')
-rw-r--r--libhw_cr/host_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libhw_cr/host_util.h b/libhw_cr/host_util.h
index 4adb94e..7e559ef 100644
--- a/libhw_cr/host_util.h
+++ b/libhw_cr/host_util.h
@@ -11,6 +11,8 @@
#include <sys/time.h> /* for struct timeval */
#include <time.h> /* for struct timespec */
+#include <libmisc/error.h> /* for _errnum, error */
+
int host_sigrt_alloc(void);
typedef struct timeval host_us_time_t;
@@ -21,4 +23,8 @@ host_ns_time_t ns_to_host_ns_time(uint64_t time_ns);
uint64_t ns_from_host_us_time(host_us_time_t host_time);
uint64_t ns_from_host_ns_time(host_ns_time_t host_time);
+#define host_errno_t int
+_errnum errno_host2lm(host_errno_t host);
+error errno2lm(host_errno_t host);
+
#endif /* _LIBHW_CR_HOST_UTIL_H_ */