[uClibc]pread/pwrite broken w/o large file support

Marshall M. Midden m4 at brecis.com
Mon Jul 15 15:21:16 UTC 2002


Mips is the same way.  Both registers and "stack" must be 8 byte aligned.

I believe he has unified mis-identified.

> From uclibc-admin at uclibc.org Mon Jul 15 05:30:04 2002
> Delivered-To: uclibc at uclibc.org
> To: andersen at codepoet.org
> Cc: uclibc at uclibc.org
> Subject: Re: [uClibc]pread/pwrite broken w/o large file support
> From: Ronald Wahl <rwa at peppercon.com>
> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)
> X-Spam-Status: No, hits=0.0 required=5.0
> 	tests=none
> 	version=2.31
> X-Spam-Level: 
> X-BeenThere: uclibc at uclibc.org
> X-Mailman-Version: 2.0.11
> List-Help: <mailto:uclibc-request at uclibc.org?subject=help>
> List-Post: <mailto:uclibc at uclibc.org>
> List-Subscribe: <http://uclibc.org/mailman/listinfo/uclibc>,
> 	<mailto:uclibc-request at uclibc.org?subject=subscribe>
> List-Id: Discussion and development of uClibc (the embedded C library) <uclibc.uclibc.org>
> List-Unsubscribe: <http://uclibc.org/mailman/listinfo/uclibc>,
> 	<mailto:uclibc-request at uclibc.org?subject=unsubscribe>
> List-Archive: <http://uclibc.org/lists/uclibc/>
> 
> On Mon, 15 Jul 2002 06:16:36 -0600, Erik Andersen wrote:
> 
> >> work. It cannot work since you still use the syscall macros. We _need_
> >> the unified syscall!
> 
> > Refresh my memory again as to why this can only work
> > with the unified syscall support?
> 
> The problem is that if syscalls take 64-Bit arguments than the registers
> that hold the syscall parameters need to be aligned. David Blythe wrote
> in this thread: "The powerpc must put an ll parameter in an odd,even
> register pair, so it leaves a hole to get to the next pair if
> necessary." This can only be done if you have a real -- the unified --
> syscall function. Then the compiler does the alignment by itself.



More information about the uClibc mailing list