Skip to content

Commit 4bfd852

Browse files
committed
Auto merge of #2854 - pabigot:pabigot/20220729a, r=JohnTitor
linux: add TFD_TIMER_CANCEL_ON_SET constant This constant was added in Linux v3.0 and glibc 2.26.
2 parents d90fcbf + f4f0cdb commit 4bfd852

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,6 +2452,7 @@ TCXONC
24522452
TFD_CLOEXEC
24532453
TFD_NONBLOCK
24542454
TFD_TIMER_ABSTIME
2455+
TFD_TIMER_CANCEL_ON_SET
24552456
THOUSEP
24562457
TIMER_ABSTIME
24572458
TIOCCONS

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ pub const ITIMER_PROF: ::c_int = 2;
18111811
pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
18121812
pub const TFD_NONBLOCK: ::c_int = O_NONBLOCK;
18131813
pub const TFD_TIMER_ABSTIME: ::c_int = 1;
1814+
pub const TFD_TIMER_CANCEL_ON_SET: ::c_int = 2;
18141815

18151816
pub const _POSIX_VDISABLE: ::cc_t = 0;
18161817

0 commit comments

Comments
 (0)