diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-07-19 11:38:15 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-12 10:30:10 -0300 |
commit | a4cf12360fb7a8eae4fa4923763309b7f10797c3 (patch) | |
tree | 81df014b44c6789b581f9151963a0561b6476e5f /support/support.h | |
parent | 0b8e83eb1455f3c0332eeb1f96fbc262fbd054e0 (diff) | |
download | glibc-a4cf12360fb7a8eae4fa4923763309b7f10797c3.tar.gz glibc-a4cf12360fb7a8eae4fa4923763309b7f10797c3.tar.xz glibc-a4cf12360fb7a8eae4fa4923763309b7f10797c3.zip |
support: Add support_socket_so_timestamp_time64
Check if the socket support 64-bit network packages timestamps (SO_TIMESTAMP and SO_TIMESTAMPNS). This will be used on recvmsg and recvmmsg tests to check if the timestamp should be generated.
Diffstat (limited to 'support/support.h')
-rw-r--r-- | support/support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/support/support.h b/support/support.h index ee27149d98..73b9fc48f0 100644 --- a/support/support.h +++ b/support/support.h @@ -183,6 +183,10 @@ extern bool support_select_modifies_timeout (void); tv_usec larger than 1000000. */ extern bool support_select_normalizes_timeout (void); +/* Return true if socket FD supports 64-bit timestamps with the SOL_SOCKET + and SO_TIMESTAMP/SO_TIMESTAMPNS. */ +extern bool support_socket_so_timestamp_time64 (int fd); + /* Create a timer that trigger after SEC seconds and NSEC nanoseconds. If REPEAT is true the timer will repeat indefinitely. If CALLBACK is not NULL, the function will be called when the timer expires; otherwise a |