From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 2 14:12:39 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD8471065673 for ; Sat, 2 Jul 2011 14:12:39 +0000 (UTC) (envelope-from marm.mm@t-online.de) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx1.freebsd.org (Postfix) with ESMTP id 6C1E38FC13 for ; Sat, 2 Jul 2011 14:12:39 +0000 (UTC) Received: from fwd06.aul.t-online.de (fwd06.aul.t-online.de ) by mailout09.t-online.de with smtp id 1Qd0dH-00034Z-Lq; Sat, 02 Jul 2011 15:53:15 +0200 Received: from [192.168.0.108] (bjJb42ZbrhhWxxSbDxwkTn3zs9r9JGRJzShEhR8YNogghdo3oaHI-SxclhkuX2UgTx@[91.36.221.112]) by fwd06.t-online.de with esmtp id 1Qd0dH-0z5KbI0; Sat, 2 Jul 2011 15:53:15 +0200 User-Agent: Microsoft-Entourage/12.0.0.071130 Date: Sat, 02 Jul 2011 15:53:14 +0200 From: Martin =?ISO-8859-1?B?TfZsbGVy?= To: "freebsd-hackers@freebsd.org" Message-ID: Thread-Topic: Question about lseek/fseek Thread-Index: Acw4v2Mi2QHnntRLQGC6h+LnMpCyGQ== Mime-version: 1.0 X-ID: bjJb42ZbrhhWxxSbDxwkTn3zs9r9JGRJzShEhR8YNogghdo3oaHI-SxclhkuX2UgTx X-TOI-MSGID: 602d2919-7ff0-4334-9972-5e2c8266cfb4 X-Mailman-Approved-At: Mon, 04 Jul 2011 13:11:15 +0000 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Question about lseek/fseek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2011 14:12:39 -0000 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