Skip to content

A simple library that wraps the sched_* syscalls for musl libc to make schedtool work again.

License

Notifications You must be signed in to change notification settings

alaviss/liblinux_sched

Repository files navigation

Functional wrappers for sched_* syscalls on musl libc

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.

Dependencies

  • Nim >= 1.0.0

How to use

$ 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

Installation

$ nim build
$ nim install
For packagers

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). If libdir is not an absolute path, it will be assumed to be relative to prefix.

About

A simple library that wraps the sched_* syscalls for musl libc to make schedtool work again.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages