diff options
author | Denis Vlasenko | 2008-01-05 03:26:41 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-01-05 03:26:41 +0000 |
commit | 5fee2e1a79dc6fc05658821a86b0e7b5678a90dd (patch) | |
tree | 97524fe62e963beeddb96b11576d3f96a6d85d8b /include/libbb.h | |
parent | 9cd30d30a0d7340524ba8223dc9d4088eb93a1d6 (diff) | |
download | busybox-5fee2e1a79dc6fc05658821a86b0e7b5678a90dd.zip busybox-5fee2e1a79dc6fc05658821a86b0e7b5678a90dd.tar.gz |
ps: add conditional support for -o [e]time
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index fef8fe2..33e73b2 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -990,6 +990,7 @@ typedef struct procps_status_t { * it is memset(0) for each process in procps_scan() */ unsigned long vsz, rss; /* we round it to kbytes */ unsigned long stime, utime; + unsigned long start_time; unsigned pid; unsigned ppid; unsigned pgid; @@ -1032,11 +1033,12 @@ enum { PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM, PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP | ENABLE_PKILL), USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,) + PSSCAN_START_TIME = 1 << 18, /* These are all retrieved from proc/NN/stat in one go: */ PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | PSSCAN_COMM | PSSCAN_STATE | PSSCAN_VSZ | PSSCAN_RSS - | PSSCAN_STIME | PSSCAN_UTIME + | PSSCAN_STIME | PSSCAN_UTIME | PSSCAN_START_TIME | PSSCAN_TTY, }; procps_status_t* alloc_procps_scan(int flags); |