summaryrefslogtreecommitdiff
path: root/libps
AgeCommit message (Collapse)Author
1996-05-24(merge_procinfo): And update *HAVE with PSTAT_PROC_INFO fromMichael I. Bushnell
REALLY_HAVE here.
1996-05-24(fetch_procinfo): Always turn on PSTAT_PROC_INFO if proc_getprocinfoMichael I. Bushnell
returns successfully.
1996-05-23(_fmt_create):Miles Bader
Increment SRC when reading modifiers. Recognize '^' modifier.
1996-05-13(PSTAT_PROCINFO, PSTAT_PROCINFO_THREAD): Add PSTAT_THREAD_WAITS.Miles Bader
(proc_stat_set_flags): Be more careful about when we fetch thread_wait information, and synthesize a process-summary thread_wait value for lots of threads. (summarize_thread_waits): Only give a real summary if there's but a single user thread. (fetch_procinfo): Use PSTAT_THREAD_WAITS instead of PSTAT_THREAD_WAIT.
1996-05-13(PSTAT_THREAD_WAITS): New macro.Miles Bader
1996-05-12(merge_procinfo, fetch_procinfo): Change HAVE to be an input/output parameter.Miles Bader
(proc_stat_set_flags): Change accordingly. (get_thread_wait): Correctly advance WAIT.
1996-05-12(get_thread_wait): Correctly advance WAIT.Miles Bader
1996-05-12(specs): Give runtime specs 2 fraction digits by default.Miles Bader
1996-05-12Frob comment.Miles Bader
1996-05-09(fetch_procinfo): Pass a reference to PI_FLAGS in call toMichael I. Bushnell
fetch_procinfo.
1996-05-07(add_preconditions, proc_stat_set_flags): Remove references to exec_flags.Miles Bader
1996-05-07(ps_user_uname_create, ps_user_passwd_create): New declarations.Miles Bader
(ps_fmt_set_output_width): New declaration. (struct ps_fmt_spec): Add precision & flags fields. Change args to OUTPUT_FN. (struct ps_fmt_field): Add precision & flags fields. (ps_fmt_squash): Call FN on the field, not the spec. (ps_fmt_create, ps_fmt_creation_error): Add POSIX arg. (PS_FMT_FIELD_AT_MOD, PS_FMT_FIELD_COLON_MOD, PS_FMT_FIELD_KEEP, PS_FMT_FIELD_UPCASE_TITLE): New macros. (struct proc_stat): Remove exec_flags field. (PSTAT_EXEC_FLAGS): Macro removed.
1996-05-07(ps_emit_user_name): New function.Miles Bader
(specs_add_alias): Pass on flags field. (specs): Add precision & flags fields. (FG): New macro. (ps_emit_*): Take FIELD argument instead of WIDTH.
1996-05-07(_fmt_create):Miles Bader
Change syntax of fields. Add support for precision and `@', `:', `?', & `!' modifiers. Add POSIX argument, and support for posix-style format strings. When using the field name as the title, use the defn, not the user's. (ps_fmt_write_titles): Implement PS_FMT_FIELD_UPCASE_TITLE. (ps_fmt_squash): Call FN with the field, not the field's spec. (ps_fmt_squash_flags): Appropiately modify the function we use. (ps_fmt_create, ps_fmt_creation_error): Add POSIX argument.
1996-05-07Add some const decls.Miles Bader
1996-05-07(install_passwd): New function.Miles Bader
(ps_user_passwd): Use it. (ps_user_uname_create, ps_user_passwd_create): New functions.
1996-05-02(ps_fmt_creation_error): new declaration.Miles Bader
1996-05-01(ps_emit_past_time): Implement.Miles Bader
(ps_emit_seconds): Use new args to fmt_seconds. (ps_emit_minutes): Use new args to fmt_minutes.
1996-05-01(_fmt_create): New function (was ps_fmt_create).Miles Bader
(ps_fmt_create): Call _fmt_create. (ps_fmt_creation_error): New function.
1996-04-23(PSTAT_STATE_P_ATTRS): Fix names of individual flags.Miles Bader
1996-04-23(state_shadows): If a process has no parent don't show various processMiles Bader
attributes (that are likely to be noise).
1996-04-11(MIGCOMUFLAGS): Delete variable.Michael I. Bushnell
1996-04-11(ps_emit_past_time): Return zero.Michael I. Bushnell
1996-03-27(msg-MIGUFLAGS, term-MIGUFLAGS): Add a user prefix of `ps_'.Miles Bader
1996-03-27(proc_stat_set_flags): Use new `ps_' prefix for msg rpcs.Miles Bader
Include "ps_msg.h".
1996-03-27(ps_tty_name): Use new `ps_' prefix for term rpcs.Miles Bader
Include "ps_term.h".
1996-03-26Initial revisionMiles Bader
1996-03-26Get rid of mega typedefs, and just use structure pointers like other hurdMiles Bader
libraries. Other misc cleanups.
1996-03-26(ps_fmt_specs_find): Use new alias expansion method.Miles Bader
(specv_find, specs_add_alias): New functions. Get rid of mega typedefs, and just use structure pointers like other hurd libraries. Other misc cleanups.
1996-03-26(struct ps_fmt_specs): Add EXPANSIONS & EXPANSIONS_ALLOCED.Miles Bader
Get rid of mega typedefs, and just use structure pointers like other hurd libraries. Other misc cleanups.
1996-03-23(iscntl): New macro.Miles Bader
(noise_write, noise_len, flush): New functions. (ps_stream_write, _ps_stream_write_field): Use noise functions.
1996-02-15(ps_alive_filter): New variable.Miles Bader
(ps_alive_p): New function.
1996-02-15(ps_alive_filter): New declaration.Miles Bader
(proc_stat_list_add_pids, proc_stat_list_add_pid, proc_stat_list_add_all, proc_stat_list_add_login_coll, proc_stat_list_add_session, proc_stat_list_add_pgrp): Update declarations.
1996-02-15(proc_stat_list_add_pids): Add and support new return parameter PROC_STATS.Miles Bader
(proc_stat_list_add_pid): Add and support new return parameter PS. (proc_stat_list_add_fn_pids, proc_stat_list_add_id_fn_pids, proc_stat_list_add_all, proc_stat_list_add_login_coll, proc_stat_list_add_session, proc_stat_list_add_pgrp): Add and support new return parameters PROC_STATS & NUM_PROCS.
1996-02-15(ps_stream_write): Don't screw up on negative spaces.Miles Bader
1996-02-15(specs): Right-align the TTY column.Miles Bader
1996-02-13(specs): Change `Rpc' entry to `Wait'.Miles Bader
(ps_emit_wait): New function. (ps_emit_string, ps_emit_string0): Use ps_stream_write_trunc_field. (ps_get_wait): Renamed from ps_get_rpc; calling convention changed. (ps_wait_getter): Renamed from ps_rpc_getter & contents changed accord. (get_syscall_name, get_rpc_name): New stub functions.
1996-02-13(fetch_procinfo, merge_procinfo): Return wait strings.Miles Bader
(summarize_thread_waits): Return both wait and rpc info. (get_thread_wait): New function. (proc_stat_set_flags): Support finding wait info. Change occurances of PSTAT_THREAD_RPC to PSTAT_THREAD_WAIT.
1996-02-13(struct proc_stat): Add thread_wait, thread_waits, & thread_waits_len fields.Miles Bader
(PSTAT_THREAD_WAIT): Renamed from PSTAT_THREAD_RPC. (proc_stat_thread_wait): New macro. (ps_stream_write_trunc_field): New declaration.
1996-02-13(ps_stream_write_field): Call _ps_stream_write_field.Miles Bader
(ps_stream_write_trunc_field): New function. (_ps_stream_write_field): New function, from ps_stream_write_field.
1996-02-09(ps_getter_t, ps_filter_t, struct ps_filter, ps_not_leader_filter,Miles Bader
ps_ctty_filter, ps_unorphaned_filter, ps_parent_filter, ps_std_fmt_specs): Make const.
1996-02-09(specs, state_shadows, ps_pid_getter, ps_thread_index_getter,Miles Bader
ps_owner_getter, ps_owner_uid_getter, ps_ppid_getter, ps_pgrp_getter, ps_session_getter, ps_login_col_getter, ps_num_threads_getter, ps_args_getter, ps_state_getter, ps_rpc_getter, ps_vsize_getter, ps_rsize_getter, ps_cur_priority_getter, ps_base_priority_getter, ps_max_priority_getter, ps_usr_time_getter, ps_sys_time_getter, ps_tot_time_getter, ps_rmem_frac_getter, ps_cpu_frac_getter, ps_sleep_getter, ps_susp_count_getter, ps_proc_susp_count_getter, ps_thread_susp_count_getter, ps_tty_getter, ps_page_faults_getter, ps_cow_faults_getter, ps_pageins_getter, ps_msgs_sent_getter, ps_msgs_rcvd_getter, ps_zero_fills_getter): Make const.
1996-02-04(state_shadows): Don't reflect a suspended thread in the process stateMiles Bader
display if any thread isn't suspended. (ps_get_usr_time, ps_get_sys_time, ps_get_tot_time): Return a struct timeval instead of mach time_value_t. (ps_cmp_times): New function. (specs): Rearrange to use new field layout. (ps_fmt_specs_find): Renamed from find_ps_fmt_spec; now uses a struct ps_fmt_specs instead of an array of specs. (specs): Renamed from ps_std_fmt_specs; (ps_std_fmt_specs): Now of type struct ps_fmt_specs, pointing to specs. (ps_emit_seconds, ps_emit_minutes): Use timefmt functions. (append_fraction, sprint_long_time, ps_emit_nice_seconds): Deleted. Include <timefmt.h>.
1996-01-19(installhdrsubdir): New macro (put ps.h in <>, not <hurd/>).Miles Bader
1996-01-19(ps_context_create): Initialize USER_HOOKS field.Miles Bader
1996-01-19(ps_fmt_create):Miles Bader
Use the new spec fields. Now takes a ps_fmt_specs_t instead of an array of specs. Also fixup call to ps_fmt_specs_find(). (ps_fmt_write_proc_stat): Support new inval field in FMT. (ps_fmt_set_output_width): New function.
1996-01-19(summarize_thread_basic_info):Miles Bader
If there are any running threads, then only average priority from them. (_proc_stat_free): Call user cleanup hook. (proc_stat_set_flags, add_preconditions): Deal with user bits. (proc_stat_set_flags): Support the failed field. (_proc_stat_create): Initialize the failed and hook fields.
1996-01-19(struct ps_user_hooks): New structure.Miles Bader
(PSTAT_HOOK, PSTAT_USER_BASE, PSTAT_USER_MASK): New macros. (struct ps_context): Add USER_HOOKS field. (struct ps_fmt_spec): Add TITLE field. Renamed DEFAULT_WIDTH field to WIDTH, and move to after TITLE. (ps_fmt_spec_width): Renamed from ps_fmt_spec_default_width(). (ps_fmt_spec_title): New macro. (struct ps_fmt): Add INVAL field. (ps_fmt_inval): New macro. (ps_fmt_specs_t): New typedef. (struct ps_fmt_specs): New structure. (ps_std_fmt_specs): Now of type struct ps_fmt_specs. (ps_fmt_specs_find): Renamed from find_ps_fmt_spec; now uses a struct ps_fmt_specs instead of an array of specs. (ps_fmt_create): Now takes a ps_fmt_specs_t structure instead of an array of specs. (struct proc_stat): Add failed and hook fields.
1995-12-21(ps_emit_nz_int):Miles Bader
Write `-' when the value is 0, rather than mangling the output. (ps_emit_uid): Use an int uid, and emit "-" for none. (ps_emit_uname, ps_cmp_uids, ps_cmp_unames, ps_nominal_user): Handle NULL users. (ps_owner_uid_getter): New variable. (ps_get_owner_uid, ps_nominal_uid): New functions. (ps_std_fmt_specs): Make "UID" use owner_uid rather than owner. (own_uid): New variable (was function local).
1995-12-21(ps_not_leader_p): Renamed from ps_not_sess_leader_p.Miles Bader
(ps_not_leader_filter): Renamed from ps_not_sess_leader_filter. (ps_unorphaned_p): Include login leaders as well as session leaders. (ps_own_filter): Depend on PSTAT_OWNER_UID. (ps_own_p): Account for there being no uid.