Hi Bernhard,

On Thursday, 15 October 2020, 11:40:03 CEST, Bernhard Reutner-Fischer wrote:
> On Fri, 11 Sep 2020 17:45:38 +0200
>
> Christian Eggers <[email protected]> wrote:
> > musl "implements" several sched_xxx() functions by returning ENOSYS. As
> > an alternative, either pthread_(g|s)etschedparam() or direct syscalls
> > can be used.
>
> I don't like using the syscalls directly in the way you propose below.
I simply took the same way as the "original" chrt command.

> OTOH pulling in pthread for the pedantically correct pthread_ functions
> is crude.
> But then, nowadays, the Threads option is part of Base, so what exactly
> is the objection from the musl folks so they stub out
> sched_getscheduler?
The reasons can be read here:
https://git.musl-libc.org/cgit/musl/commit/?id=1e21e78bf7a5

In short: The musl developers feel that the Linux kernel implements the
sched_* syscalls wrong. In order to protect musl users from using this wrong
syscalls, musl simply returns -ENOSYS in it's stubs.

I think there is no way to discuss this with the musl developer(s) nor Linus
Torvalds. If busybox wants to use this functionality, we have the "pthread"
and "syscall" options. Using the latter one in this case would keep the code
in sync with the original chrt command.

>
> thanks,
Best regards
Christian



________________________________
 
[http://assets.arri.com/media/sign/2020-04-03-E-mail-signature-Stellar2_V1.jpg] 
<https://microsites.arri.com/stellar/>

Get all the latest information from www.arri.com<https://www.arri.com/>, 
Facebook<https://www.facebook.com/TeamARRI>, 
Twitter<https://twitter.com/ARRIChannel>, Instagram<https://instagram.com/arri> 
and YouTube<https://www.youtube.com/user/ARRIChannel>.

Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: 
HRA 57918
Persönlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: München - Registergericht: Amtsgericht München - Handelsregisternummer: 
HRB 54477
Geschäftsführer: Dr. Michael Neuhäuser; Stephan Schenk; Walter Trauninger; 
Markus Zeiler
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to