Thread overview
What D module defines EINTR etc?
Dec 08, 2012
Druzhinin Alexandr
Dec 08, 2012
bearophile
Dec 08, 2012
Druzhinin Alexandr
December 08, 2012
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
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
On 08.12.2012 20:17, bearophile wrote:
> import core.stdc.errno;
> void main() {
>      auto x = EINTR;
> }
Oh, thank you very much!