diff options
author | gad <gad@FreeBSD.org> | 2004-03-28 23:44:29 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-03-28 23:44:29 +0000 |
commit | 3dddad185c9ff75c5d0a7870e5bf87cffbb1694c (patch) | |
tree | 01de29da9c0a7fd5776520280afd11be46bb1562 /bin/ps | |
parent | 8525af93ba6480437f728263e83854a9a32f73cf (diff) | |
download | FreeBSD-src-3dddad185c9ff75c5d0a7870e5bf87cffbb1694c.zip FreeBSD-src-3dddad185c9ff75c5d0a7870e5bf87cffbb1694c.tar.gz |
Sort the routine prototypes.
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/ps.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 466a8e9..691d8de 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -123,24 +123,23 @@ static int forceuread = 1; static enum sort { DEFAULT, SORTMEM, SORTCPU } sortby = DEFAULT; -static const char *fmt(char **(*)(kvm_t *, const struct kinfo_proc *, int), - KINFO *, char *, int); -static char *kludge_oldps_options(char *); -static int pscomp(const void *, const void *); -static void saveuser(KINFO *); -static void scanvars(void); -static void dynsizevars(KINFO *); -static void sizevars(void); -static void usage(void); - static int addelem_gid(struct listinfo *, const char *); static int addelem_pid(struct listinfo *, const char *); static int addelem_tty(struct listinfo *, const char *); static int addelem_uid(struct listinfo *, const char *); static void add_list(struct listinfo *, const char *); +static void dynsizevars(KINFO *); static void *expand_list(struct listinfo *); +static const char *fmt(char **(*)(kvm_t *, const struct kinfo_proc *, int), + KINFO *, char *, int); static void free_list(struct listinfo *); static void init_list(struct listinfo *, addelem_rtn, int, const char *); +static char *kludge_oldps_options(char *); +static int pscomp(const void *, const void *); +static void saveuser(KINFO *); +static void scanvars(void); +static void sizevars(void); +static void usage(void); static char dfmt[] = "pid,tt,state,time,command"; static char jfmt[] = "user,pid,ppid,pgid,jobc,state,tt,time,command"; |