From 040e4f0e6cb5061ef1e27dea8588cc7502d91522 Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 18 Nov 2006 14:37:54 +0000 Subject: Sync struct sysinfo with real one from linux. Submitted by: rdivacky --- sys/compat/linux/linux_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') 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) -- cgit v1.1