diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2017-03-26 17:22:44 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2017-03-26 17:22:44 +0000 |
commit | abc58cc4d99045343e117874c28a25fb7168f969 (patch) | |
tree | a214fc2179d4c806d1ffccda1339e8f277551cd5 /contrib/top/machine.h | |
parent | d25646a48275e769c6432c09eded98f59616b276 (diff) | |
download | src-abc58cc4d99045343e117874c28a25fb7168f969.tar.gz src-abc58cc4d99045343e117874c28a25fb7168f969.zip |
Provide proper contemporary function prototypes for many of the functions
implemented in top(1), rather than relying on K&R prototypes, which can
cause problems on targets where there are multiple incompatible calling
conventions and the compiler requires argument information to select the
correct one.
(There's a bit more to do here, since it looks like top(1) also sometimes
provides prototypes for various curses functions rather than relying on
the header file...)
Sponsored by: DARPA, AFRL
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=315990
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r-- | contrib/top/machine.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h index 8d00ab89fdbe..c5d23b7c0c6a 100644 --- a/contrib/top/machine.h +++ b/contrib/top/machine.h @@ -81,14 +81,15 @@ struct process_select /* routines defined by the machine dependent module */ -char *format_header(); -char *format_next_process(); +char *format_header(char *uname_field); +char *format_next_process(caddr_t handle, char *(*get_userid)(int), + int flags); void toggle_pcpustats(void); void get_system_info(struct system_info *si); int machine_init(struct statics *statics, char do_unames); int proc_owner(int pid); /* non-int routines typically used by the machine dependent module */ -char *printable(); +char *printable(char *string); #endif /* MACHINE_H */ |