From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 21 06:01:15 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 9886E106564A; Mon, 21 Nov 2011 06:01:15 +0000 (UTC) (envelope-from Ramanjaneyulu.Talla@citrix.com) Received: from SMTP.CITRIX.COM.AU (smtp.citrix.com.au [203.166.19.134]) by mx1.freebsd.org (Postfix) with ESMTP id 07B588FC08; Mon, 21 Nov 2011 06:01:14 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.69,545,1315180800"; d="scan'208";a="9358120" Received: from banpmailmx02.citrite.net ([10.103.128.74]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 21 Nov 2011 05:31:28 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.72]) by BANPMAILMX02.citrite.net ([10.103.128.74]) with mapi; Mon, 21 Nov 2011 11:01:27 +0530 From: Ramanjaneyulu Talla To: "perryh@pluto.rain.com" , "arundel@freebsd.org" Date: Mon, 21 Nov 2011 11:01:20 +0530 Thread-Topic: easy way to determine if a stream or fd is seekable Thread-Index: AcyoDtCE15ZCEzLOQ8qbHZ++1YrSeQ== Message-ID: In-Reply-To: <4eca40f5.fvA0Xb1G9w+wuGj6%perryh@pluto.rain.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.10.0.110310 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-hackers@freebsd.org" , "nox@jelal.kn-bremen.de" Subject: Re: easy way to determine if a stream or fd is seekable 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: Mon, 21 Nov 2011 06:01:15 -0000 On 21/11/11 5:45 PM, "perryh@pluto.rain.com" wrote: >Alexander Best wrote: > >> here's a revised patch. >> ... >> +.Sh CAVEATS >> +If the >> +.Fn lseek >> +system call is operating on a device, which is incapable of seeking, >> +it will request the seek operation and complete successfully. > >I think it would be better without the first comma (after "device"). > >IMO the whole section should be added to BUGS rather than creating >a new CAVEATS section. Returning "success" when the requested >operation actually _failed_ is a serious POLA violation. >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"