]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add SCHED_GETATTR_FLAG_DL_DYNAMIC from Linux 7.1 to bits/sched.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 3 Jul 2026 14:46:32 +0000 (11:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 3 Jul 2026 19:31:50 +0000 (16:31 -0300)
It was added by commit 2e7af192697ef2a71c76fd57860b0fcd02754e14, which
introduced the flags argument for sched_getattr.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/bits/sched.h
sysdeps/unix/sysv/linux/tst-sched-consts.py

index efbb4646cd5fc4a3c6fe6e3cbff9e59abe48c0a7..ff7545b39e3063d28e43acc61f20f1f6916c24a7 100644 (file)
@@ -54,6 +54,9 @@
 #define SCHED_FLAG_UTIL_CLAMP \
   (SCHED_FLAG_UTIL_CLAMP_MIN | SCHED_FLAG_UTIL_CLAMP_MAX)
 
+/* Flags for the flags argument of sched_getattr.  */
+#define SCHED_GETATTR_FLAG_DL_DYNAMIC  0x01
+
 /* Use "" to work around incorrect macro expansion of the
    __has_include argument (GCC PR 80005).  */
 # ifdef __has_include
index 3a012ca50460504a9a7afd7dda8ec42592257ae2..9ca9575dec422d1a42e09942eae4e77705041717 100644 (file)
@@ -33,7 +33,7 @@ def main():
                         help='C compiler (including options) to use')
     args = parser.parse_args()
     linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc)
-    linux_version_glibc = (6, 17)
+    linux_version_glibc = (7, 1)
     sys.exit(glibcextract.compare_macro_consts(
         '#define _GNU_SOURCE 1\n'
         '#include <sched.h>\n',