Missing functions core.sys.linux.sched
Begah
mathieu.roux222 at gmail.com
Mon Jun 15 14:52:02 UTC 2020
On Monday, 15 June 2020 at 13:57:37 UTC, Adam D. Ruppe wrote:
> On Monday, 15 June 2020 at 13:34:14 UTC, Begah wrote:
>> Is there a reason for the missing function aside from not
>> being up to date? What are the options for adding it? A C
>> library for just this function?
>
> They probably just forgot to add it.
>
> You can add it to your own code easily. Copy paste this into
> your code somewhere:
>
> extern(C) int setns(int fd, int nstype);
>
>
> And you can call it. A PR to druntime to add that to the
> official thing would prolly be accepted to.
Thanks that works, i guess DMD links with the up-to-date C
libraries!
If i find the time i'll try to check was is missing to possibly
do a PR.
More information about the Digitalmars-d
mailing list