aboutsummaryrefslogtreecommitdiffstats
path: root/system.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system.c63
1 files changed, 63 insertions, 0 deletions
diff --git a/system.c b/system.c
index 0d3679f..2289139 100644
--- a/system.c
+++ b/system.c
@@ -1,3 +1,66 @@
+/* $Id: system.c,v 1.2 2000/03/06 06:04:06 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.c,v $
+ * Revision 1.2 2000/03/06 06:04:06 reinelt
+ *
+ * minor cleanups
+ *
+ *
+ */
+
+/*
+ * exported functions:
+ *
+ * char *System (void);
+ * returns OS name ('Linux')
+ *
+ * char *Release (void);
+ * returns OS release ('2.0.38')
+ *
+ * char *Processor (void);
+ * returns processor type ('i686')
+ *
+ * int Memory (void);
+ * returns main memory (Megabytes)
+ *
+ * double Load (void);
+ * returns load average
+ *
+ * double Busy (void);
+ * returns CPU utilization
+ *
+ * int Disk (int *r, int *w);
+ * returns disk utilization
+ *
+ * int Net (int *r, int *w);
+ * returns network utilization
+ *
+ * double Temperature (void);
+ * returns temperature
+ * a sensor must be specified with a 'temperature'-line
+ * in the config file
+ *
+ */
+
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>