return code change for setAdd() to get ENOMEM and DUPLICATE
Brought to you by:
kingofgib
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 ...