aboutsummaryrefslogtreecommitdiff
path: root/src/util_rt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util_rt.h')
-rw-r--r--src/util_rt.h6
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);