aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs/common/socket_util.h
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-05-22 12:28:09 +0200
committerMicael Karlberg <[email protected]>2019-05-22 12:28:09 +0200
commit8551ec93d2864d8122472d8531a5268ee500d38d (patch)
treeaa25a489d3f913d5c38332bbaa5940b4ea761a79 /erts/emulator/nifs/common/socket_util.h
parent02752f185b18c7f1c3f57dd80cf7c12f925dfe6a (diff)
downloadotp-8551ec93d2864d8122472d8531a5268ee500d38d.tar.gz
otp-8551ec93d2864d8122472d8531a5268ee500d38d.tar.bz2
otp-8551ec93d2864d8122472d8531a5268ee500d38d.zip
[esock] Replace usage of clock_gettime(CLOCK_REALTIME, ...)
The usage of the function clock_gettime(CLOCK_REALTIME, ...) has been replaced with enif_monotonic_time(ERL_NIF_USEC) and enif_time_offset(ERL_NIF_USEC). For now its if-def'ed so that we still *can* use clock_gettime, but for the momemnt its not used even if its available. OTP-15566, OTP-15686
Diffstat (limited to 'erts/emulator/nifs/common/socket_util.h')
-rw-r--r--erts/emulator/nifs/common/socket_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/socket_util.h b/erts/emulator/nifs/common/socket_util.h
index 84b1c8085f..2688a920c4 100644
--- a/erts/emulator/nifs/common/socket_util.h
+++ b/erts/emulator/nifs/common/socket_util.h
@@ -199,6 +199,9 @@ extern
ERL_NIF_TERM esock_make_error_errno(ErlNifEnv* env, int err);
extern
+BOOLEAN_T esock_timestamp(char *buf, unsigned int len);
+
+extern
void esock_warning_msg(const char* format, ... );