Question about lseek/fseek

Martin Möller marm.mm at t-online.de
Sat Jul 2 14:12:39 UTC 2011


Hi Hackers,

Why does these function allow seeking beyond the EOF of a file in
O_RDONLY/²rb² mode ?
How does these function then signal the EOF correctly ?

Seeking beyond the EOF makes sense for me in write-mode but not in read-only
mode !

With Regards,
Martin 


More information about the freebsd-hackers mailing list