~ubuntu-branches/ubuntu/warty/kdebase/warty

« back to all changes in this revision

Viewing changes to ksysguard/ksysguardd/Tru64/Memory.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-09-16 04:51:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040916045145-9vr63kith3k1cpza
Tags: upstream-3.2.2
ImportĀ upstreamĀ versionĀ 3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    KSysGuard, the KDE System Guard
 
3
   
 
4
        Copyright (c) 1999 Chris Schlaeger <cs@kde.org>
 
5
 
 
6
        Solaris support by Torsten Kasch <tk@Genetik.Uni-Bielefeld.DE>
 
7
    
 
8
    This program is free software; you can redistribute it and/or modify
 
9
    it under the terms of the GNU General Public License as published by
 
10
    the Free Software Foundation; either version 2 of the License, or
 
11
    (at your option) any later version.
 
12
 
 
13
    This program is distributed in the hope that it will be useful,
 
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
    GNU General Public License for more details.
 
17
 
 
18
    You should have received a copy of the GNU General Public License
 
19
    along with this program; if not, write to the Free Software
 
20
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
21
 
 
22
        $Id: Memory.h,v 1.3 2003/03/07 22:05:27 waba Exp $
 
23
*/
 
24
 
 
25
#ifndef _Memory_h_
 
26
#define _Memory_h_
 
27
 
 
28
typedef unsigned long t_memsize;
 
29
 
 
30
#define PAGETOK(a) ((( (t_memsize) sysconf( _SC_PAGESIZE )) / (t_memsize) 1024) * (t_memsize) (a))
 
31
 
 
32
void initMemory(struct SensorModul* sm);
 
33
void exitMemory(void);
 
34
 
 
35
int updateMemory(void);
 
36
 
 
37
void printMemFree( const char *cmd );
 
38
void printMemFreeInfo( const char *cmd );
 
39
void printMemUsed( const char *cmd );
 
40
void printMemUsedInfo( const char *cmd );
 
41
 
 
42
void printSwapFree( const char *cmd );
 
43
void printSwapFreeInfo( const char *cmd );
 
44
void printSwapUsed( const char *cmd );
 
45
void printSwapUsedInfo( const char *cmd );
 
46
 
 
47
#endif /* _Memory_h */