Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2001 03:40:30 -0700 (PDT)
From:      jkoshy@FreeBSD.ORG (Joseph Koshy)
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        arch@freebsd.org
Subject:   Re: CFR: fseek<0 + feof error (with fix) 
Message-ID:  <20010813104030.55AE437B406@hub.freebsd.org>
In-Reply-To: Your message of "Fri, 10 Aug 2001 23:29:40 %2B0400." <20010810232939.A14964@nagual.pp.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help


> According to POSIX fseek{o}() description, it must return
> 
> [EINVAL]
>           The whence argument is invalid. The resulting file-position
>           indicator would be set to a negative value.
> 
> which expicetly disallows seek beyond beginning of a file. Currently we

FreeBSD's implementation of `lseek()' allows negative offsets --- these
seem to be required to allow reading of /dev/[k]mem.  See PR kern/6184.

Regards,
Koshy
<jkoshy@freebsd.org>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010813104030.55AE437B406>