diff options
| author | 2003-07-23 17:42:09 +0000 | |
|---|---|---|
| committer | 2003-07-23 17:42:09 +0000 | |
| commit | 66545f63ff3a38395f7ff365456d2fc7003e3987 (patch) | |
| tree | aa2af694c5f8e121e4ce99696e60eee58ad9adf3 /sys/compat/linux/linux_misc.h | |
| parent | Add '\n' to error messages in "atrm" mode. (diff) | |
| download | wireguard-openbsd-66545f63ff3a38395f7ff365456d2fc7003e3987.tar.xz wireguard-openbsd-66545f63ff3a38395f7ff365456d2fc7003e3987.zip | |
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.h | 20 |
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. */ |
