aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2000-03-24[lcd4linux @ 2000-03-24 11:37:43 by reinelt]reinelt1-0/+34
2000-03-24[lcd4linux @ 2000-03-24 11:36:56 by reinelt]reinelt8-110/+232
2000-03-23[lcd4linux @ 2000-03-23 07:24:48 by reinelt]reinelt12-40/+239
2000-03-22[lcd4linux @ 2000-03-22 15:36:21 by reinelt]reinelt10-19/+1231
2000-03-22[lcd4linux @ 2000-03-22 07:33:50 by reinelt]reinelt13-366/+525
2000-03-19[lcd4linux @ 2000-03-19 08:41:28 by reinelt]reinelt12-20/+344
2000-03-18[lcd4linux @ 2000-03-18 10:31:06 by reinelt]reinelt6-120/+211
2000-03-18[lcd4linux @ 2000-03-18 08:07:04 by reinelt]reinelt5-63/+157
2000-03-17[lcd4linux @ 2000-03-17 09:21:42 by reinelt]reinelt11-40/+216
2000-03-13[lcd4linux @ 2000-03-13 15:58:24 by reinelt]reinelt14-420/+629
2000-03-10[lcd4linux @ 2000-03-10 17:36:02 by reinelt]reinelt14-330/+2107
2000-03-10[lcd4linux @ 2000-03-10 12:02:43 by reinelt]reinelt11-328/+1491
2000-03-10[lcd4linux @ 2000-03-10 11:40:47 by reinelt]reinelt3-19/+13
2000-03-10[lcd4linux @ 2000-03-10 10:49:53 by reinelt]reinelt5-103/+335
2000-03-07[lcd4linux @ 2000-03-07 11:01:34 by reinelt]reinelt8-97/+246
2000-03-06[lcd4linux @ 2000-03-06 06:04:06 by reinelt]reinelt13-25/+435
2000-01-16[lcd4linux @ 2000-01-16 16:58:50 by reinelt]reinelt1-0/+33
2000-01-16[lcd4linux @ 2000-01-16 12:17:59 by reinelt]reinelt16-0/+1615
2000-01-16initial importroot0-0/+0
: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* $Id: system.h,v 1.8 2000/07/31 10:43:44 reinelt Exp $
 *
 * system status retreivement
 *
 * Copyright 1999, 2000 by Michael Reinelt (reinelt@eunet.at)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *
 * $Log: system.h,v $
 * Revision 1.8  2000/07/31 10:43:44  reinelt
 *
 * some changes to support kernel-2.4 (different layout of various files in /proc)
 *
 * Revision 1.7  2000/05/21 06:20:35  reinelt
 *
 * added ppp throughput
 * token is '%t[iomt]' at the moment, but this will change in the near future
 *
 * Revision 1.6  2000/04/13 06:09:52  reinelt
 *
 * added BogoMips() to system.c (not used by now, maybe sometimes we can
 * calibrate our delay loop with this value)
 *
 * added delay loop to HD44780 driver. It seems to be quite fast now. Hopefully
 * no compiler will optimize away the delay loop!
 *
 * Revision 1.5  2000/03/17 09:21:42  reinelt
 *
 * various memory statistics added
 *
 * Revision 1.4  2000/03/10 17:36:02  reinelt
 *
 * first unstable but running release
 *
 * Revision 1.3  2000/03/07 11:01:34  reinelt
 *
 * system.c cleanup
 *
 * Revision 1.2  2000/03/06 06:04:06  reinelt
 *
 * minor cleanups
 *
 */

#ifndef _SYSTEM_H_
#define _SYSTEM_H_

#define SENSORS 9

char  *System (void);
char  *Release (void);
char  *Processor (void);
double BogoMips (void);
int    Memory (void);
int    Ram (int *total, int *free, int *shared, int *buffered, int *cached);
int    Load (double *load1, double *load2, double *load3);
int    Busy (double *user, double *nice, double *system, double *idle);
int    Disk (int *r, int *w);
int    Net (int *rx, int *tx, int *bytes);
int    PPP (int unit, int *rx, int *tx);
int    Sensor (int index, double *val, double *min, double *max);

#endif