Age | Commit message (Collapse) | Author |
|
Get rid of mega typedefs, and just use structure pointers like other hurd
libraries. Other misc cleanups.
|
|
(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.
|
|
(PSTAT_THREAD_WAIT): Renamed from PSTAT_THREAD_RPC.
(proc_stat_thread_wait): New macro.
(ps_stream_write_trunc_field): New declaration.
|
|
ps_ctty_filter, ps_unorphaned_filter, ps_parent_filter, ps_std_fmt_specs):
Make const.
|
|
(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.
|
|
(PSTAT_OWNER_UID): New macro.
(struct proc_stat): Add owner_uid field.
(ps_not_leader_filter): Renamed from ps_not_sess_leader_filter.
|
|
ps_emit_int, ps_emit_nz_int, ps_emit_priority, 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, ps_stream_write, ps_stream_space,
ps_stream_pad, ps_stream_newline, ps_stream_write_field,
ps_stream_write_int_field):
Use new STREAM parameter instead of old one and count.
(ps_stream_write): Renamed from ps_write_string.
(ps_stream_space): Renamed from ps_write_spaces.
(ps_stream_pad): Renamed from ps_write_padding.
(ps_stream_write_field): Renamed from ps_write_field.
(ps_stream_write_int_field): Renamed from ps_write_int_field.
(ps_stream_newline): New declaration.
|
|
(proc_stat_num_threads): Use the num_threads field.
(proc_stat_thread_sched_info, proc_stat_thread_basic_info):
Don't take the address, now that the fields used are pointers themselves.
(proc_stat_thread_rpc, proc_stat_task_basic_info): New macros.
(proc_stat_proc_info): Renamed from proc_stat_info.
(PSTAT_PROC_INFO): Renamed from PSTAT_INFO.
(PSTAT_TASK_BASIC, PSTAT_THREAD_BASIC, PSTAT_THREAD_SCHED, PSTAT_THREAD_RPC):
New macros.
(struct proc_stat):
info & info_len --> proc_info & proc_info_len.
Add the num_threads, task_basic_info, and thread_rpc fields.
thread_basic_info & thread_sched_info are now pointers.
|
|
|
|
PSTAT_STATE_P_* for process-global bits, and PSTAT_STATE_T_* for per-thread
bits.
|
|
|
|
ps_unorphaned_filter, ps_parent_filter): Declare these as extern so that the
linker will bring in the initialized version (it's not doing so otherwise may
be a bug).
|
|
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.
|
|
PSTAT_SUSPEND_COUNT, and proc_stat_suspend_count(ps).
|
|
exceptional conditions, and this is rarer.
|
|
Tighten up types used (i.e., don't use int for everything).
|
|
process's message port.
|
|
PSTAT_STATE_TRACED.
|
|
(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
|
|
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.
|
|
|