[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/mips

mjn3 at uclibc.org mjn3 at uclibc.org
Sun Jul 31 03:50:40 UTC 2005


Author: mjn3
Date: 2005-07-30 21:50:40 -0600 (Sat, 30 Jul 2005)
New Revision: 10990

Log:
This fixes the pread/pwrite bugs reported by ltp.  But I really need to pull in the latest glibc stuff.

Modified:
   trunk/uClibc/libc/sysdeps/linux/mips/pread_write.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/mips/pread_write.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/pread_write.c	2005-07-31 03:17:26 UTC (rev 10989)
+++ trunk/uClibc/libc/sysdeps/linux/mips/pread_write.c	2005-07-31 03:50:40 UTC (rev 10990)
@@ -58,7 +58,7 @@
 
 ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset)
 { 
-	return(__syscall_pread(fd,buf,count,0,__LONG_LONG_PAIR((off_t)0,offset)));
+	return(__syscall_pread(fd,buf,count,0,__LONG_LONG_PAIR(offset>>31,offset)));
 }
 weak_alias (__libc_pread, pread)
 
@@ -95,7 +95,7 @@
 
 ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset)
 { 
-	return(__syscall_pwrite(fd,buf,count,0,__LONG_LONG_PAIR((off_t)0,offset)));
+	return(__syscall_pwrite(fd,buf,count,0,__LONG_LONG_PAIR(offset>>31,offset)));
 }
 weak_alias (__libc_pwrite, pwrite)
 




More information about the uClibc-cvs mailing list