diff options
author | David Timber <mieabby@gmail.com> | 2020-08-24 09:37:43 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-08-24 10:05:29 +0930 |
commit | acf0b7a45171555eba2c10a6ef84f915c62f6791 (patch) | |
tree | 7253e8d86a199948530671c8bf59ecbb2c6e08f8 /src/util_rt.h | |
parent | 076671e7aa28451de087088c2e47f9e6064ae434 (diff) |
* 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
Diffstat (limited to 'src/util_rt.h')
-rw-r--r-- | src/util_rt.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); |