diff options
author | jmallett <jmallett@FreeBSD.org> | 2003-01-19 00:22:34 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2003-01-19 00:22:34 +0000 |
commit | 0c8d64a2c4ed9577970bc064bd9354ec7fa78297 (patch) | |
tree | 2986fc8ec7518040f3f7cba46759c64c32ef7920 /bin/ps/extern.h | |
parent | 6f344674a0af04f9a80844d7e0495643cfd96161 (diff) | |
download | FreeBSD-src-0c8d64a2c4ed9577970bc064bd9354ec7fa78297.zip FreeBSD-src-0c8d64a2c4ed9577970bc064bd9354ec7fa78297.tar.gz |
When inserting a non-user-specified (e.g. not via -o or -O) format, don't dupe
one that is already there. This is consistent with GNU ps(1)'s BSD mode, and
POLA.
Reported by: Andy Farkas <andyf@speednet.com.au>
Tested by: Andy Farkas <andyf@speednet.com.au>
Diffstat (limited to 'bin/ps/extern.h')
-rw-r--r-- | bin/ps/extern.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/extern.h b/bin/ps/extern.h index ea603a4..54747a2 100644 --- a/bin/ps/extern.h +++ b/bin/ps/extern.h @@ -52,6 +52,7 @@ void command(KINFO *, VARENT *); void cputime(KINFO *, VARENT *); int donlist(void); void elapsed(KINFO *, VARENT *); +VARENT *find_varentry(VAR *); const char *fmt_argv(char **, char *, size_t); double getpcpu(const KINFO *); void kvar(KINFO *, VARENT *); @@ -63,7 +64,7 @@ void maxrss(KINFO *, VARENT *); void lockname(KINFO *, VARENT *); void mwchan(KINFO *, VARENT *); void pagein(KINFO *, VARENT *); -void parsefmt(const char *); +void parsefmt(const char *, int); void pcpu(KINFO *, VARENT *); void pmem(KINFO *, VARENT *); void pri(KINFO *, VARENT *); |