From 7bd3eb3b1ad4209ac4cf4b46f849213d46bc33aa Mon Sep 17 00:00:00 2001 From: David Timber Date: Mon, 17 Aug 2020 18:16:49 +0930 Subject: Employ pthsem ... * Use uint8_t array for hardcoded binary data * Add proone-ipaddr-arr to hardcode DoT servers * Convert X509 data * Brought back M68k and ARC archs just in case * Add CLOCK_REALTIME in prne_mbedtls_entropy_proc_src_f for more entropy * Remove installation of signal handlers. Use sigwait() instead * Bugfix: prne_rnd_anum_str() returned null characters * Add prne_dbgpf() and prne_dbgperr() * prne_assert(): put errno into a register so it's visible in the core dump --- src/util_rt.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util_rt.h') diff --git a/src/util_rt.h b/src/util_rt.h index 9878064..ef241fc 100644 --- a/src/util_rt.h +++ b/src/util_rt.h @@ -6,6 +6,8 @@ #include #include +#include + #include @@ -32,11 +34,8 @@ bool prne_strendsw (const char *str, const char *w) { } #endif -void prne_ok_or_die (const int ret); -void prne_true_or_die (const bool ret); +void prne_assert (const bool ret); void prne_empty_func (void); -bool prne_is_nonblock_errno (void); -void prne_die_not_nonblock_err (void); void prne_close (const int fd); void prne_shutdown (const int fd, const int how); @@ -64,6 +63,7 @@ double prne_real_timespec (const struct timespec ts); 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); 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); -- cgit