procps-3.1.1 --> procps-3.1.2
better RPM generation
-general C99 clean-up
+use C99 features
some seLinux fixes
now count Inact_laundry as needed #172163
ps: fewer globals
ps: hardware-enforced buffer protection
-ps: smaller (was it 1 kB or 2 kB ?)
+ps: 1 kB smaller
top: B command added (for bold on/off)
top: handle old (and future) config files
top: man page tweak
vmstat header fixed
vmstat -a re-fixed
-procps-3.1.0 --> procps-3.1.0
+procps-3.0.5 --> procps-3.1.0
vmstat displays IO-wait time instead of bogus "w"
can build w/o shared library (set SHARED=0)
static const char *opt_delim = "\n";
static union el *opt_pgrp = NULL;
-static union el *opt_gid = NULL;
+static union el *opt_rgid = NULL;
static union el *opt_ppid = NULL;
static union el *opt_sid = NULL;
static union el *opt_term = NULL;
static union el *opt_euid = NULL;
-static union el *opt_uid = NULL;
+static union el *opt_ruid = NULL;
static char *opt_pattern = NULL;
do_openproc (void)
{
PROCTAB *ptp;
- int flags = PROC_FILLANY;
+ int flags = 0;
if (opt_pattern || opt_full)
flags |= PROC_FILLCOM;
- if (opt_uid)
+ if (opt_ruid || opt_rgid)
flags |= PROC_FILLSTATUS;
+ if (opt_oldest || opt_newest || opt_pgrp || opt_sid || opt_term)
+ flags |= PROC_FILLSTAT;
+ if (!(flags & PROC_FILLSTAT))
+ flags |= PROC_FILLSTATUS; // FIXME: need one, and PROC_FILLANY broken
if (opt_euid && !opt_negate) {
int num = opt_euid[0].num;
int i = num;
match = 0;
else if (opt_euid && ! match_numlist (task.euid, opt_euid))
match = 0;
- else if (opt_uid && ! match_numlist (task.ruid, opt_uid))
+ else if (opt_ruid && ! match_numlist (task.ruid, opt_ruid))
match = 0;
- else if (opt_gid && ! match_numlist (task.rgid, opt_gid))
+ else if (opt_rgid && ! match_numlist (task.rgid, opt_rgid))
match = 0;
else if (opt_sid && ! match_numlist (task.session, opt_sid))
match = 0;
++criteria_count;
break;
case 'U':
- opt_uid = split_list (optarg, conv_uid);
- if (opt_uid == NULL)
+ opt_ruid = split_list (optarg, conv_uid);
+ if (opt_ruid == NULL)
usage (opt);
++criteria_count;
break;
case 'G':
- opt_gid = split_list (optarg, conv_gid);
- if (opt_gid == NULL)
+ opt_rgid = split_list (optarg, conv_gid);
+ if (opt_rgid == NULL)
usage (opt);
++criteria_count;
break;