This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: lseek64 on arm
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Bridge Wu" <mingqiao dot wu at gmail dot com>
- Cc: libc-ports at sourceware dot org
- Date: Tue, 7 Aug 2007 15:47:50 -0400
- Subject: Re: lseek64 on arm
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mp9BFyenIb+474chv6g4DqAjTAPz9MXwI3dH5pgqd6IihHZX5r1OfdCK67Y28cg3YzYlTA3qxRMpwHr4UeUVesyIFWgUDSc94lEYLLZDjn0nWE5BToA/VtEENwymEBrMhrrGspRMDImGXfv3eG+OtNnovJ1XFuSQkWNR4sigTRI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=g3TjOuqglddAUmkKyLUg9BbNXpqSRlq64u+6ngVsFhHMc3W9zDzuxNSQ4i4vuIBXM9rvp/UtOwxhy91OpubAg0KddHehPhe5oD+YstRVT+7sUfB25KG1RzbKTJWbcmVktrUQH7hR824P09Fze8iWn2z06AOVfKFlMosU2DB5OLA=
- References: <246188420708061930k6bbe4073nab94998d977b2800@mail.gmail.com>
On 8/6/07, Bridge Wu <mingqiao.wu@gmail.com> wrote:> Hello,
> I just went through glibc-2.5 with glibc-ports-2.5 code. It seemed it
> did not support lseek64 on arm. Suppose we have a file whose size is
> larger than 4GB, how do we access it? lseek64 always return -1 since
> it is not supported by arm tool chain.
IIRC the function lseek64 is a weak alias for llseek. Please see
sysdeps/unix/sysv/linux/llseek.c for the definition of llseek. The
kernel you use must implement the _llseek syscall.
Cheers,
Carlos.