Fork me on GitHub

root/include/fiwix/system.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * fiwix/include/fiwix/system.h
   3  *
   4  * Copyright 2018-2022, Jordi Sanfeliu. All rights reserved.
   5  * Distributed under the terms of the Fiwix License.
   6  */
   7 
   8 #ifndef _FIWIX_SYSTEM_H
   9 #define _FIWIX_SYSTEM_H
  10 
  11 #define UTS_SYSNAME     "Fiwix"
  12 #define UTS_NODENAME    "(none)"
  13 #define UTS_RELEASE     "1.4.0"
  14 #define UTS_DOMAINNAME  "(none)"
  15 
  16 struct sysinfo {
  17         long int uptime;                /* seconds since boot */
  18         unsigned long int loads[3];     /* load average (1, 5 and 15 minutes) */
  19         unsigned long int totalram;     /* total usable main memory size */
  20         unsigned long int freeram;      /* available memory size */
  21         unsigned long int sharedram;    /* amount of shared memory */
  22         unsigned long int bufferram;    /* amount of memory used by buffers */
  23         unsigned long int totalswap;    /* total swap space size */
  24         unsigned long int freeswap;     /* available swap space */
  25         unsigned short int procs;       /* number of current processes */
  26         char _f[22];                    /* pads structure to 64 bytes */
  27 };
  28 
  29 #endif /* _FIWIX_SYSTEM_H */

/* [previous][next][first][last][top][bottom][index][help] */