bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lseek64 () - More of a query than a true *BUG*...


From: Andreas Schwab
Subject: Re: lseek64 () - More of a query than a true *BUG*...
Date: Wed, 15 Oct 2003 10:52:21 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

"Trevor van Bremen" <address@hidden> writes:

> In glibc-2.3.2 for Linux IA32, the lseek64 () function is implemented as a 
> wrapper around the llseek system call in Linux.
> (
> See sysdeps/unix/sysv/linux/llseek.c in glibc source
> )
> However, I believe the actual implementation specifics are incorrect in this 
> instance...  Technically, the llseek system call in IA32-Linux is also 
> incorrectly implemented in that it should either return 0 (SUCCESS) or -1 
> (FAILURE).  What it *DOES* return is the lower 32 bits of the new offset.  

No, it doesn't.  Check out the fourth parameter.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]