This patch implements access function for both redox and linux and makes sure that neither access errno variable