summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_proto.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_proto.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_proto.h')
-rw-r--r--sys/i386/linux/linux_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_proto.h b/sys/i386/linux/linux_proto.h
index 3bac388..26d2e4b 100644
--- a/sys/i386/linux/linux_proto.h
+++ b/sys/i386/linux/linux_proto.h
@@ -806,6 +806,7 @@ struct linux_clock_nanosleep_args {
};
struct linux_statfs64_args {
char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
+ char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
char buf_l_[PADL_(struct l_statfs64_buf *)]; struct l_statfs64_buf * buf; char buf_r_[PADR_(struct l_statfs64_buf *)];
};
struct linux_fstatfs64_args {
OpenPOWER on IntegriCloud