summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenis Vlasenko2007-06-19 14:43:17 +0000
committerDenis Vlasenko2007-06-19 14:43:17 +0000
commit31789a81d5751acaaf373e8ede2932208161f869 (patch)
tree8b3fe7e25ca247fc8d4e44102cef8b23a92f0354 /include/libbb.h
parent362c6ec6941c774992abcf008459616dbce0e7af (diff)
downloadbusybox-31789a81d5751acaaf373e8ede2932208161f869.zip
busybox-31789a81d5751acaaf373e8ede2932208161f869.tar.gz
top,ps: 'stringify' tty only when needed. -60 bytes.
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 999caae..9ca5653 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;