Use same function for all syscalls, so stdout/err only printed when some...

...thing goes wrong