check syscall return values in a few questions; thanks go to Ian Darwin's