< 10 hour makehistory.

Miquel van Smoorenburg list-inn-workers at news.cistron.nl
Thu Aug 17 23:13:13 UTC 2000


In article >ylwvhf7b1v.fsf at windlord.stanford.edu>,
Russ Allbery  <rra at stanford.edu> wrote:
>lseek calls with a SEEK_CUR argument indicate that either your platform
>doesn't have a native pwrite call or libc is emulating it; they're coming
>from INN's pwrite emulation or something equivalent, which has to obtain
>the current file offset so that it can restore it after doing the write.
>lseek(fd, 0, SEEK_CUR) is the most portable way I know of getting the
>current file offset.

I see. I misread the trace; the pwrites are preceded by that lseek,
but on another file descriptor..

The lseek() indeed comes from storage/ov3/ov3.c::OV3addrec() and
is used, as you said, to find out the current offset in the file.

Mistery solved ..

Mike.
-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to miquels at cistron.nl (Miquel van Smoorenburg)



More information about the inn-workers mailing list