diff options
author | David Timber <mieabby@gmail.com> | 2020-08-17 18:16:49 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-08-17 18:35:31 +0930 |
commit | 7bd3eb3b1ad4209ac4cf4b46f849213d46bc33aa (patch) | |
tree | 0e7a16fb3d36ada8a2a494f8dc063e8b67350d58 /src/util_rt.h | |
parent | d7cc11191dfd3fead5e596fcbc24f40d1317819e (diff) |
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
Diffstat (limited to 'src/util_rt.h')
-rw-r--r-- | src/util_rt.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <stdint.h> #include <time.h> +#include <sys/poll.h> + #include <mbedtls/ctr_drbg.h> @@ -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); |