Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_KERNEL_H
     13 #define _LINUX_KERNEL_H
     14 
     15 #define SI_LOAD_SHIFT 16
     16 struct sysinfo {
     17  long uptime;
     18  unsigned long loads[3];
     19  unsigned long totalram;
     20  unsigned long freeram;
     21  unsigned long sharedram;
     22  unsigned long bufferram;
     23  unsigned long totalswap;
     24  unsigned long freeswap;
     25  unsigned short procs;
     26  unsigned short pad;
     27  unsigned long totalhigh;
     28  unsigned long freehigh;
     29  unsigned int mem_unit;
     30  char _f[20-2*sizeof(long)-sizeof(int)];
     31 };
     32 
     33 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
     34 
     35 #define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
     36 
     37 #define __FUNCTION__ (__func__)
     38 
     39 #endif
     40