Wrote converter from fid to file struct pointer for use in system calls