svn commit: branches/uClibc_0_9_29/libc/sysdeps/linux: arm common

vapier at uclibc.org vapier at uclibc.org
Sat Jan 5 17:21:15 UTC 2008


Author: vapier
Date: 2008-01-05 09:21:15 -0800 (Sat, 05 Jan 2008)
New Revision: 20740

Log:
Merge r18707 by vapier from trunk:
Atsushi Nemoto writes:
http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html
states it returns error code instead of setting errno.


Modified:
   branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise.c
   branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise64.c
   branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise.c
   branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise64.c


Changeset:
Modified: branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise.c
===================================================================
--- branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise.c	2008-01-05 17:20:54 UTC (rev 20739)
+++ branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise.c	2008-01-05 17:21:15 UTC (rev 20740)
@@ -30,8 +30,7 @@
 #else
 int posix_fadvise(int fd attribute_unused, off_t offset attribute_unused, off_t len attribute_unused, int advice attribute_unused)
 {
-        __set_errno(ENOSYS);
-        return -1;
+	return ENOSYS;
 }
 #endif
 

Modified: branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise64.c
===================================================================
--- branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise64.c	2008-01-05 17:20:54 UTC (rev 20739)
+++ branches/uClibc_0_9_29/libc/sysdeps/linux/arm/posix_fadvise64.c	2008-01-05 17:21:15 UTC (rev 20740)
@@ -40,8 +40,7 @@
 #else
 int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advise)
 {
-        __set_errno(ENOSYS);
-        return -1;
+	return ENOSYS;
 }
 #endif
 #endif

Modified: branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise.c
===================================================================
--- branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise.c	2008-01-05 17:20:54 UTC (rev 20739)
+++ branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise.c	2008-01-05 17:21:15 UTC (rev 20740)
@@ -46,7 +46,6 @@
 #else
 int posix_fadvise(int fd attribute_unused, off_t offset attribute_unused, off_t len attribute_unused, int advice attribute_unused)
 {
-	__set_errno(ENOSYS);
-	return -1;
+	return ENOSYS;
 }
 #endif

Modified: branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise64.c
===================================================================
--- branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise64.c	2008-01-05 17:20:54 UTC (rev 20739)
+++ branches/uClibc_0_9_29/libc/sysdeps/linux/common/posix_fadvise64.c	2008-01-05 17:21:15 UTC (rev 20740)
@@ -74,8 +74,7 @@
  */
 int posix_fadvise64(int fd, __off64_t offset, __off64_t len, int advice)
 {
-	__set_errno(ENOSYS);
-	return -1;
+	return ENOSYS;
 }
 #endif /* __NR_fadvise64_64 */
 #endif /* __UCLIBC_HAS_LFS__ */




More information about the uClibc-cvs mailing list