www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What D module defines EINTR etc?

reply Druzhinin Alexandr <news digitalmars.com> writes:
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
Dec 08 2012
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
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
Dec 08 2012
parent Druzhinin Alexandr <news digitalmars.com> writes:
On 08.12.2012 20:17, bearophile wrote:
 import core.stdc.errno;
 void main() {
      auto x = EINTR;
 }
Oh, thank you very much!
Dec 08 2012