Submit #2894 ยป 0001-Include-alias-args-in-bin-ps.patch
bin/ps/keyword.c | ||
---|---|---|
{"acflag", "ACFLG", NULL, 0, pvar, NULL, 3, POFF(acflag), USHORT, "x",
|
||
NULL},
|
||
{"acflg", "", "acflag", 0, NULL, NULL, 0, 0, 0, NULL, NULL},
|
||
{"args", "", "command", 0, NULL, NULL, 0, 0, 0, NULL, NULL},
|
||
{"batch", "BAT", NULL, 0, lpest, NULL, 3, LPOFF(origcpu), UINT, "d", NULL},
|
||
{"blocked", "", "sigmask", 0, NULL, NULL, 0, 0, 0, NULL, NULL},
|
||
{"caught", "", "sigcatch", 0, NULL, NULL, 0, 0, 0, NULL, NULL},
|
||
... | ... | |
if (hp)
|
||
*hp++ = '\0';
|
||
aliased:
|
||
key.name = p;
|
||
v = bsearch(&key, var, sizeof(var)/sizeof(VAR) - 1, sizeof(VAR), vcmp);
|
||
if (v && v->alias) {
|
||
if (hp) {
|
||
warnx("%s: illegal keyword specification", p);
|
||
eval = 1;
|
||
}
|
||
parsefmt(v->alias);
|
||
return(NULL);
|
||
p = v->alias;
|
||
if (hp == NULL && v->header[0] != '\0')
|
||
hp = strdup(v->header);
|
||
goto aliased;
|
||
}
|
||
if (!v) {
|
||
warnx("%s: keyword not found", p);
|