Adding low-level features necessary for the file API (#267).