Added some unlocked functions to file.c