On Tue, Oct 03, 2006 at 10:19:30AM -0300, Avi Alkalay wrote:
> I still have problems with the way errors are being handled.
> 
> Looks like the system's or POSIX error codes for errno go from 0 to
> something around 128, while the errno var is an int that can handle up
> to 65K different error codes.
> 
> My proposition is to map Elektra error codes to POSIX error codes as
> much as possible in a coherent way, and to use error numbers greater
> than, say, 1000 for Elektra-specific errors.
> 
> What do you think ?

I may be completly off base, but from a quick search on the web, I found on
http://www.opengroup.org/onlinepubs/000095399/basedefs/errno.h.html

"The <errno.h> header shall provide a declaration for errno and give 
positive values for the following symbolic constants. Their values shall 
be unique except as noted below."

No range is specified.

Moreover one has
"Additional error numbers may be defined on conforming systems;"

This seems to imply that it is to be set only in the libc?

On
http://www.opengroup.org/onlinepubs/000095399/functions/xsh_chap02_03.html
it is said that
"The symbol errno, defined by including the <errno.h> header, expands to 
a modifiable lvalue of type int."

So it seems to be usable in elektra, however it is not clear to me that
it is something which can be use by applications and isn't an libc internal
thing.

--
Pat

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Registry-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/registry-list

Reply via email to