[PATCH v2 06/13] Add SCHED_GETATTR_FLAG_DL_DYNAMIC from Linux 7.1 to bits/sched.h

Florian Weimer fweimer@redhat.com
Fri Jul 3 17:47:11 GMT 2026


* Adhemerval Zanella:

> It was added by commit 2e7af192697ef2a71c76fd57860b0fcd02754e14, which
> introduced the flags argument for sched_getattr.
> ---
>  sysdeps/unix/sysv/linux/bits/sched.h        | 3 +++
>  sysdeps/unix/sysv/linux/tst-sched-consts.py | 2 +-
>  2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
> index efbb4646cd5..ff7545b39e3 100644
> --- a/sysdeps/unix/sysv/linux/bits/sched.h
> +++ b/sysdeps/unix/sysv/linux/bits/sched.h
> @@ -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
> diff --git a/sysdeps/unix/sysv/linux/tst-sched-consts.py b/sysdeps/unix/sysv/linux/tst-sched-consts.py
> index 3a012ca5046..9ca9575dec4 100644
> --- a/sysdeps/unix/sysv/linux/tst-sched-consts.py
> +++ b/sysdeps/unix/sysv/linux/tst-sched-consts.py
> @@ -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',

Okay.

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Thanks,
Florian



More information about the Libc-alpha mailing list