From acf0b7a45171555eba2c10a6ef84f915c62f6791 Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 24 Aug 2020 09:37:43 +0930 Subject: * htbt checkpoint * Change PRNE_BUILD_ENTROPY to uint8_t array * endian.h problem * Remove "-I." CFLAG added by Automake () * Moved endian conversion macros to endian.h * Moved DNS server config from config.h to resolv.h to reduce compile time * Refactor resolv_ensure_act_dns_fd() to reduce binary size --- src/util_rt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/util_rt.h') diff --git a/src/util_rt.h b/src/util_rt.h index 668a01b..a9fb39b 100644 --- a/src/util_rt.h +++ b/src/util_rt.h @@ -48,15 +48,17 @@ void prne_uuid_tostr (const uint8_t *in, char *out); struct timespec prne_sub_timespec (const struct timespec a, const struct timespec b); double prne_real_timespec (const struct timespec ts); +struct timespec prne_ms_timespec (const long ms); int prne_cmp_timespec (const struct timespec a, const struct timespec b); struct timespec prne_min_timespec (const struct timespec a, const struct timespec b); struct timespec prne_max_timespec (const struct timespec a, const struct timespec b); struct timespec prne_gettime (const clockid_t cid); +struct timeval prne_ts2tv (const struct timespec ts); +struct timeval prne_ms_timeval (const long ms); + char *prne_enc_base64_mem (const uint8_t *data, const size_t size); bool prne_dec_base64_mem (const char *str, const size_t str_len, uint8_t **data, size_t *size); -bool prne_set_pipe_size (const int fd, const int size); - // getrandom polyfill ssize_t prne_geturandom (void *buf, const size_t len); -- cgit