Age | Commit message (Collapse) | Author |
|
* ps.c (output_fmts): Add %start and %time specs before %command
in "user" (ps -u) format.
|
|
* ps.c (main): Fix return type to int, and use return.
* ids.c (main): Likewise.
* w.c (main): Likewise.
* login.c (main): Likewise.
* settrans.c (main): Likewise.
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* storeinfo.c (main): Likewise.
|
|
Correct filtering of process-owners when processes are explicitly specified.
Don't use ARGS_DOC.
(args_doc):
Variable removed.
|
|
Functions removed.
(main):
Use PIDS_ARGP to select processes.
Use new forms of parse_ functions.
(lookup_user):
Take new STATE argument.
(options):
Rearranged to group similar options.
Process-selection options removed.
"pids.h":
New include.
|
|
(enum procsets): Type removed.
(struct output_fmt): New type.
(output_fmt): New variable.
(parse_enum): Function removed.
(main): Use new version of parse_enum & output_fmts variable.
|
|
Functions removed.
Include "parse.h".
|
|
|
|
Implement --bottom/--tail/-b.
(options):
Update doc for --top.
Add --head and --bottom/--tail/-b options.
|
|
Add --top/-h option.
|
|
|
|
|
|
|
|
Change --fmt to --format/-F.
Change --posix-fmt/-o to --posix-format/-o.
Change --sort to --sort/-s.
Change --pgrp to --pgrp/-G.
Change --login to --login/-L.
Change --threads/-s to --threads/-T.
Change --session to --session/-S.
(OPT_FMT, OPT_SORT, OPT_PGRP, OPT_LOGIN, OPT_SESS): Macros removed.
|
|
|
|
|
|
(fmts): Use %nth.
|
|
|
|
(_parse_strlist, parse_strlist, parse_numlist, lookup_user, main):
Slather on consts, in a misguided attempt to shut up the compier.
|
|
|
|
|
|
truth value.
|
|
(options, main): Add -o/--posix-fmt option. -A is an alias.
"psout.h": New include.
|
|
don't filtered out non-parented processes.
|
|
(ps_specs): Make non-const.
(...various...): Use real types instead of old ps typedefs.
|
|
|
|
"common.h": Don't include this anymore.
|
|
|
|
(add_pid): Complain about non-existant processes.
(parse_opt): Don't turn quoted args into options.
(parse_numlist): Correctly handle NULL hook functions.
(main): Update calls to changed proc_stat_list_add_* functions.
(psout): New declaration.
|
|
(spec_abbrevs, ps_specs): New variables.
(fmts): Get rid of redundant header specifications.
(fmt_sortrevs): Variable removed.
(main, options): Rename -o flag to -U for posix compat (ick).
|
|
(main): If there is no current uid, don't try to filter with it.
(FILTER_NOT_LEADER): Renamed from FILTER_NSESSLDR.
(main): Rename ps_not_leader_filter from ps_not_sess_leader_filter.
(main): Use idvec routines instead of ids.
Use argz functions to store tty_names instead of our own.
(make_ids, ids_add, ids_contains): Routines deleted.
Include <idvec.h>.
|
|
|
|
(options): Add argument and doc for 'w' option.
|
|
Change uses of the INDEX field in argp_state structures to use NEXT instead.
|
|
|
|
|
|
|
|
(id_t, struct ids): New type.
(make_ids, ids_add, ids_contains): New functions.
(main): Use a struct ids instead of multiple variables to hold the wanted
uids list, which renamed to ONLY_UIDS. Add the NOT_UIDS list to contain
the opposite sense, and use it.
(main): Use proc_stat_proc_info instead of proc_stat_info and PSTAT_PROC_INFO
instead of PSTAT_INFO.
|
|
|
|
|
|
|
|
|
|
storage gets used after parse_opt returns.
(options): Converted to argp format.
(main): Use argp, not getopt.
(usage, USAGE, SHORT_OPTIONS): Deleted.
(arg_doc, doc): New variables.
Include <argp.h> not <getopt.h>.
|
|
as 4th parameter to parse_numlist.
|
|
fields.
Also add elision of uninteresting fields...
Add the (ignored) -w flag for BSD compat.
Use the new name for ps_fmt_squash: ps_fmt_squash_flags.
|
|
|
|
can't figure out.
|
|
(main, usage): Add lots of sysvish options, and generalize some existing ones
to deal with sysvish usage. Make -t & -o work.
|
|
|
|
|
|
filtering so that they don't disappear later.
|