easy way to determine if a stream or fd is seekable

Ramanjaneyulu Talla Ramanjaneyulu.Talla at citrix.com
Mon Nov 21 06:01:15 UTC 2011



On 21/11/11 5:45 PM, "perryh at pluto.rain.com" <perryh at pluto.rain.com> wrote:

>Alexander Best <arundel at 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.
>_______________________________________________
>freebsd-hackers at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"



More information about the freebsd-hackers mailing list