]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add TFD_TIMER_CANCEL_ON_SET to sys/timerfd.h.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 22 Feb 2017 20:50:38 +0000 (20:50 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 22 Feb 2017 20:50:38 +0000 (20:50 +0000)
In Linux 4.10, timerfd constants moved to a new uapi header, which
showed up that glibc's sys/timerfd.h is missing the old flag
TFD_TIMER_CANCEL_ON_SET.  This patch adds that flag to glibc's header.

Tested for x86_64.

* sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
New enum constant and macro.

ChangeLog
sysdeps/unix/sysv/linux/sys/timerfd.h

index afae0c3b30c6f7f8589496b679d969862e5f547a..0b368089469e54522bb2ec25969932c0fa4df813 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
+       New enum constant and macro.
+
        * scripts/build-many-glibcs.py (Context.checkout): Default Linux
        kernel version to 4.10.
 
index 6899b5ea474f1522deb41d0c29abb36df3d2372b..9811afe0fa59a4eaf40c7dd2153dec460c67bc44 100644 (file)
 /* Bits to be set in the FLAGS parameter of `timerfd_settime'.  */
 enum
   {
-    TFD_TIMER_ABSTIME = 1 << 0
+    TFD_TIMER_ABSTIME = 1 << 0,
 #define TFD_TIMER_ABSTIME TFD_TIMER_ABSTIME
+    TFD_TIMER_CANCEL_ON_SET = 1 << 1
+#define TFD_TIMER_CANCEL_ON_SET TFD_TIMER_CANCEL_ON_SET
   };