summaryrefslogtreecommitdiff
path: root/libps/ps.h
AgeCommit message (Collapse)Author
2002-05-132002-05-13 Roland McGrath <roland@frob.com>Roland McGrath
* ps.h (proc_stat_state_tags): Make decl extern, not common.
2002-05-082002-05-07 Roland McGrath <roland@frob.com>Roland McGrath
* host.c (ps_host_basic_info): int -> size_t (ps_host_basic_info, ps_host_load_info): Likewise. * ps.h: Update decls. (struct proc_stat): unsigned -> size_t for task_events_info_size, args_len, env_len. * procstat.c (summarize_thread_waits): Fix argument type.
2001-12-312001-12-31 Roland McGrath <roland@frob.com>Roland McGrath
* host.c (ps_get_host): Use mach_port_t instead of host_t. * ps.h: Update decl.
2001-03-312001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* host.c: Fix comments. (ps_host_basic_info): Make INITIALIZED static; otherwise we never cache BUF. Do not initalize static variables to 0. (ps_host_sched_info): Likewise. * ps.h: Doc fix.
1999-06-021999-06-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ps.h (PSTAT_ENV): New macro. (struct proc_stat): New members `env', `env_len', `env_vm_alloced'. (proc_stat_env, proc_stat_env_len): New accessor macros. (PSTAT_USER_BASE): Increase value to leave more room for additions. * procstat.c (proc_stat_set_flags): Handle environment. (_proc_stat_free): Likewise. * spec.c (ps_get_env, ps_env_getter): New function and constant. (specs): New spec "Env" using ps_env_getter and ps_emit_args.
1996-10-08(struct ps):Miles Bader
Add INAPP field. (struct ps_fmt): Add ERROR field, and rename INVAL to INAPP.
1996-06-27(struct ps_fmt): Add SRC_LEN field.Miles Bader
(proc_stat_list_clone, ps_fmt_clone): New declarations.
1996-06-03(struct proc_stat): Add PROC_INFO_VM_ALLOCED, THREAD_WAITS_VM_ALLOCED, andMiles Bader
ARGS_VM_ALLOCED fields.
1996-06-02(struct ps_fmt_specs): The EXPANSIONS field now points to a structMiles Bader
ps_fmt_spec_block. Delete EXPANSIONS_ALLOCED field.
1996-05-29Renumber PSTAT_ values to remove dup.Miles Bader
1996-05-13(PSTAT_THREAD_WAITS): New macro.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-02(ps_fmt_creation_error): new declaration.Miles Bader
1996-04-23(PSTAT_STATE_P_ATTRS): Fix names of individual flags.Miles Bader
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-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-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-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-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-20(proc_stat_owner_uid): New macro.Miles Bader
(PSTAT_OWNER_UID): New macro. (struct proc_stat): Add owner_uid field. (ps_not_leader_filter): Renamed from ps_not_sess_leader_filter.
1995-11-20(ps_fmt_write_titles, ps_fmt_write_proc_stat, proc_stat_list_fmt,Miles Bader
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.
1995-11-03(PSTAT_STATE_P_LOGINLDR, PSTAT_STATE_P_WAIT, PSTAT_STATE_P_GETMSG): New flags.Miles Bader
(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.
1995-08-25(ps_std_fmt_specs): Declare extern.Miles Bader
1995-08-19(PSTAT_STATE_*): All proc state flags reorganized and renamed toMiles Bader
PSTAT_STATE_P_* for process-global bits, and PSTAT_STATE_T_* for per-thread bits.
1995-07-08Include hurd/ihash.h instead of ihash.h.Miles Bader
1995-05-31(ps_own_filter, ps_not_sess_leader_filter, ps_ctty_filter,Miles Bader
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).
1995-05-03Add the nominal_fn field to struct ps_fmt_spec, which will be used to decideMiles Bader
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.
1995-05-02(struct proc_stat): Add the suspend_count field, along withMiles Bader
PSTAT_SUSPEND_COUNT, and proc_stat_suspend_count(ps).
1995-05-02Replace PSTAT_STATE_EXECED with PSTAT_STATE_FORKED; we want to the flags markMiles Bader
exceptional conditions, and this is rarer.
1995-04-07Add decls for proc_stat_list_add_pgrp & ps_tty_short_name.Miles Bader
Tighten up types used (i.e., don't use int for everything).
1995-04-05Add the PSTAT_NO_MSGPORT flag, which when set disables any use of theMiles Bader
process's message port.
1995-03-28Add the exec_flags field to the proc_stat structure, and addMiles Bader
PSTAT_STATE_TRACED.
1995-03-21* ps.h: Include <errno.h>.Michael I. Bushnell
(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
1995-03-14Added the new types ps_context_t, ps_user_t, and ps_tty_t.Miles Bader
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.
1995-03-13Initial revisionMiles Bader