Menu

#1 return code change for setAdd() to get ENOMEM and DUPLICATE

open
nobody
None
5
2009-07-17
2009-07-17
No

I think about patching the SET datastructure functions to return different error codes
and want to talk about it if you think this is acceptable for a patch.

Ich think about:

ret = setAdd( ... )

ret = -1 = ENOMEM
ret = -2 = duplicate item found (which errno code should we use?)

Because I have actually a lot of fun to destinguish between ENOMEM und DUPLICATE.

How do you think about such change?
Would it break the SET ds for other users?

Thanks
fschulte

ps: actually i am now working an linux systems ...

Discussion


Log in to post a comment.