glibc/sysdeps/unix/sysv/linux/bits
Florian Weimer 21571ca0d7 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>
2024-09-11 10:05:08 +02:00
..
types
a.out.h
dirent.h
dirent_ext.h
epoll.h
errno.h
eventfd.h
fcntl-linux.h
fcntl.h
in.h
initspin.h
inotify.h
ioctl-types.h
ioctls.h
ipc-perm.h
local_lim.h
mman-linux.h
mman-map-flags-generic.h
mman-shared.h
mman.h
mman_ext.h
mqueue.h
msq.h
param.h
poll.h
posix_opt.h
procfs-extra.h
procfs-id.h
procfs-prregset.h
procfs.h
pthread_stack_min-dynamic.h
pthread_stack_min.h
ptrace-shared.h
resource.h
rseq.h
sched.h Linux: Add the sched_setattr and sched_getattr functions 2024-09-11 10:05:08 +02:00
sem.h
semaphore.h
shm.h
shmlba.h
sigaction.h
sigcontext.h
sigevent-consts.h
siginfo-arch.h
siginfo-consts-arch.h
siginfo-consts.h
signal_ext.h
signalfd.h
signum-arch.h
sigstack.h
sigstksz.h
socket-constants.h
socket.h
socket_type.h
spawn_ext.h
ss_flags.h
stat.h
statfs.h
statvfs.h
statx.h
stdio_lim.h
struct_stat.h
struct_stat_time64_helper.h
termios-baud.h
termios-c_cc.h
termios-c_cflag.h
termios-c_iflag.h
termios-c_lflag.h
termios-c_oflag.h
termios-misc.h
termios-struct.h
termios-tcflow.h
termios.h
time.h
timerfd.h
timex.h
typesizes.h
uio-ext.h
uio_lim.h
unistd_ext.h
utsname.h
waitflags.h