[Glibc-bsd-commits] r4512 - trunk/glibc-ports/kfreebsd

Petr Salinger ps-guest at alioth.debian.org
Mon Jun 3 04:42:02 UTC 2013


Author: ps-guest
Date: 2013-06-03 04:42:01 +0000 (Mon, 03 Jun 2013)
New Revision: 4512

Modified:
   trunk/glibc-ports/kfreebsd/posix_fallocate.c
Log:
'posix_fallocate64' is now the same as 'posix_fallocate', but previous prototype have different size of len parameter



Modified: trunk/glibc-ports/kfreebsd/posix_fallocate.c
===================================================================
--- trunk/glibc-ports/kfreebsd/posix_fallocate.c	2013-05-31 15:36:52 UTC (rev 4511)
+++ trunk/glibc-ports/kfreebsd/posix_fallocate.c	2013-06-03 04:42:01 UTC (rev 4512)
@@ -57,4 +57,25 @@
     }      
     return internal_fallocate (fd, offset, len);
 }
+
+/* 'posix_fallocate64' is the same as 'posix_fallocate', because __off64_t == __off_t.  */
+/*  but previous prototype have different size of len parameter */
+
+#include <shlib-compat.h>
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32 && SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)
+
+int
+attribute_compat_text_section
+__posix_fallocate64_l32 (int fd, off64_t offset, size_t len)
+{
+  return posix_fallocate (fd, offset, len);
+}
+
+versioned_symbol (libc, posix_fallocate, posix_fallocate64,
+		  GLIBC_2_3_3);
+compat_symbol (libc, __posix_fallocate64_l32, posix_fallocate64, GLIBC_2_2);
+#else
 strong_alias (posix_fallocate, posix_fallocate64)
+#endif




More information about the Glibc-bsd-commits mailing list