diff options
author | jkh <jkh@FreeBSD.org> | 1997-04-29 05:26:05 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-04-29 05:26:05 +0000 |
commit | e2ef6a625f0f47896ca66ad15621eef18c956c3f (patch) | |
tree | 2afb09786a097e18b5da9bfdffbd76aa576a3d78 /bin/ps/ps.h | |
parent | e3a67334252e979065753f5b0a592767c576f09d (diff) | |
download | FreeBSD-src-e2ef6a625f0f47896ca66ad15621eef18c956c3f.zip FreeBSD-src-e2ef6a625f0f47896ca66ad15621eef18c956c3f.tar.gz |
Dynamically adjust size of displayed username to the longest username which
appears, not the longest _maximum_ username (this should probably also go
into 2.2, for the day when we bump up the username length there too).
Submitted-By: Terry Lambert <terry@lambert.org>
Diffstat (limited to 'bin/ps/ps.h')
-rw-r--r-- | bin/ps/ps.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ps/ps.h b/bin/ps/ps.h index d1b8433..67749ae 100644 --- a/bin/ps/ps.h +++ b/bin/ps/ps.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ps.h 8.1 (Berkeley) 5/31/93 - * $Id$ + * $Id: ps.h,v 1.4 1997/02/22 14:05:09 peter Exp $ */ #define UNLIMITED 0 /* unlimited terminal width */ @@ -68,9 +68,12 @@ typedef struct var { #define COMM 0x01 /* needs exec arguments and environment (XXX) */ #define LJUST 0x02 /* left adjust on output (trailing blanks) */ #define USER 0x04 /* needs user structure */ +#define DSIZ 0x08 /* field size is dynamic*/ u_int flag; /* output routine */ void (*oproc) __P((struct kinfo *, struct varent *)); + /* sizing routine*/ + int (*sproc) __P((struct kinfo *)); short width; /* printing width */ /* * The following (optional) elements are hooks for passing information @@ -81,6 +84,7 @@ typedef struct var { enum type type; /* type of element */ char *fmt; /* printf format */ char *time; /* time format */ + short dwidth; /* dynamic printing width */ /* * glue to link selected fields together */ |