aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top/utils.h
blob: 2688f55185759c71b6fbb4eda3a5e3074c81a8b0 (plain) (blame)
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
/*
 * $FreeBSD$
 *
 *  Top users/processes display for Unix
 *
 *  This program may be freely redistributed,
 *  but this entire comment MUST remain intact.
 *
 *  Copyright (c) 1984, 1989, William LeFebvre, Rice University
 *  Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
 */

#include <unistd.h>

int atoiwi(const char *);
char *itoa(unsigned int);
char *itoa7(int);
int digits(int);
const char **argparse(char *, int *);
long percentages(int, int *, long *, long *, long *);
const char *format_time(long);
char *format_k(int64_t);
int string_index(const char *string, const char * const *array);
int find_pid(pid_t pid);