top,ps: 'stringify' tty only when needed. -60 bytes.

This commit is contained in:
Denis Vlasenko
2007-06-19 14:43:17 +00:00
parent 362c6ec694
commit 31789a81d5
3 changed files with 12 additions and 22 deletions

View File

@@ -847,10 +847,9 @@ typedef struct {
unsigned sid;
unsigned uid;
unsigned gid;
unsigned tty_major,tty_minor;
char state[4];
char tty_str[8]; /* "maj,min" or "?" */
/* basename of executable in exec(2), read from /proc/N/stat, */
/* size from sizeof(task_struct.comm) in /usr/include/linux/sched.h */
/* basename of executable in exec(2), read from /proc/N/stat */
char comm[COMM_LEN];
/* user/group? - use passwd/group parsing functions */
} procps_status_t;