Add extended error codes
Put syscalls into submodules