summaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-10-07 06:26:13 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-10-07 06:26:13 +0000
commit2bccf344d8a3f9f34752e51ac50df53503c76f94 (patch)
tree0a07b2d089a5058b9680ac02f8bc303ab79cd6d9 /usr.bin/top/machine.h
parent21dda97f12ab9e6f16723ca5550c186a3b677b32 (diff)
introduce -p option and p command to only show a single process.
From Patrick Latifi. ok deraadt@ millert@
Diffstat (limited to 'usr.bin/top/machine.h')
-rw-r--r--usr.bin/top/machine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/top/machine.h b/usr.bin/top/machine.h
index ff4cd478d7e..5a7adc8097c 100644
--- a/usr.bin/top/machine.h
+++ b/usr.bin/top/machine.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.h,v 1.11 2004/06/13 18:49:02 otto Exp $ */
+/* $OpenBSD: machine.h,v 1.12 2004/10/07 06:26:12 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -73,6 +73,7 @@ struct process_select {
int idle; /* show idle processes */
int system; /* show system processes */
uid_t uid; /* only this uid (unless uid == -1) */
+ pid_t pid; /* only this pid (unless pid == -1) */
char *command;/* only this command (unless == NULL) */
};
@@ -88,3 +89,5 @@ get_process_info(struct system_info *, struct process_select *,
int (*) (const void *, const void *));
extern char *format_next_process(caddr_t, char *(*)(uid_t));
extern uid_t proc_owner(pid_t);
+
+extern struct kinfo_proc2 *getprocs(int, int, int *);