Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2011 04:15:49 -0800
From:      perryh@pluto.rain.com
To:        arundel@freebsd.org
Cc:        freebsd-hackers@freebsd.org, nox@jelal.kn-bremen.de
Subject:   Re: easy way to determine if a stream or fd is seekable
Message-ID:  <4eca40f5.fvA0Xb1G9w%2BwuGj6%perryh@pluto.rain.com>
In-Reply-To: <20111120142131.GA64913@freebsd.org>
References:  <20111116102239.GA2687@britannica.bec.de> <20111116131428.GA40723@freebsd.org> <20111116232152.GC21793@britannica.bec.de> <20111117002438.GA55931@freebsd.org> <201111172055.pAHKtZso061118@triton8.kn-bremen.de> <B06B2304-A1BC-49A3-A811-F05625138D58@kientzle.com> <20111118203122.GA9508@freebsd.org> <E693FAEB-1D8D-41A0-AEB7-3EB00419F432@kientzle.com> <20111120124034.GA54811@freebsd.org> <20111120140450.GA62286@freebsd.org> <20111120142131.GA64913@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Best <arundel@freebsd.org> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4eca40f5.fvA0Xb1G9w%2BwuGj6%perryh>