View mode: basic / threaded / horizontal-split · Log in · Help
December 08, 2012
What D module defines EINTR etc?
Hello!
I port some C code that using errno. I need to check return value for 
equality to good defined (in C) error codes like EINTR. But I failed to 
find their definitions in D. Could somebody help me with it?

Alexandr
December 08, 2012
Re: What D module defines EINTR etc?
Druzhinin Alexandr:

> I port some C code that using errno. I need to check return 
> value for equality to good defined (in C) error codes like 
> EINTR. But I failed to find their definitions in D. Could 
> somebody help me with it?

This compiles:

import core.stdc.errno;
void main() {
    auto x = EINTR;
}

Bye,
bearophile
December 08, 2012
Re: What D module defines EINTR etc?
On 08.12.2012 20:17, bearophile wrote:
> import core.stdc.errno;
> void main() {
>      auto x = EINTR;
> }
Oh, thank you very much!
Top | Discussion index | About this forum | D home