| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Message-Id: <20230518165719.90745-2-bugaevc@gmail.com>
|
|
|
|
| |
Message-Id: <20230508213136.608575-42-bugaevc@gmail.com>
|
|
|
|
| |
Message-Id: <20230508213136.608575-16-bugaevc@gmail.com>
|
|
|
|
| |
Message-Id: <20230508213136.608575-15-bugaevc@gmail.com>
|
|
|
|
|
| |
Also add -Werror=old-style-definition to enforce new code.
Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
|
|
|
|
| |
No actual behavior change.
|
|
|
|
|
|
|
|
| |
If no output width limit has been set explicitly, and we're not printing
to a tty, do not limit output width.
In particular, this fixes grepping ps output.
Message-Id: <20210518122150.1490468-1-bugaevc@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* libps/Makefile (SRCS): Add ../utils/msgids.c.
(../utils/msgids-CPPFLAGS): Add DATADIR macro.
* libps/spec.c: Include "../utils/msgids.h".
(get_rpc_name): Implement with msgid_info.
* utils/msgids.c (parse_opt): Move end code to ...
(msgids_scan_std): ... new function.
* utils/msgids.h (msgids_scan_std): New prototype.
* utils/ps.c (main): Call msgids_scan_std.
|
|
|
|
|
| |
Our variants print stack traces on failures. This will make locating
errors much easier.
|
|
|
|
|
|
|
|
|
| |
This fixes hang of
ps -o user
* utils/ps.c (parse_opt): When POSIX_FMT is set, do not lookup format name
from OUTPUT_FMTS.
|
|
|
|
|
|
|
| |
2010-02-02 Carl Fredrik Hammar <hammy.lite@gmail.com>
* utils/ps.c (main): Move format parsing to parse_opt() and pass
state to parse_enum().
|
|
|
|
|
|
| |
* ps.c (current_tty_name): Don't declare as static.
* rpctrace.c (print_contents): Don't use ?: as a lvalue.
(msgids_file_p): Don't declare as static.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* pids.c (add_fn_pids): unsigned -> size_t
* w.c (add_utmp_procs): Likewise.
* login.c (add_canonical_host): Likewise.
* ps.c (main): Likewise.
* login.c (add_entry, main): Likewise.
* settrans.c (main): int -> size_t
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* vmstat.c (main): Use int for FWIDTHS.
* ping.c (main): size_t -> socklen_t
* fakeauth.c (S_auth_getids, S_auth_makeauth,
S_auth_server_authenticate): u_int -> size_t
* showtrans.c (main): Cast field width/precision args to int.
|
|
|
|
| |
* ps.c (options): Doc fix.
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
| |
|