diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-08-22 07:16:33 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-08-22 07:16:33 +0000 |
commit | c9472505493d5f5e2409aeecbc730dedbb7d4235 (patch) | |
tree | ae90a095aacc5e01432209b4a27464d8e50b9bdb /usr.bin/top/top.h | |
parent | 019f161f4d8dcef738321fbe602f155dda8c6897 (diff) |
First sweep. Prototype, type fixes, long fixes, mostly compiles with
-Wall.
Diffstat (limited to 'usr.bin/top/top.h')
-rw-r--r-- | usr.bin/top/top.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/usr.bin/top/top.h b/usr.bin/top/top.h index ad65c41aa24..99b05ccc693 100644 --- a/usr.bin/top/top.h +++ b/usr.bin/top/top.h @@ -1,4 +1,4 @@ -/* $OpenBSD: top.h,v 1.1 1997/08/14 14:00:26 downsj Exp $ */ +/* $OpenBSD: top.h,v 1.2 1997/08/22 07:16:30 downsj Exp $ */ /* * Top - a top users display for Berkeley Unix @@ -6,6 +6,8 @@ * General (global) definitions */ +#include <sys/cdefs.h> + /* Current major version number */ #define VERSION 3 @@ -18,11 +20,6 @@ /* Log base 2 of 1024 is 10 (2^10 == 1024) */ #define LOG1024 10 -char *itoa(); -char *itoa7(); - -char *version_string(); - /* Special atoi routine returns either a non-negative number or one of: */ #define Infinity -1 #define Invalid -2 @@ -36,3 +33,25 @@ char *version_string(); #define NUM_AVERAGES 3 +/* externs */ +extern const char copyright[]; + +extern int overstrike; + +/* commands.c */ +extern void show_help __P((void)); +extern int error_count __P((void)); +extern void show_errors __P((void)); +extern char *kill_procs __P((char *)); +extern char *renice_procs __P((char *)); + +/* top.c */ +extern void quit __P((int)); + +/* username.c */ +extern void init_hash __P((void)); +extern char *username __P((uid_t)); +extern uid_t userid __P((char *)); + +/* version.c */ +extern char *version_string __P((void)); |