aboutsummaryrefslogtreecommitdiff
path: root/libps/ps.h
Commit message (Collapse)AuthorAgeFilesLines
* 2002-05-07 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-8/+8
| | | | | | | | | * 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-31 Roland McGrath <roland@frob.com>Roland McGrath2001-12-311-3/+3
| | | | | * host.c (ps_get_host): Use mach_port_t instead of host_t. * ps.h: Update decl.
* 2001-03-29 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-03-311-1/+1
| | | | | | | | * 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-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-021-9/+19
| | | | | | | | | | | * 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.
* (struct ps):Miles Bader1996-10-081-133/+140
| | | | | | Add INAPP field. (struct ps_fmt): Add ERROR field, and rename INVAL to INAPP.
* (struct ps_fmt): Add SRC_LEN field.Miles Bader1996-06-271-0/+9
| | | | (proc_stat_list_clone, ps_fmt_clone): New declarations.
* (struct proc_stat): Add PROC_INFO_VM_ALLOCED, THREAD_WAITS_VM_ALLOCED, andMiles Bader1996-06-031-0/+5
| | | | ARGS_VM_ALLOCED fields.
* (struct ps_fmt_specs): The EXPANSIONS field now points to a structMiles Bader1996-06-021-2/+1
| | | | ps_fmt_spec_block. Delete EXPANSIONS_ALLOCED field.
* Renumber PSTAT_ values to remove dup.Miles Bader1996-05-291-16/+16
|
* (PSTAT_THREAD_WAITS): New macro.Miles Bader1996-05-131-2/+10
|
* (ps_user_uname_create, ps_user_passwd_create): New declarations.Miles Bader1996-05-071-30/+62
| | | | | | | | | | | | (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.
* (ps_fmt_creation_error): new declaration.Miles Bader1996-05-021-0/+5
|
* (PSTAT_STATE_P_ATTRS): Fix names of individual flags.Miles Bader1996-04-231-5/+5
|
* (struct ps_fmt_specs): Add EXPANSIONS & EXPANSIONS_ALLOCED.Miles Bader1996-03-261-228/+208
| | | | | Get rid of mega typedefs, and just use structure pointers like other hurd libraries. Other misc cleanups.
* (ps_alive_filter): New declaration.Miles Bader1996-02-151-18/+38
| | | | | | | (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.
* (struct proc_stat): Add thread_wait, thread_waits, & thread_waits_len fields.Miles Bader1996-02-131-4/+20
| | | | | | (PSTAT_THREAD_WAIT): Renamed from PSTAT_THREAD_RPC. (proc_stat_thread_wait): New macro. (ps_stream_write_trunc_field): New declaration.
* (ps_getter_t, ps_filter_t, struct ps_filter, ps_not_leader_filter,Miles Bader1996-02-091-9/+9
| | | | | ps_ctty_filter, ps_unorphaned_filter, ps_parent_filter, ps_std_fmt_specs): Make const.
* (struct ps_user_hooks): New structure.Miles Bader1996-01-191-16/+66
| | | | | | | | | | | | | | | | | | | (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.
* (proc_stat_owner_uid): New macro.Miles Bader1995-12-201-6/+9
| | | | | | (PSTAT_OWNER_UID): New macro. (struct proc_stat): Add owner_uid field. (ps_not_leader_filter): Renamed from ps_not_sess_leader_filter.
* (ps_fmt_write_titles, ps_fmt_write_proc_stat, proc_stat_list_fmt,Miles Bader1995-11-201-44/+55
| | | | | | | | | | | | | | | | 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.
* (PSTAT_STATE_P_LOGINLDR, PSTAT_STATE_P_WAIT, PSTAT_STATE_P_GETMSG): New flags.Miles Bader1995-11-031-56/+74
| | | | | | | | | | | | | | | (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.
* (ps_std_fmt_specs): Declare extern.Miles Bader1995-08-251-1/+1
|
* (PSTAT_STATE_*): All proc state flags reorganized and renamed toMiles Bader1995-08-191-23/+47
| | | | | PSTAT_STATE_P_* for process-global bits, and PSTAT_STATE_T_* for per-thread bits.
* Include hurd/ihash.h instead of ihash.h.Miles Bader1995-07-081-1/+2
|
* (ps_own_filter, ps_not_sess_leader_filter, ps_ctty_filter,Miles Bader1995-05-311-5/+5
| | | | | | 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).
* 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.
* (struct proc_stat): Add the suspend_count field, along withMiles Bader1995-05-021-14/+19
| | | | PSTAT_SUSPEND_COUNT, and proc_stat_suspend_count(ps).
* 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 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).
* Add the PSTAT_NO_MSGPORT flag, which when set disables any use of theMiles Bader1995-04-051-3/+5
| | | | process's message port.
* Add the exec_flags field to the proc_stat structure, and addMiles Bader1995-03-281-0/+5
| | | | PSTAT_STATE_TRACED.
* * 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
* 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.
* Initial revisionMiles Bader1995-03-131-0/+605