musl libc intentionally implements several sched_*
functions as no-op that
returns ENOTSUPP
due to the fact that Linux versions of those syscalls don't
comply with their POSIX counterparts.
This library brings back those functions as many "broken" software written for
Linux requires them to function (such as schedtool
, rtkit
), and you don't
feel like patching in these syscall wrappers yourself.
- Nim >= 1.0.0
$ nim build
$ clang -llinux_sched -L. program.c
# Alternatively, the library can also be LD_PRELOAD-ed
$ env LD_PRELOAD=$PWD/liblinux_sched.so.0 your-program-here
$ nim build
$ nim install
The installation folder can be customized via these flags:
-d:prefix:/path/to/prefix
: Set the installation prefix (default:/usr
).-d:libdir:/path/to/lib
: Set the installation folder (default:/usr/lib
). Iflibdir
is not an absolute path, it will be assumed to be relative to prefix.