about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips/mips64/n64
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-09-11 10:05:08 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-09-11 10:05:08 +0200
commit21571ca0d70302909cf72707b2a7736cf12190a0 (patch)
tree393b555d1decb0ae6191e0be8d2d5ca82cb3d1d4 /sysdeps/unix/sysv/linux/mips/mips64/n64
parent298bc488fdc047da37482f4003023cb9adef78f8 (diff)
downloadglibc-21571ca0d70302909cf72707b2a7736cf12190a0.tar.gz
glibc-21571ca0d70302909cf72707b2a7736cf12190a0.tar.xz
glibc-21571ca0d70302909cf72707b2a7736cf12190a0.zip
Linux: Add the sched_setattr and sched_getattr functions
And struct sched_attr.

In sysdeps/unix/sysv/linux/bits/sched.h, the hack that defines
sched_param around the inclusion of <linux/sched/types.h> is quite
ugly, but the definition of struct sched_param has already been
dropped by the kernel, so there is nothing else we can do and maintain
compatibility of <sched.h> with a wide range of kernel header
versions.  (An alternative would involve introducing a separate header
for this functionality, but this seems unnecessary.)

The existing sched_* functions that change scheduler parameters
are already incompatible with PTHREAD_PRIO_PROTECT mutexes, so
there is no harm in adding more functionality in this area.

The documentation mostly defers to the Linux manual pages.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/mips64/n64')
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist b/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
index 05e402ed30..cdf040dec2 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
@@ -2817,6 +2817,8 @@ GLIBC_2.4 renameat F
 GLIBC_2.4 symlinkat F
 GLIBC_2.4 unlinkat F
 GLIBC_2.4 unshare F
+GLIBC_2.41 sched_getattr F
+GLIBC_2.41 sched_setattr F
 GLIBC_2.5 __readlinkat_chk F
 GLIBC_2.5 inet6_opt_append F
 GLIBC_2.5 inet6_opt_find F