File: ps.h

package info (click to toggle)
procps 1%3A1.2.7-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 932 kB
  • ctags: 1,837
  • sloc: ansic: 7,984; makefile: 1,384; sh: 21
file content (30 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (11)
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
/* The shadow of the original with only common prototypes now. */
#include <stdio.h>
#include <sys/types.h>

/* get definition of HZ */
#include <asm/param.h>

/* get page info */
#include <asm/page.h>

char *wchan(unsigned long);
char *find_func(unsigned long address);
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);