svn commit: trunk/uClibc/libc/sysdeps/linux/common
psm at uclibc.org
psm at uclibc.org
Sat Jan 14 01:20:33 UTC 2006
Author: psm
Date: 2006-01-13 17:20:31 -0800 (Fri, 13 Jan 2006)
New Revision: 13283
Log:
s/__read/read/ and write in fake part
Modified:
trunk/uClibc/libc/sysdeps/linux/common/pread_write.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/pread_write.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/pread_write.c 2006-01-14 01:15:20 UTC (rev 13282)
+++ trunk/uClibc/libc/sysdeps/linux/common/pread_write.c 2006-01-14 01:20:31 UTC (rev 13283)
@@ -40,6 +40,9 @@
#include <unistd.h>
#include <stdint.h>
+libc_hidden_proto(read)
+libc_hidden_proto(write)
+
#ifdef __UCLIBC_HAS_LFS__
libc_hidden_proto(lseek64)
#else
@@ -115,10 +118,10 @@
if (do_pwrite==1) {
/* Write the data. */
- result = __write(fd, buf, count);
+ result = write(fd, buf, count);
} else {
/* Read the data. */
- result = __read(fd, buf, count);
+ result = read(fd, buf, count);
}
/* Now we have to restore the position. If this fails we
@@ -153,10 +156,10 @@
if (do_pwrite==1) {
/* Write the data. */
- result = __write(fd, buf, count);
+ result = write(fd, buf, count);
} else {
/* Read the data. */
- result = __read(fd, buf, count);
+ result = read(fd, buf, count);
}
/* Now we have to restore the position. */
More information about the uClibc-cvs
mailing list