summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-07-23 17:42:10 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-07-23 17:42:10 +0000
commitf4588d84ab7e59c8e7c9de64f7f0cb6669f0d859 (patch)
treedf2c23f9a01f594084f71bde91f34354b15cde49 /sys/compat/linux/linux_misc.h
parentb7d53f3d6f307063475beed5f27c182c727e1e04 (diff)
add sys_sysinfo. from marius aamodt eriksen.
linux_misc.c: fvdl gave his copyright to tnf, adjust.
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.
*/