aboutsummaryrefslogtreecommitdiff
path: root/libps
Commit message (Collapse)AuthorAgeFilesLines
* If a msg port call times out, disable use of that msg port.Miles Bader1995-05-051-32/+51
|
* Compile our own msg & term user stubs to add msg timeouts.Miles Bader1995-05-051-1/+6
|
* Rename ps_fmt_squash to ps_fmt_squash_flags, moving most of the guts into aMiles Bader1995-05-031-62/+78
| | | | | | new more general ps_fmt_squash, which is usable for other things than flags. Recalculate the set of ps flags needed by the fmt in ps_fmt_squash (which then allows us to remove more specific code in ps_fmt_squash_flags).
* Add the nominal_fn field to struct ps_fmt_spec, which will be used to decideMiles Bader1995-05-031-2/+23
| | | | | | whether values are `unexciting'. Add entries for proc_stat_list_for_each and proc_stat_list_spec_nominal. Rename ps_fmt_squash to ps_fmt_squash_flags.
* (proc_stat_list_for_each): New function for iterating over proc_stat_lists.Miles Bader1995-05-031-0/+47
| | | | | (proc_stat_list_spec_nominal): New function for deciding if a particular spec is always nominal.
* (ps_std_fmt_specs): Add values for the new nominal_fn field.Miles Bader1995-05-031-33/+106
| | | | | (ps_nominal_zint, ps_nominal_user, ps_nominal_pri, ps_nominal_nth): Possible nominal funs.
* (struct proc_stat): Add the suspend_count field, along withMiles Bader1995-05-021-14/+19
| | | | PSTAT_SUSPEND_COUNT, and proc_stat_suspend_count(ps).
* (proc_stat_set_flags, add_preconditions): Add support for the suspend_countMiles Bader1995-05-021-0/+15
| | | | field.
* Add the Susp (task/thread suspend count), PSusp (task suspend count), andMiles Bader1995-05-021-0/+27
| | | | TSusp (thread suspend count) output specs.
* Replace PSTAT_STATE_EXECED with PSTAT_STATE_FORKED; we want to the flags markMiles Bader1995-05-021-2/+2
| | | | exceptional conditions, and this is rarer.
* (add_preconditions): A new function that calculates inter-flag dependencies;Miles Bader1995-05-021-29/+91
| | | | | | | | | | | code moved here from from proc_stat_set_flags. (should_suppress_msgport): A new function that returns true when there's some condition indicating that we shouldn't use a process's msg port. (proc_stat_set_flags): Avoid using a process's msg port when it may be unusable. (proc_stat_set_flags): Set PSTAT_STATE_FORKED instead of PSTAT_STATE_EXECED. (proc_stat_state_tags): Change the user state letter to "f" from "e".
* Set libname.Miles Bader1995-04-231-0/+1
|
* Make everything depend on ps.h. Other random tweaks.Miles Bader1995-04-071-6/+4
|
* Tighten up types used (i.e., don't use int for everything).Miles Bader1995-04-075-19/+20
|
* (ps_tty_short_name): New function; functionality used to be in spec.c.Miles Bader1995-04-071-1/+70
| | | | | (ps_tty_create, ps_tty_free): Add short_name fields. Tighten up types used (i.e., don't use int for everything).
* Add decls for proc_stat_list_add_pgrp & ps_tty_short_name.Miles Bader1995-04-071-43/+59
| | | | Tighten up types used (i.e., don't use int for everything).
* (ps_emit_state): If a process is marked as stopped, then don't mentionMiles Bader1995-04-071-46/+17
| | | | | | sleeping or idle threads' status (as that's presumably the signal thread). (ps_emit_tty_name): Move guts into into ps_tty_short_name. Tighten up types used (i.e., don't use int for everything).
* (proc_stat_list_sort1): Always keep threads after their process when sorting!Miles Bader1995-04-071-54/+70
| | | | | | | Factor out most of proc_stat_list_add_all, proc_stat_list_add_login_coll, and proc_stat_list_add_session into proc_stat_list_add_[id_]fn_pids. (proc_stat_list_add_pgrp): New function, adds pids for a pgrp. Tighten up types used (i.e., don't use int for everything).
* Add the `Arg0' spec, which is the same as `Args', but only prints the firstMiles Bader1995-04-061-2/+3
| | | | one. Change MsgsIn and MsgsOut to MsgIn and MsgOut.
* (proc_stat_set_flags): If PSTAT_NO_MSGPORT is set, don't use the msg port.Miles Bader1995-04-051-3/+10
|
* Add the PSTAT_NO_MSGPORT flag, which when set disables any use of theMiles Bader1995-04-051-3/+5
| | | | process's message port.
* Don't get barf on processes with zero threads.Miles Bader1995-03-291-4/+6
|
* Add the exec_flags field to the proc_stat structure, and addMiles Bader1995-03-281-0/+5
| | | | PSTAT_STATE_TRACED.
* Add support for the exec_flags field, and make the state bits calculation useMiles Bader1995-03-281-2/+11
| | | | | that to support the PSTAT_STATE_TRACED bit. Update proc_stat_state_tags to add PSTAT_STATE_TRACED.
* Include <hurd/term.h>.Michael I. Bushnell1995-03-211-0/+1
|
* (ps_write_int_field): Use int format for int arg.Michael I. Bushnell1995-03-211-1/+1
|
* (ps_user_passwd) [COUNT, COPY]: Use `if' statement.Michael I. Bushnell1995-03-211-3/+3
|
* Include <string.h>.Michael I. Bushnell1995-03-211-3/+4
| | | | | (ps_emit_num_blocks): Use int format for int arg. (sprint_frac_value): Likewise.
* Include <string.h>.Michael I. Bushnell1995-03-211-0/+1
|
* (ps_host_basic_info): Cast third arg to host_info.Michael I. Bushnell1995-03-211-3/+6
| | | | | (ps_host_sched_info): Likewise. (ps_host_load_info): Likewise.
* Include <unistd.h>.Michael I. Bushnell1995-03-211-0/+1
|
* Include <hurd/term.h>.Michael I. Bushnell1995-03-211-0/+1
|
* Don't include pshost.h.Michael I. Bushnell1995-03-211-1/+0
|
* Don't include "pshost.h".Michael I. Bushnell1995-03-211-1/+0
|
* Initial revisionMichael I. Bushnell1995-03-211-0/+37
|
* * ps.h: Include <errno.h>.Michael I. Bushnell1995-03-211-0/+64
| | | | | | | (ps_get_host, ps_host_basic_info, ps_host_sched_info, ps_host_load_info): Copied here from pshost.h. (ps_write_string, ps_write_spaces, ps_write_padding, ps_write_field, ps_write_int_field): Copied here from pswrite.h
* Set the PSTAT_STATE_PRIORITY and PSTAT_STATE_NICED flags when appropiate.Miles Bader1995-03-151-0/+5
|
* Add the output function ps_emit_priority that prints priorities in unix-Miles Bader1995-03-151-3/+12
| | | | | | compatible way (that is, 20 .. -20 instead of 0 .. 24). Use this instead of ps_emit_int to print all priority fields. This also increases the min field width for them to 3.
* Use ps_tty_t routines instead of the ps tty_name field.Miles Bader1995-03-141-57/+70
| | | | | | Use ps_user_t routines instead of querying passwd or getting the owner from ps->info. Increase the width of the user name field to 8.
* Initial revisionMiles Bader1995-03-141-0/+159
|
* Added the new types ps_context_t, ps_user_t, and ps_tty_t.Miles Bader1995-03-141-28/+159
| | | | | | | | | | proc_stat_list_t's and proc_stat_t's point to a ps_context_t now instead of directly to the proc server (but we can get the proc server from the context). Added the owner (ps_user_t) field to proc_stat_t, and tty now points to a ps_tty_t instead of to a tty port; tty_name is deleted since that gets handled in the ps_tty_t. Add the inverse of proc_stat_list_add_threads, proc_stat_list_remove_threads.
* A proc_stat_list_t points to a ps_context_t now instead of directly to the procMiles Bader1995-03-141-28/+32
| | | | | | | server (but we can get the proc server from the context). We no longer create or free proc_stat_ts; we leave that up to our ps_context, except in the case of thread proc_stats. Add the inverse of proc_stat_list_add_threads, proc_stat_list_remove_threads.
* Initial revisionMiles Bader1995-03-142-0/+202
|
* A proc_stat_t points to a ps_context_t now instead of directly to the procMiles Bader1995-03-141-53/+22
| | | | | | | server (but we can get the proc server from the context). Added the owner (ps_user_t) field to proc_stat_t, and tty now points to a ps_tty_t instead of to a tty port; tty_name is deleted since that gets handled in the ps_tty_t.
* Copy the correct number of fields when squashing.Miles Bader1995-03-141-1/+4
| | | | Correctly skip prefix-only fields.
* Initial revisionMiles Bader1995-03-139-0/+3096