greetings. managed to solve my problem with lseek()... checking through a few other areas (user quota limit, value of errno, and storage capacity) revealed that i tried to create a file that was too large to fit into the harddisk... therefore lseek failed... silly me... rgds, kh