Skip site navigation (1)Skip section navigation (2)
Date:      20 Apr 1998 00:21:11 +0200
From:      dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= )
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, des@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/sys lseek.2 src/sys/kern vfs_syscalls.c
Message-ID:  <xzp1zutmp0o.fsf@hrotti.ifi.uio.no>
In-Reply-To: Bruce Evans's message of "Sun, 19 Apr 1998 13:00:06 %2B1000"
References:  <199804190300.NAA15945@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> writes:
> >  Return EINVAL and do not change file pointer if resulting offset is negative.
> >  PR:		kern/6184
> 
> This is wrong.  Please back it out.  It breaks at least the ability to
> seek to high addresses in /dev/[k]mem on 64 bit systems.  Not long ago

Then IMHO we should do what IRIX does: forbid negative offsets for
regular files, and allow it only for specific devices. But that would
require delegating lseek to the device driver :(

OK, I'm backing out vfs_syscalls.c and lseek.2.

> I replied to the PR, but for some reason the followup didn't get attached
> to the PR.

If it's not a bug, shouldn't the PR have been closed with a "it's not
a bug, it's a feature" comment?

-- 
Nobody else has a .sig like this one.



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