mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
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>
This commit is contained in:
@ -3157,6 +3157,8 @@ GLIBC_2.4 wcstold F
|
||||
GLIBC_2.4 wcstold_l F
|
||||
GLIBC_2.4 wprintf F
|
||||
GLIBC_2.4 wscanf 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
|
||||
|
@ -2793,6 +2793,8 @@ GLIBC_2.4 sys_errlist D 0x430
|
||||
GLIBC_2.4 sys_nerr D 0x4
|
||||
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
|
||||
|
Reference in New Issue
Block a user