A generic indexed file using POSIX system calls