Why did you attach the c source file for sessreg? You mean one would need to use lseek64 instead of lseek? Feel free to give it a try ...