OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / glibc / glibc-2.3.6-sysinfo.patch
1 --- glibc-2.3.6/sysdeps/unix/sysv/linux/sys/sysinfo.h.org       2009-12-10 16:09:11.043460292 +1000
2 +++ glibc-2.3.6/sysdeps/unix/sysv/linux/sys/sysinfo.h   2009-12-10 15:35:02.813563274 +1000
3 @@ -21,8 +21,22 @@
4  
5  #include <features.h>
6  
7 -/* Get sysinfo structure from kernel header.  */
8 -#include <linux/kernel.h>
9 +struct sysinfo {
10 +       long uptime;                    /* Seconds since boot */
11 +       unsigned long loads[3];         /* 1, 5, and 15 minute load averages */
12 +       unsigned long totalram;         /* Total usable main memory size */
13 +       unsigned long freeram;          /* Available memory size */
14 +       unsigned long sharedram;        /* Amount of shared memory */
15 +       unsigned long bufferram;        /* Memory used by buffers */
16 +       unsigned long totalswap;        /* Total swap space size */
17 +       unsigned long freeswap;         /* swap space still available */
18 +       unsigned short procs;           /* Number of current processes */
19 +       unsigned short pad;             /* explicit padding for m68k */
20 +       unsigned long totalhigh;        /* Total high memory size */
21 +       unsigned long freehigh;         /* Available high memory size */
22 +       unsigned int mem_unit;          /* Memory unit size in bytes */
23 +       char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
24 +};
25  
26  __BEGIN_DECLS
27