2 * Top users/processes display for Unix
5 * This program may be freely redistributed,
6 * but this entire comment MUST remain intact.
8 * Copyright (c) 1984, 1989, William LeFebvre, Rice University
9 * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
12 /* prototypes for functions found in utils.c */
14 int atoiwi(const char *);
18 char *strecpy(char *, const char *);
19 char **argparse(char *, int *);
20 long percentages(int cnt
, int *out
, long *new, long *old
, long *diffs
);
21 const char *errmsg(int);
22 char *format_time(long);
24 char *format_k2(long);
25 int string_index(char *string
, const char **array
);
28 struct process_select
;
31 extern int (*proc_compares
[])(const void *, const void *);
32 extern int compare_cpu(const void *, const void *);
34 extern int proc_compare(const void *, const void *);
36 int proc_owner(int pid
);
37 caddr_t
get_process_info(struct system_info
*si
, struct process_select
*sel
,
38 int (*compare
)(const void *, const void *));
39 void get_system_info(struct system_info
*si
);