summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-19 14:43:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-19 14:43:17 +0000
commit31789a81d5751acaaf373e8ede2932208161f869 (patch)
tree8b3fe7e25ca247fc8d4e44102cef8b23a92f0354 /include
parent362c6ec6941c774992abcf008459616dbce0e7af (diff)
top,ps: 'stringify' tty only when needed. -60 bytes.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 999caae0c..9ca565348 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -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;