summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux.h
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2007-09-18 19:50:33 +0000
committerdwmalone <dwmalone@FreeBSD.org>2007-09-18 19:50:33 +0000
commit37c880369bbc54149ef96f87483805fbd3a376b7 (patch)
treefd0570d70b25da7a29c4ce04d71bd87ba30cb8ce /sys/i386/linux/linux.h
parentec62043bda5866bc1c94f6f9854b000cedb136a6 (diff)
downloadFreeBSD-src-37c880369bbc54149ef96f87483805fbd3a376b7.zip
FreeBSD-src-37c880369bbc54149ef96f87483805fbd3a376b7.tar.gz
The kernel version of Linux statfs64 is actually supposed to take
3 arguments, but we had forgotten the second argument. Also make the Linux statfs64 struct depend on the architecture because it has an extra 4 bytes padding on amd64 compared to i386. The three argument fix is from David Taylor, the struct statfs64 stuff is my fault. With this patch I can install i386 Linux matlab on an amd64 machine. Submitted by: David Taylor <davidt_at_yadt.co.uk> Approved by: re (kensmith)
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r--sys/i386/linux/linux.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index ef41399..e689475 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -217,6 +217,19 @@ struct l_stat64 {
l_ulonglong st_ino;
};
+struct l_statfs64 {
+ l_int f_type;
+ l_int f_bsize;
+ uint64_t f_blocks;
+ uint64_t f_bfree;
+ uint64_t f_bavail;
+ uint64_t f_files;
+ uint64_t f_ffree;
+ l_fsid_t f_fsid;
+ l_int f_namelen;
+ l_int f_spare[6];
+};
+
struct l_new_utsname {
char sysname[LINUX_MAX_UTSNAME];
char nodename[LINUX_MAX_UTSNAME];
OpenPOWER on IntegriCloud