File: ps.h

package info (click to toggle)
grmonitor 0.53-6
  • links: PTS
  • area: main
  • in suites: slink
  • size: 280 kB
  • ctags: 418
  • sloc: ansic: 2,660; makefile: 130
file content (24 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* The shadow of the original with only common prototypes now. */
#include <stdio.h>
#include <sys/types.h>

char *wchan(unsigned int);
char *find_func();
void *xcalloc(void *pointer, int size);
void *xmalloc(unsigned int size);
void *xrealloc(void *oldp, unsigned int size);
       
int   mult_lvl_cmp(void* a, void* b);
int   node_mult_lvl_cmp(void* a, void* b);
void  dump_keys(void);
       
char *user_from_uid(int uid);

int   open_sysmap(void);
int   open_psdb(void);
void  close_psdb(void);
void  make_fnctbl(void);

unsigned print_str    (FILE* file, char *s, unsigned max);
unsigned print_strlist(FILE* file, char **strs, char* sep, unsigned max);
unsigned snprint_strlist(char *buf, int max, char **strs, char *sep);