Re: Can I make system calls directly from D?

2021-07-09 Thread rempas via Digitalmars-d-learn
On Friday, 9 July 2021 at 08:28:25 UTC, Dennis wrote: On Friday, 9 July 2021 at 08:08:57 UTC, rempas wrote: I just wonder if I'm able to do system calls directly from D or If I have to create bindings from "unistd.h" from C If with directly means 'without calling any C function' you can use

Re: Can I make system calls directly from D?

2021-07-09 Thread rempas via Digitalmars-d-learn
On Friday, 9 July 2021 at 08:18:51 UTC, Ferhat Kurtulmuş wrote: On Friday, 9 July 2021 at 08:08:57 UTC, rempas wrote: I just wonder if I'm able to do system calls directly from D or If I have to create bindings from "unistd.h" from C I don't know if it covers what you want but, druntime has

Re: Can I make system calls directly from D?

2021-07-09 Thread Dennis via Digitalmars-d-learn
On Friday, 9 July 2021 at 08:08:57 UTC, rempas wrote: I just wonder if I'm able to do system calls directly from D or If I have to create bindings from "unistd.h" from C If with directly means 'without calling any C function' you can use inline assembly: ```D version(linux) void

Re: Can I make system calls directly from D?

2021-07-09 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Friday, 9 July 2021 at 08:08:57 UTC, rempas wrote: I just wonder if I'm able to do system calls directly from D or If I have to create bindings from "unistd.h" from C I don't know if it covers what you want but, druntime has those definitions:

Can I make system calls directly from D?

2021-07-09 Thread rempas via Digitalmars-d-learn
I just wonder if I'm able to do system calls directly from D or If I have to create bindings from "unistd.h" from C