summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r--sys/compat/linux/linux_misc.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h
index 3fbeb403251..28e1d5dd812 100644
--- a/sys/compat/linux/linux_misc.h
+++ b/sys/compat/linux/linux_misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.h,v 1.2 2002/03/14 01:26:50 millert Exp $ */
+/* $OpenBSD: linux_misc.h,v 1.3 2003/07/23 17:42:09 tedu Exp $ */
/* $NetBSD: linux_misc.h,v 1.3 1999/05/13 00:31:57 thorpej Exp $ */
/*-
@@ -40,6 +40,24 @@
#ifndef _LINUX_MISC_H
#define _LINUX_MISC_H
+/* This looks very unportable to me, but this is how Linux defines it. */
+struct linux_sysinfo {
+ long uptime;
+ unsigned long loads[3];
+#define LINUX_SYSINFO_LOADS_SCALE 65536
+ unsigned long totalram;
+ unsigned long freeram;
+ unsigned long sharedram;
+ unsigned long bufferram;
+ unsigned long totalswap;
+ unsigned long freeswap;
+ unsigned short procs;
+ unsigned long totalbig;
+ unsigned long freebig;
+ unsigned int mem_unit;
+ char _f[20-2*sizeof(long)-sizeof(int)];
+};
+
/*
* Options passed to the Linux wait4() system call.
*/