summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 15:50:55 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 15:50:55 +0000
commit8ecef5bccab49ad14c9cd0e505dbe39cbe1ba462 (patch)
treefaea7d9d2de2b718053a34b976c812010df21d7f
parentf536abaf3148567f1ecd1bb952d259f79cd35326 (diff)
downloadFreeBSD-src-8ecef5bccab49ad14c9cd0e505dbe39cbe1ba462.zip
FreeBSD-src-8ecef5bccab49ad14c9cd0e505dbe39cbe1ba462.tar.gz
MFC r283412:
Get ready to commit x86_64 Linux emulation. All fields of type l_int in struct statfs are defined as l_long on i386 and amd64.
-rw-r--r--sys/compat/linux/linux_stats.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c
index 2e05c85..778cf49 100644
--- a/sys/compat/linux/linux_stats.c
+++ b/sys/compat/linux/linux_stats.c
@@ -326,18 +326,17 @@ linux_lstat(struct thread *td, struct linux_lstat_args *args)
return(stat_copyout(&buf, args->up));
}
-/* XXX - All fields of type l_int are defined as l_long on i386 */
struct l_statfs {
- l_int f_type;
- l_int f_bsize;
- l_int f_blocks;
- l_int f_bfree;
- l_int f_bavail;
- l_int f_files;
- l_int f_ffree;
+ l_long f_type;
+ l_long f_bsize;
+ l_long f_blocks;
+ l_long f_bfree;
+ l_long f_bavail;
+ l_long f_files;
+ l_long f_ffree;
l_fsid_t f_fsid;
- l_int f_namelen;
- l_int f_spare[6];
+ l_long f_namelen;
+ l_long f_spare[6];
};
#define LINUX_CODA_SUPER_MAGIC 0x73757245L
OpenPOWER on IntegriCloud