summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2022-07-29 16:26:14 -0700
committerPeter A. Bigot <pab@pabigot.com>2022-07-29 16:30:56 -0700
commitf4f0cdbc39726e615161f86457b96c3ceaab9244 (patch)
treec02886e49173ea2bec7480d4a68367002b9cc1da
parentf143f2b9ace1c9b99dd5c104470e94f5990ed7d2 (diff)
downloadrust-libc-f4f0cdbc39726e615161f86457b96c3ceaab9244.tar.gz
linux: add TFD_TIMER_CANCEL_ON_SET constant
This constant was added in Linux v3.0 and glibc 2.26.
-rw-r--r--libc-test/semver/linux.txt1
-rw-r--r--src/unix/linux_like/linux/mod.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt
index ca6557eb51..cb9f387c2a 100644
--- a/libc-test/semver/linux.txt
+++ b/libc-test/semver/linux.txt
@@ -2452,6 +2452,7 @@ TCXONC
TFD_CLOEXEC
TFD_NONBLOCK
TFD_TIMER_ABSTIME
+TFD_TIMER_CANCEL_ON_SET
THOUSEP
TIMER_ABSTIME
TIOCCONS
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs
index 93082f941a..68a6911026 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -1811,6 +1811,7 @@ pub const ITIMER_PROF: ::c_int = 2;
pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
pub const TFD_NONBLOCK: ::c_int = O_NONBLOCK;
pub const TFD_TIMER_ABSTIME: ::c_int = 1;
+pub const TFD_TIMER_CANCEL_ON_SET: ::c_int = 2;
pub const _POSIX_VDISABLE: ::cc_t = 0;