diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-19 16:59:03 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-19 16:59:03 +0000 |
commit | a5448a7de5bb35553a97c4e337ef2ef6fe8d3ccc (patch) | |
tree | 6f272cdd22e697c791dea62aec2f68c5260b69db /linux-user/syscall_defs.h | |
parent | 9231944d9669595cecee8dda969546216470d6ad (diff) |
sysinfo syscall (Francois Guimond)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@930 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall_defs.h')
-rw-r--r-- | linux-user/syscall_defs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 356e6fd966..91e1fe5385 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -1133,3 +1133,20 @@ struct target_flock64 { /* vfat ioctls */ #define TARGET_VFAT_IOCTL_READDIR_BOTH TARGET_IORU('r', 1) #define TARGET_VFAT_IOCTL_READDIR_SHORT TARGET_IORU('r', 2) + +struct target_sysinfo { + target_long uptime; /* Seconds since boot */ + target_ulong loads[3]; /* 1, 5, and 15 minute load averages */ + target_ulong totalram; /* Total usable main memory size */ + target_ulong freeram; /* Available memory size */ + target_ulong sharedram; /* Amount of shared memory */ + target_ulong bufferram; /* Memory used by buffers */ + target_ulong totalswap; /* Total swap space size */ + target_ulong freeswap; /* swap space still available */ + unsigned short procs; /* Number of current processes */ + unsigned short pad; /* explicit padding for m68k */ + target_ulong totalhigh; /* Total high memory size */ + target_ulong freehigh; /* Available high memory size */ + unsigned int mem_unit; /* Memory unit size in bytes */ + char _f[20-2*sizeof(target_long)-sizeof(int)]; /* Padding: libc5 uses this.. */ +}; |