aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-01-05 03:26:41 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-01-05 03:26:41 +0000
commit5fee2e1a79dc6fc05658821a86b0e7b5678a90dd (patch)
tree97524fe62e963beeddb96b11576d3f96a6d85d8b /include
parent9cd30d30a0d7340524ba8223dc9d4088eb93a1d6 (diff)
downloadbusybox-w32-5fee2e1a79dc6fc05658821a86b0e7b5678a90dd.tar.gz
busybox-w32-5fee2e1a79dc6fc05658821a86b0e7b5678a90dd.tar.bz2
busybox-w32-5fee2e1a79dc6fc05658821a86b0e7b5678a90dd.zip
ps: add conditional support for -o [e]time
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index fef8fe2e0..33e73b27b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -990,6 +990,7 @@ typedef struct procps_status_t {
990 * it is memset(0) for each process in procps_scan() */ 990 * it is memset(0) for each process in procps_scan() */
991 unsigned long vsz, rss; /* we round it to kbytes */ 991 unsigned long vsz, rss; /* we round it to kbytes */
992 unsigned long stime, utime; 992 unsigned long stime, utime;
993 unsigned long start_time;
993 unsigned pid; 994 unsigned pid;
994 unsigned ppid; 995 unsigned ppid;
995 unsigned pgid; 996 unsigned pgid;
@@ -1032,11 +1033,12 @@ enum {
1032 PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM, 1033 PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM,
1033 PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP | ENABLE_PKILL), 1034 PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP | ENABLE_PKILL),
1034 USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,) 1035 USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,)
1036 PSSCAN_START_TIME = 1 << 18,
1035 /* These are all retrieved from proc/NN/stat in one go: */ 1037 /* These are all retrieved from proc/NN/stat in one go: */
1036 PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID 1038 PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID
1037 | PSSCAN_COMM | PSSCAN_STATE 1039 | PSSCAN_COMM | PSSCAN_STATE
1038 | PSSCAN_VSZ | PSSCAN_RSS 1040 | PSSCAN_VSZ | PSSCAN_RSS
1039 | PSSCAN_STIME | PSSCAN_UTIME 1041 | PSSCAN_STIME | PSSCAN_UTIME | PSSCAN_START_TIME
1040 | PSSCAN_TTY, 1042 | PSSCAN_TTY,
1041}; 1043};
1042procps_status_t* alloc_procps_scan(int flags); 1044procps_status_t* alloc_procps_scan(int flags);