Proc syscalling moved to inline function to less clang warnings