diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index f1658945c..a4aa90da3 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -904,6 +904,15 @@ typedef struct procps_status_t { | |||
904 | unsigned uid; | 904 | unsigned uid; |
905 | unsigned gid; | 905 | unsigned gid; |
906 | unsigned tty_major,tty_minor; | 906 | unsigned tty_major,tty_minor; |
907 | #if ENABLE_FEATURE_TOPMEM | ||
908 | unsigned long mapped_rw; | ||
909 | unsigned long mapped_ro; | ||
910 | unsigned long shared_clean; | ||
911 | unsigned long shared_dirty; | ||
912 | unsigned long private_clean; | ||
913 | unsigned long private_dirty; | ||
914 | unsigned long stack; | ||
915 | #endif | ||
907 | char state[4]; | 916 | char state[4]; |
908 | /* basename of executable in exec(2), read from /proc/N/stat | 917 | /* basename of executable in exec(2), read from /proc/N/stat |
909 | * (if executable is symlink or script, it is NOT replaced | 918 | * (if executable is symlink or script, it is NOT replaced |
@@ -927,7 +936,8 @@ enum { | |||
927 | PSSCAN_STIME = 1 << 12, | 936 | PSSCAN_STIME = 1 << 12, |
928 | PSSCAN_UTIME = 1 << 13, | 937 | PSSCAN_UTIME = 1 << 13, |
929 | PSSCAN_TTY = 1 << 14, | 938 | PSSCAN_TTY = 1 << 14, |
930 | USE_SELINUX(PSSCAN_CONTEXT = 1 << 15,) | 939 | PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM, |
940 | USE_SELINUX(PSSCAN_CONTEXT = 1 << 16,) | ||
931 | /* These are all retrieved from proc/NN/stat in one go: */ | 941 | /* These are all retrieved from proc/NN/stat in one go: */ |
932 | PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | 942 | PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID |
933 | | PSSCAN_COMM | PSSCAN_STATE | 943 | | PSSCAN_COMM | PSSCAN_STATE |