Thread overview | |||||
---|---|---|---|---|---|
|
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? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Druzhinin Alexandr | 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? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On 08.12.2012 20:17, bearophile wrote:
> import core.stdc.errno;
> void main() {
> auto x = EINTR;
> }
Oh, thank you very much!
|
Copyright © 1999-2021 by the D Language Foundation