Validate return from sys calls