So at least in newer implementations, errno should be settable. In fact, footnote 170 states that a program that wishes to check errno should set it to zero before the library call, and check it afterwards.
I don't think it's changed any time real recently, I was just confusing it with the fact that you should not declare errno as a variable, as that CAN certainly make a mess of things.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.