[uClibc]ftruncate64 on arm

Erik Andersen andersen at codepoet.org
Mon Apr 1 03:53:17 UTC 2002


On Mon Apr 01, 2002 at 12:35:01PM +0900, Miles Bader wrote:
> libc/sysdeps/linux/arm/ftruncate64.c, says:
> 
>    /* Unlike some architectures, arm can pass an off64_t directly 
>     * into a syscall so we don't need to do anything special */
>    extern _syscall2 (int, _ftruncate64, int, fd, __off64_t, length);
> 
> Are you sure about this?

Mostly, I just poked at the kernel source and saw that for x86
and arm, in linux/arch/arm/kernel/calls.S it directly calls
sys_ftruncate64 suggesting that it should just work... 

I'll look a bit more closely at what glibc does here to see if 
I goofed up on that.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list