> We can think of some scripts to do it automatically for us. > The only thing I don't like of this solution is that we will need to > keep safe synchronized every time a new function using errno appears; > any idea?
Yes, I see your point, but using a macro would be a quite similar situation (you have to use it whenever errno is envolved, and you always might forget to decorate a function: that wouldn't work, as well). I don't see a better solution at the moment, but who knows. :) bye ;)