On Thursday, 16 May 2019 at 17:18:01 UTC, Alex wrote:
addingint dup(int) @trusted; int dup2(int, int) @trusted; int close(int) @trusted; int open(in char*, int, ...) @trusted;
Be sure to make them extern(C).Sorry, I haven't tried it, I'm guessing that it should work based on:
https://github.com/digitalmars/dmc/blob/master/include/io.h#L142-L147