SYSCTL and VI: slight changes for errno checkings, delphij@ suggestions.