Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Define old stat functions only if needed

2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>

	* file.c (convertoldstat): Define only if HAVE_LONG_LONG_OFF_T
	isn't defined.
	(sys_oldstat): Likewise.
	(sys_oldfstat): Likewise.
	(sys_oldlstat): Likewise.
  • Loading branch information...
commit 88f3efe9c370cef6757f1339c094b9bf0a67d987 1 parent a2301e6
@hjl-tools authored
Showing with 16 additions and 4 deletions.
  1. +8 −0 ChangeLog.hjl
  2. +8 −4 file.c
View
8 ChangeLog.hjl
@@ -1,3 +1,11 @@
2012-02-02 H.J. Lu <hongjiu.lu@intel.com>
+ * file.c (convertoldstat): Define only if HAVE_LONG_LONG_OFF_T
+ isn't defined.
+ (sys_oldstat): Likewise.
+ (sys_oldfstat): Likewise.
+ (sys_oldlstat): Likewise.
+
+2012-02-02 H.J. Lu <hongjiu.lu@intel.com>
+
* mem.c (sys_mmap64): Print NULL for zero address.
View
12 file.c
@@ -1241,7 +1241,8 @@ printstat64(struct tcb *tcp, long addr)
}
#endif /* HAVE_STAT64 */
-#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT)
+#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT) \
+ && !defined(HAVE_LONG_LONG_OFF_T)
static void
convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf)
{
@@ -1358,7 +1359,8 @@ sys_newfstatat(struct tcb *tcp)
}
#endif
-#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT)
+#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT) \
+ && !defined(HAVE_LONG_LONG_OFF_T)
int
sys_oldstat(struct tcb *tcp)
{
@@ -1402,7 +1404,8 @@ sys_fstat64(struct tcb *tcp)
#endif
}
-#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT)
+#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT) \
+ && !defined(HAVE_LONG_LONG_OFF_T)
int
sys_oldfstat(struct tcb *tcp)
{
@@ -1446,7 +1449,8 @@ sys_lstat64(struct tcb *tcp)
#endif
}
-#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT)
+#if defined(LINUX) && defined(HAVE_STRUCT___OLD_KERNEL_STAT) \
+ && !defined(HAVE_LONG_LONG_OFF_T)
int
sys_oldlstat(struct tcb *tcp)
{
Please sign in to comment.
Something went wrong with that request. Please try again.