Re: Errno.h and EOK constant
From: Daniel Rakel (drspam_at_nurfuerspam.de)
Date: 02/24/04
- Next message: Fletcher Glenn: "Re: non-blocking with fread or getc?"
- Previous message: Guillaume Métayer: "Errno.h and EOK constant"
- In reply to: Guillaume Métayer: "Errno.h and EOK constant"
- Next in thread: joe durusau: "Re: Errno.h and EOK constant"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 Feb 2004 17:21:23 +0100
Guillaume Métayer wrote:
> I can't figure out while I can't use the contant EOK even though I included
> the file <errno.h>. Some DOC on the internet says that EOK should be in
> errno.h, like here:
>
> http://www.qnx.com/developers/docs/momentics621_docs/neutrino/lib_ref/e/errno.html#id7
>
> But some other doc says that it's NOT there, like here:
>
> http://www.opengroup.org/onlinepubs/007904975/basedefs/errno.h.html
That's _the_ reference. EOK is not portable and happens only to be
available as a convenience. If no error occured, there is no need to check
the errno value (and you shouldn't), so the value EOK is useless.
Regards,
Daniel
- Next message: Fletcher Glenn: "Re: non-blocking with fread or getc?"
- Previous message: Guillaume Métayer: "Errno.h and EOK constant"
- In reply to: Guillaume Métayer: "Errno.h and EOK constant"
- Next in thread: joe durusau: "Re: Errno.h and EOK constant"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]