From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 2 14:19:22 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 BF6631065670 for ; Sat, 2 Jul 2011 14:19:22 +0000 (UTC) (envelope-from moeller.akt@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4EAE88FC0A for ; Sat, 2 Jul 2011 14:19:22 +0000 (UTC) Received: by bwa20 with SMTP id 20so4784655bwa.13 for ; Sat, 02 Jul 2011 07:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:mime-version:content-type; bh=47NuKULXjSumGzKDF+9Uje9P3dZkP6dnVGuLDf3ucRw=; b=vy1zhcIHL9BmNV6jh0T2gNEk20QuU3oowrpAb3hfvTQy8rGJ/KBmQHy4UnvYVSllxQ dNwgSZbyNcxPDXwW4mtSXpacni3K0UEq9d1Kbafvavnl1AGqzprBQo2EtRhrLJsZA1ok r6Rz97ZyxUeIrdwLCEFJVb5DSwcs2ctpo4Kio= Received: by 10.204.84.66 with SMTP id i2mr3832550bkl.201.1309615043099; Sat, 02 Jul 2011 06:57:23 -0700 (PDT) Received: from [192.168.0.108] (p5B24DD70.dip.t-dialin.net [91.36.221.112]) by mx.google.com with ESMTPS id t9sm3889408bkn.8.2011.07.02.06.57.20 (version=SSLv3 cipher=OTHER); Sat, 02 Jul 2011 06:57:22 -0700 (PDT) User-Agent: Microsoft-Entourage/12.0.0.071130 Date: Sat, 02 Jul 2011 15:57:19 +0200 From: Martin =?ISO-8859-1?B?TfZsbGVy?= To: "freebsd-hackers@freebsd.org" Message-ID: Thread-Topic: Question about lseek/fseek Thread-Index: Acw4v/UqpMFYAZLNTEulXOpM6pbKgg== Mime-version: 1.0 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:19:22 -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