aboutsummaryrefslogtreecommitdiff
path: root/libps/spec.c
Commit message (Collapse)AuthorAgeFilesLines
* (ps_emit_int, ps_emit_nz_int, ps_emit_priority,Miles Bader1995-11-201-40/+43
| | | | | | | | ps_emit_percent, ps_emit_num_blocks, ps_emit_nice_int, ps_emit_nice_seconds, ps_emit_seconds, ps_emit_uid, ps_emit_uname, ps_emit_string0, ps_emit_string, ps_emit_tty_name, ps_emit_state): Use new STREAM parameter instead of old one and count. Use new function names.
* (ps_base_priority_getter, ps_cur_priority_getter, ps_get_base_priority,Miles Bader1995-11-081-4/+4
| | | | | ps_get_cur_priority): Get this info using PSTAT_THREAD_BASIC instead of PSTAT_THREAD_SCHED.
* (ps_rpc_getter): New variable.Miles Bader1995-11-031-30/+53
| | | | | | | | | | | | | | | | | | | (ps_get_rpc): New function. (ps_std_fmt_specs): Add "RPC" entry. (ps_emit_nz_int): New function. (ps_ppid_getter, ps_pgrp_getter, ps_session_getter, ps_login_col_getter): Use PSTAT_PROC_INFO, not PSTAT_INFO. (ps_get_ppid, ps_get_pgrp, ps_get_session, ps_get_login_col): Use proc_stat_proc_info, not proc_stat_info. (ps_vsize_getter, ps_rsize_getter, ps_rmem_frac_getter, ps_proc_susp_count_getter): Use PSTAT_TASK_BASIC, not PSTAT_INFO. (ps_get_vsize, ps_get_rsize, ps_get_rmem_frac, ps_get_proc_susp_count): Use proc_stat_task_basic_info, not proc_stat_info. (ps_cur_priority_getter, ps_base_priority_getter, ps_max_priority_getter): Use PSTAT_THREAD_SCHED, not PSTAT_THREAD_INFO. (ps_usr_time_getter, ps_sys_time_getter, ps_tot_time_getter, ps_cpu_frac_getter, ps_sleep_getter): Use PSTAT_THREAD_BASIC, not PSTAT_THREAD_INFO.
* (ps_emit_state): Rearrange things to reflect the new state bits.Miles Bader1995-08-191-10/+29
| | | | | (state_shadows): New variable. (ps_emit_state): Use the state_shadows list to turn off some states.
* (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.
* Add the Susp (task/thread suspend count), PSusp (task suspend count), andMiles Bader1995-05-021-0/+27
| | | | TSusp (thread suspend count) output specs.
* (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).
* 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.
* Include <string.h>.Michael I. Bushnell1995-03-211-3/+4
| | | | | (ps_emit_num_blocks): Use int format for int arg. (sprint_frac_value): Likewise.
* Don't include pshost.h.Michael I. Bushnell1995-03-211-1/+0
|
* 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-131-0/+756