MFC r282248,r282258,r282282:
r282248 (by oshogbo):
Style fixes.
r282258 (by oshogbo):
Save errno from close override.
r282282 (by oshogbo):
Rename macros to use prefix ERRNO. Add macro ERRNO_SET. Now
ERRNO_{RESTORE/SAVE} must by used together, additional variable is not
needed. Always use ERRNO_{SAVE/RESTORE/SET} macros.