Missing llseek

Rich Felker dalias at aerifal.cx
Thu May 18 02:49:09 UTC 2006


On Wed, May 17, 2006 at 09:45:03PM +0100, Will Newton wrote:
> On 5/17/06, Peter S. Mazinger <ps.m at gmx.net> wrote:
> 
> >> I've just been trying to build lmbench[1] with uClibc. The build fails
> >> with an undefined reference to "llseek". uClibc doesn't provide this
> >> symbol, and I'm not sure if it should do as it isn't in any header
> >> file. Does anyone have an opinion on whether or not uClibc should
> >> provide this?
> >
> >uClibc provides it under the name lseek64.
> 
> That doesn't answer my question. I know how to get at the
> functionality, but lmbench and therefore perhaps others, expect it to
> be called "llseek". Is this a bug?

It's a bug in lmbench. The program should use lseek and the compiler
options (as reported by confstr()) to make sure file offsets are 64bit
or larger. Both lseek64 and llseek are nonstandard and incorrect to
use.

Rich




More information about the uClibc mailing list