summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2006-11-18 14:37:54 +0000
committerkib <kib@FreeBSD.org>2006-11-18 14:37:54 +0000
commit040e4f0e6cb5061ef1e27dea8588cc7502d91522 (patch)
tree35cb0bd6dceae63d696fa7a8ebb4ec4e98af0bd5 /sys/compat/linux/linux_misc.c
parenta5fec14253b809b1675e02162d632ce1b594ed8b (diff)
downloadFreeBSD-src-040e4f0e6cb5061ef1e27dea8588cc7502d91522.zip
FreeBSD-src-040e4f0e6cb5061ef1e27dea8588cc7502d91522.tar.gz
Sync struct sysinfo with real one from linux.
Submitted by: rdivacky
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 7fe0540..c7ace44 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -114,10 +114,11 @@ struct l_sysinfo {
l_ulong totalswap; /* Total swap space size */
l_ulong freeswap; /* swap space still available */
l_ushort procs; /* Number of current processes */
+ l_ushort pads;
l_ulong totalbig;
l_ulong freebig;
l_uint mem_unit;
- char _f[6]; /* Pads structure to 64 bytes */
+ char _f[20-2*sizeof(l_long)-sizeof(l_int)]; /* padding */
};
int
linux_sysinfo(struct thread *td, struct linux_sysinfo_args *args)
OpenPOWER on IntegriCloud