functions: read, lseek, malloc, realloc.