Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jul 2011 15:53:14 +0200
From:      Martin =?ISO-8859-1?B?TfZsbGVy?= <marm.mm@t-online.de>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Question about lseek/fseek
Message-ID:  <CA34EF6A.680%marm.mm@t-online.de>

next in thread | raw e-mail | index | archive | help
Hi Hackers,

Why does these function allow seeking beyond the EOF of a file in
O_RDONLY/=B2rb=B2 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-onl=
y
mode !

With Regards,
Martin 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA34EF6A.680%marm.mm>