> i'm wondering if it has to do with writing/reading the same file (dtf) > without readjusting the offset (i.e. does pread behave differently)? > > also about this: > > test(!strcmp(tst_str,buf)==ret,4, "check value\n"); > > do you mean to say > > test(strncmp(tst_str,buf,ret) != 0, 4, "check value\n");
Turned out to be a read hearing. The real problem is that I corrupted the file name and the size got set to 4. Now I have two more test case to add ;-) Both pread and seek/read combo's work as expected Sorry for the bother. EBo --
