aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs/common/socket_dbg.c
AgeCommit message (Collapse)Author
2019-07-04[esock] Format buffer lengthMicael Karlberg
Corrected calculation of buffer length for format(ed) string. OTP-15817
2019-07-04[esock] Fixed debug "file"Micael Karlberg
Debug printouts is done to "dbgout", but the dbg macro flushed "stdout" (which was the default). So, in order to make the macro work properly in all cases, we rename dbgout to esock_dbgout and make it extern (was static), and then used that in the macro. OTP-15817
2019-05-22[esock] Replace usage of clock_gettime(CLOCK_REALTIME, ...)Micael Karlberg
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
2019-03-18[socket|net] Temporary fix for absence of clock_gettime(CLOCK_REALTIMEMicael Karlberg
We use clock_gettime(CLOCK_REALTIME, ...) to create a simple timestamp. This is used both for debugging and when writing error/warning messages (from the nif-code). The workaround for the absence of this function (on some platforms, old versions of darwin for example) is to simply skip the timestamp.
2018-11-05[socket-nif] Make it possible to send (nif) debug to fileMicael Karlberg
Make it possible to open a file and send debug printouts to (instead of stdout) for debug printouts from the nif-code. OTP-14831
2018-09-18[socket+net-nif] Introduced a couple of common filesMicael Karlberg
Started to move the common stuff, such as common utility functions, debug and encode / decode of basic types. OTP-14831