Added some sort of error codes to file_{open,close,read} functions for PXE.