Subject: Re: lseek again
To: None <>
From: Lennart Augustsson <>
List: current-users
Date: 03/31/1994 20:13:10
> On the iX86, we could change cerror to always clear %edx before
> returning; but then every other syscall would waste n-cycles (1 for
> the i486 & i586, 2 for the i386).
Actually, %edx should be set to -1 so the pair %edx,%eax form -1
together.  I've added that to cerror now and thing work better.

I wouldn't worry at all about loosing a cycle on error return.
How often does that happen anyway?

But rewriting libc/arch/i386/sys/lseek as you suggest (except setting
%edx to -1 instead) is probably cleaner.

	-- Lennart