diff options
| author | Garance A Drosehn <gad@FreeBSD.org> | 2004-04-04 18:01:23 +0000 |
|---|---|---|
| committer | Garance A Drosehn <gad@FreeBSD.org> | 2004-04-04 18:01:23 +0000 |
| commit | 1302b23d339c421287b3ce63ba0f798b809747ac (patch) | |
| tree | 1c89fe011f8fcab594732674bac520f5774b1d00 /bin/ps | |
| parent | f21f8da873f90012a1711ccb1b79e1d1b1bdd214 (diff) | |
Notes
Diffstat (limited to 'bin/ps')
| -rw-r--r-- | bin/ps/ps.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 3f30c98710dd..551eba151211 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -128,24 +128,24 @@ 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,sess,jobc,state,tt,time,command"; |
