Check that SCM_XXX timestamp returned by the kernel is less 1 second
authorsobomax <sobomax@FreeBSD.org>
Fri, 9 Dec 2016 22:13:00 +0000 (22:13 +0000)
committersobomax <sobomax@FreeBSD.org>
Fri, 9 Dec 2016 22:13:00 +0000 (22:13 +0000)
commitfb624482691e4d93021a27ef602942fca50e2b51
tree0dd4458d5f6edc924530dcea157fe3e8b8b97312
parent6042079e9df883a58654135261679541eef2fd46
Check that SCM_XXX timestamp returned by the kernel is less 1 second
away in the past from the current time. This should be plenty for the
scheduler to do its job. It provides assurance that the timestamp
returned is actually a valid one, not just some random garbage.
tools/regression/sockets/unix_cmsg/Makefile
tools/regression/sockets/unix_cmsg/t_xxxtime.c.in
tools/regression/sockets/unix_cmsg/uc_check_time.c [new file with mode: 0644]
tools/regression/sockets/unix_cmsg/uc_check_time.h [new file with mode: 0644]