Question about lseek/fseek

Martin Möller moeller.akt at googlemail.com
Sat Jul 2 14:19:22 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