[engine] Add throwErrnoException() method
[os] Add type() method
[process] Simple refactoring