aboutsummaryrefslogtreecommitdiff
path: root/utils/ps.c
Commit message (Collapse)AuthorAgeFilesLines
* (argp_program_version): New variable.Miles Bader1996-07-061-0/+2
|
* (main): Fix heuristic to decide whether native booted.Miles Bader1996-06-241-3/+11
|
* (spec_abbrevs): Still use `NTH' for field name, just `TH' for title.Miles Bader1996-05-281-2/+2
| | | | (fmts): Use %nth.
* (fmts): Use %sz for vmem format, not %size.Miles Bader1996-05-281-1/+1
|
* (parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.Miles Bader1996-05-111-14/+14
| | | | | (_parse_strlist, parse_strlist, parse_numlist, lookup_user, main): Slather on consts, in a misguided attempt to shut up the compier.
* (parse_strlist): Make DEFAULT_FN return a const char *.Miles Bader1996-05-101-1/+1
|
* (main) [current_tty_name]: Remove `const' keyword to avoid type clash.Michael I. Bushnell1996-05-091-1/+1
|
* (main) [proc_stat_has_ctty]: Add parentheses around assignment used asMichael I. Bushnell1996-05-091-1/+1
| | | | truth value.
* (fmts): Use new field syntax.Miles Bader1996-05-071-33/+21
| | | | | (options, main): Add -o/--posix-fmt option. -A is an alias. "psout.h": New include.
* (main): Try to intuit whether this is a native-booted hurd system, and if so,Miles Bader1996-04-231-2/+12
| | | | don't filtered out non-parented processes.
* (spec_abbrevs): Make const.Miles Bader1996-03-291-24/+24
| | | | | (ps_specs): Make non-const. (...various...): Use real types instead of old ps typedefs.
* (main): Pass new arg to argp_parse.Miles Bader1996-03-191-1/+1
|
* Include <error.h> instead of "error.h".Miles Bader1996-03-051-3/+1
| | | | "common.h": Don't include this anymore.
* (main): Don't make -a imply -g.Miles Bader1996-02-151-1/+1
|
* (main): Get rid of totally dead processes/threads.Miles Bader1996-02-151-21/+45
| | | | | | | | (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.
* (main): Move a bunch of stuff into psout() in psout.c.Miles Bader1996-01-231-133/+27
| | | | | | | (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, options): If the specified sort field begins with `-', reverse the sort.Miles Bader1995-12-211-121/+75
| | | | | | | | | | (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): Reformat doc string for --tty option.Miles Bader1995-12-171-2/+2
|
* (main): Implement 'w' option.Miles Bader1995-12-171-2/+28
| | | | (options): Add argument and doc for 'w' option.
* (main):Miles Bader1995-12-061-3/+3
| | | | Change uses of the INDEX field in argp_state structures to use NEXT instead.
* (main): Use new libps stream type.Miles Bader1995-11-211-4/+9
|
* (main): Grow TTY_NAMES properly even when it's empty.Miles Bader1995-11-141-1/+1
|
* (ids_add): Increase the size of IDS even when 0.Miles Bader1995-11-081-1/+1
|
* (options): Add --not-owner/-O option.Miles Bader1995-11-021-27/+75
| | | | | | | | | | (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.
* (fmts): Add RPC field to the -l format.Miles Bader1995-11-021-1/+1
|
* (options): --all is -e, not -a.Miles Bader1995-10-301-1/+1
|
* (parse_enum): Use argp_error.Miles Bader1995-10-211-9/+2
|
* (parse_enum): Use ARGP_HELP_STD_ERR.Miles Bader1995-10-181-2/+2
|
* (main): Use realloc on a variable in main instead of alloca, since theMiles Bader1995-10-111-185/+163
| | | | | | | | | 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>.
* (lookup_user): Declare return to be `int' to avoid type clash in useMichael I. Bushnell1995-07-071-1/+1
| | | | as 4th parameter to parse_numlist.
* Add the -n (--nominal-fields) flag, which prevents elision of uninterestingMiles Bader1995-05-031-4/+24
| | | | | | | 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.
* Add the SC (suspend count) field to various output formats.Miles Bader1995-05-021-4/+4
|
* Tweak things so that the -t flag works correctly for processes whose tty weMiles Bader1995-04-111-12/+20
| | | | can't figure out.
* (parse_enum): Renamed from enum_name.Miles Bader1995-04-071-83/+333
| | | | | (main, usage): Add lots of sysvish options, and generalize some existing ones to deal with sysvish usage. Make -t & -o work.
* Add the `jobc' (-j) output format from netbsd.Miles Bader1995-04-061-9/+20
|
* Minor change in spec names.Miles Bader1995-04-061-1/+1
|
* When processes are specified on the command line by PID, turn off allMiles Bader1995-04-061-5/+7
| | | | filtering so that they don't disappear later.
* Make -a imply -g as well, to be compatible with bsd.Miles Bader1995-04-051-7/+14
| | | | | Add the -M (--no-msg-port) switch, which disables all fields that would use any process's message port.
* (main): Treat argument without leading - as if it had one, unless it's aRoland McGrath1995-04-041-12/+30
| | | | number.
* (program_name): New variable.Michael I. Bushnell1995-03-211-1/+4
| | | | | (main): Don't set program_invocation_short_name (the library does it for us). Do set program_name.
* Include <hurd/ps.h> instead of "ps.h".Michael I. Bushnell1995-03-211-0/+2
| | | | | Include <unistd.h>. (enum_name): Avoid warning.
* Include <hurd/ps.h> instead of "ps.h".Michael I. Bushnell1995-03-211-1/+1
|
* Use ps_contexts now that they exist.Miles Bader1995-03-141-1/+6
|
* Initial revisionMiles Bader1995-03-131-0/+365