On 9/28/06, Paul Stoeber <[EMAIL PROTECTED]> wrote:
Should a userland program be allowed to depend on errno==0 on entry to main()? (At least one in the tree does.)
checking errno is the wrong way to ascertain whether a function had a problem, so this shouldn't be a problem for a well written program. on the other hand, code running before main is outside the scope of C standard, and i think the standard at least implies errno should be 0 on entry, so we should fix/verify that too.