diff options
author | brian <brian@FreeBSD.org> | 2009-05-17 04:00:43 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2009-05-17 04:00:43 +0000 |
commit | 04ab6b4b29dd329da0b15b1fb9d352ad46345130 (patch) | |
tree | 3ea0851a957e0b79596c05ac389dff8adbab3743 /bin/ps/ps.h | |
parent | 33504763e76102ecd6efe8f618b9cf7d9f535a5a (diff) | |
download | FreeBSD-src-04ab6b4b29dd329da0b15b1fb9d352ad46345130.zip FreeBSD-src-04ab6b4b29dd329da0b15b1fb9d352ad46345130.tar.gz |
Add a -d option to ps to display descendant info with the output.
This is similar to linux's -H (or -f) switch.
MFC after: 3 weeks
Diffstat (limited to 'bin/ps/ps.h')
-rw-r--r-- | bin/ps/ps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ps/ps.h b/bin/ps/ps.h index 03adc0a..ddaebed 100644 --- a/bin/ps/ps.h +++ b/bin/ps/ps.h @@ -42,6 +42,10 @@ typedef struct kinfo { int ki_valid; /* 1 => uarea stuff valid */ double ki_pcpu; /* calculated in main() */ segsz_t ki_memsize; /* calculated in main() */ + union { + int level; /* used in decendant_sort() */ + char *prefix; /* calculated in decendant_sort() */ + } ki_d; } KINFO; /* Variables. */ |