- Backport: stdlib: Do not use GLIBC_PRIVATE ABI for errno in libc_nonshared.a
- Backport: manual: Extract the @manpageurl{func,sec} macro
- Backport: Linux: Add the sched_setattr and sched_getattr functions
Note: The patch has been adapted downstream to avoid ABI changes
- Backport: Linux: Add missing scheduler constants to <sched.h>
- Backport: Linux: Do not check unused bytes after sched_getattr in tst-sched_setattr
- Backport: Linux: Add the pthread_gettid_np function (bug 27880)
Note: The patch has been adapted downstream to avoid ABI changes
- Backport: Linux: Remove attribute access from sched_getattr (bug 32781)
- Backport: Linux: Add new test misc/tst-sched_setattr-thread
- Backport: nptl: Include <stdbool.h> in tst-pthread_gettid_np.c
- Backport: Makefile: Clean up pthread_atfork integration
- Backport: manual: fix typo for sched_[sg]etattr
Resolves: RHEL-58357
22 lines
816 B
Diff
22 lines
816 B
Diff
commit 74c68fa61b5ebf4c64605a3cc5e47154a66671ce
|
|
Author: Florian Weimer <fweimer@redhat.com>
|
|
Date: Wed Mar 12 10:23:47 2025 +0100
|
|
|
|
Linux: Remove attribute access from sched_getattr (bug 32781)
|
|
|
|
The GCC attribute expects an element count, not bytes.
|
|
|
|
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
|
|
index a02cb69de77794fa..7c75303b80c18de2 100644
|
|
--- a/sysdeps/unix/sysv/linux/bits/sched.h
|
|
+++ b/sysdeps/unix/sysv/linux/bits/sched.h
|
|
@@ -149,7 +149,7 @@ int sched_setattr (pid_t tid, struct sched_attr *attr, unsigned int flags)
|
|
store it in *ATTR. */
|
|
int sched_getattr (pid_t tid, struct sched_attr *attr, unsigned int size,
|
|
unsigned int flags)
|
|
- __THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
|
|
+ __THROW __nonnull ((2));
|
|
|
|
#endif
|
|
|