summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Zellweger <mail@gerdzellweger.com>2018-10-23 16:29:07 -0700
committerGerd Zellweger <gzellweger@vmware.com>2018-11-21 17:03:34 -0800
commit52b2015e83697e6210dd0fb30db841db6f505e80 (patch)
tree6fde12fd21548e7b3e4cd01a9df292b631146ef6
parentf68d06e2ed0b08818c04a2c51228c5f3ab90a09c (diff)
downloadrust-libc-52b2015e83697e6210dd0fb30db841db6f505e80.tar.gz
Add SOF_TIMESTAMPING_* from linux/net_tstamp.h.
-rw-r--r--src/unix/notbsd/linux/mod.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index 9416b8a1a1..e6f31dc721 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -1679,6 +1679,25 @@ pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
pub const MODULE_INIT_IGNORE_MODVERSIONS: ::c_uint = 0x0001;
pub const MODULE_INIT_IGNORE_VERMAGIC: ::c_uint = 0x0002;
+// linux/net_tstamp.h
+pub const SOF_TIMESTAMPING_TX_HARDWARE: ::c_uint = 1 << 0;
+pub const SOF_TIMESTAMPING_TX_SOFTWARE: ::c_uint = 1 << 1;
+pub const SOF_TIMESTAMPING_RX_HARDWARE: ::c_uint = 1 << 2;
+pub const SOF_TIMESTAMPING_RX_SOFTWARE: ::c_uint = 1 << 3;
+pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4;
+pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5;
+pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6;
+pub const SOF_TIMESTAMPING_OPT_ID: ::c_uint = 1 << 7;
+pub const SOF_TIMESTAMPING_TX_SCHED: ::c_uint = 1 << 8;
+pub const SOF_TIMESTAMPING_TX_ACK: ::c_uint = 1 << 9;
+pub const SOF_TIMESTAMPING_OPT_CMSG: ::c_uint = 1 << 10;
+pub const SOF_TIMESTAMPING_OPT_TSONLY: ::c_uint = 1 << 11;
+pub const SOF_TIMESTAMPING_OPT_STATS: ::c_uint = 1 << 12;
+pub const SOF_TIMESTAMPING_OPT_PKTINFO: ::c_uint = 1 << 13;
+pub const SOF_TIMESTAMPING_OPT_TX_SWHW: ::c_uint = 1 << 14;
+pub const SOF_TIMESTAMPING_LAST: ::c_uint = SOF_TIMESTAMPING_OPT_TX_SWHW;
+pub const SOF_TIMESTAMPING_MASK: ::c_uint = (SOF_TIMESTAMPING_LAST - 1) | SOF_TIMESTAMPING_LAST;
+
f! {
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
for slot in cpuset.bits.iter_mut() {