File: common.h

package info (click to toggle)
gmemusage 0.2-11
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 148 kB
  • ctags: 121
  • sloc: ansic: 1,321; perl: 67; makefile: 33
file content (42 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * common.h
 * common definitions for gmemusage
 *
 * Copyright (C) 1997 by Raju Mathur (raju@sgi.com)
 *
 * See file COPYING (included in this distribution) for copyright information.
 */
#define	kernelname "linux"
#define freename "free"

struct ProcInfo
{
      char
	 procname [14] ;
      int
	 totMem ,
	 totRSS ,
	 nProcs ;
} ;
/*
 * Defined in hash.c
 */
extern void addProc ( char *procName , int Mem , int RSS ) ;
extern void ClearProcs ( void ) ;
extern struct ProcInfo *NextProc ( void ) ;
extern struct ProcInfo *AllProcs ( int *nprocs ) ;
/*
 * Defined in proc.c
 */
extern void makeProcs ( void ) ;
extern int
   sysmem ,
   kernelmem ,
   freemem ,
   buffermem ;
/*
 * Defined in gmemusage.c
 */
extern char
   progname [] ,
   *version ;