p{read,write}{,64} mips n64 changes

Jakub Jelinek jakub@redhat.com
Tue Mar 18 11:07:00 GMT 2003


On Tue, Mar 18, 2003 at 08:30:06AM +0100, Andreas Jaeger wrote:
> Alexandre Oliva <aoliva@redhat.com> writes:
> 
> > On Mar 15, 2003, Andreas Jaeger <aj@suse.de> wrote:
> >
> >> Alexandre Oliva <aoliva@redhat.com> writes:
> >>> @@ -59,8 +65,13 @@ __libc_pread (fd, buf, count, offset)
> >>> {
> >>> /* First try the syscall.  */
> >>> assert (sizeof (offset) == 4);
> >>> +#if defined _ABI64 && _MIPS_SIM == _ABI64
> >>> +     result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
> >>> +			      offset);
> >>> +#else
> >>> result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
> >>> __LONG_LONG_PAIR (offset >> 31, offset));

Is >> 31 instead of >> 32 right?

	Jakub



More information about the Libc-alpha mailing list