This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use correct implementation for dl-fxstatat64 on sparc64.


This one warned and it's a real bug.  Without this sparc64 uses
wordsize-64/dl-fxstatat64.c which in turn uses wordsize-64/fxstatat.c
which is wrong on sparc64.  Sparc64 doesn't provide nor need
newfxstatat, and therefore the implementation in wordsize-64 is
not appropriate.

Committed to master.

	* sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
---
 ChangeLog                                          |    2 ++
 .../unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c  |    6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c

diff --git a/ChangeLog b/ChangeLog
index 906df52..b11f82d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-03-13  David S. Miller  <davem@davemloft.net>
 
+	* sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
+
 	* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
 	'err' in the ifdef scope in which it is actually used.
 
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c b/sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
new file mode 100644
index 0000000..339e5f4
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
@@ -0,0 +1,6 @@
+/* In this implementation we do not really care whether the call fails
+   because of missing kernel support since we do not even call the
+   function in this case.  */
+#undef __ASSUME_ATFCTS
+#define __ASSUME_ATFCTS 1
+#include "fxstatat.c"
-- 
1.7.6.401.g6a319


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]