util-linux/schedutils
jonnyh64 fcc3078754 chrt: Use sched_setscheduler system call directly
musl libc does not support the sched_setscheduler library function
because the underlying Linux system call does not confirm to Posix;
this patch makes chrt use the system call directly

[kzak@redhat.com:
    - note that musl libc implements sched_setscheduler()
      but returns -ENOSYS all time...
    - add ifdefs to the patch
    - make sure we include syscall.h]

References: http://git.musl-libc.org/cgit/musl/commit/src/sched/sched_setscheduler.c?id=1e21e78bf7a5c24c217446d8760be7b7188711c2
Addresses: https://github.com/karelzak/util-linux/issues/943
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-01-30 10:45:32 +01:00
..
Makemodule.am build-sys: add BUILD_CHRT 2014-05-21 13:35:01 +02:00
chrt.1 man pages: Change a HYPHEN-MINUS (-) to a minus (\-) for options and numbers 2019-12-17 12:32:43 +01:00
chrt.c chrt: Use sched_setscheduler system call directly 2020-01-30 10:45:32 +01:00
ionice.1 man pages: Change a HYPHEN-MINUS (-) to a minus (\-) for options and numbers 2019-12-17 12:32:43 +01:00
ionice.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
taskset.1 tastset: (man) add :N stride for CPU lists 2019-03-29 13:00:42 +01:00
taskset.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00