svn commit: trunk/uClibc/libc/sysdeps/linux: arm common

vapier at uclibc.org vapier at uclibc.org
Thu May 31 08:21:39 UTC 2007


Author: vapier
Date: 2007-05-31 01:21:38 -0700 (Thu, 31 May 2007)
New Revision: 18707

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


Modified:
   trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise.c
   trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise64.c
   trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise.c
   trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise.c	2007-05-30 14:48:38 UTC (rev 18706)
+++ trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise.c	2007-05-31 08:21:38 UTC (rev 18707)
@@ -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: trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise64.c	2007-05-30 14:48:38 UTC (rev 18706)
+++ trunk/uClibc/libc/sysdeps/linux/arm/posix_fadvise64.c	2007-05-31 08:21:38 UTC (rev 18707)
@@ -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: trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise.c	2007-05-30 14:48:38 UTC (rev 18706)
+++ trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise.c	2007-05-31 08:21:38 UTC (rev 18707)
@@ -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: trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise64.c	2007-05-30 14:48:38 UTC (rev 18706)
+++ trunk/uClibc/libc/sysdeps/linux/common/posix_fadvise64.c	2007-05-31 08:21:38 UTC (rev 18707)
@@ -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